Skip to main content

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


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.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phenosentry-0.1.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file phenosentry-0.1.2.tar.gz.

File metadata

  • Download URL: phenosentry-0.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/24.5.0

File hashes

Hashes for phenosentry-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e0da01081cf258aeb8cd6df7bae6dd8db6a2a04d0d388591b003a0bf00279d3d
MD5 6d01137a537b09bfe4a32dc9b6824986
BLAKE2b-256 9cf294c219ee26633ed94b12405a8142ae338f8ab86c6525efcfa38126262a34

See more details on using hashes here.

File details

Details for the file phenosentry-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: phenosentry-0.1.2-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

Hashes for phenosentry-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8552568a9faaf8ee0d104cd6ac16faaac2f06008224f429af713049b8278edca
MD5 9b786d5233572ef2e18198fb033c5b7e
BLAKE2b-256 813cde22881858478d54a646f81ce9066e5bd91127ae4d10effbd6d1f07eea91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page