Question: Extracting Reads Mapped From Bwa Mapping
0
gravatar for Austin Paul
7.2 years ago by
Austin Paul140
Austin Paul140 wrote:
Hello, I recently figured out how to filter the output bwa SAM file for flag type in order to determine the number of reads that were successfully mapped. My question is, I previously thought I could generate a pileup, then sum the number of counts for each base of the reference, and divide this number by the length of the reads (not exact if some reads are hanging over the edge of the reference sequence, but should be close?). But when I compare these methods, I get drastically different results. What am I missing? Thanks, Austin
bwa alignment • 1.4k views
ADD COMMENTlink modified 7.2 years ago • written 7.2 years ago by Austin Paul140
0
gravatar for Austin Paul
7.2 years ago by
Austin Paul140
Austin Paul140 wrote:
Just to emphasize the point, the difference between the two methods is an order of magnitude (for a particular example, filtering for flag type gives around 60% of reads mapping, but estimating mapped reads from pileup gave ~5% of reads mapped). Thanks, Austin
ADD COMMENTlink written 7.2 years ago by Austin Paul140
Hi Austin, As you mention, the difference could be related to how much of the query sequence is actually aligned and passes summary filters. It all depends on the query data, reference genome, and the parameters used for alignment and summary tools. If you do think that a problem exists with a SAMTools utility itself, or have a detailed question about the exact algorithm used, you may want to send an email to the tool authors and see what they think. http://samtools.sourceforge.net/ Thanks! Jen Galaxy team -- Jennifer Jackson http://usegalaxy.org http://galaxyproject.org/Support
ADD REPLYlink written 7.2 years ago by Jennifer Hillman Jackson25k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 171 users visited in the last hour