nextstrain / forecasts-ncov

SARS-CoV-2 variant growth rates and frequency forecasts
https://nextstrain.org/sars-cov-2/forecasts/
7 stars 2 forks source link

Visualisation of model results (interactive + static) #8

Closed jameshadfield closed 1 year ago

jameshadfield commented 1 year ago

This PR introduces a standalone react app for visualising the model outputs which are generated by this repo. The visualisations themselves are based on these existing notebooks.

Current status

Visualisations are in-browser static d3 plots, which are responsive to different browser sizes. They only exist for three model outputs, each with a single visualisation style. These can be run locally (instructions in the ./viz/README.md`).

image

A script generates static png images of these plots, which can be rendered in a markdown document similar to the above notebooks. Here is a preview of that markdown:

image

There's plenty of fun stuff we can do with the interactive visualisation (which I'm looking forward to), however the immediate focus should be on automating the deployment of these.

Next steps

joverlee521 commented 1 year ago

Did a test run of the new GH workflow to generate static figures of model results with:

gh workflow run generate-static-model-viz.yaml --field trial_name=config-latest-results --ref viz

The test run uploaded the figures to:

jameshadfield commented 1 year ago

I'm planning on merging this PR today / tomorrow, as part of the following to-do's to get the model viz deployed on nextstrain.org: