Entering edit mode
                    arne.mueller@novartis.com
        
    
        ▴
    
    200
        @arnemuellernovartiscom-2205
        Last seen 10.0 years ago
        Switzerland
    Dear All,
Has anybody experience using the multicore package with GRangesLists
from
the GenomicRanges package? I can't get it working ..., here's an
example:
> a = GRanges(seqnames="A", ranges=IRanges(start=1:3, width=5))
> b = GRanges(seqnames="A", ranges=IRanges(start=c(10,20,30),
width=5))
> grl = GRangesList(a, b)
> sapply(grl, length)
[1] 3 3
> mclapply(grl, length, mc.cores=2)
[[1]]
[1] "Error in as.list.default(X) : \n  no method for coercing this S4
class to a vector\n"
[[2]]
[1] "Error in as.list.default(X) : \n  no method for coercing this S4
class to a vector\n"
> sessionInfo()
R version 2.13.0 Under development (unstable) (2010-12-20 r53870)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
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] multicore_0.1-3     GenomicRanges_1.3.7 IRanges_1.9.17
loaded via a namespace (and not attached):
[1] tools_2.13.0
    thanks a lot for hints ..
   arne
        [[alternative HTML version deleted]]
                    
                
                