I did alignment of R1 and R2 fastq files with reference genome using bwa mem and got bam file.
Now, I want to check whether the alignment is done correctly and alignment percentage,coverage etc.
I run following command:
Please let me know which parameters are more important to assess the quality of alignment before proceeding ahead.
Also, is there any other tool or parameter I need to compute to assess quality of alignment?
samtools flagstat gives you a shorter and more free form, text-oriented report
samtools stats is a newer command that produces more information (including that of samtools flagstat) but in the end, a lot of plots are about the reads (like a FASTQC report rather than the alignments)
But to be honest, the best way to evaluate a BAM file is to visualize it in IGV, look at the mapping, their uniformity, the alignment orientations, hover over alignments and read off their characteristics.
What type of experiment is this?
Hi,
I used samtools Flagstat aln bam and got a log file having details about mapped reads etc.
samtools flagstat aln.bam > log.txt
Please have a look at the attached image. Can I proceed ahead? Is the quality of bam file good? Please suggest.
Hi,
I used samtools Flagstat to check bam quality and got a log file having details about mapped reads etc.
Please have a look below.
)
Can I proceed ahead? Is the quality of bam file good? Please suggest.
That looks fine to proceed.
Thanks Genomax.
I have to check 50 other BAMs like this. Which parameters should I majorly focus?
Thanks