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 status ...     # each RefSeq version's status in Entrez, the one input no published file states
weaver-data-build historical ... # NCBI's historical set of RefSeq versions, 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.4

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.4
File Size Uploaded Provenance Actions
hgvs_weaver_data-0.1.4.tar.gz 236.7 kB With provenance Details for hgvs_weaver_data-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 328.1 kB

Release files / hgvs_weaver_data-0.1.4.tar.gz

Download URL hgvs_weaver_data-0.1.4.tar.gz
Size 236.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1c932f602ac10e709c87a0b7ba621c5eaa5574602e870ac14e60f8ccc3de68c8
BLAKE2b-256 checksum
How to use checksums
847eee05c3d2c6815033fc0978814305118b16906246a83ed04fb1a6acb71dd6
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 Nov 1, 2026.

Transparency log

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

Download URL hgvs_weaver_data-0.1.4-py3-none-any.whl
Size 91.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3377ddafc12d8cee4776afc5f86f06e06f2418a65dd29e4504aca51183fc7b2a
BLAKE2b-256 checksum
How to use checksums
56ff69a595f2440d45a37734d4504098824be5922c2b579b49a4cb0e942bd173
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 Nov 1, 2026.

Transparency log

Security for hgvs-weaver-data 0.1.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hgvs_weaver_data-0.1.4.tar.gz

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 Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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