RangedDataList-class {IRanges}R Documentation

Lists of RangedData

Description

A formal list of RangedData objects. Extends and inherits all its methods from Sequence. One use case is to group together all of the samples from an experiment generating data on ranges.

Constructor

RangedDataList(...): Concatenates the RangedData objects in ... into a new RangedDataList.

Combining and Splitting

stack(x, indName = "sample"): Uses rbind to combine the elements into a single RangedData object, with a factor, named indName, in the values indicating the source of each feature.

Author(s)

Michael Lawrence

See Also

RangedData, the element type of this Sequence.

Examples

  ranges <- IRanges(c(1,2,3),c(4,5,6))
  a <- RangedData(IRanges(c(1,2,3),c(4,5,6)), score = c(10L, 2L, NA))
  b <- RangedData(IRanges(c(1,2,4),c(4,7,5)), score = c(3L, 5L, 7L))
  RangedDataList(sample1 = a, sample2 = b)

[Package IRanges version 1.6.16 Index]