draft - #2
Draft
david-mears-2 wants to merge 46 commits into
Draft
Conversation
david-mears-2
commented
Aug 27, 2026
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
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.
…egion id of most granular level
…ten and (2) not run out of memory when running
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.