Using Bwa Sampe Using Illumna Pair End Reads
1
0
Entering edit mode
12.7 years ago
Juliofdiaz ▴ 140

I am trying to map illumina paired reads using BWA and I am having some trouble understanding the workflow. I have two fastq files from the illumina run (read1.fq & read2.fq) and my reference genome in a fasta file(ref.fa). I have first indexed the reference file using:

bwa index ref.fa

and i got the following files

ref.fa.amb
ref.fa.ann
ref.fa.bwt
ref.fa.pac
ref.fa.rbwt
ref.fa.rpac
ref.fa.rsa
ref.fa.sa

Now I want to map my illumina reads,and I think the tool I'm looking for is bwa sampe. The help for sampe gives this format.

 bwa sampe [options] <prefix> <in1.sai> <in2.sai> <in1.fq> <in2.fq>

I dont quite understand where I'm supposed to get the .sai files from or what those files are. Thanks for any pointers.

bwa illumina paired • 7.1k views
ADD COMMENT
4
Entering edit mode
12.7 years ago

The *.sai files are generated by first using:

bwa aln
ADD COMMENT
1
Entering edit mode

Yes you first need to aln both reads independently. That will generate the sai files you need to create the SAM file.

ADD REPLY
0
Entering edit mode

So first I need to align each read to the ref separately

ADD REPLY

Login before adding your answer.

Traffic: 2563 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6