Skip to main content

hgvs-weaver-data

Reference data for hgvs-weaver: a builder that turns a publisher's release into a local store, and the DataProvider that feeds weaver from it.

An HGVS engine is only as correct as what it is told about each transcript. A RefSeq transcript's sequence is not always the genome's — about one record in forty differs — and where they differ by an insertion or deletion, where the difference sits is a choice. NCBI publishes its choice: the alignment of every RefSeq transcript to the assembly. The builder takes that alignment exon by exon rather than deriving one, so the positions weaver computes are the ones ClinVar's names and VariantValidator's projections follow.

Every placement NCBI publishes is kept — on a chromosome, an alternate locus or a patch — so a gene the primary assembly lacks is served where it is. An Ensembl transcript is placed at its exons, after a check that its record is the genome spliced there. docs/design/placements.md has the reasons. A retired RefSeq version — the one an older variant name cites — is served from NCBI's historical set, stacked under the current release (docs/design/retired-versions.md).

A store is one record per gene — every transcript, its protein, its alignments and the sequences they cite — in bagz files with sorted key and interval tables that are read into memory at open. A lookup is a search over bytes in memory and one ranged read, from local disk or gs://.

weaver-data-build refseq ...     # one RefSeq release's bundles, as a shard
weaver-data-build historical ... # NCBI's historical set of RefSeq versions, each with its Entrez status
                                 # (scripts/fetch_refseq_status.py), as a shard to stack under a release's
weaver-data-build ensembl ...    # one Ensembl release's, placed at its exons and checked against the genome
weaver-data-build index ...      # the index and manifest over an ordered list of shards
weaver-data-build genome ...     # the assembly, cut into compressed blocks

The at-rest format is defined by the protos under proto/, and buf breaking gates every change: stores sit in other projects' buckets, so the format only grows.

Installing

pip install hgvs-weaver-data; the module is weaver_data_provider.

Platforms

bagz publishes wheels for Linux x86_64 and macOS arm64; anywhere else, installing this package builds bagz from source.

Development

uv sync, then uv run pytest. The Python stubs under src/ are generated from proto/ by uv run python scripts/regen.py and committed.

Metadata

Release files for hgvs-weaver-data 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hgvs-weaver-data 0.1.1
File Size Uploaded
hgvs_weaver_data-0.1.1.tar.gz 214.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hgvs-weaver-data 0.1.1
File Interpreter ABI Platform
hgvs_weaver_data-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 300.8 kB

Release files / hgvs_weaver_data-0.1.1.tar.gz

Download URL hgvs_weaver_data-0.1.1.tar.gz
Size 214.2 kB
Tags Source
SHA-256 checksum
How to use checksums
dc2f6027e5b818838fd15ab3a84cb1aa29521d7481bc501b578baa4c15c9ca73
BLAKE2b-256 checksum
How to use checksums
5edb2ec3d7b8691583c5eed3f6e0579d427c992a7a0aae741da5ed87dd5e71b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release files / hgvs_weaver_data-0.1.1-py3-none-any.whl

Download URL hgvs_weaver_data-0.1.1-py3-none-any.whl
Size 86.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cffc8c981f3e5848cbbd67e1b0bf69c5ce99f0dc67a993624f3e3845fb7254c1
BLAKE2b-256 checksum
How to use checksums
796e4137e246e80fdb05cfd7d142a951b0fbd742f293b96b31f88a233fd00057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page