Skip to content

Commit

Permalink
condense: add clarifying comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao-2 committed Oct 29, 2024
1 parent 448fc35 commit 15cdd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singlem/condense.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 15cdd74

Please sign in to comment.