Bwa Alignment Length
After performing a transcriptome assembly, I am using BWA to align the reads to my assembled contigs. From the resulting SAM file, I am able to calculate the # of reads that map to each contig, but I would like to normalize this abundance measure by using the length of each alignment.
My naive question: is the length of each alignment equal to the length of the read that is being aligned, or does BWA sometimes align only part of a sequence query to the target?
• 4,378 views
•
link
1 answer
BWA is performing a local alignment. If you see an 'S' in the CIGAR string of the resulting SAM file (e.g 40M36S), that 3' soft clipped end is not part of the alignment.
• 0 views
•
link
Log in to answer this question.
What sequencing platform are you using? Your read lengths vary that much?
These are Illumina short reads. The variation in read length occurs because we used an adaptive algorithm to trim the reads based on quality score prior to assembly.