Giter Club home page Giter Club logo

Comments (9)

igorspp avatar igorspp commented on June 15, 2024

PS: I have just ran a single comparison and it worked:

fastANI -q ../genomes/IN_Mac8_MAG01.fa \ -r ../genomes/GCA_000582685.fa \ -o fastani.out \ -t 4 \ --matrix

from fastani.

cjain7 avatar cjain7 commented on June 15, 2024

From the log, it seems like the last comparison finished, and it might be stuck while writing the output to file. It would be worth trying with lower genome count and checking that there is no issue with disk I/O.

from fastani.

wwood avatar wwood commented on June 15, 2024

Hi,

I'm running v1.1 and running into the same issues:

$ fastANI --ql all_good_genomes --rl all_good_genomes -o all_good_genomesVall_good_genomes.fastani -t 36
...
INFO [thread 0], skch::main, Time spent mapping fragments in query #1593 : 0.700507 sec
INFO [thread 0], skch::main, Time spent post mapping : 9.1878e-05 sec
INFO [thread 0], skch::main, Time spent mapping fragments in query #1594 : 0.714483 sec
INFO [thread 0], skch::main, Time spent post mapping : 0.000104341 sec

There's 1594 genomes in the list, and it has been sitting like that (using ~900% CPU on top) for >12 hours. This doesn't seem like an IO issue to me.

When I attached strace to it while it is stalled I see this

Process 128989 attached - interrupt to quit
futex(0xc9c744, FUTEX_WAIT_PRIVATE, 0, NULL

Maybe this is a multithreading issue? I'll try again without specifying -t.

from fastani.

wwood avatar wwood commented on June 15, 2024

Running it again without -t finished without issue in an hour or two.

Then ran the same command as above and it never finished - it is using 1300% on top after running overnight, and is stuck on the last query as before.

So, this seems like a multithreading-related issue to me.

from fastani.

cjain7 avatar cjain7 commented on June 15, 2024

This is useful to know. I'll take a look at the code again.

If you don't mind, can you give me more information about the C++ compiler and OS you are using..
Did you download the executable or compile from source?

from fastani.

wwood avatar wwood commented on June 15, 2024

Thanks - the executable is the same as the downloaded version, and has the same md5sum. Sorry, that was a long way of saying it is the downloaded (Linux) version.

from fastani.

cjain7 avatar cjain7 commented on June 15, 2024

I've made a few minor changes, mainly to add more print statements to see the status of each thread. If you get a chance, can you try cloning the latest source code, compile and run.

If it still fails, please share the output/error logs with me.

from fastani.

cruizperez avatar cruizperez commented on June 15, 2024

Hi!
I ran into the same problem using multiple threads. The program runs and then hangs in:

INFO [thread 0], skch::main, ready to exit the loop
INFO [thread 7], skch::main, ready to exit the loop
INFO [thread 3], skch::main, ready to exit the loop
INFO [thread 6], skch::main, ready to exit the loop
INFO [thread 2], skch::main, ready to exit the loop
INFO [thread 1], skch::main, ready to exit the loop

Running with just one thread finishes the job.

from fastani.

cjain7 avatar cjain7 commented on June 15, 2024

This should be resolved with recent releases, please create a new issue if not.

from fastani.

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.