Repository navigation
Closed
Description
It appears that convertalis fails if the mmseqs search hit database is empty or really small. The hits database size is ~7K, so it might be completely empty. The output that I'm getting:
convertalis --threads 4 --format-mode 0 --format-output query,target,evalue,pident,alnlen,tlen /ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db /ebio/abt3_scratch/nyoungblut/Struo2_255873462447/mmseqs_search_db/db /ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/hits_seqs17_db /ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/hits_seqs17.tsv
MMseqs Version: 12.113e3
Substitution matrix nucl:nucleotide.out,aa:blosum62.out
Alignment format 0
Format alignment output query,target,evalue,pident,alnlen,tlen
Translation table 1
Gap open cost nucl:5,aa:11
Gap extension cost nucl:2,aa:1
Database output false
Preload mode 0
Search type 0
Threads 4
Compressed 0
Verbosity 3
[============================================================Invalid database read for database data file=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h, database index=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h.index
Invalid database read for database data file=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h, database index=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h.index
Invalid database read for database data file=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h, database index=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h.index
Invalid database read for database data file=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h, database index=/ebio/abt3_scratch/nyoungblut/Struo2_255873462447/UniRef50_clst0.9/mmseqs_search/seqs17_db_h.index
getData: local id (4294967295) >= db size (6526)
getData: local id (4294967295) >= db size (6526)
getData: local id (4294967295) >= db size (6526)
getData: local id (4294967295) >= db size (6526)
free(): corrupted unsorted chunks
It would be nice if convertalis exited gracefully if the database is empty. Is there a way to even check whether any mmseqs database is empty?
mmseqs version: 12.113e3 (h2d02072_0 bioconda)
Metadata
Metadata
Assignees
Labels
No labels
Activity
milot-mirdita commentedon Nov 11, 2020
I tried to reproduce the issue with a completely empty database, but that didn't crash. Could you upload the
hits_seqs17_dbdb?nick-youngblut commentedon Nov 11, 2020
Thanks for checking so quickly! Attached is the
hits_seqs17_dbfile (and associated files)files.zip
milot-mirdita commentedon Nov 11, 2020
Something might be wrong with the header database.
hits_seqs17_dbhas 7002 entries and I assume the query sequence database has also this number of sequences, but the header database seems to have 6526 (db size (6526)) entries.How was the query database created?
nick-youngblut commentedon Nov 11, 2020
It was created with
createdb. The query db is attachedfiles.zip
milot-mirdita commentedon Nov 11, 2020
Okay some part of the puzzle is still missing. What was the search command? 7002 entries doesn't make much sense.
nick-youngblut commentedon Nov 11, 2020
The command was:
milot-mirdita commentedon Nov 12, 2020
I think I also need the full output of the search. The issue does not seem to be in
convertalisbut somewhere in thesearch.nick-youngblut commentedon Nov 12, 2020
Here's the output from that search job:
milot-mirdita commentedon Nov 12, 2020
Do you also have the previous steps? Alternatively, clear the temp directory and rerun the command.
At this point the profiles already contain over 7k entries for some reason (
7.00K 0s 8ms).nick-youngblut commentedon Nov 12, 2020
Yeah, maybe it's due to an old temp directory. I'm going to use
--remove-tmp-files 1from now onInclude file size and modified date of inputs in tmp file hash calcul…
milot-mirdita commentedon Nov 12, 2020
I added something that should hopefully prevent this from occurring in the future. It should create a new subdirectory in the tmp folder if any input has changed in the meantime.