seqGDS2SNP | R Documentation |
Converts a SeqArray GDS file to a SNP GDS file.
seqGDS2SNP(gdsfile, out.gdsfn, dosage=FALSE, compress.geno="LZMA_RA",
compress.annotation="LZMA_RA", ds.type=c("packedreal16", "float", "double"),
optimize=TRUE, verbose=TRUE)
gdsfile |
character (a GDS file name), or
a |
out.gdsfn |
the file name, output a file of VCF format |
dosage |
a logical value, or characters for the variable name of
dosage in the SeqArray file; if |
compress.geno |
the compression method for "genotype"; optional
values are defined in the function |
compress.annotation |
the compression method for the GDS variables,
except "genotype"; optional values are defined in the function
|
ds.type |
applicable when import dosages, the data type for storing
dosages; see |
optimize |
if |
verbose |
if |
seqSetFilter
can be used to define a subset of data for
the conversion.
Return the file name of VCF file with an absolute path.
Xiuwen Zheng
seqSNP2GDS
, seqVCF2GDS
,
seqGDS2VCF
# the GDS file
gds.fn <- seqExampleFileName("gds")
seqGDS2SNP(gds.fn, "tmp.gds")
# delete the temporary file
unlink("tmp.gds")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.