Giter Site home page Giter Site logo

Set number of threads about pyani HOT 3 CLOSED

widdowquinn avatar widdowquinn commented on June 14, 2024
Set number of threads

from pyani.

Comments (3)

widdowquinn avatar widdowquinn commented on June 14, 2024

Not yet, @ddomman - but it should be a fairly straightforward change. I'll make it in the v0.2 branch, when I do.

FWIW, I think using all the threads available to you is generally a good thing ;)

from pyani.

widdowquinn avatar widdowquinn commented on June 14, 2024

That should be the appropriate option enabled in the v0.2 branch with commit 5d50a. If this doesn't do the trick, I'll reopen the issue.

To use the new option, add the --workers n argument to the command-line. This will default to the maximum available number of threads if not specified, and cannot use more than the available number of cores if the specified value is too high. For example:

./average_nucleotide_identity.py -v -f \
  -i tests/test_ani_data/ \
  -o tests/test_ANIm_output/ \
  -g --gformat png,pdf,eps \
  --classes tests/test_ani_data/classes.tab --labels tests/test_ani_data/labels.tab \
  --workers 1

should use a single core.

from pyani.

sarah872 avatar sarah872 commented on June 14, 2024

Although I specify --workers, mummer/nucmer is still running on the maximum number of cores. How can I limit the number of cores for nucmer?

from pyani.

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.