Skip to content

Commit

Permalink
Merge pull request #209 from szhan/fix_max_masked_sites_per_sample
Browse files Browse the repository at this point in the history
Fix max_masked_sites_per_sample when generating TreeInfo
  • Loading branch information
jeromekelleher authored Jul 30, 2024
2 parents 7c110de + c5df86e commit f7771bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sc2ts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def __init__(self, ts, show_progress=True, pango_source="Nextclade_pango"):
self.nodes_submission_date[node.id] = md["date_submitted"]
pango = md.get(pango_source, "unknown")
self.pango_lineage_samples[pango].append(node.id)
if "sc2ts_qc" in md:
qc = md["sc2ts_qc"]
if "sc2ts" in md:
qc = md["sc2ts"]["qc"]
self.nodes_num_masked_sites[node.id] = qc["num_masked_sites"]
else:
warnings.warn("Node QC metadata not available")
Expand Down

0 comments on commit f7771bb

Please sign in to comment.