Coder Social home page Coder Social logo

Comments (9)

apcamargo avatar apcamargo commented on July 29, 2024

Hi @jamesck2

Which version are you using? Since version 1.5.1, the nn-classification module allows setting the number of threads.

from genomad.

jamesck2 avatar jamesck2 commented on July 29, 2024

Executing genomad --version shows that I have genomad 1.5.2. Strange. I'm going to try running the nn-classification module by itself and see if I get the same issue. I will report back.

from genomad.

jamesck2 avatar jamesck2 commented on July 29, 2024

The same issue happened when I ran nn-classification by itself. Here's the screen in case it helps (I terminated the run once I saw all cores being used again:

`genomad nn-classification --threads 30 /storage2/scratch/kosmopoulos/peatland_viruses/assemblies/CGEBMP337A_MEGAHITCOA_justAssemblies/BAr1A1B1C_final_assembly.fasta /storage2/scratch/kosmopoulos/peatland_viruses/genomad_out/BAr1A1B1C/
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Executing geNomad nn-classification (v1.5.2). This will classify the input sequences into chromosome, plasmid, or virus based on the nucleotide sequence. │
│ ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ Outputs: │
│ /storage2/scratch/kosmopoulos/peatland_viruses/genomad_out/BAr1A1B1C/BAr1A1B1C_final_assembly_nn_classification │
│ ├── BAr1A1B1C_final_assembly_nn_classification.json (execution parameters) │
│ ├── BAr1A1B1C_final_assembly_encoded_sequences (directory containing encoded sequence data) │
│ ├── BAr1A1B1C_final_assembly_nn_classification.tsv (contig classification: tabular format) │
│ ├── BAr1A1B1C_final_assembly_nn_classification.npz (contig classification: binary format) │
│ ├── BAr1A1B1C_final_assembly_encoded_proviruses (directory containing encoded sequence data) │
│ ├── BAr1A1B1C_final_assembly_provirus_nn_classification.tsv (provirus classification: tabular format) │
│ └── BAr1A1B1C_final_assembly_provirus_nn_classification.npz (provirus classification: binary format) │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[08:30:44] Executing genomad nn-classification.
[08:30:46] Previous execution detected. Steps will be skipped unless their outputs are not found. Use the --restart option to force the execution of all the steps again.
[08:30:48] BAr1A1B1C_final_assembly_encoded_sequences was found. Skipping sequence encoding.
[08:30:48] BAr1A1B1C_final_assembly_encoded_proviruses was found. Skipping provirus encoding.
Classifying sequences ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.2% | 3:42:27

Aborted.
^CException ignored in: <module 'threading' from '/storage2/scratch/kosmopoulos/miniconda3/envs/genomad/lib/python3.11/threading.py'>
Traceback (most recent call last):
File "/storage2/scratch/kosmopoulos/miniconda3/envs/genomad/lib/python3.11/threading.py", line 1534, in _shutdown
def _shutdown():

KeyboardInterrupt:`

image

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

I'll investigate it. In my installations, --threads is working as expected (including in the end-to-end command). Can you check which version of TensorFlow you have installed? Maybe they changed something.

>>> import tensorflow
>>> tensorflow.__version__
'2.11.0'

from genomad.

jamesck2 avatar jamesck2 commented on July 29, 2024
>>> import tensorflow
2023-07-28 09:24:49.356172: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: SSE4.1 SSE4.2 AVX AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
>>> tensorflow.__version__
'2.12.0'

Interesting... I'll downgrade to 2.11.0 and see what happens

from genomad.

jamesck2 avatar jamesck2 commented on July 29, 2024

Ok, I uninstalled genomad 1.5.2 and installed genomad 1.5.1 This did not cause any problems at the nn-classification step and no extra cores were used. I'm not sure what the differences are between 1.5.1 and 1.5.2 that caused this problem for me, but at least I can use nn-classification now 😃

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

That's strange. This shouldn't have been affected. Did the TensorFlow version change?

from genomad.

jamesck2 avatar jamesck2 commented on July 29, 2024

It changed to 2.12.1

from genomad.

apcamargo avatar apcamargo commented on July 29, 2024

That shouldn't be the issue, then. I just tested a new 1.5.2 installation and couldn't reproduce the issue. Maybe it was something in your environment?

Since you solved the problem on your end and I can't reproduce it for now, I'll close the issue. I'll re-open it if I someone else reports the same problem.

from genomad.

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.