Comments (9)
Hi @jamesck2
Which version are you using? Since version 1.5.1, the nn-classification
module allows setting the number of threads.
from genomad.
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.
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:`
from genomad.
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.
>>> 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.
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.
That's strange. This shouldn't have been affected. Did the TensorFlow version change?
from genomad.
It changed to 2.12.1
from genomad.
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)
- Error downloading database HOT 2
- Inquiry on virus from MAG HOT 4
- [feature request] query database clustering HOT 1
- Whether measures have been taken by genomad to avoid identifying genomic islands as viruses? HOT 5
- AMR annotations on chromsome? HOT 1
- Errors when download and the same issue when running genomad -h HOT 3
- The virus identified by genomad weren't annotated as virus sequence by VIBRANT? HOT 3
- geNomad taxonomy about Baltimore classification HOT 1
- Error with geNomad v1.8.0, missing tensorflow.keras HOT 5
- mmseqs2 error HOT 3
- Different protein number from genomad and pyrodigal-gv HOT 2
- Small (reference) data for testing HOT 9
- Error while classifying sequences HOT 6
- Error mmseqs prefilter HOT 4
- genomad annotate fastq file is empty or contains multiple entries HOT 3
- plasmid classified as virus? HOT 7
- Optimization Request for Analyzing Large Number of MAGs with geNomad HOT 5
- Fewer viral contigs identified from genomad vs virsorter2 HOT 4
- The question about --disable-nn-classification HOT 1
- Provirus detection in genomad vs checkv HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from genomad.