popcast: Long-term forecasts for pathogen populations
See the methods of Huddleston et al. 2020 for more details or to cite this tool.
Install
For a full installation with the OpenCV package that's required for model fitting, specify the "full" package dependencies.
python -m pip install 'popcast[full]'
For a smaller installation that only supports forecasting with an existing model, omit the optional package dependency.
python -m pip install popcast
Usage
Download seasonal influenza A/H3N2 data for model fitting.
curl -LO "https://github.com/blab/flu-forecasting/raw/master/results/builds/natural/natural_sample_1_with_90_vpm_sliding/tip_attributes_with_weighted_distances.tsv"
Fit a model using default 6 year training windows and 12-month forecasts.
popcast fit \
--tip-attributes tip_attributes_with_weighted_distances.tsv \
--output lbi_model.json \
--predictors lbi
Development
Install locally
python -m pip install '.[full,test]'
Lint and run tests
Lint code.
flake8 . --count --show-source --statistics
Run tests.
cram --shell=/bin/bash tests/
Publish
Install or upgrade publishing tools.
python -m pip install --upgrade build twine
Build the distribution packages.
python -m build
Upload the distribution packages.
python -m twine upload dist/*
Metadata
Release files for popcast 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| popcast-2.0.0.tar.gz | 21.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| popcast-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / popcast-2.0.0.tar.gz
| Download URL | popcast-2.0.0.tar.gz |
|---|---|
| Size | 21.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbb228e911728c33ba878658423d1f281eb1b8f18be3b515809eab2d7f05badb
|
|
BLAKE2b-256 checksum How to use checksums |
d603dabbd3f49d309e04190fde2c39d90289ef4af4c0759a384e809f23c4f34a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|
Release files / popcast-2.0.0-py3-none-any.whl
| Download URL | popcast-2.0.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4e90f349ab79b53dbd726e1e747b35f0a26ba9161507fc28f7014115f4ce9a5
|
|
BLAKE2b-256 checksum How to use checksums |
74d9cd9e4ea8777ebb3cb6d9b2bb3f47104ba75e10b9f36979b5801a1c19d5d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.19
|