This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Soft Clipping Position

Hi,

How can I know the position and the length of soft-clipped nucleotides in my aligned reads (I used bowtie2 in local mode but the idea will be the same for other aligner). So from the sam file.

I put a little picture to explain more easily :

enter image description here

Thanks

N.

rna-seq

1 answer

The answer you are looking for is in the SAM specification. The cigar string contains the information. Look for 'S' in the cigar string.

Nice picture.

I checked in SAM spec and indeed I have to filter by cigar flag. Thanks a lot

Log in to answer this question.