BWA option for FR sens only
0
0
Entering edit mode
8.0 years ago
Picasa ▴ 650

Hi,

I am looking to bwa mem to map my reads.

However, I would like to keep only the real Forward-reverse paired end and to discard any weird sens (FF, RR, RF).

Is there any option in bwa to do this ?

Thanks

bwa mem • 2.2k views
ADD COMMENT
1
Entering edit mode

maybe align them first then extract them using samtools view -hf 0x2 alignments.bam

ADD REPLY
0
Entering edit mode

Filtering by flag is a good idea. In case you need the flag concept explained, check the SAM format specifications and also this website, which can decode a flag:

Bitwise Flag explained

ADD REPLY
0
Entering edit mode

You could also pipe bwa directly into samtools view, avoiding intermediate files.

ADD REPLY

Login before adding your answer.

Traffic: 1870 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