Name | pyicare JSON |
Version |
1.0.0
JSON |
| download |
home_page | |
Summary | A Python distribution of iCARE, a tool for individualized Coherent Absolute Risk Estimation. |
upload_time | 2023-05-25 16:02:31 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
gwas
webassembly
survival-analysis
cox-proportional-hazard
genome-wide-association-studies
absolute-risk
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Py-iCARE
**Py-iCARE** is a Python distribution of iCARE, a tool for **i**ndividualized **C**oherent **A**bsolute **R**isk **E**stimation. iCARE allows users to build, validate, and apply absolute risk models. [Absolute risk](https://www.cancer.gov/publications/dictionaries/cancer-terms/def/absolute-risk) quantifies the chance of an event occurring. For example, the likelihood that a healthy individual, of a given age and a risk factor profile, will develop the disease of interest over a specified time interval.
The original iCARE was written in R and its archived version (1.26.0) is available via Bioconductor at: https://www.bioconductor.org/packages/release/bioc/html/iCARE.html.
## Motivation
The main motivation of porting iCARE from R to Python was to enable its use as a [WebAssembly](https://webassembly.org/) module (via [Pyodide](https://pyodide.org/en/latest/index.html)) for the proliferation of portable and privacy-preserving web applications that can build, validate, and apply absolute risk models. Python also enables researchers to leverage its rapidly evolving data science ecosystem— including [TensorFlow](https://www.tensorflow.org/), [PyTorch](https://pytorch.org/), [statsmodels](https://www.statsmodels.org/stable/index.html), and [scikit-learn](https://scikit-learn.org/stable/)— to explore novel absolute risk models that can incorporate evidence from wider sources of data.
## Installation
This repository contains a Python package. It can be installed via PyPI as shown below. It is also compiled into WebAssembly via Pyodide. The wrapper JavaScript library, as ES6 modules, is also distributed in this repository at GitHub Pages. It can be accessed by any JavaScript runtime environment, including Node.js, web browsers, and Quarto notebooks in RStudio (to interface with R, Julia, and/or Python). Specifically, the steps to access it via JavaScript and R are also shown below.
### Python
If you want to access iCARE from a purely Python runtime environment, you can install it via PyPI:
```bash
pip install pyicare
```
iCARE is supported on Python 3.7 and above.
### JavaScript
ES6 import JS SDK via GitHub Pages.
### R
ES6 import JS SDK via Quarto.
## Usage
Once installed, Py-iCARE can be imported into your Python scripts as follows:
```python
import icare
```
Py-iCARE is a library with three main functions: 1) `compute_absolute_risk()`, a method to build and apply absolute risk models; 2) `compute_absolute_risk_split_interval()`, a method to build and apply absolute risk models that relaxes the proportional hazard assumption to some extent by allowing you to specify different model parameters before and after a cut-point in time; and 3) `validate_absolute_risk_model()`, a method to validate absolute risk models on an independent cohort study data or a case-control study nested within a cohort.
Example usages of these functions are shown in Jupyter notebooks at the [examples/Python](https://github.com/jeyabbalas/py-icare/tree/master/examples/Python) directory.
### R
Quarto
### JavaScript
ES6 import into script
## License
Py-iCARE is open-source licensed under the MIT License.
## References
1. [Pal Choudhury, Parichoy, Paige Maas, Amber Wilcox, William Wheeler, Mark Brook, David Check, Montserrat Garcia-Closas, and Nilanjan Chatterjee. "iCARE: an R package to build, validate and apply absolute risk models." PloS one 15, no. 2 (2020): e0228198.](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7001949/)
Raw data
{
"_id": null,
"home_page": "",
"name": "pyicare",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "gwas,webassembly,survival-analysis,cox-proportional-hazard,genome-wide-association-studies,absolute-risk",
"author": "",
"author_email": "Jeya Balaji Balasubramanian <jeyabbalas@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/66/c7/fc25e67a5d62c47581def7d26828536e384798244a2937108c1d544bfefa/pyicare-1.0.0.tar.gz",
"platform": null,
"description": "# Py-iCARE\n\n**Py-iCARE** is a Python distribution of iCARE, a tool for **i**ndividualized **C**oherent **A**bsolute **R**isk **E**stimation. iCARE allows users to build, validate, and apply absolute risk models. [Absolute risk](https://www.cancer.gov/publications/dictionaries/cancer-terms/def/absolute-risk) quantifies the chance of an event occurring. For example, the likelihood that a healthy individual, of a given age and a risk factor profile, will develop the disease of interest over a specified time interval.\n\nThe original iCARE was written in R and its archived version (1.26.0) is available via Bioconductor at: https://www.bioconductor.org/packages/release/bioc/html/iCARE.html.\n\n## Motivation\nThe main motivation of porting iCARE from R to Python was to enable its use as a [WebAssembly](https://webassembly.org/) module (via [Pyodide](https://pyodide.org/en/latest/index.html)) for the proliferation of portable and privacy-preserving web applications that can build, validate, and apply absolute risk models. Python also enables researchers to leverage its rapidly evolving data science ecosystem\u2014 including [TensorFlow](https://www.tensorflow.org/), [PyTorch](https://pytorch.org/), [statsmodels](https://www.statsmodels.org/stable/index.html), and [scikit-learn](https://scikit-learn.org/stable/)\u2014 to explore novel absolute risk models that can incorporate evidence from wider sources of data.\n\n## Installation\n\nThis repository contains a Python package. It can be installed via PyPI as shown below. It is also compiled into WebAssembly via Pyodide. The wrapper JavaScript library, as ES6 modules, is also distributed in this repository at GitHub Pages. It can be accessed by any JavaScript runtime environment, including Node.js, web browsers, and Quarto notebooks in RStudio (to interface with R, Julia, and/or Python). Specifically, the steps to access it via JavaScript and R are also shown below.\n\n### Python\n\nIf you want to access iCARE from a purely Python runtime environment, you can install it via PyPI:\n\n```bash\npip install pyicare\n```\n\niCARE is supported on Python 3.7 and above.\n\n### JavaScript\nES6 import JS SDK via GitHub Pages.\n\n### R\nES6 import JS SDK via Quarto.\n\n## Usage\n\nOnce installed, Py-iCARE can be imported into your Python scripts as follows:\n\n```python\nimport icare\n```\n\nPy-iCARE is a library with three main functions: 1) `compute_absolute_risk()`, a method to build and apply absolute risk models; 2) `compute_absolute_risk_split_interval()`, a method to build and apply absolute risk models that relaxes the proportional hazard assumption to some extent by allowing you to specify different model parameters before and after a cut-point in time; and 3) `validate_absolute_risk_model()`, a method to validate absolute risk models on an independent cohort study data or a case-control study nested within a cohort.\n\nExample usages of these functions are shown in Jupyter notebooks at the [examples/Python](https://github.com/jeyabbalas/py-icare/tree/master/examples/Python) directory.\n\n### R\nQuarto\n\n### JavaScript\nES6 import into script\n\n## License\nPy-iCARE is open-source licensed under the MIT License.\n\n## References\n1. [Pal Choudhury, Parichoy, Paige Maas, Amber Wilcox, William Wheeler, Mark Brook, David Check, Montserrat Garcia-Closas, and Nilanjan Chatterjee. \"iCARE: an R package to build, validate and apply absolute risk models.\" PloS one 15, no. 2 (2020): e0228198.](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7001949/)\n",
"bugtrack_url": null,
"license": "MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "A Python distribution of iCARE, a tool for individualized Coherent Absolute Risk Estimation.",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/jeyabbalas/py-icare"
},
"split_keywords": [
"gwas",
"webassembly",
"survival-analysis",
"cox-proportional-hazard",
"genome-wide-association-studies",
"absolute-risk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5cd306e7c5120e2fb3b68faf285f042a68d7938cc5463aee7bc47215b8f36003",
"md5": "e80905b20ed5a0caf1684b6f1caedb66",
"sha256": "962a0141a1e0c0479ef0b7e52bedfbad6d02d0bfa19b638d63f4f2c246ef3f1a"
},
"downloads": -1,
"filename": "pyicare-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e80905b20ed5a0caf1684b6f1caedb66",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 36857,
"upload_time": "2023-05-25T16:02:28",
"upload_time_iso_8601": "2023-05-25T16:02:28.673344Z",
"url": "https://files.pythonhosted.org/packages/5c/d3/06e7c5120e2fb3b68faf285f042a68d7938cc5463aee7bc47215b8f36003/pyicare-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "66c7fc25e67a5d62c47581def7d26828536e384798244a2937108c1d544bfefa",
"md5": "030fded7d2e8161bfff392fb7d57a852",
"sha256": "e87ed7fecfecb58ebed0f518e6f3722058cc2fa10c3e280e70e1a12968f9824d"
},
"downloads": -1,
"filename": "pyicare-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "030fded7d2e8161bfff392fb7d57a852",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 35495,
"upload_time": "2023-05-25T16:02:31",
"upload_time_iso_8601": "2023-05-25T16:02:31.520257Z",
"url": "https://files.pythonhosted.org/packages/66/c7/fc25e67a5d62c47581def7d26828536e384798244a2937108c1d544bfefa/pyicare-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-25 16:02:31",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jeyabbalas",
"github_project": "py-icare",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "pyicare"
}