Skip to content

Adds more Nipah tasks & workflow updates#80

Merged
thomrawson merged 29 commits intomainfrom
nipah_workflow_updates
Feb 9, 2026
Merged

Adds more Nipah tasks & workflow updates#80
thomrawson merged 29 commits intomainfrom
nipah_workflow_updates

Conversation

@tristan-myles
Copy link
Copy Markdown
Collaborator

@tristan-myles tristan-myles commented Feb 6, 2026

  • General plot restructuring across task (including notable changes to delays and transmission)
  • Adds more meta analyses to nipah severity.
  • Cleans nipah serology and nipah maps (better dependency is required between the two)
  • Updates nipah bsl synthesis task; includes parameters to generate figures only (using a historic run)
  • Adds code to the shared bsl task to generate a cdf rather than a pdf
  • Applies a future proofing fix to db_compilation in anticipation of moving to orderly.
  • Adds a superscript to CSF sero extractions in the latex sero table
  • Adds alpha option to forest plot and updates the plot formatting in the meta wrapper functions (note, metaprop was updated more substantially than other tasks).
  • Additional cleaning; splits Nikolay (2019) rows into observed and estimated delays and fixes incorrect lower bound for sero uncertainty param.

Note all tasks still use orderly2, and will be updated to orderly in a future PR.

- Seperate sub rate plot is commented out
- Prevents issues in Nipah_bsl_data_synthesis where MASS::select() masks
  dplyr::select()
- Ordering in the plot now matches the legend
- bsl sythensis: adds make posterior summary function which returns cdf
  draws
- nipah bsl task: wraps chunks of the code so that the model doesn't
  need to be rerun, and adds new plots
- Two linetypes are uncertainty and variability
- metaprop has more specific text size updates compared to metamean
- Delays (CovID 2931), splits estimated and observed incubation periods
  and serial intervals
- Serology (CovID 2892), typo in the paper for uncertainty lower bound
- This is a shared orderly resource
- Overhaul of precious main figure
- Note, this task was previously written to account for QA and non-QA plots, and this needs to be
  updated since we now have a single non-QA version which we use.
- Specific updates:
  - Reorders hospitalisation to outcome factor order
  - Updates bsl plot to use the CDF version
  - Groups symptom-onset-to-death with symptom-onset-to-outcome plot
  - Adds discharge/recovery to symptom onset outcomes
  - Facets symptom-onset-to-outcome and hospitalisation-to-outcome
  - Adds serial interval panel
  - Updates final figure formatting, including legend position and panel
    layout
- Also applies legend formatting
- Also updates axis titles and label order in final plot
- Moves CFR meta analysis code from nipah_serology here
- Adds cleaned outbreak data (read in from outbreaks)
- Adds CFR deduplication for extracted parameters
- Updates CFR forest plot to only show deduplicated estimates with QA
  alpha filtering
- Adds percentage symptomatic panel
- Removed unnecessary mapping, CFR, and sero meta analysis code
- Updates task to only create plots (3 individual plots and 1 combined
  patchwork plot which uses 2/3 individual plots)
- Adds point size argument to forest plotting func
- Note, only metaprop is updated
- The bsl tasks loads MASS which is problematic since it masks dplr::select
  which isn't explicitly called throughout the remaining tasks.
  Detaching MASS was problematic since it's used by other packages, so an
  imperfect fix is applied. MASS also masks patchwork::area; the same
  fix was applied for completeness, but the area function is not used in any
  subsequent tasks.
- In anticipation of moving to new orderly version
- Need to decide how to deal with shape files
- Current approach won't work due to an additional folder when the task
  is in draft (compared to running directly from src). Additionally,
  current approach is not good orderly practice, but we don't want the
  file to be copied each time as a shared resource.
- Incorrect artefact path (additional figures still need to be added),
  missing colour param, and incorrect plot var name
- Consistent with the other tasks, but this will be updated to orderly
- This is created in nipah_maps and copied to shared. This should be an
  orderly dependency but since we are not running nipah_maps as a task
  at the moment, using this approach as a temp fix.
@thomrawson
Copy link
Copy Markdown
Collaborator

All seems to work for me!
Push is needed for MERS.

Copy link
Copy Markdown
Collaborator

@thomrawson thomrawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All seems to work for me!
Needed for MERS too.

@thomrawson thomrawson merged commit 1cbdb4e into main Feb 9, 2026
1 of 2 checks passed
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