SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bowtie Illumina paired end reads alignment empyrean Bioinformatics 3 09-20-2011 09:51 AM
How to map SOLiD paired end reads by Bfast beliefbio Bioinformatics 1 12-29-2010 12:55 AM
Limiting Illumina Paired-End Reads cryptic_star Bioinformatics 1 06-21-2010 05:30 AM
BWA alignment for paired end reads AvinashP Genomic Resequencing 2 06-08-2010 03:11 AM
Problems with bwa on Q2 trimmed paired end reads curious_mapper Bioinformatics 2 05-06-2010 02:44 PM

Reply
 
Thread Tools
Old 07-27-2011, 06:19 AM   #1
mikeworth
Junior Member
 
Location: albany ny

Join Date: Jul 2011
Posts: 8
Default using bwa to map illumina paired end reads

hello,

ugh... this is such a stupid question, i'm embarrassed to ask it, but i must. i can't find a definition of the workflow to use bwa to map paired end reads anywhere (am i simply missing it?). i'm starting with fastq seq files and i know how to index the genome. compiling info from the snooping i've done - this is what i believe the workflow to be:

$ bwa aln genome.index.fa s_4_1_sequence.fastq > s_4_1.sai
$ bwa aln genome.index.fa s_4_2_sequence.fastq > s_4_2.sai

$ bwa sampe genome.index.fa s_4_1.sai s_4_2.sai s_4_1_sequence.fastq s_4_2_sequence.fastq > s_4.sam

then, using samtools and s_4.sam i can create .bam and .bam.bai files.

is this correct? i think i understand the -b1 and -b2 options, but those are only used when starting w/ .bam files, which i'm not.

what is a little confusing to me is the two separate calls to 'bwa aln'. i suppose it's wildly wrong to (unix) cat the two s_4_[12]_sequence.fastq files together and make one call to 'bwa aln'?

thanks for your help,
mike
mikeworth is offline   Reply With Quote
Old 07-27-2011, 08:09 AM   #2
swbarnes2
Senior Member
 
Location: San Diego

Join Date: May 2008
Posts: 912
Default

I don't know that the sam file will reflect that you have paired reads if you cat the two fastqs together. It probably won't. If you carry out the default commands as you have written them, the software will figure out that the read are paired, and will set the flags, and ISIZE, etc correctly.
swbarnes2 is offline   Reply With Quote
Old 07-27-2011, 09:50 AM   #3
mikeworth
Junior Member
 
Location: albany ny

Join Date: Jul 2011
Posts: 8
Default

thanks for the help.
mikeworth is offline   Reply With Quote
Old 07-28-2011, 10:04 AM   #4
mikeworth
Junior Member
 
Location: albany ny

Join Date: Jul 2011
Posts: 8
Default

thanks. i've run bwa, as described above, w/ the paired end data and i believe everything went properly.

thanks again
mike
mikeworth is offline   Reply With Quote
Old 08-02-2011, 02:05 PM   #5
cdry7ue
Member
 
Location: Austin

Join Date: Feb 2011
Posts: 20
Default

Mikeworth,
Did you remove the sequencing adaptors or are you relying on BWA to do the soft clipping at the ends of the reads?
cdry7ue is offline   Reply With Quote
Old 08-03-2011, 04:25 AM   #6
mikeworth
Junior Member
 
Location: albany ny

Join Date: Jul 2011
Posts: 8
Default

i removed the adapters (and more) from the reads. our data was barcoded and i separated the reads via a perl script based on the barcodes and removed everything up to and including the barcodes.

i'm curious why you're asking?

thanks,
mike
mikeworth is offline   Reply With Quote
Old 08-13-2013, 06:02 PM   #7
jp.
Senior Member
 
Location: NikoNarita.jp

Join Date: Jul 2013
Posts: 142
Question

May please I get the commands to remove the seq-adaptor prior to bwa for PE Illumina ?
jp. is offline   Reply With Quote
Reply

Tags
bwa paired end

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 11:47 AM.


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