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 reads a store on local disk; the module is weaver_data_provider. Two extras:

  • hgvs-weaver-data[gcs] reads a store or genome under a gs:// prefix (bagz's GCS backend and the Google Cloud Storage client).
  • hgvs-weaver-data[build] is weaver-data-build: pysam for NCBI's alignment BAMs, protovalidate for the schema check on every record written.

Platforms

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

Development

uv sync --all-extras, 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.2

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.2
File Size Uploaded
hgvs_weaver_data-0.1.2.tar.gz 215.0 kB Details

Built distribution (wheel)

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

Total release size: 302.0 kB

Release files / hgvs_weaver_data-0.1.2.tar.gz

Download URL hgvs_weaver_data-0.1.2.tar.gz
Size 215.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80a6e961f4bd670891c4d37fe197fbf22879e991690090130980ffc971e664cd
BLAKE2b-256 checksum
How to use checksums
5c08b7e271d476bc99ef723b367be7e140bd80f1216716535f22dd7470852db3
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.2-py3-none-any.whl

Download URL hgvs_weaver_data-0.1.2-py3-none-any.whl
Size 87.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
435e01b614efeb696e42e949ad8719b37075a40383f20021382d9659643b8b11
BLAKE2b-256 checksum
How to use checksums
5dd827777ce247615f3fc4afe2294b134e77566752b32c408eb7631ae009e261
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

This release

0.1.2 This release

2 release files

0.1.1

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