Giter Club home page Giter Club logo

Comments (2)

dzolg avatar dzolg commented on August 25, 2024

Update: Seems to be a memory issue, quite a lot hits for the error. When I chunk the scans (5x1000 scans) it runs fine. So I guess the function does not scale well to ~ 5k MS1 scans (profile) or > 80k MS2 scans (these were testfiles that fail).

from rawdiag.

cpanse avatar cpanse commented on August 25, 2024

@dzolg pfff; this is massive ...
Can you try to apply a `Divide and Conquer' strategy?
Maybe you can extract the desired information before the merging step.

here is an example

system.time(scanDat <- lapply(idx, function(x){
  scan <- readScans(file, x)[[1]]; 
  i <- scan$intensity > 0;
  scan$mZ <- scan$mZ[i];
  scan$intensity <- scan$intensity[i];  
 scan}
))

the snippet seems to work on our 64 cores Linux box:

screenshot 2019-01-23 at 14 40 20

screenshot 2019-01-23 at 14 44 00

Q.E.D.

from rawdiag.

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.