Skip to content

Commit 1bf7ac3

Browse files
committed
update README
1 parent 2d33385 commit 1bf7ac3

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,34 @@
22

33
⚠️ This is a work in progress.
44

5-
_`pyrenew-flu-light` is an instantiation of an [Epidemia](https://imperialcollegelondon.github.io/epidemia/) influenza forecasting model in [PyRenew](https://github.com/CDCgov/PyRenew)._
5+
_`pyrenew-flu-light` is an influenza forecasting model (originally written in `R`, using the package [Epidemia](https://imperialcollegelondon.github.io/epidemia/), with the name `cfaepim`) that has been re-instantiated via [PyRenew](https://github.com/CDCgov/PyRenew)._
66

7-
NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN, as its author is validating it on historical influenza data.
7+
NOTE: Presently, this `pyrenew-flu-light` cannot be installed and used with current NHSN data.
88

9-
Run command typically used:
9+
## Usage
10+
11+
PFL (`pyrenew-flu-light`) can be used in two modes: "active" and "historical". The "active" mode uses respiratory incidence data sourced from available API frameworks whereas the "historical" mode relies on saved dataset snapshots (currently, these snapshots are from the 2023-24 NHSN data, and were generated by `cfaepim` code).
12+
13+
Before running PFL, installing `poetry` and creating a virtual environment will very likely be necessary. This can be first done via `pipx install poetry` (see [Poetry](https://python-poetry.org/docs/) website for more information) and then, to create the environment, `poetry install` followed by `poetry shell` in the PFL folder (only done after cloning: `git clone https://github.com/CDCgov/pyrenew-flu-light`).
14+
15+
After `poetry shell` has been run, then to use the "historical" mode (once within the folder `pyrenew_flu_light`), the `run.py` file creates an _experiment_. Each experiment generates forecasts based on selected jurisdictions and a configuration file. The configuration files for the "historical" mode are derived from the configuration files used in `cfaepim`; the reader will most often never need to worry about configuration files in the "historical" mode. To run:
1016

1117
```
12-
poetry run python tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast
18+
poetry run python run.py --reporting_date 2024-01-20 --regions NY,AL,CA --historical --forecast --exp_name experiment_01
1319
14-
python3 tut_epim_port_msr.py --reporting_date 2024-01-20 --regions NY --historical --forecast
20+
poetry run python run.py --reporting_date 2024-03-30 --regions not:NY,AL,CA --historical --forecast --exp_name experiment_02
1521
```
1622

1723
## ...Contained Within This Repository
1824

1925

20-
- [x] An Apache 2.0 license
21-
- [x] An issue template (taken from PyRenew)
2226
- [ ] A pull request template
23-
- [x] A `pre-commit` schema
24-
- [x] A `.gitignore` file (taken from PyRenew)
25-
- [ ] A website
26-
- [ ] Formal contribution language (hybrid, from `cdcent`)
27+
- [ ] A website.
28+
- [x] An Apache 2.0 license
29+
- [x] An issue template (taken from PyRenew).
30+
- [x] A `pre-commit` schema.
31+
- [x] A `.gitignore` file (taken from PyRenew).
32+
- [x] Formal contribution language (hybrid, from `cdcent`)
2733

2834

2935
## CDCGov & Disclaimers, Notices, And Code Of Conduct

0 commit comments

Comments
 (0)