Name | phenopacket-store-toolkit JSON |
Version |
0.1.4
JSON |
| download |
home_page | None |
Summary | Collection of GA4GH Phenopackets |
upload_time | 2024-09-01 12:18:58 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | BSD 3-Clause License Copyright (c) 2022, Monarch Initiative Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
global alliance for genomics and health
ga4gh phenopacket schema
human phenotype ontology
ga4gh
hpo
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Phenopacket Store Toolkit
Phenopacket Store Toolkit is a Python package and CLI
for managing [Phenopacket Store](https://github.com/monarch-initiative/phenopacket-store),
a collection of [GA4GH Phenopacket](https://phenopacket-schema.readthedocs.io/en/latest/) cohorts
that represent individuals with Mendelian diseases.
The toolkit aids the release and Q/C processes,
and simplifies access to the Phenopacket Store data from the downstream applications.
## Availability
Phenopacket Store Toolkit can be installed from Python Package Index (PyPi):
```shell
python3 -m pip install phenopacket-store-toolkit
```
## Examples
### Access Phenopacket Store
The toolkit simplifies download and loading the cohort data. The `PhenopacketStoreRegistry` API
caches the release ZIP files locally (in `$HOME/.phenopacket-store` by default)
and simplifies the loading:
```python
from ppktstore.registry import configure_phenopacket_registry
registry = configure_phenopacket_registry()
with registry.open_phenopacket_store(release="0.1.18") as ps:
phenopackets = list(ps.iter_cohort_phenopackets("SUOX"))
assert len(phenopackets) == 35
```
The code checks if the release ZIP of Phenopacket Store version `0.1.18` is already
available locally, and downloads the release ZIP file if necessary.
This is followed by opening the store as `ps`
and loading all phenopackets of the *SUOX* cohort.
We use Python context manager to ensure proper closing of the ZIP file handle.
`ps` *cannot* be used outside of the context manager block.
As an alternative to using a specific Phenopacket Store release,
the *latest* release will be used if `release` argument is omitted.
### Make Phenopacket Store release
The release is handled by the Command Line Interface (CLI) of the toolkit.
The release functionality requires additional dependencies, which are installed automatically
by adding `release` profile:
```shell
python3 -m pip install phenopacket-store-toolkit[release]
```
Now, assuming that `notebooks` points to the notebook folder of the Phenopacket Store repository,
we can Q/C the phenopackets by running:
```shell
python3 -m ppktstore qc --notebook-dir notebooks
```
and we can create the release archive by running:
```shell
python3 -m ppktstore package --notebook-dir notebooks --release-tag 0.1.18 --output all_phenopackets
```
This will find all phenopackets in the `notebooks` folder, copy them into a top-level directory called `0.1.18`,
and ZIP the directory into `all_phenopackets.zip`.
## Learn more
Find more info in our detailed documentation:
- [Stable documentation](https://monarch-initiative.github.io/phenopacket-store-toolkit/stable) (last release on `main` branch)
- [Latest documentation](https://monarch-initiative.github.io/phenopacket-store-toolkit/latest) (bleeding edge, latest commit on `develop` branch)
Raw data
{
"_id": null,
"home_page": null,
"name": "phenopacket-store-toolkit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "Global Alliance for Genomics and Health, GA4GH Phenopacket Schema, Human Phenotype Ontology, GA4GH, HPO",
"author": null,
"author_email": "Daniel Danis <daniel.danis@bih-charite.de>, Peter Robinson <peter.robinson@jax.org>",
"download_url": "https://files.pythonhosted.org/packages/7c/54/8148b17496dc52ce0e3a7adedaa0dd483fb154386f4cf5fc07df60a33aca/phenopacket_store_toolkit-0.1.4.tar.gz",
"platform": null,
"description": "# Phenopacket Store Toolkit\n\n\nPhenopacket Store Toolkit is a Python package and CLI \nfor managing [Phenopacket Store](https://github.com/monarch-initiative/phenopacket-store), \na collection of [GA4GH Phenopacket](https://phenopacket-schema.readthedocs.io/en/latest/) cohorts\nthat represent individuals with Mendelian diseases.\n\nThe toolkit aids the release and Q/C processes, \nand simplifies access to the Phenopacket Store data from the downstream applications.\n\n\n## Availability\n\nPhenopacket Store Toolkit can be installed from Python Package Index (PyPi):\n\n```shell\npython3 -m pip install phenopacket-store-toolkit\n```\n\n## Examples\n\n### Access Phenopacket Store\n\nThe toolkit simplifies download and loading the cohort data. The `PhenopacketStoreRegistry` API\ncaches the release ZIP files locally (in `$HOME/.phenopacket-store` by default) \nand simplifies the loading:\n\n```python\nfrom ppktstore.registry import configure_phenopacket_registry\n\nregistry = configure_phenopacket_registry()\n\nwith registry.open_phenopacket_store(release=\"0.1.18\") as ps:\n phenopackets = list(ps.iter_cohort_phenopackets(\"SUOX\"))\n\nassert len(phenopackets) == 35\n```\n\nThe code checks if the release ZIP of Phenopacket Store version `0.1.18` is already \navailable locally, and downloads the release ZIP file if necessary. \nThis is followed by opening the store as `ps` \nand loading all phenopackets of the *SUOX* cohort.\n\nWe use Python context manager to ensure proper closing of the ZIP file handle.\n`ps` *cannot* be used outside of the context manager block.\n\nAs an alternative to using a specific Phenopacket Store release, \nthe *latest* release will be used if `release` argument is omitted.\n\n### Make Phenopacket Store release\n\nThe release is handled by the Command Line Interface (CLI) of the toolkit.\n\nThe release functionality requires additional dependencies, which are installed automatically\nby adding `release` profile:\n\n```shell\npython3 -m pip install phenopacket-store-toolkit[release]\n```\n\nNow, assuming that `notebooks` points to the notebook folder of the Phenopacket Store repository,\nwe can Q/C the phenopackets by running:\n\n```shell\npython3 -m ppktstore qc --notebook-dir notebooks\n```\n\nand we can create the release archive by running:\n\n```shell\npython3 -m ppktstore package --notebook-dir notebooks --release-tag 0.1.18 --output all_phenopackets\n```\n\nThis will find all phenopackets in the `notebooks` folder, copy them into a top-level directory called `0.1.18`, \nand ZIP the directory into `all_phenopackets.zip`. \n\n## Learn more\n\nFind more info in our detailed documentation:\n\n- [Stable documentation](https://monarch-initiative.github.io/phenopacket-store-toolkit/stable) (last release on `main` branch)\n- [Latest documentation](https://monarch-initiative.github.io/phenopacket-store-toolkit/latest) (bleeding edge, latest commit on `develop` branch)\n",
"bugtrack_url": null,
"license": "BSD 3-Clause License Copyright (c) 2022, Monarch Initiative Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
"summary": "Collection of GA4GH Phenopackets",
"version": "0.1.4",
"project_urls": {
"bugtracker": "https://github.com/monarch-initiative/phenopacket-store-toolkit/issues",
"documentation": "https://github.com/monarch-initiative/phenopacket-store-toolkit",
"homepage": "https://github.com/monarch-initiative/phenopacket-store-toolkit",
"repository": "https://github.com/monarch-initiative/phenopacket-store-toolkit.git"
},
"split_keywords": [
"global alliance for genomics and health",
" ga4gh phenopacket schema",
" human phenotype ontology",
" ga4gh",
" hpo"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f0f6326a502da37fb4a427cd3fb40c6ebc3113c8b78b2032f3b0cd62945d497f",
"md5": "bb64857c3de479aa7270025610598878",
"sha256": "104c60403d0ae8c645a5e1d228d32f12a8980df3c679efc936936ce3b5b7b9ab"
},
"downloads": -1,
"filename": "phenopacket_store_toolkit-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bb64857c3de479aa7270025610598878",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 31227,
"upload_time": "2024-09-01T12:18:56",
"upload_time_iso_8601": "2024-09-01T12:18:56.794307Z",
"url": "https://files.pythonhosted.org/packages/f0/f6/326a502da37fb4a427cd3fb40c6ebc3113c8b78b2032f3b0cd62945d497f/phenopacket_store_toolkit-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7c548148b17496dc52ce0e3a7adedaa0dd483fb154386f4cf5fc07df60a33aca",
"md5": "c5a2f078e227238a97393bd74ada39bb",
"sha256": "0e503e589301d085e91282701be167e4d6979f747ffc8b0d5f17836a4fd05447"
},
"downloads": -1,
"filename": "phenopacket_store_toolkit-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "c5a2f078e227238a97393bd74ada39bb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 24906,
"upload_time": "2024-09-01T12:18:58",
"upload_time_iso_8601": "2024-09-01T12:18:58.481213Z",
"url": "https://files.pythonhosted.org/packages/7c/54/8148b17496dc52ce0e3a7adedaa0dd483fb154386f4cf5fc07df60a33aca/phenopacket_store_toolkit-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-01 12:18:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "monarch-initiative",
"github_project": "phenopacket-store-toolkit",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "phenopacket-store-toolkit"
}