Skip to content

Commit

Permalink
Merge pull request #216 from jeromekelleher/fix-info-bug
Browse files Browse the repository at this point in the history
Use pango_source for recombinant info
  • Loading branch information
jeromekelleher authored Aug 1, 2024
2 parents c24cd33 + b9f1706 commit ddf9899
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sc2ts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def __init__(self, ts, show_progress=True, pango_source="Viridian_pangolin"):
# # Corresponding sample-set names for this array
# self.pango_lineage_keys = np.array(list(self.pango_lineage_samples.keys()))


def _compute_mutation_stats(self):
ts = self.ts

Expand Down Expand Up @@ -715,7 +716,7 @@ def recombinants_summary(self):
for u in df.node:
md = self.nodes_metadata[sample_map[u]]
causal_strain.append(md["strain"])
causal_pango.append(md["Nextclade_pango"])
causal_pango.append(md[self.pango_source])
causal_date.append(md["date"])
df["causal_strain"] = causal_strain
df["causal_pango"] = causal_pango
Expand Down Expand Up @@ -2013,7 +2014,7 @@ def add_gisaid_lineages_to_ts(ts, node_gisaid_lineages, linmuts_dict):
return edited_ts


# NOTE: this is broken since moving to Viridian metadata, we no longer have
# NOTE: this is broken since moving to Viridian metadata, we no longer have
# GISAID EPI ISL in the metadata
def check_lineages(
ts,
Expand Down

0 comments on commit ddf9899

Please sign in to comment.