@@ -323,7 +323,6 @@ def __init__(self, ts, show_progress=True, pango_source="Nextclade_pango"):
323
323
# Can current set pango_source to "Nextclade_pango" or "GISAID_lineage"
324
324
self .ts = ts
325
325
self .pango_source = pango_source
326
- self .epi_isl_map = {}
327
326
self .strain_map = {}
328
327
self .recombinants = get_recombinants (ts )
329
328
self .nodes_max_descendant_samples = max_descendant_samples (ts )
@@ -348,10 +347,6 @@ def __init__(self, ts, show_progress=True, pango_source="Nextclade_pango"):
348
347
md = node .metadata
349
348
self .nodes_metadata [node .id ] = md
350
349
if node .is_sample ():
351
- self .epi_isl_map [md ["gisaid_epi_isl" ]] = node .id
352
- if md ["gisaid_epi_isl" ] is not None :
353
- if "." in md ["gisaid_epi_isl" ]:
354
- self .epi_isl_map [md ["gisaid_epi_isl" ].split ("." )[0 ]] = node .id
355
350
self .strain_map [md ["strain" ]] = node .id
356
351
self .nodes_date [node .id ] = md ["date" ]
357
352
self .nodes_submission_date [node .id ] = md ["date_submitted" ]
@@ -1036,11 +1031,9 @@ def _mutation_summary(self, mut_id):
1036
1031
"metadata" : self .ts .mutation (mut_id ).metadata ,
1037
1032
}
1038
1033
1039
- def node_report (self , node_id = None , strain = None , epi_isl = None ):
1034
+ def node_report (self , node_id = None , strain = None ):
1040
1035
if strain is not None :
1041
1036
node_id = self .strain_map [strain ]
1042
- if epi_isl is not None :
1043
- node_id = self .epi_isl_map [epi_isl ]
1044
1037
# node_summary = pd.DataFrame([self._node_summary(node_id)])
1045
1038
# TODO improve this for internal nodes
1046
1039
node_summary = [self .ts .node (node_id ).metadata ]
@@ -2021,6 +2014,8 @@ def add_gisaid_lineages_to_ts(ts, node_gisaid_lineages, linmuts_dict):
2021
2014
return edited_ts
2022
2015
2023
2016
2017
+ # NOTE: this is broken since moving to Viridian metadata, we no longer have
2018
+ # GISAID EPI ISL in the metadata
2024
2019
def check_lineages (
2025
2020
ts ,
2026
2021
ti ,
0 commit comments