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

Uploaded Python 3

File details

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

File metadata

  • Download URL: londonaicentre_genoschema-2.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.1.0.tar.gz
Algorithm Hash digest
SHA256 af0c33497f4dee1a787ab64e40c251cdec82f01671ac6376a76c91b09606b819
MD5 639650aa92aca8f323c2b796d9ae8f14
BLAKE2b-256 df5ecdd4d96340b5ca864e395a1c84df7edf960e5f960237d954c1a72260d4b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: londonaicentre_genoschema-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55ac1c3a90a434a9a829c80644c60e3d30247b4e6750fe8c6e81566bd39af946
MD5 85714b1c33f8a24e5e529fbca886dc2b
BLAKE2b-256 0afb8af07c919c67fc0cb3b60654a5853a516c8c20efaf4f873aaf8d59f46164

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