-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error running test profile with conda #551
Comments
The corresponding error
I also see other errors such as:
Could you maybe go into
and send the contents of |
OK actually I was able to replicate the conda error, I'm going to look into this now :) The two cnetrifuge report files that get generated are:
So I guess this might be a taxprofiler bug - @Midnighter , this is because is no taxon name there, or? Uhh strange, tax id 9313 is 😅 |
Docker produces:
With upstream step having the following log:
|
I've ran out of time today unfortuantely, But I need to run the two test profiles and compare what the centrifuge process itself reports. |
OK back at investigating this now! |
So the output from CENTRIFUGE_CENTRIFUGE appears to be identical Top (c7) is conda, (a6) is docker (nf-core) james@bionb103:~/git/nf-core/taxprofiler/testing/work/a6/25e9b2169e9af5a9a4e0b6deeac240 (dev)$ cat 2613_ERR5766181_db3.centrifuge.report.txt
name taxID taxRank genomeSize numReads numUniqueReads abundance
Eucommia ulmoides 4392 species 12157105 78966 38245 0.0
Homo sapiens 9606 species 16569 81 81 1
(nf-core) james@bionb103:~/git/nf-core/taxprofiler/testing/work/c7/98ae6a407d84527c1d100b7991ca99 (dev)$ cat 2613_ERR5766181_db3.centrifuge.report.txt
name taxID taxRank genomeSize numReads numUniqueReads abundance
Eucommia ulmoides 4392 species 12157105 78966 38245 0.0
Homo sapiens 9606 species 16569 81 81 1 The issue is in CENTRIGUE_KREPORT e5 is docker (top) (nf-core) james@bionb103:~/git/nf-core/taxprofiler/testing/work/e5/8b9cb14e6de6158901a6b89028a086 (dev)$ cat .command.log
Loading taxonomy ...
Loading names file ...
Loading nodes file ...
(nf-core) james@bionb103:~/git/nf-core/taxprofiler/testing/work/a6/79e32090f2b3a18451615afe13d30d (dev)$ head .command.log
Loading taxonomy ...
Loading names file ...
Traceback (most recent call last):
File "/home/james/cache/conda/env-8778d98cc9a2cc48-6e91f0d1f67aabb2a2b8a0425835d8e6/bin/centrifuge-inspect", line 24, in <module>
import imp
ModuleNotFoundError: No module named 'imp'
Loading nodes file ...
Traceback (most recent call last):
File "/home/james/cache/conda/env-8778d98cc9a2cc48-6e91f0d1f67aabb2a2b8a0425835d8e6/bin/centrifuge-inspect", line 24, in <module>
import imp
Couldn't find parent of taxID 4392 - directly assigned to root.
<AND MANY MORE LINES OF ERROR> |
OK, I think the conda recipe is slightly broken: https://docs.python.org/3.11/library/imp.html
This needs a fix to the conda recipe! |
Which infact has already been solved with an new version of centrfigue! https://github.com/DaehwanKimLab/centrifuge/releases/tag/v1.0.4.2 So just need to update the nf-core module :) |
In the meantime, if you're in a rush (although given you've already patiently 3 weeks, so I assume it's not pressing) I think if you make a custom config, you should be able to get it to work. The contents of the process {
withName: CENTRIFUGE_CENTRIFUGE {
conda "bioconda::centrifuge=1.0.4.2"
}
withName: CENTRIFUGE_KREPORT {
conda "bioconda::centrifuge=1.0.4.2"
}
} And run It should work |
No indeed, if it was a really pressing issue i would have bene more active here ;) |
Description of the bug
While setting up taxprofiler on my local machine. I encountered an issue when using conda as the executor. There seems to be a reproducible failure for the process "NFCORE_TAXPROFILER:TAXPROFILER:STANDARDISATION_PROFILES:TAXPASTA_MERGE" stemming from an upstream error in the sample "2613_db3.centrifuge".
This error does not occur when using singularity as the executor on the same machine. Not sure if this is a Nextflow, conda or taxprofiler issue.
Command used and terminal output
nextflow run nf-core/taxprofiler -r 1.2.0 -profile test,conda --outdir ./taxprofiler_test_conda
Relevant files
nextflow.conda.log
nextflow.singularity.log
System information
Nextflow version 24.10.0 build 5928
conda 24.9.2
Hardware: 21 CPU threads, 30 GB RAM
Ubuntu 22.04 LTS
Taxprofiler release 1.2.0
The text was updated successfully, but these errors were encountered: