Description Usage Arguments Details Value See Also Examples
Like segTable, but for two Rle objects. Takes a
pair of Rle or DataFrames with Rle
columns and makes one or more data.frames with bounds of each new
segment. Rle objects are broken up so that each resulting segment
has one value from each Rle. For a DataFrame, the
argument stack
combines all of the individual data.frames
into one large data.frame and adds a 'Sample' column of sample ids.
1 2 3 4 5 6 7 8 9 | segPairTable(x, y, ...)
## S4 method for signature 'Rle,Rle'
segPairTable(x, y, locs = NULL, chr.ind = NULL,
start = NULL, end = NULL, factor.chr = TRUE)
## S4 method for signature 'DataFrame,DataFrame'
segPairTable(x, y, locs, stack = FALSE,
factor.chr = TRUE)
|
x |
Rle or list/DataFrame of Rle vectors |
y |
Rle or list/DataFrame of Rle vectors |
... |
in generic, extra arguments for methods |
locs |
GenomicRanges with rows corresponding to rows of df |
chr.ind |
matrix, like from chrIndices method |
start |
integer, vector of feature start positions |
end |
integer, vector of feature end positions |
factor.chr |
scalar logical, make 'chrom' column a factor? |
stack |
logical, rbind list of segment tables for each sample and add 'Sample' column? |
For a Rle, the user can provide locs
or chr.ind
,
start
and stop
. The latter is surprisingly much faster
and this is used in the DataFrame version.
one or a list of data.frames with columns chrom, loc.start, loc.end, num.mark, seg.mean
Other 'segmented data': bounds2Rle
,
rangeSegMeanLength
, runCBS
,
segTable
, segs2Granges
,
segs2RleDataFrame
, segs2Rle
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.