bramble 🌿🫐

Boundary tolerances

How far a read exon's boundaries may be from the annotated ones.

Each read exon has two boundaries. Where a read exon meets a splice junction, its boundary should fall on the annotated exon boundary; at the two outer ends of the read, the read may start or end anywhere inside an exon, but shouldn't reach past it. These three options set how many bases a boundary may be off before the transcript is rejected. Each takes a number of bases (0 = exact), and the defaults depend on the preset.

annotation     ==========-------------==========   two exons and the intron between them

read           ============...........==========   junction insertion: the exon runs 2 bases into the intron
read           ========...............==========   junction deletion: the exon stops 2 bases short
read        =============.............==========   soft clip: the read starts 3 bases before the transcript
read              =======.............==========   fine: a read may start anywhere inside an exon

Here the first exon is the start of the transcript, and . marks where the read is spliced. The same rules apply at the other end of the read.

--max-junction-insertion <UINT>

default: 0 short reads, 10 --lr-hq, 40 --lr, 0 --strict

At a splice junction, how many bases a read exon may extend past the annotated exon boundary, into the intron. Those bases are not part of the transcript, so they become an insertion (I) in the transcript CIGAR.

--max-junction-deletion <UINT>

default: 0 short reads, 10 --lr-hq, 40 --lr, 0 --strict

At a splice junction, how many bases a read exon may stop short of the annotated exon boundary. The transcript bases the read skips become a deletion (D) in the transcript CIGAR.

--max-soft-clip <UINT>

default: 5 short reads, 5 --lr-hq, 40 --lr, 0 --strict

At the two outer ends of the read (the start of its first exon and the end of its last), how many bases may extend past the transcript exon the read lands on. Those bases are soft clipped (S). This limits only the clipping bramble adds: soft clips already in the genome alignment are kept, and for long reads they can be rescued with -S.