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.0.tar.gz (9.0 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.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for phenosentry-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c310de689f25ee3781680a3deb66ebdfa7e786a1201dbc376be4b9b2d551208f
MD5 efe886bb2b0f434b2bef8460084bf4e2
BLAKE2b-256 08014666fa11e3aaad91cd2ecee4aa212e7d1aba9142ff666105e6d535c2a615

See more details on using hashes here.

File details

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

File metadata

  • Download URL: phenosentry-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28ebe42415072f677f74140699461fdaa85af01409b886779450d15c23d66356
MD5 c41a64b5746d45adc0d57613dd04e601
BLAKE2b-256 e4175a0f5dc2f3046b6f8d48eee854e365f6296009de69ca7155f287fceaec66

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