No project description provided
Project description
phenosentry
A Python package for ensuring data quality in phenopackets and collections of phenopackets.
Features
- Load phenopacket stores from the phenopacket-store or ZIP archives
- Load any phenopacket or phenopackets from a folder into a phenopacket store
- Validate phenopacket stores with quality checks
Installation
Install with Poetry:
poetry add phenosentry
or with pip:
pip install phenosentry
Usage
from phenosentry.model import DefaultPhenopacketStore
from phenosentry.validation import default_auditor
# Load a phenopacket store from a folder
store = DefaultPhenopacketStore.from_folder("path/to/phenopackets")
# Get the default auditor
auditor = default_auditor()
# Prepare a notepad for auditing
notepad = auditor.prepare_notepad("my-store")
# Audit the phenopacket store
auditor.audit(item=store, notepad=notepad)
if notepad.has_errors_or_warnings():
print("Issues found in phenopacket store!")
else:
print("Phenopacket store passed all checks.")
Development
Run tests with:
pytest
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phenosentry-0.1.1.tar.gz
(9.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phenosentry-0.1.1.tar.gz.
File metadata
- Download URL: phenosentry-0.1.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eab700b16eaef36b015de6451eaf522fcd9e7d5991aa24b01a2b9bbd69ab5a4
|
|
| MD5 |
04c996e4890ffaaadab04842f480a353
|
|
| BLAKE2b-256 |
1cd99c53e75c61c22ddbb4fe4d8ea9267f24131a08e14c63ba6d9941145c4863
|
File details
Details for the file phenosentry-0.1.1-py3-none-any.whl.
File metadata
- Download URL: phenosentry-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfcce0e802aca4cd34f4e043ce73796a2fed247f7b305f8c068a96a25bf6b00
|
|
| MD5 |
bb428e431abbe3b5cfdf027ede839646
|
|
| BLAKE2b-256 |
a1ca4587cb8d21cd061c53a01bc3357a11f387756187f8a015b6af5e1a691de4
|