![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
BWA-MEM and X0/X1/etc flags | mturchin20 | Bioinformatics | 5 | 07-15-2015 07:54 AM |
Odd bwa-mem alignment | myronpeto | Bioinformatics | 16 | 03-12-2015 12:40 PM |
bwa mem segfault; bwa bwasw breaks MarkDuplicates | ElenaN | Bioinformatics | 2 | 06-30-2013 11:23 PM |
SAM spec / BWA-MEM | mozack | Bioinformatics | 1 | 06-19-2013 01:16 PM |
bwa mem -R option | dakin | Bioinformatics | 2 | 05-02-2013 08:42 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Greater Boston Area Join Date: May 2013
Posts: 8
|
![]()
I am using BWA MEM to map 250 bp MiSeq PE reads. I am doing targeted genomic sequencing, enriching the library for specific transgenic sequences. I make a reference sequence, map all of the reads to that reference (using the default parameters). What I get are many improperly mapped reads. Some of the reads that map have 20 - 50 mismatches between the read and the reference, but it maps them none-the-less. There are similar sequences contaminating the sample apparently, but I don't want these spurious mappings. How can I increase the stringency of the mapping, so I don't get all of these imporperly mapped reads? I have more than enough coverage to throw out any bad mappings and still have tons of coverage.
Thanks! CHObot P.S. I am looking for chimeric reads at the ends of the mappings to determine transgenic insertion sites. Is BWA MEM the best algorithm for this? It seems to work, albeit with a lot of manual examination of chimeric reads. |
![]() |
![]() |
![]() |
#2 |
I like code
Location: San Diego, CA, USA Join Date: Sep 2009
Posts: 438
|
![]()
you should be able to threshold the alignments by the MAPQ value. I'm not sure of the specific cutoff but let's say 20.
Code:
samtools view -bq 20 alignments.bam > filtered.bam
__________________
/* Shawn Driscoll, Gene Expression Laboratory, Pfaff Salk Institute for Biological Studies, La Jolla, CA, USA */ |
![]() |
![]() |
![]() |
#3 |
Senior Member
Location: NikoNarita.jp Join Date: Jul 2013
Posts: 142
|
![]()
can some post general commands to align fq PE with hg19
where should I start with ? |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: uk Join Date: Mar 2009
Posts: 667
|
![]()
the bwa manual webpage gives examples of the various bwa commands:
http://bio-bwa.sourceforge.net/bwa.shtml |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Location: NikoNarita.jp Join Date: Jul 2013
Posts: 142
|
![]()
I used bwa aln -t 4 -f testsample.sai /GATKbundle/ucsc.hg19.fasta /testsample.fastq
It was finished within 2 minutes and generated testsample.sai. Is this the alignment file ? I used bowtie and it took 4-5 hrs but bwa is so fast ??? something is wrong ???? ![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 |
Senior Member
Location: uk Join Date: Mar 2009
Posts: 667
|
![]()
bwa aln is part of a 2-step process.
the first step generates the .sai file. the second step is bwa samse/sampe, depending on whether you have single end or paired-end reads, and should give you a .sam file. the manual will give you the details. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|