[BioC] IRanges bug? Running do.cal("c", list.of.IRanges.objects)

Steve Lianoglou mailinglist.honeypot at gmail.com
Fri May 7 23:23:33 CEST 2010


Hi,

I feel like this should construct a new IRanges object that is the
"stack" of all the IRanges objects in my list:

R> library(IRanges)
R> ilist <- list(a=IRanges(1, 30), b=IRanges(10,80), c=IRanges(100, 500))
R> do.call('c', ilist)

But it just returns the same list as ilist.

Shouldn't the above return the equivalent of:

R> c(l$a, l$b, l$c)

No?

R> sessionInfo()
R version 2.11.0 Patched (2010-05-05 r51909)
x86_64-apple-darwin9.8.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] IRanges_1.6.1   ARE.utils_0.1.0

loaded via a namespace (and not attached):
[1] igraph_0.5.3 tools_2.11.0

Thanks,
-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list