forked from nextstrain/ncov
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run via command line script run-mlr-model.py rather than Jupyter notebook
- Loading branch information
Showing
8 changed files
with
727 additions
and
38,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
# MLR fitness estimates using evofr | ||
|
||
1. Clone [evofr](https://github.com/blab/evofr) repo elsewhere in the file system and install via | ||
1. Install latest version of [evofr](https://github.com/blab/evofr) via pip: | ||
``` | ||
poetry build | ||
pip install <path-to-wheel> | ||
pip install evofr | ||
``` | ||
|
||
2. Run the notebook `evofr_mlr.ipynb` via `jupyter notebook`. This will export a file called `growth_advantages.tsv` that contains the median growth advantage and 80% credible interval per Pango lineage. | ||
2. Run script `run-mlr-model.py` via: | ||
``` | ||
python -u run-mlr-model.py --config mlr-config.yaml --export-path . --data-name "pango" | ||
``` | ||
|
||
This produces the file `pango_results.json`. | ||
|
||
3. This file includes unnecessary information of full frequencies trajectories. The script `prune-mlr-results.py` walks through this JSON and extracts just the useful `site` of `ga`: | ||
``` | ||
python prune-mlr-results.py --results pango_results.json > growth_advantages.tsv | ||
``` | ||
|
||
And exports the TSV file called `growth_advantages.tsv` that contains the median growth advantage and 80% credible interval per Pango lineage. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.