GithubHelp home page GithubHelp logo

Mash info buffering about poppunk HOT 7 CLOSED

bacpop avatar bacpop commented on July 23, 2024
Mash info buffering

from poppunk.

Comments (7)

johnlees avatar johnlees commented on July 23, 2024

I'll look into improving the interface with the mash output, as I think this also relates to issue #9 taking up far more memory than necessary

from poppunk.

nickjcroucher avatar nickjcroucher commented on July 23, 2024

No problem at all on this one with Mass, Southampton or Nijmegen datasets, but falls over pretty much immediately on Maela:

Traceback (most recent call last):
File "./PopPUNK/poppunk-runner.py", line 9, in
main()
File "/lustre/scratch118/infgen/team81/nc3/strain_structure/comparative_clustering/PopPUNK/PopPUNK/main.py", line 230, in main
sketch_sizes = getSketchSize(ref_db, kmers, args.mash)
File "/lustre/scratch118/infgen/team81/nc3/strain_structure/comparative_clustering/PopPUNK/PopPUNK/mash.py", line 173, in getSketchSize
mash_info.wait(timeout=15)
File "/lustre/scratch118/infgen/team81/nc3/nc3/lib/python3.6/subprocess.py", line 1449, in wait
raise TimeoutExpired(self.args, timeout)
subprocess.TimeoutExpired: Command 'mash info -t ././maela_db/./maela_db.14.msh' timed out after 15 seconds

I need to have a think about this. Reopening as a reminder.

from poppunk.

johnlees avatar johnlees commented on July 23, 2024

This is because the mash info command takes longer than 15s to run?
Perhaps the best thing to do is no longer poll for successful command completion, and instead check whether sketch was set, and also raise RuntimeError if more than two lines are read

from poppunk.

johnlees avatar johnlees commented on July 23, 2024

I think just removing lines 173-175 of mash.py would work

from poppunk.

johnlees avatar johnlees commented on July 23, 2024

Does that commit work?

from poppunk.

nickjcroucher avatar nickjcroucher commented on July 23, 2024

from poppunk.

nickjcroucher avatar nickjcroucher commented on July 23, 2024

That seems to do the trick, worked fine.

from poppunk.

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.