How to compare alignments(SAM/BAM files) aligned to different references?
0
0
Entering edit mode
3.3 years ago
askif4 ▴ 20

I have two BAM files which are the output of alignments from two different references.

I want to compare two BAM files with some criteria in order to check the difference between the two references.

What is the appropriate way to compare the two alignments(references)?

(Tool suggestions, etc..)

sam WGS NGS bam alignment • 1.4k views
ADD COMMENT
1
Entering edit mode

Just to clarify, you aligned the same set of reads to two different reference genomes?

What comparisons do you want to make? What do you want to know about the references? Maybe something like number of reads mapped? Mapping quality?

ADD REPLY
0
Entering edit mode

same set of reads to two different reference genomes -> yes

number of reads mapped? Mapping quality? -> yes plus unmapped reads, depth distribution, or any other known parameters for assessing BAM files.

ADD REPLY
0
Entering edit mode

A good place to start is the flagstat tool from samtools You can access other data with bash/python/perl. You'll need to know what you are looking for

ADD REPLY

Login before adding your answer.

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