Code Monkey home page Code Monkey logo

Comments (3)

jorainer avatar jorainer commented on June 16, 2024

Could you please provide the output of your sessionInfo? In the devel branch of xcms we switched from the old parallel processing setup (which was quite cumbersome in xcms) to BiocParallel, i.e. BiocParallel takes care of the correct parallel processing setup (whether snow Rmpi or parallel are used) which can be configured system-wide.

If you're using the release branch you might still be with the old setup. Eventually you're lacking one of the required packages for parallel processing. Try installing snow, parallel, Rmpi on your windows machine. I can't remember which one, but only one of those works on Windows, so don't be surprised if not all are available or can be installed:

library(BiocInstaller)
biocLite(c("snow", "parallel", "Rmpi"))

from xcms.

eschen42 avatar eschen42 commented on June 16, 2024

sessionInfo() revealed that "parallel" was already attached; as you said, apparently it is not effective for XCMS.

I did find that adding

library("snow")
to my script did result in parallel processing, e.g.,
Starting snow cluster with 12 sockets
Detecting features in file # 1: foo.mzXML
Detecting features in file # 2: bar.mzXML
etc.

Page 81 of the package manual
http://bioconductor.org/packages/release/bioc/manuals/xcms/man/xcms.pdf
documents nSlaves as

nSlaves - number of slaves/cores to be used for parallel peak detection. MPI is used if installed, otherwise the snow package is employed for multicore support. If none of the two packages is available it uses the parallel package for parallel processing on multiple CPUs of the current machine.

Perhaps this could be very slightly more explicit for the naive user, e.g.:

nSlaves - number of slaves/cores to be used for parallel peak detection.
Requires at least one of the additional libraries: Rmpi, snow, parallel.
If several are loaded, the order of preference is: Rmpi > snow > parallel.

Thank you very much for your quick response!

from xcms.

jorainer avatar jorainer commented on June 16, 2024

Thanks for your suggestion. Note however that the use of nSlaves is deprecated in the next release. As noted above we'll switch to BiocParallel for parallel processing; I'll try to enhance the documentation and eventually add a specific section to the vignette.

from xcms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.