Skip to content

Commit 552c67c

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
improved error reporting
1 parent 081509e commit 552c67c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/funannotate-predict.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ def __init__(self,prog):
7171
version = lib.get_version()
7272
lib.log.info("Running %s" % version)
7373

74+
#check for DB files needed for funanntoate predict, should only need REPEAT DB
75+
blastdb = os.path.join(parentdir,'DB','REPEATS.psq')
76+
if not os.path.isfile(blastdb):
77+
lib.log.error("funannotate database is not properly configured, please run `./setup.sh` in the %s directory" % parentdir)
78+
os._exit(1)
79+
7480
#do some checks and balances
7581
try:
7682
EVM = os.environ["EVM_HOME"]
@@ -134,7 +140,7 @@ def __init__(self,prog):
134140
args.protein_evidence = os.path.join(parentdir, 'DB', 'uniprot_sprot.fasta')
135141

136142
#check input files to make sure they are not empty
137-
input_checks = [args.genemark_mod, args.protein_evidence, args.transcript_evidence, args.exonerate_proteins, args.gmap_gff, args.pasa_gff, args.repeatmodeler_lib, args.rna_bam]
143+
input_checks = [args.input, args.genemark_mod, args.protein_evidence, args.transcript_evidence, args.exonerate_proteins, args.gmap_gff, args.pasa_gff, args.repeatmodeler_lib, args.rna_bam]
138144
for i in input_checks:
139145
if i:
140146
lib.checkinputs(i)

0 commit comments

Comments
 (0)