Repository navigation
bonefish v0.5.0
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.bambonefish 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 aspart 3/4, orpart 3/~4while 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
-Ibatch 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-leveloutside 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