Question: BWA option about the insert size
0
gravatar for xieduo9394
2.9 years ago by
xieduo93940
xieduo93940 wrote:

Hi,

I am using BWA to do alignment and estimate the insert size of my data and the excepted insert size length is 2000bp,so I use the "sampe" command to do alignment,but I found "-a" option is available,and the description of this option is:

Maximum insert size for a read pair to be considered being mapped properly. Since 0.4.5, this option is only used when there are not enough good alignment to infer the distribution of insert sizes. [500]

I use this option and set it to "-a 2000", but I don't know clearly what impact will this option have on my result?Should I use this option?

Thanks.

bwa pair-end alignment genome • 1.8k views
ADD COMMENTlink written 2.9 years ago by xieduo93940

If this is standard illumina sequencing it is unlikely that your inserts are 2kb in size. If you have a reference available you can easily figure out the insert size using bbmap.sh from BBMap suite. bbmap.sh ref=ref.fasta in1=r1.fq in2=r2.fq ihist=ihist.txt

ADD REPLYlink written 2.9 years ago by genomax80k

Without reference, and much faster, is BBMerge (what a surprise that it's part of BBMap!), with a little command line addition to catch output in a text file and allow it to be output to screen also:

bbmerge.sh in1=r1.fq in2=r2.fq out=merged.fq 2>&1 | tee insert.txt
ADD REPLYlink written 2.8 years ago by bruce.moran720

This will only work when there are reads (I am not sure how many need to) that overlap.

ADD REPLYlink written 2.8 years ago by genomax80k
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 2.3.0
Traffic: 1875 users visited in the last hour