Skip to content

draft - #2

Draft
david-mears-2 wants to merge 46 commits into
mainfrom
example-model-outputs
Draft

draft#2
david-mears-2 wants to merge 46 commits into
mainfrom
example-model-outputs

Conversation

@david-mears-2

Copy link
Copy Markdown
Contributor
  • Initial pre-processing script
  • Add data inputs (examples) and output
  • Update pre-processing script to make use of tidyr and dplyr
  • Use a custom list of in-scope variants, per-STAVE release.
  • Don't filter down STAVE data at all
  • Extract R script from pre-processing draft md; use scripts dir for data inputs
  • Use command line args for R script
  • Potential fix for pull request finding
  • mv .gitkeep
  • Small script refactors
  • Add README.md
  • Use cli package for messages and errors in process_stave.R
  • Add script to generate example model output parquet files
  • Add metadata for model outputs
  • Rename column variant_string to variant to match survey data parquet
  • wip wip wip wip
  • Make versions soft-coded in metadata endpoint
  • Make prevalences parquets include all ancestor region ids, not just region id of most granular level
  • Implement prevalences endpoint
  • Update example model outputs generator to (1) go back to 1970 more often and (2) not run out of memory when running
  • Add instrumentation for timing requests
  • Fix survey data requests scoped by admin0
  • Response optimizations: columnar format and round high-precision floats
  • Rows for survey data, columns for prevalences
  • Fix keys/names of rounded columns
  • Extract grout region metadata fetch into a startup script
  • Extract some consts/types
  • Extract some validators
  • Extract DuckDB connection
  • Extract querying logic
  • Refactor querying logic
  • Move error handler call to correct place
  • Finish implementing query param validators and refactor them
  • Tidy comments; extract todos into youtrack tickets
  • Reword variable names
  • Make node types package match canonical node version
  • Apply tsconfig to scripts ts files too
  • Tests - iteration 0
  • Tests - iteration 1 (refactor fixture generation)
  • Remove fixture validation

david-mears-2 and others added 30 commits August 4, 2026 10:19
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: david-mears-2 <60350599+david-mears-2@users.noreply.github.com>
scripts/create_example_model_outputs.R writes three parquet files at
data/model/2026.05.08/ (one per admin level 0–2) with real GADM region
IDs for sub-Saharan Africa fetched from the grout endpoint, variant
strings selected (by non-committed code) from WHO target markers, ene/mutation
columns derived via variantstring, gapless monthly time series per variant
(biased to later years), summary/exceedance value columns, and data support
columns (no_of_informing_surveys, nearest_survey_by_time) using real survey
IDs from stave_data.rds.
…ten and (2) not run out of memory when running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants