This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Extract the mapped portion of the read sequence

Probably an easy one.

I'm interested in extracting from a bam file only the portions (i.e., sequence) of a read that match and mismatch the reference, i.e., excluding the clipped positions.

Any idea?

bam rna-seq cigar

1 answer

Unsurprisingly Pierre Lindenbaum has a jvarkit extension for just that:

Remove Soft Clipped Bases

Log in to answer this question.