Skip to main content

Genomic report extraction schema for MESA

Project description

Genoschema

Schema package for genomic biomarker extraction from NHS genomic laboratory hub reports.

Structure

📁 genoschema
├── examples/            # Training examples showing document input and structured output
├── schema.py            # Pydantic model for specifying expected output structure
├── prompt_builder.py    # Prompt builder for data generation and inference
├── prompt_datagen.txt   # Prompt template with example (for training data generation)
├── prompt_main.txt      # Prompt template without example (for inference/deployment)
└── py.typed             # Type checking marker

Usage

from genoschema.prompt_builder import PromptBuilder

# Initialize builder
builder = PromptBuilder()

# Build data generation prompt (with example)
datagen_prompt = builder.build_datagen_prompt()

# Build main/inference prompt (without example)
main_prompt = builder.build_main_prompt()

Schema

Schema overview

Type Values
ClinicalFindingType morbidity, patient_finding, family_history
TestType dna, fish, karyotype, pcr, mlpa, other
ResultEntityType chromosome, gene, exon, variant, protein
ResultStatus abnormal, normal, uncertain_significance, failed_or_inconclusive

License

This project uses a proprietary license issued by Guy's and St Thomas' NHS Foundation Trust, enabling free (non-commercial) use by NHS organisations. See LICENSE files for details.

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

londonaicentre_genoschema-2.2.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

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

londonaicentre_genoschema-2.2.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file londonaicentre_genoschema-2.2.0.tar.gz.

File metadata

  • Download URL: londonaicentre_genoschema-2.2.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_genoschema-2.2.0.tar.gz
Algorithm Hash digest
SHA256 82787b9675339d65a2bdeee37166e92dabcddebdd0bc277ae770307d2652c6f6
MD5 4245e4aff17dd691db7199c4df635c5f
BLAKE2b-256 bbde71886004a5e1a25517990818b23072e7fa86d2c972d9f8cd85d6b59b8771

See more details on using hashes here.

File details

Details for the file londonaicentre_genoschema-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: londonaicentre_genoschema-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_genoschema-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0dc1501e5f276967ddea20a9968c38e3c3be7e0f037beb5b29e6a6150778cbf9
MD5 32ca264001316fb7378f1aa31935ef39
BLAKE2b-256 a067ae9de60acf05a9a0a2bb8c02db4a0e9ac324b1a5a702a72d4b9434fb0f19

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