bramble 🌿🫐

Clip rescue

Recovering soft-clipped read ends of long reads.

-S, --genome <file>

long reads only (--lr or --lr-hq); FASTA

The genome sequence the reads were aligned to, in FASTA format. Long-read aligners often soft clip the first or last bases of a read when they belong to a short exon the aligner couldn't place. With -S, bramble takes each soft-clipped end of at least 5 bases and, if the aligned part of the read reaches that end of its exon, aligns the clipped bases to the transcript's sequence just beyond it, that is, to the neighbouring exons of that transcript. If the alignment scores well enough, the rescued bases become part of the projected alignment instead of a soft clip, and their score is added to AS; otherwise the clip stays. Without -S, long reads are projected the same way but soft clips are kept as they are. With short reads, -S has no effect. If the FASTA has no .fai index, bramble builds one.

Always use -S for long reads when you have the genome. Rescued read ends give the quantifier more of each read to compare transcripts by, which makes long-read quantification more accurate.