Skip to content

Commit c9454f2

Browse files
authored
improve logging when check input failed check_input.py
1 parent 7ec995f commit c9454f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FastOMA/check_input.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def check_splice(isoform_by_gene_all):
202202

203203
logger.debug("For "+str(spliced_species_num)+" species, out of "+str(len(isoform_by_gene_all))+" , we have splice files.")
204204
if total_genes ==0:
205-
logger.debug("It seems that in all of the splice files, each line has only one item. Make sure that the splitter in each line is semicolon ; ")
205+
logger.debug("No splice information found. It could be that each line of splice files has only one item. Make sure that the splitter in each line is semicolon ; . Or the splice folder is empty. You need to delete the empty splice folder. FastOMA check input failed! Exiting...")
206206
sys.exit(1)
207207

208208
logger.debug("In total, for "+ str(total_genes)+" genes, we have " + str(total_isoforms)+" splices.")
@@ -229,7 +229,7 @@ def fastoma_check_input():
229229

230230
species_names = check_proteome_files(conf.proteomes)
231231
if not species_names:
232-
logger.error("Halting FastOMA because of invalid proteome input data")
232+
logger.error("Halting FastOMA because of invalid proteome input data. FastOMA check input failed! Exiting...")
233233
sys.exit(1)
234234

235235
try:
@@ -239,7 +239,7 @@ def fastoma_check_input():
239239
species_tree = Tree(conf.species_tree)
240240
# todo add check fro Phyloxml
241241
except:
242-
logger.error("We have problem with parsing species tree %s using ete3 Tree. Maybe there are some special chars.", conf.species_tree)
242+
logger.error("We have problem with parsing species tree %s using ete3 Tree. Maybe there are some special chars. FastOMA check input failed! Exiting...", conf.species_tree)
243243
sys.exit(1)
244244

245245
check_speciestree_internalnode(species_tree)
@@ -250,7 +250,7 @@ def fastoma_check_input():
250250

251251
species_names, prot_recs_lists, fasta_format_keep = _utils_roothog.parse_proteomes(conf.proteomes)
252252
if not check_proteome(species_names, prot_recs_lists, conf.proteomes):
253-
logger.error("Halting FastOMA because of invalid proteome input data")
253+
logger.error("Halting FastOMA because of invalid proteome input data. FastOMA check input failed! Exiting...")
254254
sys.exit(1)
255255

256256
hogmap_files = conf.hogmap is not None and os.path.exists(conf.hogmap)

0 commit comments

Comments
 (0)