Case count tree#73
Open
jameshadfield wants to merge 3 commits into
Open
Conversation
Add phylogenetic/workflows/bdbv-2026-epi/collect-cases.py, which consults a local clone of the INRB-UMIE/Ebola_DRC_2026 data repo and emits a single tidy TSV of case counts per MoH health zone over time. It reads the four per-zone metric files under data/insp_sitrep/processed/ (new_/cumulative_ x confirmed_/suspected_cases) and merges them on (nom, date) into columns: nom, date, new_confirmed_cases, new_suspected_cases, cumulative_confirmed_cases, cumulative_suspected_cases. The "nom" field is the canonical health-zone name that joins to the shapefile; dates are the raw sitrep calendar dates. National-total rows are excluded. We add a cumulative_confirmed_cases_clamped column to guard against presumptive data errors where a subsequent timepoint's case count decreases. Health zones are corrected via the INRB-UMIE/Ebola_DRC_2026's aliases CSV Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add phylogenetic/workflows/bdbv-2026-epi/make-tree.py, which assembles a custom Auspice v2 dataset JSON for the 2026 Bundibugyo ebolavirus outbreak directly from the collected epi TSVs. Most dataset metadata is hardcoded. Because we have no transmission information each case is a child of a root polytomy, with a branch length which defaults to 7 days - this allows us to visualise cases over time on the tree & map. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See added README
Dataset at https://next.nextstrain.org/staging/ebola/bdbv/drc-uganda-2026-cases