segs2RleDataFrame: CBS segments to probe matrix

Description Usage Arguments Details Value See Also Examples

View source: R/segments.R

Description

Given segments, make an RleDataFrame of Rle objects for each sample

Usage

1
segs2RleDataFrame(seg.list, locs)

Arguments

seg.list

list, list of data frames, one per sample, each is result from CBS

locs

rowRanges from a GenoSet object

Details

Take table of segments from CBS, convert DataFrame of Rle objects for each sample.

Value

RleDataFrame with nrows same as locs and one column for each sample

See Also

Other 'segmented data': bounds2Rle, rangeSegMeanLength, runCBS, segPairTable, segTable, segs2Granges, segs2Rle

Examples

1
2
3
  data(genoset,package='genoset')
  seg.list = runCBS( genoset.ds[, , 'lrr'], rowRanges(genoset.ds), return.segs=TRUE )
  segs2RleDataFrame( seg.list, rowRanges(genoset.ds) )  # Loop segs2Rle on list of data.frames in seg.list

genoset documentation built on Nov. 8, 2020, 6:07 p.m.