Giter Site home page Giter Site logo

Comments (4)

jltsiren avatar jltsiren commented on August 20, 2024

Giraffe uses the specified number of mapping threads and one additional output thread. When you run it in paired-end mode, Giraffe starts by mapping some reads using a single thread in order to determine fragment length distribution. This normally takes around one second.

It looks like your run is stuck in that process, with many reads taking a long time to map. That often means one or both of the following:

  • The structure of your graph is not what Giraffe expects, and mapping will be very slow.
  • Your reads are sorted, with unmapped reads placed in front. Fragment length estimation may be slow, and it will eventually fail.

There is a little more information in the wiki.

from vg.

Aasesss avatar Aasesss commented on August 20, 2024

Giraffe uses the specified number of mapping threads and one additional output thread. When you run it in paired-end mode, Giraffe starts by mapping some reads using a single thread in order to determine fragment length distribution. This normally takes around one second.

It looks like your run is stuck in that process, with many reads taking a long time to map. That often means one or both of the following:

  • The structure of your graph is not what Giraffe expects, and mapping will be very slow.
  • Your reads are sorted, with unmapped reads placed in front. Fragment length estimation may be slow, and it will eventually fail.

There is a little more information in the wiki.

Thank you very much for your detailed reply!

Acturally, I think this problem may not caused by graph or reads data.

I need to map multiple samples. It works fine when I run sample after sample, but when doing multiple mapping processes at once, only the first process can successfully Implement multithreading. However, these processes all take up the same amount of memory (about 17GB). I'm not sure why this happened.

from vg.

jltsiren avatar jltsiren commented on August 20, 2024

The distance index could be the reason for that. It is a memory-mapped file, and some systems may have performance issues when multiple jobs memory-map the same file. Especially if it's on a network drive.

These are some solutions that could work:

  1. Make the distance index (.dist) file read-only.
  2. Create a private copy of the distance index file for each process.
  3. Create private copies of all index files for each process.

from vg.

Aasesss avatar Aasesss commented on August 20, 2024

The distance index could be the reason for that. It is a memory-mapped file, and some systems may have performance issues when multiple jobs memory-map the same file. Especially if it's on a network drive.

These are some solutions that could work:

  1. Make the distance index (.dist) file read-only.
  2. Create a private copy of the distance index file for each process.
  3. Create private copies of all index files for each process.

Thank you very much! Your advices are really useful.

The multithreading tasks worked well when I make the distance index (.dist) file read-only.

from vg.

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.