Giter Site home page Giter Site logo

Error with --threads 1 - persisting about hapo-g HOT 4 CLOSED

wm75 avatar wm75 commented on September 26, 2024
Error with --threads 1 - persisting

from hapo-g.

Comments (4)

bistace avatar bistace commented on September 26, 2024 1

Hello,

thank you for the report, this is indeed a corner case that I did not catch. I will work on a fix and update you on this.

from hapo-g.

bistace avatar bistace commented on September 26, 2024 1

Hello and thank you for reporting!

The wait time of 10 seconds is because the number of chunks can be superior to the number of threads so the wrapper script is waiting 10 seconds between each verification to see if it can launch more jobs. 10 seconds is maybe a bit too much, I will lower it and make a release!

from hapo-g.

bistace avatar bistace commented on September 26, 2024

I just merged some changes into master. If you are not using the conda version, could you please verify that in your particular use-case the issue is indeed fixed? If you are using the conda version, I will make a release so it can be integrated into bioconda instead.

from hapo-g.

wm75 avatar wm75 commented on September 26, 2024

Thanks for the fix and sorry for my delayed reply here.
I just patched my existing conda environment with your changes and that fixes the issue for me 🚀

One somewhat irritating thing is that when I compare the behavior of running with --threads 1 vs --threads 2 now on a tiny genome and just a handful of reads, there are striking runtime differences between the two: while the run finishes instantaneously with --threads 2 (each individual step in the pipeline getting reported as taking 0 seconds), the single-threaded run takes reported 10 seconds after "Launching Hapo-G on each chunk". Much more than you'd expect, in particular, because the --threads 2 version only creates a single chunk for my tiny test genome!
Final results are identical though.

Doesn't seem to have anything to do with the original issue here, but could hint at some issue further down the pipeline when running with a single thread?

from hapo-g.

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.