Skip to content

Commit

Permalink
MIN Warn on empty FASTA files
Browse files Browse the repository at this point in the history
Probably reflects user error and this can help them debug it
  • Loading branch information
luispedro committed Oct 3, 2023
1 parent 6dc33b0 commit bdc1087
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SemiBin/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ def process_fasta(fasta_path, ratio):

binned_short = contig_bp_2500 / whole_contig_bp < ratio
must_link_threshold = get_must_link_threshold(contig_length_list)
if not contig_dict:
logger.warning(f'No contigs in {fasta_path}')
return binned_short, must_link_threshold, contig_dict


Expand Down

0 comments on commit bdc1087

Please sign in to comment.