[Bioc-sig-seq] RangedData Ordering

Dario Strbenac D.Strbenac at garvan.org.au
Mon May 31 03:15:36 CEST 2010


Hello,

I'd like to keep my RangedData object in the same order as I constructed it. I can't find any options in the documentation about this. Anyone know how to do this ?

e.g. 

> peaksRangedData <- RangedData(space = c("chr1", "chr2", "chr3", "chr20"), ranges = IRanges(start = c(1000, 2000, 3000, 4000), end =  c(5000, 6000, 7000, 8000)))
> peaksRangedData
RangedData with 4 rows and 0 value columns across 4 spaces
        space       ranges |
  <character>    <IRanges> |
1        chr1 [1000, 5000] |
2        chr2 [2000, 6000] |
3       chr20 [4000, 8000] |
4        chr3 [3000, 7000] |

i. e. The object was automatically sorted based on the ASCII ordering of 'space'.

Can this be done ?

--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan Institute of Medical Research
Darlinghurst NSW 2010
Australia



More information about the Bioc-sig-sequencing mailing list