README.md

June 13, 2026 · View on GitHub

chaintools

Version Badge Crates.io Version GitHub License Crates.io Total Downloads

work with .chain files in Rust

docs . usage . tools . chains

Installation

Binary

cargo install --all-features chaintools

Docker

docker pull ghcr.io/alejandrogzi/chaintools:latest

Conda

conda install -c bioconda chaintools

Library

Add this to your Cargo.toml:

[dependencies]
chaintools = { version = "0.0.8", features = ["mmap", "gzip", "parallel"] }

Benchmarks

CommandMean [s]Min [s]Max [s]Relative
chaintools filter7.205 ± 0.1027.0877.2661.00
UCSC chainFilter11.778 ± 0.04311.72911.8121.63 ± 0.02
chaintools sort12.434 ± 0.16512.29812.6171.00
UCSC chainSort18.279 ± 0.02518.25418.3031.47 ± 0.02
chaintools merge11.995 ± 0.04511.94312.0241.00
UCSC chainMergeSort17.616 ± 0.07117.55717.6961.47 ± 0.01

*ran using hyperfine 1.18.0 on an AMD Ryzen 7 5700X with 128 GB of RAM and 16 cores with a 262 MB chain.gz file as input