Detection Of Alignment Algorithm Based On Bam Files
1
0
Entering edit mode
10.7 years ago
sarahmanderni ▴ 120

Hi,

I wanted to know if it is possible to find which mapping algorithm (TopHat, BWA, ...) has been used to map the reads from the BAM files?

Thanks.

alignment bam • 3.6k views
ADD COMMENT
3
Entering edit mode
10.7 years ago
lomereiter ▴ 500

Usually aligners put an entry in the header, which you can see using samtools view -H, e.g.

$ samtools view -H ~/bam/NA12043.chrom20.LS454.ssaha2.CEU.low_coverage.20101123.bam.v1 | grep @PG

<...2 GATK-related @PG records...>

@PG ID:ssaha2 VN:2.5 <-------- tells that the aligner was ssaha2

ADD COMMENT
0
Entering edit mode

Header of some BAM files do not include the PG tag. For instance, using samtools view -H file.bam, the output includes lines only with @SN and @VN tags. What should I do with this file?

ADD REPLY
2
Entering edit mode

In this case, the last resort is looking at the tags that are seen in the reads. Meaning of tags starting with X/Y/Z is not fixed by standard, and different aligners use them in different ways. For instance, TopHat stores strand in XS tag while BWA uses that tag to store suboptimal alignment score - so for TopHat it's XS:A:+/-, while for BWA XS:i:<an integer>. I haven't seen any comprehensive table about such differences but you can read documentation for each possible aligner and check if the definitions for these tags make sense.

ADD REPLY

Login before adding your answer.

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