Closed lgeistlinger closed 6 years ago
Sorry to be slow in getting to this. Do you still see the problem? Can you be more specific about how you are running this code? Also, is there a minimal example that you can provide, there are many more packages in your sessionInfo() than implied by your code?
For instance, I have a script BiocParallel-issue-70.R
data("airway", package="airway")
airway$GROUP <- ifelse(airway$dex == "trt", 1, 0)
elist <- rep(list(airway), 5)
myAna <- function(x) {
library(SummarizedExperiment) ## to tackle a separate problem; mentioned below
EnrichmentBrowser::deAna(x)
}
elist <- bptry(BiocParallel::bplapply(elist, myAna))
elist
sessionInfo()
And I run it from the PowerShell command line as
PS > R.exe -f .\BiocParallel-issue-70.R
...
> sessionInfo()
R version 3.5.1 RC (2018-06-24 r74929)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 R2 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets
[8] methods base
other attached packages:
[1] SummarizedExperiment_1.11.5 DelayedArray_0.7.15
[3] BiocParallel_1.15.6 matrixStats_0.53.1
[5] Biobase_2.41.1 GenomicRanges_1.33.6
[7] GenomeInfoDb_1.17.1 IRanges_2.15.14
[9] S4Vectors_0.19.16 BiocGenerics_0.27.1
loaded via a namespace (and not attached):
[1] lattice_0.20-35 snow_0.4-2 bitops_1.0-6
[4] grid_3.5.1 zlibbioc_1.27.0 XVector_0.21.3
[7] Matrix_1.2-14 tools_3.5.1 RCurl_1.95-4.10
[10] compiler_3.5.1 GenomeInfoDbData_1.1.0
>
myAna()
ensures that SummarizedExperiment is on the search path, otherwise the workers see the equivalent of (in a new R session)
> loadNamespace("SummarizedExperiment") # load but not attach
<environment: namespace:SummarizedExperiment>
> data("airway", package="airway") # happy that SE is loaded
> airway[1:5,] # `[,SummarizedExperiment` not found -- not on search path
Error in x@assays[ii, ] : object of type 'S4' is not subsettable
Using R-3.5.0
and Bioconductor 3.7, I'm not having this issue anymore. Thanks!
I"m carrying out a differential expression analysis with
EnrichmentBrowser::de.ana
on theairway
dataset under Windows (sessionInfo
at the end of this post). This works fine:However, when carrying this out in parallel via:
I"m getting some cryptic (and super long) output on
stdout
:How to get rid of this?