bramble
Project spliced genomic alignments into transcriptomic space, enabling transcript quantification to work with genomic alignments.
bramble takes reads aligned to a genome, together with a reference annotation, and rewrites each alignment in transcript coordinates, once for every annotated transcript the alignment is compatible with. The result is a transcriptome BAM that alignment-based quantifiers such as salmon and oarfish read directly.
This means you can align your reads once, to the genome, with any spliced aligner (for example HISAT2 or STAR for short reads, or minimap2 for long reads), and use the same alignments both for genome-based analyses and for transcript quantification. bramble has presets for short reads and for long reads of different accuracies.
Why project genomic alignments?
- Reads from unannotated transcripts stay out. Aligning straight to a transcriptome forces every read onto some annotated transcript, so reads from transcripts missing from the annotation (or from transcriptional noise) are counted toward the wrong isoforms. Aligned to the genome, those reads land where they came from, and bramble drops them when they don't fit an annotated transcript.
- Splice junctions are kept. A genome alignment knows exactly where each read is spliced, and bramble uses those junctions to decide which isoforms a read fits.
- One alignment, every compatible transcript. bramble reports all compatible transcripts in one pass, without aligning to the transcriptome again.
- Existing BAMs can be reused. Genome alignments you already have, including public ones, can be quantified without going back to the FASTQ files.
The gains are largest for long reads, which span more splice junctions, and when the annotation is incomplete, as it often is for non-model organisms.
How it works
For each alignment, bramble finds the annotated exons that its aligned blocks (the read exons) overlap. A transcript is compatible when the read exons line up with consecutive exons of that transcript and every exon boundary matches the annotation, within tolerances that depend on the read type. For every compatible transcript, bramble writes one record, with its position and CIGAR string in transcript coordinates. The two mates of a read pair are placed together on a transcript they share.
Long reads need more tolerance than short reads, because sequencing errors near a splice junction often shift where the aligner puts the exon boundary. The read-type presets set these tolerances for you.
Versions
bramble is available as a C++ executable (bramble) and a Rust executable
(bramble-rs). Both take the same options and produce the same alignments;
the Rust version has a few extra options. The
Rust library at the core of the Rust version, bramble-rs, can be built into
other programs, and bramble is also available directly inside salmon and oarfish.
Where to go next
- Installation: build the C++ version or install the Rust version.
- Quick start: from a genome BAM to transcript quantities.
- Read-type presets: which settings to use for your data.
- Output: what bramble writes.
Citing bramble
If you use bramble in your work, please cite:
Zoe Rudnick, Ales Varabyou, Rob Patro, Mihaela Pertea. Bramble: projection of spliced genomic alignments into transcriptomic space for improved transcript quantification. bioRxiv (2026). doi:10.64898/2026.09.09.750464
Getting help
Run bramble --help to see all available options. For issues or
questions, please open an issue
on GitHub, or reach out at zrudnic1@jh.edu.