Skip to content

Releases

bonefish v0.5.2

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:41
e062df0

A one-fix release for base-modification tags. Without -y, the output is the same as v0.5.1's.

Fixed

MM/ML tags on partial records. With -y, bonefish copied a read's MM/ML/MN tags onto every alignment record. That included hard-clipped supplementaries and secondaries written with SEQ *. On those records the tags' positions, which count bases of the whole read, pointed past or into the wrong bases. The tags are now kept only on records whose SEQ is the whole read: primaries, and supplementaries with -Y. (#46, #47)

Release check

144,075 HG003 R10.4.1 reads (chr20) aligned against GRCh38's chr20 with -a -x map-ont, 16 threads:

  • Without -y: SAM output byte-identical to v0.5.1 (219,080 records, 53.3 s against 53.4 s).
  • With -y: identical to v0.5.1's output once the 225,015 MM/ML/MN tags it wrote on hard-clipped or SEQ-less records are removed.

Binaries: Linux x86-64 and arm64 (glibc 2.28+), and macOS arm64, each with a .sha256.

Full changelog: v0.5.1...v0.5.2

bonefish v0.5.1

Choose a tag to compare

@github-actions github-actions released this 25 Nov 02:49
8afaec4

What's Changed

Full Changelog: v0.5.0...v0.5.1

bonefish v0.5.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 16:03
421cfca

New: live progress display (--tui)

Add --tui and bonefish shows one panel on stderr that follows the run through its stages, each
with its own clock:

bonefish --tui -t 16 -y -o sample.bam ref.fa reads.bam
bonefish  Running  00:29
┌─ Alignment progress ──────────────────────────────────────────────────────────────────┐
│  Prepare reference   done                                                       00:20 │
│› Align reads         [██████░░░░]  63% · 5252 reads · part 3/~4 · ~12s left     00:08 │
│  Sort and write BAM  queued                                                           │
│  Write BAM index     queued                                                           │
└───────────────────────────────────────────────────────────────────────────────────────┘
  • Alignment: overall progress from how far into the read files bonefish is, reads aligned,
    reads/s and the time left.
  • Large references: with a reference split into index parts (-I), each part is one pass over
    the reads, shown as part 3/4, or part 3/~4 while the reference is still being read. The panel
    stays on alignment while later parts are indexed, and the bar never moves backwards.
  • Reference and BAM: whether bonefish is reading the FASTA, building the index or loading a
    prebuilt one; a progress bar while the sorted BAM is written, then its record count.
  • Stays out of the way: it is off unless you ask for it, and only draws when stderr is a
    terminal that alignment records are not printed to. Otherwise you get the usual status messages.
    Warnings print above the panel, narrow terminals get a one-line view, and Ctrl-C marks the run
    Interrupted.

Output and speed are the same with and without --tui.

zflate replaces libdeflate

BGZF input and output, the sorter's temporary runs and the BAI/CSI indexes now go through
zflate, a pure-Rust port of libdeflate, instead of
libdeflate's C library.

  • Build: without jemalloc or mimalloc, bonefish no longer needs a C compiler. Building from
    source needs Rust 1.91 or newer.
  • Output: sorted BAMs hold the same records as before, and their BAI and CSI indexes answer
    region queries as samtools' own do.
  • Speed: CPU time is unchanged.

Same alignments, same speed

On 188,140 HG002 R10.4.1 reads (chr20) against GRCh38 with 16 threads, SAM and sorted-BAM output
are byte-identical to v0.4.0, at the same speed (81.7 s against 81.6 s). Variant calls on chr20
score the same against GIAB:

v0.5.0
SNP F1 (Clair3, GIAB v4.2.1) 0.9987
indel F1 0.9016
SV F1, strict (Sniffles2, GIAB v5.0q) 0.8139

Fixes

  • References larger than -I (8G by default), with SAM/BAM output: the header listed only the
    first index part's contigs, so BAM output failed. These runs now go through the split-index
    merge, on all threads, with a complete header.
  • Reads from stdin with a multi-part reference and SAM/BAM output are now refused with an
    error, because the merge reads them twice. Use a larger -I, or PAF output.
  • A reference that fits in one -I batch is one index part again: its output matches a run
    without -I.
  • Prebuilt indexes with a non-default k give the same output as mapping the FASTA with the same
    options.
  • Output errors end the run: a closed pipe or full disk used to leave bonefish hanging; it now
    exits with the error.
  • Ctrl-C removes temporary files: the split-index directory and the sorter's temporary runs
    are deleted before bonefish exits.
  • --sort-level outside 0-12 is rejected with an error instead of crashing.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon.

Full Changelog: v0.4.0...v0.5.0

bonefish v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Oct 13:53
93c8798

New: PacBio HiFi (-x hifi)

-x hifi (alias map-hifi) aligns PacBio HiFi genomic DNA. It works like minimap2
-ax map-hifi and uses the same index as the dna preset.

bonefish -x hifi -t 16 -y -o out.bam ref.fa hifi.fq.gz

HG002 whole genome (PacBio Revio, about 30x, GRCh38), 16 threads, against minimap2 2.31:

minimap2 map-hifi bonefish -x hifi
aligner CPU time 91,927 s 23,633 s (3.9x less)
reads to sorted BAM, wall time 7,908 s 3,010 s
SNP F1 (Clair3, GIAB v4.2.1) 0.9980 0.9984
indel F1 0.9868 0.9922
SV F1, strict (Sniffles2, GIAB v5.0q) 0.8091 0.8061
  • How it works: -x hifi is the dna preset plus one extra step. Stretches of fragmented
    long gaps are realigned under map-hifi scoring, so one structural variant is not split into
    several false deletions.
  • chr20 of HG002, HG003 and HG004: the same pattern holds. SNP and indel F1 are higher than
    map-hifi on every sample.
  • Not yet validated: PacBio Iso-Seq/Kinnex RNA.

Details: docs/validation/2026-10-28-hifi/.

Preset names

  • -x ont is now an alias for -x dna.
  • Preset names ignore case (-x HIFI, -x ONT).
  • dna output is unchanged on all golden-output tests (DNA, direct RNA, cDNA) on x86 and ARM.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon.

Full Changelog: v0.3.0...v0.4.0

bonefish v0.3.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 23:44
751aef6

New: transcriptome quantification (-x tx)

-x tx maps direct RNA or cDNA reads to a transcriptome for quantifiers such as oarfish and
NanoCount. It is the bonefish equivalent of minimap2 -ax map-ont -N 100:

  • minimap2's map-ont seeding (k=15, w=10);
  • up to 100 secondary alignments per read;
  • the dna preset's faster chaining and DP otherwise.
bonefish -x tx -d tx.raw --idx-raw transcripts.fa       # optional index
bonefish -t 16 -x tx -a --eqx tx.raw reads.fq | samtools view -b -o tx.bam -

HG002 reads on the GENCODE v49 transcripts, 16 threads, against minimap2 2.31:

200k reads minimap2 map-ont -N 100 bonefish -x tx
cDNA (PCS114), wall 185 s 81 s
direct RNA (RNA004), wall 106 s 37 s
reads left unmapped 1,987 / 37,838 the same
oarfish gene counts vs minimap2 (cDNA / direct RNA) r = 0.9995 / 0.99997
simulated reads: primary on true transcript (cDNA-like / direct-RNA-like) 93.73% / 91.98% 93.88% / 92.17%

Note: oarfish currently accepts only BAMs whose @PG names an aligner on its list. A request
to add bonefish is planned; until then, see docs/pipelines.md. Details:
docs/validation/2026-10-21-transcriptome/.

Faster everywhere, output unchanged

  • ALT-contig count: it was recomputed for every read by scanning every reference sequence.
    It is now counted once per index. With hundreds of thousands of sequences, as in a
    transcriptome or metagenome assembly, this was most of the post-chain time.
  • Isolated anchors: dropped before chaining (they can only form one-anchor chains, which are
    always discarded). DNA uses about 1.2% less CPU.

DNA output is unchanged: genome-wide HG001 sample MD5 9bc7ff3e9f498cc1530b2b1d78c47e10. So are
all golden-output tests (DNA, direct RNA, cDNA) on x86 and ARM.

Also in this release

  • Golden-output tests for the RNA presets.
  • docs/pipelines.md: drop-in use in pipelines, including ONT's wf-human-variation.
  • CHANGELOG.md, CONTRIBUTING.md and issue templates.
  • The unused GPU experiment and the browser demo are removed.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon.

Full Changelog: v0.2.0...v0.3.0

bonefish v0.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 18:27
bac8762

New: direct RNA and cDNA alignment

bonefish now aligns spliced ONT reads to a genome:

  • -x rna: direct RNA. Same parameters as minimap2's -ax splice -uf -k14.
  • -x cdna: cDNA. Same parameters as minimap2's -ax splice. splice is an alias, and splice:hq is also available.
  • Options: --junc-bed for annotated junctions, plus -u, -G, -C, --junc-bonus, --junc-pen, --splice-flank and --write-junc.
  • Output includes the ts:A transcript-strand tag.
  • A spliced preset needs its own index: bonefish -x cdna -d cdna.raw --idx-raw ref.fa.
bonefish -t 16 -x cdna -y -o cdna.bam cdna.raw reads.bam

HG002, GRCh38, 16 threads, against minimap2 2.31 with the same presets:

minimap2 bonefish
direct RNA (RNA004 sup), 902k reads: wall / CPU 456 s / 5,606 CPU-s 177 s / 2,618 CPU-s
cDNA (PCS114 hac), 809k reads: wall / CPU 1,223 s / 17,416 CPU-s 227 s / 3,275 CPU-s
primaries identical to minimap2 (direct RNA / cDNA) 99.87% / 99.49%
introns at GENCODE v49 positions (direct RNA / cDNA) 97.94% / 97.49% 97.95% / 97.46%
simulated reads, exact intron chain (direct-RNA-like / cDNA-like) 89.10% / 93.13% 88.79% / 93.09%

(cDNA uses a further ~6% less CPU with the reduced extension windows in this release.)

How it's faster:

  • Introns: they cost the same at any length, so gap fills align the query only against the reference near the chain's anchors. Removed stretches can be crossed only by an intron.
  • Missing exons: a 10-mer search looks for exons that have no anchor.
  • Read ends: extensions use a reduced window.
  • cDNA strands: each chain is aligned once using both strands' splice signals, rather than once per strand.
  • Chaining: RNA chaining uses the SIMD chainers.

Details: docs/validation/2026-10-21-rna-cdna/.

Known limits:

  • An exon with no anchor and no exact 10-mer match is missed: 1 of 225 random genes at ~8% read error.
  • A strand tie reached through another path is reported as a strand: 1 of 400 random reads.
  • The spliced presets are new and validated against minimap2, GENCODE and simulated reads. They have not yet been checked with downstream isoform or expression tools.

DNA

The dna preset's output is unchanged from v0.1.7: genome-wide HG001 sample MD5 9bc7ff3e9f498cc1530b2b1d78c47e10.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon, built and tested by the release workflow.

Full Changelog: v0.1.7...v0.2.0

bonefish v0.1.7

Choose a tag to compare

@github-actions github-actions released this 21 Oct 01:01
22ae6c3

Faster on AVX-512 CPUs

New AVX-512 kernels for the wide dual-affine DP (64 lanes, bit-plane traceback), narrow-band DP (VBMI/VL register kernels), chaining, small-leaf sorting and minimizer sketching. They are chosen at run time, so the same binary still runs on any x86_64 CPU.

genome-wide HG001 sample (2.7 Gbp) v0.1.6 v0.1.7
Xeon Gold 5418Y, 24 threads (AVX-512) 721 CPU-s, ~34 s 526 CPU-s, ~28 s (−27% CPU)
Core i5-12600K, 16 threads (AVX2) 673–677 CPU-s 651–653 CPU-s (−3%)

The AVX2 gain comes from shared changes (RMQ ranks, radix sort, chaining buckets) that every platform uses.

Alignment output is unchanged from v0.1.5–v0.1.6: identical SAM on the genome-wide sample (MD5 9bc7ff3e9f498cc1530b2b1d78c47e10, with the AVX-512, AVX2, SSE4.1 and scalar paths) and on all HG002 chr20 and chr22 reads. Details: docs/validation/2026-10-17-avx512/.

CI now fails when a SIMD kernel test skips on a runner whose CPU has that feature, so the AVX-512 tests are always exercised on AVX-512 runners.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon, built and tested by the release workflow.

Full Changelog: v0.1.6...v0.1.7

bonefish v0.1.6

Choose a tag to compare

@DylanCosto DylanCosto released this 16 Oct 04:39
6e39b58

Fix: Clair3 and other region readers were slower on bonefish BAMs

The BAI/CSI index written with -o x.bam split each bin into about 2.5x as many chunks as samtools index does, so tools that read the BAM by region (Clair3, longphase, IGV, samtools view chr:a-b) decompressed the same blocks over and over. Clair3 took 9–15% longer on bonefish BAMs than on minimap2's; longphase phasing took 4.4x longer.

The index is now built as htslib builds it (block-boundary chunk ends, small-bin and chunk merging, linear-index fill) and is identical in content to samtools index of the same BAM (and to samtools index -c for CSI). On HG002 chr20, Clair3: 216 s → 181 s (minimap2's BAM: 174–179 s), with identical calls. Details: docs/validation/2026-10-16-bam-index-chunks/.

Alignment output is unchanged from v0.1.5 (genome-wide HG001 sample MD5 9bc7ff3e9f498cc1530b2b1d78c47e10). BAMs written by earlier versions are valid; run samtools index on them to get the faster index.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon. Built and tested by the release workflow (the x86_64 package was built locally in the same manylinux_2_28 image when CI was unavailable).

Full Changelog: v0.1.5...v0.1.6

bonefish v0.1.5

Choose a tag to compare

@DylanCosto DylanCosto released this 16 Oct 03:25
601cf95

Faster again, with the tandem-repeat fix kept

  • Long gaps are sub-anchored again, outside tandem repeats. v0.1.4 switched sub-anchored gap filling off because inside tandem repeats it aligned reads through the wrong repeat copy; that cost about 6% CPU. It now skips only segments in tandem repeats of period up to 150 bp (--gap-subanchor-tr 150). Genome-wide HG001 sample: 671 CPU-s (v0.1.3 664, v0.1.4 700).
  • --gap-subanchor-tr 0 reproduces v0.1.3's output, --no-gap-subanchor v0.1.4's.

Whole-genome re-validation (docs/validation/2026-10-15-giab-wgs-v2/)

HG002 and HG005 (R10.4.1 sup, GIAB 2025.01), against minimap2 2.31:

  • SNP and indel F1 equal to minimap2 on both genomes (HG002 0.9971 / 0.8737, HG005 0.9975 / 0.9395).
  • GIAB tandem-repeat benchmark, refined F1: 0.9023 (minimap2 0.9026; v0.1.1-v0.1.3 0.9000).
  • Challenging medically relevant genes (CMRG): SNP 0.9650, indel 0.7518, SV 0.9070 (minimap2 0.9650 / 0.7514 / 0.9082).
  • SV F1 vs GIAB v5.0q: 0.8053, equal to minimap2 (0.8055). v0.1.1-v0.1.3 scored 0.8094; the extra matches were calls from misaligned reads in tandem repeats (details in the report).
  • HG002 reads → sorted, indexed BAM in 38.4 min (minimap2 + samtools sort: 114.8 min).

Alignment output changes: genome-wide HG001 sample MD5 9bc7ff3e9f498cc1530b2b1d78c47e10.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon. Built and tested by the release workflow (the x86_64 package was built locally in the same manylinux_2_28 image when CI was unavailable).

Full Changelog: v0.1.4...v0.1.5

bonefish v0.1.4

Choose a tag to compare

@DylanCosto DylanCosto released this 15 Oct 14:39
9547516

Fix

  • Fewer false SV calls in tandem repeats. Sub-anchored gap filling is now off in the dna preset. In variable-number tandem repeats it could align a read through the wrong copy of the repeat, so a ~10 bp expansion became a 60 bp deletion plus a 74 bp insertion, and Sniffles2 reported both as SVs. Reads with such detours in GIAB Tier 1 repeats: chr20 405 → 76 (minimap2 74), chr22 138 → 10 (minimap2 10). Tandem-repeat benchmark F1 (refined), chr20 / chr22: 0.8976 / 0.9008 → 0.8983 / 0.9037 (minimap2 0.8993 / 0.9030).
  • SNP accuracy unchanged, indel F1 within 0.0003, SV calls vs GIAB v5.0q within 1–3 per chromosome; no read newly unmapped; simulated-read placement identical to v0.1.3.
  • Cost: about 6% more CPU (genome-wide HG001 sample 47.9 s vs 44.7 s at 16 threads). --gap-subanchor restores v0.1.3 output exactly.

Alignment output changes: genome-wide HG001 sample MD5 is now 8fbcd8ce9df67b78a978ef6497873caa (was deed7949d35f15bd8eed935be47a1d81). Evidence: docs/validation/2026-10-15-tandem-repeat-detours/.

Downloads

Linux x86_64 and arm64 (glibc 2.28+) and macOS on Apple silicon. Built and tested by the release workflow (the x86_64 package was built locally in the same manylinux_2_28 image when CI was unavailable).

Full Changelog: v0.1.3...v0.1.4