seqResetVariantID | R Documentation |
Resets the variant IDs in multiple SeqArray GDS files.
seqResetVariantID(gds.fn, set=NULL, digest=TRUE, optimize=TRUE, verbose=TRUE)
gds.fn |
a character vector of multiple GDS file names |
set |
|
digest |
a logical value, if TRUE, add a md5 hash code |
optimize |
if |
verbose |
if |
The variant IDs will be replaced by the numbers in sequential order and adjacent to each file. The variant ID starts from 1 in the first GDS file.
None.
Xiuwen Zheng
seqVCF2GDS
fn <- seqExampleFileName("gds")
file.copy(fn, "tmp1.gds", overwrite=TRUE)
file.copy(fn, "tmp2.gds", overwrite=TRUE)
gds.fn <- c("tmp1.gds", "tmp2.gds")
seqResetVariantID(gds.fn)
f <- seqOpen("tmp1.gds")
head(seqGetData(f, "variant.id"))
seqClose(f)
f <- seqOpen("tmp2.gds")
head(seqGetData(f, "variant.id"))
seqClose(f)
# delete the temporary files
unlink(gds.fn, force=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.