From 7afb042ba137788c94425206e278a492c93f0d77 Mon Sep 17 00:00:00 2001 From: Jason Stajich Date: Wed, 18 Oct 2023 09:33:26 -0700 Subject: [PATCH] fix for bug #101 where qCount is None not 0 --- amptk/amptklib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/amptk/amptklib.py b/amptk/amptklib.py index 772c074..6dac47e 100644 --- a/amptk/amptklib.py +++ b/amptk/amptklib.py @@ -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: