Skip to content

bonefish v0.2.0

Choose a tag to compare

@github-actions github-actions released this 21 Oct 18:27
· 58 commits to main since this release
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