How to patch BWA
Ok, I figured it out! Here is how I did it...
go into the SVN checkout of bio-bwa/trunk/bwa, then run this:
then:
then test it:
the -i, -m, -l and -p options are the ticket!
Ok, I figured it out! Here is how I did it...
go into the SVN checkout of bio-bwa/trunk/bwa, then run this:
Code:
patch bwape.c BWA_read_group_patch.diff
Code:
make
Code:
./bwa sampe
Usage: bwa sampe [options] <prefix> <in1.sai> <in2.sai> <in1.fq> <in2.fq>
Options: -a INT maximum insert size [500]
-o INT maximum occurrences for one end [100000]
-n INT maximum hits to output for paired reads [3]
-N INT maximum hits to output for discordant pairs [10]
-c FLOAT prior of chimeric rate (lower bound) [1.0e-05]
-f FILE sam file to output results to [stdout]
-P preload index into memory (for base-space reads only)
-s disable Smith-Waterman for the unmapped mate
-A disable insert size estimate (force -s)
-i read group identifier (ID)
-m read group sample (SM), required if ID is given
-l read group library (LB)
-p read group platform (PL)
Notes: 1. For SOLiD reads, <in1.fq> corresponds R3 reads and <in2.fq> to F3.
2. For reads shorter than 30bp, applying a smaller -o is recommended to
to get a sensible speed at the cost of pairing accuracy.

Comment