Closed jameshadfield closed 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:
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:
generate-static-model-viz
(created in this PR) is automatically triggered after model results are uploaded to S3generate-static-model-viz
in https://github.com/nextstrain/nextstrain.org/pull/580
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`).
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:
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
/latest.json
(or similar) JSON which the app can fetch by default./latest.json
)