seqUnitSlidingWindows | R Documentation |
Generates units of selected variants via sliding windows.
seqUnitSlidingWindows(gdsfile, win.size=5000L, win.shift=2500L, win.start=0L,
dup.rm=TRUE, verbose=TRUE)
gdsfile |
a |
win.size |
window size in basepair |
win.shift |
the shift of sliding window in basepair |
win.start |
the start position in basepair |
dup.rm |
if |
verbose |
if |
A S3 object with the class name "SeqUnitListClass" and two components
(desp
and index
): the first is a data.frame with columns "chr",
"start" and "end", and the second is list of integer vectors (the variant
indices).
Xiuwen Zheng
seqUnitApply
, seqUnitFilterCond
# open the GDS file
gdsfile <- seqOpen(seqExampleFileName("gds"))
v <- seqUnitSlidingWindows(gdsfile)
v # "desp" "index"
# close the GDS file
seqClose(gdsfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.