seqUnitCreate | R Documentation |
Subset and merge the variant unit(s).
seqUnitCreate(idx, desp=NULL)
seqUnitSubset(units, i)
seqUnitMerge(ut1, ut2)
idx |
a list of numeric indexing vectors for specifying variants |
desp |
a |
units |
a list of units of selected variants, with S3 class
|
ut1 |
a list of units of selected variants, with S3 class
|
ut2 |
a list of units of selected variants, with S3 class
|
i |
a numeric or logical vector for indices specifying elements |
The variant unit of SeqUnitListClass
.
Xiuwen Zheng
seqUnitSlidingWindows
, seqUnitFilterCond
# open the GDS file
gdsfile <- seqOpen(seqExampleFileName("gds"))
# variant units via sliding windows
units <- seqUnitSlidingWindows(gdsfile)
(u1 <- seqUnitSubset(units, 1:10))
(u2 <- seqUnitSubset(units, 30:39))
seqUnitMerge(u1, u2)
seqUnitCreate(list(1:10, 20:30), data.frame(gene=c("g1", "g2")))
# close the GDS file
seqClose(gdsfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.