## IMPORTANT NOTE: Starting with BioC 3.3, RangedDataList objects are
## deprecated in favor of GRangesList objects (the GRangesList class
## is defined in the GenomicRanges package).
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)
Run the code above in your browser using DataLab