Human papillomavirus simulator (HPVsim)
=======================================
.. image:: https://badgen.net/pypi/v/hpvsim/?color=blue
:target: https://pypi.org/project/hpvsim
.. image:: https://github.com/institutefordiseasemodeling/hpvsim/actions/workflows/tests.yaml/badge.svg
:target: https://github.com/institutefordiseasemodeling/hpvsim/actions/workflows/tests.yaml
:alt: pipeline status
About HPVsim
------------
HPVsim is a flexible agent-based model for simulation HPV transmission and progression through cervical disease to cancer. The model can be parameterized with country-specific vital dynamics, structured sexual networks, co-transmitting HPV genotypes, B- and T-cell mediated immunity, and high-resolution disease natural history. HPVsim is designed with a user-first lens: it is implemented in pure Python, has built-in tools for simulating commonly-used interventions, has been extensively tested and documented, and runs in a matter of seconds to minutes on a laptop.
In mid-2025, version 3.0 of HPVsim will be released, built on the Starsim `Starsim <https://starsim.org/>`_ modeling architecture. Since this represents a significant shift, version 3.0 and above will live in a `separate repository <https://github.com/starsimhub/hpvsim>`_. The code in this repository will be frozen after version 2.2, aside from any critical bugfixes.
The scientific paper describing HPVsim is available at https://doi.org/10.1371/journal.pcbi.1012181. The recommended citation is:
**HPVsim: An agent-based model of HPV transmission and cervical disease** (2024). Stuart RM, Cohen JA, Kerr CC, Mathur P , NDMC India, Zimmermann M, Rao DW, Boudreau MC, Lee S, Yang L, Klein DJ. *PLOS Computational Biology* 20(7): e1012181. https://doi.org/10.1371/journal.pcbi.1012181
Background
----------
HPVsim has been used for analyses in several countries. Academic papers that have been written using HPVsim include:
1. **Inferring the natural history of HPV from global cancer registries: insights from a multi-country calibration** (2024). Stuart RM, Cohen JA, Abeysuriya RG, Sanz-Leon P, Kerr CC, Rao DW, Klein DJ. *Sci Rep* 14, 15875. https://doi.org/10.1038/s41598-024-65842-3
2. **HPV DNA Screening and Vaccination Strategies in Tunisia** (2025). Lahdhiri A, Benzina B, Ennaifer E, Tounsi H, Gzara A, Rammeh-Rommani S, Laraj O, Arfaoui H, Stuart RM Kebir, A, BenMiled S (2025). *Sci Rep*, forthcoming.
3. **Can pruning improve agent-based models’ calibration? An application to HPVsim** (2025). Sturman F, Swallow B, Kerr CC, Stuart RM, Panovska-Griffiths J. *Journal of Theoretical Biology*, forthcoming.
Installation
------------
The easiest way to install is simply via pip: ``pip install hpvsim``. Alternatively, you can clone this repository, then run ``pip install -e .`` (don't forget the dot!) in this folder to install ``hpvsim`` and its dependencies. This will make ``hpvsim`` available on the Python path. The first time HPVsim is imported, it will automatically download the required data files (~30 MB).
Usage and documentation
-----------------------
Documentation is available at https://docs.hpvsim.org. Additional usage examples are available in the ``tests`` folder.
Contributing
------------
If you wish to contribute, please follow the Starsim style guide at: https://github.com/amath-idm/styleguide. See the code of conduct readme for more information.
Disclaimer
----------
The code in this repository was developed by IDM, the Burnet Institute, and other collaborators to support our joint research on HPV. We've made it publicly available under the MIT License to provide others with a better understanding of our research and an opportunity to build upon it for their own work. Note that HPVsim depends on a number of user-installed Python packages that can be installed automatically via ``pip install``. We make no representations that the code works as intended or that we will provide support, address issues that are found, or accept pull requests. You are welcome to create your own fork and modify the code to suit your own modeling needs as contemplated under the MIT License.
Raw data
{
"_id": null,
"home_page": null,
"name": "hpvsim",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "HPVsim Team <info@hpvsim.org>",
"keywords": "HPV, human papillomavirus, cervical cancer, agent-based model, disease modeling, simulation",
"author": "Robyn Stuart, Jamie Cohen, Cliff Kerr, Romesh Abeysuriya, Mariah Boudreau, Daniel Klein, Hao Hu",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/19/6a/ed7af3b3850c03939266058623db64894643c6a93e5c438e4255203247ad/hpvsim-2.2.4.tar.gz",
"platform": null,
"description": "Human papillomavirus simulator (HPVsim)\n=======================================\n\n.. image:: https://badgen.net/pypi/v/hpvsim/?color=blue\n :target: https://pypi.org/project/hpvsim\n\n.. image:: https://github.com/institutefordiseasemodeling/hpvsim/actions/workflows/tests.yaml/badge.svg\n :target: https://github.com/institutefordiseasemodeling/hpvsim/actions/workflows/tests.yaml\n :alt: pipeline status\n\n\nAbout HPVsim\n------------\nHPVsim is a flexible agent-based model for simulation HPV transmission and progression through cervical disease to cancer. The model can be parameterized with country-specific vital dynamics, structured sexual networks, co-transmitting HPV genotypes, B- and T-cell mediated immunity, and high-resolution disease natural history. HPVsim is designed with a user-first lens: it is implemented in pure Python, has built-in tools for simulating commonly-used interventions, has been extensively tested and documented, and runs in a matter of seconds to minutes on a laptop.\n\nIn mid-2025, version 3.0 of HPVsim will be released, built on the Starsim `Starsim <https://starsim.org/>`_ modeling architecture. Since this represents a significant shift, version 3.0 and above will live in a `separate repository <https://github.com/starsimhub/hpvsim>`_. The code in this repository will be frozen after version 2.2, aside from any critical bugfixes.\n\nThe scientific paper describing HPVsim is available at https://doi.org/10.1371/journal.pcbi.1012181. The recommended citation is:\n\n **HPVsim: An agent-based model of HPV transmission and cervical disease** (2024). Stuart RM, Cohen JA, Kerr CC, Mathur P , NDMC India, Zimmermann M, Rao DW, Boudreau MC, Lee S, Yang L, Klein DJ. *PLOS Computational Biology* 20(7): e1012181. https://doi.org/10.1371/journal.pcbi.1012181\n\n\nBackground\n----------\n\nHPVsim has been used for analyses in several countries. Academic papers that have been written using HPVsim include:\n\n1. **Inferring the natural history of HPV from global cancer registries: insights from a multi-country calibration** (2024). Stuart RM, Cohen JA, Abeysuriya RG, Sanz-Leon P, Kerr CC, Rao DW, Klein DJ. *Sci Rep* 14, 15875. https://doi.org/10.1038/s41598-024-65842-3\n\n2. **HPV DNA Screening and Vaccination Strategies in Tunisia** (2025). Lahdhiri A, Benzina B, Ennaifer E, Tounsi H, Gzara A, Rammeh-Rommani S, Laraj O, Arfaoui H, Stuart RM Kebir, A, BenMiled S (2025). *Sci Rep*, forthcoming. \n\n3. **Can pruning improve agent-based models\u2019 calibration? An application to HPVsim** (2025). Sturman F, Swallow B, Kerr CC, Stuart RM, Panovska-Griffiths J. *Journal of Theoretical Biology*, forthcoming.\n\n\nInstallation\n------------\n\nThe easiest way to install is simply via pip: ``pip install hpvsim``. Alternatively, you can clone this repository, then run ``pip install -e .`` (don't forget the dot!) in this folder to install ``hpvsim`` and its dependencies. This will make ``hpvsim`` available on the Python path. The first time HPVsim is imported, it will automatically download the required data files (~30 MB).\n\n\nUsage and documentation\n-----------------------\n\nDocumentation is available at https://docs.hpvsim.org. Additional usage examples are available in the ``tests`` folder.\n\n\nContributing\n------------\n\nIf you wish to contribute, please follow the Starsim style guide at: https://github.com/amath-idm/styleguide. See the code of conduct readme for more information.\n\n\nDisclaimer\n----------\n\nThe code in this repository was developed by IDM, the Burnet Institute, and other collaborators to support our joint research on HPV. We've made it publicly available under the MIT License to provide others with a better understanding of our research and an opportunity to build upon it for their own work. Note that HPVsim depends on a number of user-installed Python packages that can be installed automatically via ``pip install``. We make no representations that the code works as intended or that we will provide support, address issues that are found, or accept pull requests. You are welcome to create your own fork and modify the code to suit your own modeling needs as contemplated under the MIT License. \n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "HPVsim: Human Papillomavirus Simulator",
"version": "2.2.4",
"project_urls": {
"Source": "https://github.com/institutefordiseasemodeling/hpvsim/",
"Website": "https://hpvsim.org"
},
"split_keywords": [
"hpv",
" human papillomavirus",
" cervical cancer",
" agent-based model",
" disease modeling",
" simulation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "a60eed9eb22b0ab5877c08f276f969e84a95d0c9b6fc2c06b637059b0fdda1a3",
"md5": "719547d479ccbd061db8531a061e43a6",
"sha256": "949cabd458076290a8796cc6c325fb7a659c0fb254bd79807bc725471a959620"
},
"downloads": -1,
"filename": "hpvsim-2.2.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "719547d479ccbd061db8531a061e43a6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 198052,
"upload_time": "2025-08-20T04:07:58",
"upload_time_iso_8601": "2025-08-20T04:07:58.130503Z",
"url": "https://files.pythonhosted.org/packages/a6/0e/ed9eb22b0ab5877c08f276f969e84a95d0c9b6fc2c06b637059b0fdda1a3/hpvsim-2.2.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "196aed7af3b3850c03939266058623db64894643c6a93e5c438e4255203247ad",
"md5": "8e8ad4d1459e3d7eff3c764617e5e27f",
"sha256": "318578d76f1090c67e9cbac61f7a4d39cfa349444c59d6658d2f2c5b082d855d"
},
"downloads": -1,
"filename": "hpvsim-2.2.4.tar.gz",
"has_sig": false,
"md5_digest": "8e8ad4d1459e3d7eff3c764617e5e27f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 773010,
"upload_time": "2025-08-20T04:07:59",
"upload_time_iso_8601": "2025-08-20T04:07:59.876139Z",
"url": "https://files.pythonhosted.org/packages/19/6a/ed7af3b3850c03939266058623db64894643c6a93e5c438e4255203247ad/hpvsim-2.2.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-20 04:07:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "institutefordiseasemodeling",
"github_project": "hpvsim",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "hpvsim"
}