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.0

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.0
File Size Uploaded
hgvs_weaver_data-0.1.0.tar.gz 213.2 kB Details

Built distribution (wheel)

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

Total release size: 299.3 kB

Release files / hgvs_weaver_data-0.1.0.tar.gz

Download URL hgvs_weaver_data-0.1.0.tar.gz
Size 213.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bfd5019cc3c77b299185ebc94e9e4a242a1b558bc548d96a99026565ab536f30
BLAKE2b-256 checksum
How to use checksums
6002a49bbbfa7a9377cbf1c37981a37ff7ffdbd3720786e5c40f2ac4300d8d59
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.0-py3-none-any.whl

Download URL hgvs_weaver_data-0.1.0-py3-none-any.whl
Size 86.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56e2dd99c5754d5754c55ae2c3588cd3576fe74c18fa82cd85b2a950799c9cc0
BLAKE2b-256 checksum
How to use checksums
6062cc3269f25b4f5c97d0e41da7a112ac6a0840df83b846a12dcda8e50cb2e0
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

0.1.1

2 release files

This release

0.1.0 This release

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