From 914c3fa8d7b71b27adbadf993ae955e3f3283bc5 Mon Sep 17 00:00:00 2001 From: johnne Date: Thu, 17 Feb 2022 23:14:02 +0100 Subject: [PATCH] Make error message more clear --- contigtax/search.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contigtax/search.py b/contigtax/search.py index 7d0599d..d934844 100644 --- a/contigtax/search.py +++ b/contigtax/search.py @@ -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: