Skip to content

Commit

Permalink
Make error message more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
johnne committed Feb 17, 2022
1 parent 1e64ceb commit 914c3fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contigtax/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ def diamond(query, outfile, dbfile, mode="blastx", cpus=1, evalue=0.001, top=10,
from contigtax import diamond_legacy
if diamond_legacy():
if taxonmap is None:
dbdir = os.path.dirname(dbfile)
sys.exit("ERROR: This diamond version requires you to supply"
"a taxonmap file with "
"--taxonmap at this stage")
"a taxonmap file with e.g."
f"--taxonmap {dbdir}/prot.accession2taxid.gz at this stage")
else:
tmap_string = "--taxonmap {}".format(taxonmap)
else:
Expand Down

1 comment on commit 914c3fa

@johnne
Copy link
Collaborator Author

@johnne johnne commented on 914c3fa Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #13

Please # to comment.