Coder Social home page Coder Social logo

Memory usage of fill module about mindthegap HOT 7 CLOSED

gatb avatar gatb commented on August 26, 2024
Memory usage of fill module

from mindthegap.

Comments (7)

clemaitre avatar clemaitre commented on August 26, 2024

Yes, you can try to limit the number of cpu cores, with the option -nb-cores.

from mindthegap.

Chris7 avatar Chris7 commented on August 26, 2024

Thanks, is the memory due to building the de-bruijn graph? Is there a better way to predict the memory usage of a sample?

from mindthegap.

clemaitre avatar clemaitre commented on August 26, 2024

Hi,
This is not the de bruijn graph itself nor its construction that uses such memory (we use the implementation given by the GATB library that is very light, and for this you can control the memory with the option -max-memory). The problem comes from an additional data structure that is used to mark the traversed nodes that is not well memory-optimized (a sort of hashtable for all the branching kmers of the graph, this is on the TODO list to change it to a lighter data structure...) and that must be duplicated for each thread.
Usually, even for large genomes or large number of reads, the number of branching kmers is not so high and this is not an issue. Note that high number of branching kmers can happen if the abundance-min parameter is not well set or with some atypical datasets (for instance, metagenomics).
I hope that reducing the number of threads made it possible for you to run MindTheGap.
Best,
Claire

from mindthegap.

clemaitre avatar clemaitre commented on August 26, 2024

Hi,
the implementation of the de bruijn graph has been modified in MindTheGap (uses now default options of implementation as in dbgh5). This should fix the memory issues.

from mindthegap.

Chris7 avatar Chris7 commented on August 26, 2024

Great! Looking forward to trying the newest version out.

from mindthegap.

Chris7 avatar Chris7 commented on August 26, 2024

This problem still persists with the newest install. Is there a reference I can look at to see how the memory allocation was fixed to understand why I am still getting 30-50GB of memory allocation per sample?

from mindthegap.

clemaitre avatar clemaitre commented on August 26, 2024

Hi,
We fixed a bug in the building of the de Bruijn graph. MindTheGap used previously non-default implementations for the data structures behind and for some datasets we observed that it could lead to a false graph with way too much branching nodes, which took later too much memory in the Fill module. MindTheGap now uses the default implementation of the dbg of gatb-core.
Did you run again MindTheGap starting from the reads (and not from the previously built h5 file) ?

from mindthegap.

Related Issues (13)

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.