Skip to content

Commit

Permalink
Merge pull request #102 from hyphaltip/fix_bug101_qCount0
Browse files Browse the repository at this point in the history
fix for bug #101 where qCount is None not 0
  • Loading branch information
nextgenusfs committed Nov 6, 2023
2 parents 1eb9631 + 7afb042 commit e1c701a
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 e1c701a

Please sign in to comment.