How to extract unique mapped results from BWA results?
1
0
Entering edit mode
10.5 years ago
zhwjmch ▴ 170

How to extract unique mapped results from BWA results?

I am working with 454 data, and I chose BWA mem as the mapping tool.

Thanks in advance.

alignment • 4.2k views
ADD COMMENT
1
Entering edit mode
10.5 years ago
Paul ★ 1.5k

Hi man,

did you try samtools + grep funciton in terminal?

samtools view your_bwa.bam | grep "XT:A:U" > my_unique.sam

Best,

Paul.

ADD COMMENT
0
Entering edit mode

This produces empty file in my case, whereas if I try this on the equivalent sam file:

grep -E "@|NM:" my.sam | grep -v "XS:" > my.sam.unique

seems to work. However my sam is produced by bowtie2 (if that's the cause of the confusion)

ADD REPLY

Login before adding your answer.

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