Commit 2876c10c authored by Martin Larralde's avatar Martin Larralde
Browse files

Fix `gecco run` crashing if unable to find genes in the input genome

parent 964a91b5
......@@ -115,7 +115,12 @@ class Run(Command): # noqa: D101
genes = list(
itertools.chain.from_iterable(map(orf_finder.find_genes, sequences))
)
self.logger.info("Found {} potential genes", len(genes))
if genes:
self.logger.info("Found {} potential genes", len(genes))
else:
self.logger.warning("No genes were found")
return 0
# --- HMMER ----------------------------------------------------------
self.logger.info("Running domain annotation")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment