Long-term forecasts for pathogen populations
Project description
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/*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file popcast-2.0.0.tar.gz
.
File metadata
- Download URL: popcast-2.0.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cbb228e911728c33ba878658423d1f281eb1b8f18be3b515809eab2d7f05badb
|
|
MD5 |
604c4b1121f1cc64aa36e1da1b851eb1
|
|
BLAKE2b-256 |
d603dabbd3f49d309e04190fde2c39d90289ef4af4c0759a384e809f23c4f34a
|
File details
Details for the file popcast-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: popcast-2.0.0-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a4e90f349ab79b53dbd726e1e747b35f0a26ba9161507fc28f7014115f4ce9a5
|
|
MD5 |
e5aaf650ec753df758b6c3011c2e8eb1
|
|
BLAKE2b-256 |
74d9cd9e4ea8777ebb3cb6d9b2bb3f47104ba75e10b9f36979b5801a1c19d5d7
|