[Bioc-sig-seq] GRangesList with duplicate names

Dario Strbenac D.Strbenac at garvan.org.au
Fri Feb 25 07:00:11 CET 2011


Hello,

It is possible to create a GRangesList with duplicated names, but not to re-order it.

> summary(grl)
     Length       Class        Mode 
          3 GRangesList          S4 
> names(grl) <- c("Cancer", "Cancer", "Normal")
> grl[3:1]
Error in `rownames<-`(`*tmp*`, value = c("Normal", "Cancer", "Cancer")) : 
  duplicate rownames not allowed
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_AU.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_AU.UTF-8        LC_COLLATE=en_AU.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_AU.UTF-8   
 [7] LC_PAPER=en_AU.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_AU.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] GenomicRanges_1.2.3 IRanges_1.8.9      

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



More information about the Bioc-sig-sequencing mailing list