https://github.com/benmaier/vaccontrib
Quantifying the contributions vaccinated individuals make to the reproduction number
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
✓Academic publication links
Links to: medrxiv.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.0%) to scientific vocabulary
Repository
Quantifying the contributions vaccinated individuals make to the reproduction number
Basic Info
- Host: GitHub
- Owner: benmaier
- License: mit
- Language: Python
- Default Branch: main
- Size: 14.2 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
vaccontrib
Code to quantify the contributions unvaccinated and vaccinated subpopulations make towards the effectie reproduction number and new infections.
- repository: https://github.com/benmaier/vaccontrib/
- documentation: http://vaccontrib.readthedocs.io/
```python
from vaccontrib.covid import getreducedvaccinatedsusceptiblecontributionmatrixcovid R0 = 6 C = getreducedvaccinatedsusceptiblecontributionmatrixcovid(R0,variant='delta') C/C.sum() array([[0.38159051, 0.17360365], [0.28493897, 0.15986686]]) ```
Also, check out the tutorial notebook and an explanatory notebook including stochastic simulations.
Install
git clone git@github.com:benmaier/vaccontrib.git
pip install ./vaccontrib
vaccontrib was developed and tested for
- Python 3.6
- Python 3.7
- Python 3.8
So far, the package's functionality was tested on Mac OS X and CentOS only.
Dependencies
vaccontrib directly depends on the following packages which will be installed by pip during the installation process
numpy>=1.17matplotlib>=3.3bfmplot>=0.0.11
Manuscript
Analysis and Results
Results found using this software package were reported in a preprint. To replicate the results, use the scripts in the paper_analysis directory. E.g. to get a comprehensive overview of results for a parameterset, run
python compute.py DIRNAME1 DIRNAME2
e.g.
python compute.py 00_lower 01_upper
See the help text:
usage: compute.py [-h] [-u RU] [-v RV] [-f] [-R R0] dirs [dirs ...]
Compute contribution matrices.
positional arguments:
dirs directories for which contributions matrices should be computed
optional arguments:
-h, --help show this help message and exit
-u RU, --Ru RU Base R-value of unvaccinated
-v RV, --Rv RV Base R-value of vaccinated
-f, --save-figures create, show, and save illustrations
-R R0, --R0 R0 Base R0 to which the contribution will be scaled
Make sure you have numpyarraytolatex installed.
Data in Figures
To comply with journal policies, all data shown in figures can be found in the file FigureData.xlsx.
Changelog
Changes are logged in a separate file.
License
This project is licensed under the MIT License. Note that this excludes any images/pictures/figures shown here or in the documentation.
Contributing
If you want to contribute to this project, please make sure to read the code of conduct and the contributing guidelines. In case you're wondering about what to contribute, we're always collecting ideas of what we want to implement next in the outlook notes.
Dev notes
Fork this repository, clone it, and install it in dev mode.
bash
git clone git@github.com:YOURUSERNAME/vaccontrib.git
make
If you want to upload to PyPI, first convert the new README.md to README.rst
bash
make readme
It will give you warnings about bad .rst-syntax. Fix those errors in README.rst. Then wrap the whole thing
bash
make pypi
It will probably give you more warnings about .rst-syntax. Fix those until the warnings disappear. Then do
bash
make upload
Owner
- Name: Benjamin F. Maier
- Login: benmaier
- Kind: user
- Location: Copenhagen
- Company: Technical University of Denmark
- Website: benmaier.org
- Twitter: benfmaier
- Repositories: 101
- Profile: https://github.com/benmaier
Postdoc @suneman 's, generative art, electronic music. DTU Compute & SODAS.
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Ben F. Maier | b****r@g****m | 37 |
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 4 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 1
- Total maintainers: 1
pypi.org: vaccontrib
Quantifying the contributions vaccinated individuals make towards the effective reproduction number.
- Homepage: https://github.com/benmaier/vaccontrib
- Documentation: http://vaccontrib.readthedocs.io
- License: MIT
-
Latest release: 0.0.1
published over 4 years ago
Rankings
Maintainers (1)
Dependencies
- pip >=21.0
- bfmplot >=0.0.11
- matplotlib >=3.3
- numpy >=1.17
- bfmplot >=0.0.11
- matplotlib >=3.3
- numpy >=1.17