Skip to content

Commit

Permalink
dont add 0 reads to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcolq committed Jan 18, 2024
1 parent 17925e9 commit 73f0f77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/extract_taxa_from_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ def extract_taxa(
sys.stderr.write("Write summary\n")
summary = []
for taxon in lists_to_extract:
if out_counts[taxon] == 0:
sys.stderr.write("No reads extracted for taxid %s\n" %taxon)
continue
if reads2:
summary.append(
{
Expand Down

0 comments on commit 73f0f77

Please sign in to comment.