SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
BWA-MEM: output mapped reads larger than input reads Kennels Bioinformatics 9 09-05-2013 06:27 PM
why the properly paired results from bwa mem is an odd number Pengfei Liu Bioinformatics 2 08-24-2013 07:26 PM
bam to paired AND unpaired fastq reads Kennels Bioinformatics 4 06-18-2013 11:55 PM
Unpaired reads in paired data Nick General 0 06-22-2011 08:19 AM

Reply
 
Thread Tools
Old 09-09-2013, 10:26 AM   #1
mchaisso
Member
 
Location: Seattle, WA

Join Date: Apr 2008
Posts: 84
Default bwa mem with paired/unpaired reads

I have a quick question for all bwa mem users (or author, if you have time Heng).

I have some reads from a simulated exome study that have been modified to have a 50/50 allele balance with one allele having a 3 bp deletion at a particular locus. The reads that cover this locus are paired, and so I have a set of reads:
reads.f.fq, and reads.r.fq

If I align using the paired reads:
bwa mem ref.fa reads.f.fq reads.r.fq ...

and process the results with samtools mpileup, no variant is found.

However, if I concatenate the read files together, and align without pairing:
cat reads.f.fq reads.r.fq > reads.fq
bwa mem ref.fa reads.fq ...

the variant is discovered as expected.

Just in case I had the orientation of the reverse reads incorrect, I tried the first command with the reverse complement of the read.r.fq file, without success.

Is there any bwa mem output I should look for that would indicate improper mate-pairing or other invalid input?

thanks,
-mark
mchaisso is offline   Reply With Quote
Old 09-09-2013, 11:08 AM   #2
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

Just look at the output BAM in IGV.
dpryan is offline   Reply With Quote
Old 09-09-2013, 11:25 AM   #3
mchaisso
Member
 
Location: Seattle, WA

Join Date: Apr 2008
Posts: 84
Default

Quote:
Originally Posted by dpryan View Post
Just look at the output BAM in IGV.
Good comment - it is often good to review the sanity of the alignments in a viewer. I neglected to mention that the indels appear in both the paired and unpaired alignments in IGV, as well as bwa aln based alignments. Samtools mpileup detects the indel with the bwa aln based alignments.

-mark
mchaisso is offline   Reply With Quote
Old 09-09-2013, 11:43 AM   #4
dpryan
Devon Ryan
 
Location: Freiburg, Germany

Join Date: Jul 2011
Posts: 3,480
Default

One thing to keep in mind when you treat them as unpaired, is that your coverage doubles. That could make the difference.
dpryan is offline   Reply With Quote
Reply

Tags
bwa mem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 03:08 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO