From d72ca8bf67ee20dc696edc20f81d169787b2dfb2 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho <37312125+tfrcarvalho@users.noreply.github.com> Date: Tue, 20 Oct 2020 16:20:03 -0700 Subject: [PATCH] Fix logical condition on length fix (#56) --- short-read-mngs/idseq-dag/idseq_dag/util/m8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/short-read-mngs/idseq-dag/idseq_dag/util/m8.py b/short-read-mngs/idseq-dag/idseq_dag/util/m8.py index 1a2b8fc8..3bbc6683 100644 --- a/short-read-mngs/idseq-dag/idseq_dag/util/m8.py +++ b/short-read-mngs/idseq-dag/idseq_dag/util/m8.py @@ -517,7 +517,7 @@ def generate_taxon_count_json_from_m8( percent_identity = float(m8_line_columns[2]) alignment_length = float(m8_line_columns[3]) - if count_type == 'merged_NT_NR' or hit_source_count_type == 'NR': + if count_type == 'merged_NT_NR' and hit_source_count_type == 'NR': # NOTE: At the moment of the change, applied ONLY in the scope of the prototype of NT/NR consensus project. # Protein alignments (NR) are done at amino acid level. Each amino acid is composed of 3 nucleotides. # To make alignment length values comparable across NT and NR alignments (for combined statistics),