bramble 🌿🫐

Long-read options

Tolerating long-read errors, and scoring the candidate transcripts.

With --lr or --lr-hq, bramble changes how it treats reads in a few ways:

--max-error-exon <UINT>

default: 0 short reads, 35 --lr-hq, 35 --lr, 0 --strict

Long reads can have long insertions and deletions, which make an aligner miss a short exon or report one that isn't there. This option tolerates both, up to the given length. A read exon of at most this many bases, in the middle of the read, that matches no exon of the transcript is treated as an insertion. And with long reads, a transcript exon of at most this many bases that the read skips, between two of its exons, is treated as a deletion; only one exon may be skipped between two read exons. 0 turns both off.

--similarity-threshold <FLOAT>

default: off for short reads, 0.90 --lr-hq, 0.60 --lr, off for --strict

After a read is projected onto a candidate transcript, bramble measures the projected alignment's similarity to the transcript: the fraction of its bases that line up with the transcript, where bases it had to soft clip, insert or delete at exon boundaries count against it (runs of consecutive insertions or deletions count extra). Candidates with similarity at or below the threshold are dropped. A value of 1.0 turns the filter off.

How long reads are scored

Each remaining candidate gets a score of xΒ² × (b + 1), where b is the number of the read's exon boundaries that fall exactly on annotated boundaries, and x is how far the similarity is above the threshold, rescaled to 0–1 (when the filter is off, x is the similarity itself). The highest-scoring candidate becomes the primary alignment, and the AS tag is the aligner's AS, plus the score of any rescued clip, multiplied by this score. Short reads keep the aligner's AS unchanged.