snpgdsTranspose {SNPRelate} | R Documentation |
Transpose the genotypic matrix if needed.
snpgdsTranspose(gds.fn, snpfirstdim=FALSE, compress=NULL, optimize=TRUE, verbose=TRUE)
gds.fn |
the file name of SNP GDS format |
snpfirstdim |
if |
compress |
the compression mode for SNP genotypes, optional values
are defined in the function of |
optimize |
if |
verbose |
if TRUE, show information |
None.
Xiuwen Zheng
# 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)