# the file name of SNP GDS
(fn <- snpgdsExampleFileName())
# copy the file
file.copy(fn, "test.gds", overwrite=TRUE)
# summary
snpgdsSummary("test.gds")
# transpose the SNP matrix
snpgdsTranspose("test.gds", snpfirstdim=TRUE)
# summary
snpgdsSummary("test.gds")
# delete the temporary file
unlink("test.gds", force=TRUE)
Run the code above in your browser using DataLab