↓ Skip to main content

Compiled pipelines.
Reproducible runs.

OTTER turns FASTQ files and sample metadata into validated projects, then runs them locally or on Slurm from an immutable snapshot.

demo_rrbs · otter build
$ otter build --project-root demo --fastq ./fastq --mode RRBS --pdata ./samples.csv
  --reference-primary hg19@GRCh37.p13-gencode-v19 --backend slurm
 
Identified 2 samples
Successfully paired 2/2 samples
Verifying declared references against the registry...
Reference primary verified: hg19@GRCh37.p13-gencode-v19 (Homo sapiens, manifest sha256:33dfd7d4…)
Build complete
Snapshot: /shared/otter/demo/runs/run-20261124T091204Z-7f3a1c/run.yaml

Phases in the snapshot

step1 slurm
step2-check slurm
step3-report local

Executor, backend, phase order, and the CPU and memory envelope are fixed at resolve time.

Four compiled layers, one command.

Each layer isolates one failure mode of the R and Snakemake prototype: solver deadlocks, lock contention, host-library drift, and record-level correctness.

otter

Project, configuration, workflow, and task control

craftmake

Native Local and Slurm executor with a single-writer state store

enva

Rattler-first runtime environments, built once per tool set

operators

Seven compiled domain operators over shared BAM primitives

What replaced the scripts.

Seven operator binaries now cover every computational step, and five execution invariants hold across local and cluster runs.

Seven compiled operators

Quality control, host–graft classification, mate repair, quantification, splicing orchestration, QC aggregation, and methylation matrices run as binaries. Each operator is checked against its reference implementation on identical inputs.

fastqcx · xenofilx · pairbam · seq2mat · matsrun · qctb · methx

One writer, no lock contention

craftmake serialises controller writes through one SQLite connection with a rollback journal. On Lustre, 256 overlapping transactions completed with zero lost records.

References sealed, not re-resolved

Each genome selection is written as id@release, checked against a SHA-256 manifest, and bound into the run snapshot. A rerun cannot silently pick up a different index.

Environments built once per tool set

enva resolves the upstream toolchain with rattler and reuses one minimal environment, instead of re-solving dependencies at every step.

Static binaries on Linux

Release assets are statically linked on Linux, so the toolchain no longer depends on the host glibc version that broke dynamic builds on CentOS 7.

Local and Slurm share a snapshot

Backend and resource envelopes are recorded when the snapshot is resolved, so the same run.yaml drives a laptop and a cluster without edits.

Measured against the reference implementations.

Numbers come from matched runs on identical inputs and cluster allocations, not from synthetic microbenchmarks.

2.41× Methylation matrix build 91.6 s vs 221.0 s for the canonical Methrix workflow on full-genome eRRBS.
65.51% Lower peak RSS 18.62 GiB to 6.42 GiB under the same four-core, 128 GiB allocation.
4.213 s Controller reconciliation Median for BS-PDX on Slurm, against 19.819 s on the Snakemake path; n = 3 paired repeats.
51.61%–54.03% Usable recall, RRBS Across the human-fraction gradient, 0.575–1.200 percentage points above Xengsort pass@Bismark.

n = 3 paired repeats where stated. Full gradients are reported in Supplementary Tables S11 and S12.

How OTTER and Xengsort compare.

Fourteen human fractions from 0.1% to 99%, three replicates each, read at fragment level. Usable recall counts only pairs that also pass a human alignment, which is the number that reaches downstream analysis.

Usable recall counted only for pairs with a qualifying STAR human alignment
Human fractionOTTERXengsortΔ (pp)OTTER mapped PPVXengsort mapped PPV
0.1%92.1392.60-0.4793.2994.17
0.5%92.6293.20-0.5898.6098.81
1%92.5993.21-0.6199.3099.40
2%92.6793.24-0.5799.6599.70
5%92.6993.25-0.5699.8699.88
10%92.6593.23-0.5899.9499.94
25%92.6593.24-0.5999.9899.98
50%92.6293.21-0.5999.9999.99
60%92.6193.21-0.5999.99100.00
70%92.6193.20-0.59100.00100.00
80%92.6093.20-0.60100.00100.00
90%92.5993.19-0.60100.00100.00
95%92.5993.19-0.60100.00100.00
99%92.6093.20-0.60100.00100.00

3 replicates per fraction

Two minutes to a resolved run.

Detects your platform, downloads the matching release asset, and verifies it against the published checksums.

bash <(curl -fsSL https://raw.githubusercontent.com/otterlab-bio/otter/main/scripts/install.sh)
otter init my_project
otter create --output my_project --fastq /data/fastq --mode RRBS \
  --pdata /data/samples.csv --jobid demo_rrbs \
  --reference-root /shared/otter/references \
  --reference-primary hg19@GRCh37.p13-gencode-v19
  • RRBS, WGBS, RNA-seq, BS-PDX, and RNA-PDX ship as first-class modes.
  • Binaries are native on Linux and macOS, for amd64 and arm64; Linux builds are statically linked.
  • A reference release is tens of gigabytes; a GRCh38 STAR index alone is about 30 GB.
  • The offline rehearsal drives the real binaries through 99 stages with 0 failures.

Read it, run it, cite it.

The manual is task-oriented: installation, data preparation, a first run, and the five analysis modes.

Documentation

Installation, FASTQ pairing rules, the CLI reference, and the migration path for legacy projects.

Open the manual

Preprint

Zheng et al., bioRxiv 2026. DOI 10.64898/2026.10.24.761506.

Read on bioRxiv

Data

Versioned fixtures and provenance records on Hugging Face.

Open the dataset

Walkthrough

A fifteen-minute Colab that authors every scenario and resolves every phase.

Run the notebook