A catalog of human reference genome editions, and tools to identify, fetch and reconstruct them.
Naming a genome assembly like "GRCh38", even a specific release, doesn't pin the sequences people actually use for analysis. Several authorities publish their own versions, with different sequences included, different names and order, and some bases masked or rewritten.
refbook describes every such published version as a recipe applied to the same roots, the original sequences as deposited, and checks each recipe by rebuilding the published files sequence by sequence.
- Web app: refbook.abdenlab.org
- Docs: abdenlab.org/refbook
- Raw catalog: abdenlab/refbook on Hugging Face: plain Parquet, readable without this library
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).bestSee the guides to the command line and Python.
| Path | Contents |
|---|---|
crates/ |
The Rust core (digests, seqcol, operations, the recipe compiler) and its Python and wasm bindings |
python/ |
The Python library and the refbook command |
js/, app/ |
The npm package @abdenlab/refbook and the web app |
catalog/ |
The pipeline that builds the catalog, with every book's recipes |
docs/ |
The documentation site |
Development covers building and testing each part.
The code is released under the MIT License. The catalog data is CC-BY-4.0.