Skip to content

Commit

Permalink
fix for bug #101 where qCount is None not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphaltip committed Oct 18, 2023
1 parent 1eb9631 commit 7afb042
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions amptk/amptklib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,8 @@ def validateorientation(tmp, reads, otus, output):
cols = line.split('\t')
if cols[2] == '-':
qCount = OTUCounts.get(cols[0])
if qCount is None:
qCount = 0
tCount = OTUCounts.get(cols[1])
if qCount > tCount:
if not cols[1] in orient_remove and not cols[1] in keeper:
Expand Down

0 comments on commit 7afb042

Please sign in to comment.