Phenopacket Store Toolkit
Phenopacket Store Toolkit is a Python package and CLI for managing Phenopacket Store, a collection of GA4GH Phenopacket 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):
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:
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:
python3 -m pip install phenopacket-store-toolkit[release]
Now, we can Q/C the phenopackets in the notebooks directory.
The Q/C uses HPO hierarchy, hence HPO must be provided
either as path to a hp.json file via --hpo option
or as a release tag via --hpo-release:
python3 -m ppktstore qc --hpo-release v2024-04-26 --notebook-dir notebooks
and we can create the release archive by running:
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 (last release on
mainbranch) - Latest documentation (bleeding edge, latest commit on
developbranch)
Metadata
Release files for phenopacket-store-toolkit 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phenopacket_store_toolkit-0.1.6.tar.gz | 26.3 kB | Without provenance | Details for phenopacket_store_toolkit-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phenopacket_store_toolkit-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for phenopacket_store_toolkit-0.1.6-py3-none-any.whl |
Total release size: 58.4 kB
Release files / phenopacket_store_toolkit-0.1.6.tar.gz
| Download URL | phenopacket_store_toolkit-0.1.6.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c3ecdabb43de6e22318fefeef2816ddec079c1547bc0b7572c0fd038976167b
|
|
BLAKE2b-256 checksum How to use checksums |
4ea40bb8e3c143d9f4dfea405fc0d1b94b65a2bb9bc00653c0f0191dd123ca0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / phenopacket_store_toolkit-0.1.6-py3-none-any.whl
| Download URL | phenopacket_store_toolkit-0.1.6-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccdf36b219c28f2c2d92f79f9ed9f5eb85369c59c624ca6ed92ac1d175ca0adc
|
|
BLAKE2b-256 checksum How to use checksums |
da79e7a1de6cfd559ce6ac1598e921843b315c28df7a53108a248e6550c82aff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for phenopacket-store-toolkit 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.