This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Spliced alignment information from bam file

How do I know if an alignment is spliced by looking at SAM format? I need to find spliced alignments from BAM file.

sam bam

1 answer

search for 'N' in the cigar string?

samtools view  in.bam | awk '($6 ~ /N/)'

Log in to answer this question.