Skip to main content

refbook

A catalog of human reference genome editions, and a library to identify, fetch and reconstruct them.

"GRCh38" names dozens of different FASTA files, and "hg19" or "T2T" as many again: each publisher includes different sequences, names and orders them differently, and masks or rewrites some bases. refbook describes every published file as a recipe applied to the original deposited sequences, checks each by rebuilding the file, and answers practical questions on top of that catalog:

  • Which reference is this? Identify a BAM, CRAM, VCF, .dict, .fai or FASTA from its header.
  • Give me its sequence. Materialize any cataloged edition as an Arrow stream, or fetch the bases at a table of intervals.
  • Decode this CRAM. Fill htslib's REF_CACHE, including masked or IUPAC-rewritten sequences that no public MD5 server holds.
  • Serve it. Run a GA4GH refget server (Sequences v2, Sequence Collections v1) over the catalog.
$ refbook identify Homo_sapiens_assembly38.dict
Homo_sapiens_assembly38.dict
  dict, 3366 sequences, with digests
  EXACT: hs38dh
from refbook import Catalog, identify, read_header

cat = Catalog("https://huggingface.co/datasets/abdenlab/refbook/resolve/v0.2.0/")
identify(read_header("sample.bam"), cat).best

The catalog is read from Hugging Face (abdenlab/refbook): only the small tables, about 1.3 MB, are cached, and bases are read with HTTP range requests as needed.

Install

Not yet on PyPI. From a clone of abdenlab/refbook, with a Rust toolchain, since the core is compiled into the package:

pip install ./python                 # the library and the `refbook` command
pip install "./python[datafusion]"   # also DataFusion, for faster fetches from a local catalog

Documentation

abdenlab.org/refbook: getting started, the model behind the catalog, guides to the command line and Python, and the API reference.

Metadata

Release files for refbook 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 refbook 0.1.0
File Size Uploaded Provenance Actions
refbook-0.1.0.tar.gz 69.3 kB With provenance Details for refbook-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for refbook 0.1.0
File Actions
refbook-0.1.0-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for refbook-0.1.0-cp313-abi3-win_amd64.whl
refbook-0.1.0-cp313-abi3-musllinux_1_2_x86_64.whl CPython 3.13 abi3 Linux musl 1.2+ x86-64 Details for refbook-0.1.0-cp313-abi3-musllinux_1_2_x86_64.whl
refbook-0.1.0-cp313-abi3-musllinux_1_2_aarch64.whl CPython 3.13 abi3 Linux musl 1.2+ ARM64 Details for refbook-0.1.0-cp313-abi3-musllinux_1_2_aarch64.whl
refbook-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 abi3 Linux glibc 2.17+ x86-64 Details for refbook-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
refbook-0.1.0-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 abi3 Linux glibc 2.17+ ARM64 Details for refbook-0.1.0-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
refbook-0.1.0-cp313-abi3-macosx_11_0_arm64.whl CPython 3.13 abi3 macOS 11.0+ ARM64 Details for refbook-0.1.0-cp313-abi3-macosx_11_0_arm64.whl
refbook-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl CPython 3.13 abi3 macOS 10.12+ x86-64 Details for refbook-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl

Total release size: 4.6 MB

Release files / refbook-0.1.0.tar.gz

Download URL refbook-0.1.0.tar.gz
Size 69.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aabb87f280c7ffefd21c8967383c32ca4ec6ba411c468938d8e3f2536158ed9b
BLAKE2b-256 checksum
How to use checksums
441df984b4a23e189383b5601967bef1051412f938c33c398894403ffa8f9ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-win_amd64.whl

Download URL refbook-0.1.0-cp313-abi3-win_amd64.whl
Size 471.5 kB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
112c9f58e737e5e08f625732216bf8f503864c9ec53f5402313d3f5db0b2ad5c
BLAKE2b-256 checksum
How to use checksums
b5274330a69cce15060757dba89ebb053d24ecbf56e68d15a45f27b9c6aa0432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-musllinux_1_2_x86_64.whl

Download URL refbook-0.1.0-cp313-abi3-musllinux_1_2_x86_64.whl
Size 845.5 kB
Tags CPython 3.13 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
711edcc0926ce03aad1ac65bdadca15459dcfede085dc31f285153385b31fce6
BLAKE2b-256 checksum
How to use checksums
8188d1d6e44b2f55ed1bdd5ac65565d85a4f96663b02115ba3c03d38e5e2e0c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-musllinux_1_2_aarch64.whl

Download URL refbook-0.1.0-cp313-abi3-musllinux_1_2_aarch64.whl
Size 784.0 kB
Tags CPython 3.13 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
cd9c431e69c64cda55475acdfa0a6ced96674483bdb975db17ef701a0fe6dc7d
BLAKE2b-256 checksum
How to use checksums
b0b24d3121b884a8911f665886286a7c455d5229f97827f113ee78a5f348fc34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL refbook-0.1.0-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 628.1 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
1b9a8117ddde2a0f24599dfe87df3c26ea78295f5f104c090909eedf3d4333cb
BLAKE2b-256 checksum
How to use checksums
4ebe06b517d7e65b99f6cea36084a7879740dfa0c7ed40d2518b5a6ad4887c93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL refbook-0.1.0-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 605.0 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b04af61cbef4950dfc0966d236fd605a69f32d351e8d9d074169024e03c06cdb
BLAKE2b-256 checksum
How to use checksums
58bf99530cb97f6fbd0dc668fde46fb69c5fa5edfe928ff5f8c25f17413ac685
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-macosx_11_0_arm64.whl

Download URL refbook-0.1.0-cp313-abi3-macosx_11_0_arm64.whl
Size 552.0 kB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7046c0101e506fdac272f0e1efc85e6787cbcdd987ce895c4b8316b7e1a0a892
BLAKE2b-256 checksum
How to use checksums
d16ded57e8e1f2195cdb4c675fb4c4646410d23cd24774905fd44df44ccece02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Release files / refbook-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl

Download URL refbook-0.1.0-cp313-abi3-macosx_10_12_x86_64.whl
Size 594.9 kB
Tags CPython 3.13 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cf0280d0ac5fed4edabc898b7f50cec895b8ef873e2d0cc1f2a529781726a523
BLAKE2b-256 checksum
How to use checksums
66e1973225c4913cfcd17300e2e892cffc738ea3803fa31ce43d30663bb76a12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 16, 2026.

Transparency log

Security for refbook 0.1.0

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

All 8 files in this release have been uploaded with provenance metadata.

Select from 8 files

Attestation for refbook-0.1.0.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 16, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

8 release files Full provenance

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