You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to create a Pango tree for all lineages leads to runtime errors.
Namely, this code
import cladecombiner as cc
import polars as pl
url = "https://github.com/cov-lineages/pango-designation/raw/master/lineages.csv"
lineages = pl.read_csv(url)["lineage"].unique().to_list()
pn = cc.PangoSc2Nomenclature()
pn.setup_alias_map()
taxa = [cc.Taxon(l, is_tip=True) for l in lineages if pn.is_valid_name(l)]
tree = pn.taxonomy_tree(taxa)
produces this error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/rzg0/git-repos/cladecombiner/cladecombiner/nomenclature.py", line 401, in taxonomy_tree
return super().taxonomy_tree(
File "/home/rzg0/git-repos/cladecombiner/cladecombiner/nomenclature.py", line 279, in taxonomy_tree
raise RuntimeError(
RuntimeError: Malformed tree has multiples of tip taxa: C.1 (x2), C.3 (x2), C.2 (x2)
The text was updated successfully, but these errors were encountered:
Attempting to create a Pango tree for all lineages leads to runtime errors.
Namely, this code
produces this error
The text was updated successfully, but these errors were encountered: