Skip to content

Commit

Permalink
better debugging error and fix config YAML comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbloom committed Feb 27, 2024
1 parent 0978b34 commit 3098484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SARS2-spike-predictor-phenos.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@
" .query(\"clade != 'other'\")\n",
")\n",
"assert len(pango_growth) == pango_growth[\"clade\"].nunique()\n",
"assert set(pango_growth[\"clade\"]).issubset(pango_clades)\n",
"extra_growth_clades = set(pango_growth[\"clade\"]) - set(pango_clades)\n",
"if extra_growth_clades:\n",
" raise ValueError(f\"some clades have growth data but are not defined {extra_growth_clades}\")\n",
"\n",
"print(f\"Read growth data for {len(pango_growth)} clades\")"
]
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pango_json: https://raw.githubusercontent.com/corneliusroemer/pango-sequences/ma
# Pango clade growth estimates from https://github.com/nextstrain/forecasts-ncov/
# Indicate a specific date or just latest version. Below specifies the latest version.
# To specify a specific date, change the `latest` in the file name to the date, as in:
# https://data.nextstrain.org/files/workflows/forecasts-ncov/gisaid/nextstrain_clades/global/mlr/2024-02-25_results.json
# https://data.nextstrain.org/files/workflows/forecasts-ncov/gisaid/pango_lineages/global/mlr/2024-02-25_results.json
pango_growth_json: https://data.nextstrain.org/files/workflows/forecasts-ncov/gisaid/pango_lineages/global/mlr/latest_results.json

# Indicate whether each clade is descendant of each of these parent clades, according definitions in `pango_json`
Expand Down

0 comments on commit 3098484

Please sign in to comment.