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.1.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.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

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

Hashes for phenosentry-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3eab700b16eaef36b015de6451eaf522fcd9e7d5991aa24b01a2b9bbd69ab5a4
MD5 04c996e4890ffaaadab04842f480a353
BLAKE2b-256 1cd99c53e75c61c22ddbb4fe4d8ea9267f24131a08e14c63ba6d9941145c4863

See more details on using hashes here.

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

Hashes for phenosentry-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dfcce0e802aca4cd34f4e043ce73796a2fed247f7b305f8c068a96a25bf6b00
MD5 bb428e431abbe3b5cfdf027ede839646
BLAKE2b-256 a1ca4587cb8d21cd061c53a01bc3357a11f387756187f8a015b6af5e1a691de4

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