Skip to main content

Small bioinformatics utilities: VCF annotation, minimal FHIR resource validation, and a MultiQC plugin

Project description

genomics-utils

Small, focused bioinformatics utilities used as a Phase 1 portfolio package:

  1. VCF annotation helper — parses a VCF file, classifies each variant (SNP / insertion / deletion / MNV), computes transition/transversion stats, and can emit a small JSON summary.
  2. FHIR resource validator — structural validation of a minimal subset of FHIR R4 Patient and Observation resources.
  3. MultiQC plugin — a MultiQC module that visualizes the VCF annotation summary JSON in a MultiQC report.

Installation

pip install -e ".[dev,docs]"

Components

VCF annotation helper

See genomics_utils.vcf_annotate. Operates on a small, hand-authored synthetic VCF (see tests/data/README.md) purely for demonstration and testing — it is not a production-grade annotation engine (no external annotation database lookups, no INFO/CSQ field parsing beyond what is generated locally).

FHIR resource validator

See genomics_utils.fhir_validate.

Scope note: this validator only checks that a JSON document has the shape of a minimal FHIR R4 Patient or Observation resource (required fields present, correct basic types). It does not perform full FHIR conformance validation — it does not check terminology bindings (e.g. that a code comes from a real code system), does not validate against StructureDefinition profiles, and does not check referential integrity between resources. For conformance-grade validation, use the official HL7 FHIR validator.

MultiQC plugin

See genomics_utils.multiqc_plugin.genomics_module. Registered via the multiqc.modules.v1 entry point, it looks for *_genomics_utils.json summary files (written by the VCF annotation helper) and renders variant counts and a Ts/Tv ratio in the MultiQC report.

Sample data

All test fixtures under tests/data/ are either hand-authored synthetic data or minimal official examples pulled from public specifications — see tests/data/README.md for exact provenance of each file.

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

genomerse_genomics_utils-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

genomerse_genomics_utils-0.1.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for genomerse_genomics_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c01e8eb981da82704d6d8a3eb7d1d48af0521506ad6d421e0f687beefce81d02
MD5 8ee531ab832fdee4d9087d5c30541f58
BLAKE2b-256 8793daf99b72b834655f9429ab6285084954694d92e15eb45f6b029ef322278f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for genomerse_genomics_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28b138628017b86a4bfa3d6779e7bf5de4b3bce687394faa2a48547d613b8670
MD5 4c177b1a65eb48a9b5f8d0293a9985cb
BLAKE2b-256 9f34f567e5d97e33358f5d6181f15c27ab558649254991c0fcbe91fc974615c4

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