From 15cdd740dde8bb510f1cf4de64efbd58922ba504 Mon Sep 17 00:00:00 2001 From: rzhao-2 Date: Tue, 29 Oct 2024 17:04:55 +1000 Subject: [PATCH] condense: add clarifying comment --- singlem/condense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singlem/condense.py b/singlem/condense.py index c6e9f849..425311a8 100644 --- a/singlem/condense.py +++ b/singlem/condense.py @@ -317,7 +317,7 @@ def _condense_domain_to_species(self, sample, sample_otus, markers, target_domai # Calculate stat for this set of markers if avg_num_genes_per_species is not None: # Running in viral mode m_coverages = [m.get_full_coverage() for m in node_list] - if taxon_marker_counts is not None and len(taxonomy) == 8: + if taxon_marker_counts is not None and len(taxonomy) == 8: # 8 ranks including Root for species-level taxonomy total_num_markers = taxon_marker_counts[';'.join(node_list[0].get_taxonomy())] else: total_num_markers = max(avg_num_genes_per_species, len(m_coverages))