Description Usage Arguments Details Value Author(s) See Also Examples
Resets the variant IDs in multiple SeqArray GDS files.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 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.