cmks / DAS_Tool

DAS Tool
Other
140 stars 17 forks source link

INTERNAL_SYSCALL_ERRNO #62

Open nick-youngblut opened 3 years ago

nick-youngblut commented 3 years ago

DAS-tool 1.1.2 generated the following error:

#CPU threads: 256
Scoring parameters: (Matrix=BLOSUM62 Lambda=0.267 K=0.041 Penalties=11/1)
Database file: /ebio/abt3_projects/amylase_oral_stool_microbiome/bin/llmga/.snakemake/conda/dc497901/share/das_tool-1.1.2-1/db/arc.all.faa
Opening the database file...  [0.001456s]
Loading sequences...  [0.939619s]
Masking sequences... diamond: ../nptl/pthread_mutex_lock.c:433: __pthread_mutex_lock_full: Assertion `INTERNAL_SYSCALL_ERRNO (e, __err) != ESRCH || !robust' failed.
makeblastdb did not work for /ebio/abt3_projects/amylase_oral_stool_microbiome/bin/llmga/.snakemake/conda/dc497901/share/das_tool-1.1.2-1/db/arc.all.faa, please check your input file
single copy gene prediction using diamond failed. Aborting

The arc.all.faa contains 198238 sequences, and appears to be a valid fasta. The entire log: bins_DASTool.log

nick-youngblut commented 3 years ago

I received a similar error from another DAS-tool job:

#CPU threads: 256
Scoring parameters: (Matrix=BLOSUM62 Lambda=0.267 K=0.041 Penalties=11/1)
Database file: /ebio/abt3_projects/Georg_animal_feces/data/metagenome/HiSeqRuns-n11/LLMGA/v0.12/cluster2/bin_refine/X238_Hanuman_Langur/DAS_Tool/bins_proteins.faa
Opening the database file...  [0.002661s]
Loading sequences...  [1.06957s]
Masking sequences...  [26.7932s]
Error: pthread_create error: Insufficient resources to create another thread, or a system-imposed limit on the number of threads was encountered.
makeblastdb did not work for /ebio/abt3_projects/Georg_animal_feces/data/metagenome/HiSeqRuns-n11/LLMGA/v0.12/cluster2/bin_refine/X238_Hanuman_Langur/DAS_Tool/bins_proteins.faa, please check your input file
single copy gene prediction using diamond failed. Aborting

It appears that DAS-tool (at least makeblastdb) is trying to use more threads that what was provided via the qsub job

cmks commented 3 years ago

Interesting. I'm not sure what causes the issue here. However, multiple users had problems with the single copy gene prediction step lately. I'll have to refactor some parts and maybe get rid of the ruby dependency.

Did you define 12 threads in the qsub command (or script header) as well as in the DAS_Tool command? I'm curious where the 256 comes from.