Flagstat results: 0 reads
0
0
Entering edit mode
7.8 years ago
rmande • 0

Hi,

I ran samtools flagstat on a bam file I aligned from paired end fastqs using bwa-mem and this is the result I got.

141275694 + 0 in total (QC-passed reads + QC-failed reads)
6641948 + 0 secondary
0 + 0 supplementary
0 + 0 duplicates
1136170314 + 0 mapped (99.55% : N/A)
0 + 0 paired in sequencing
0 + 0 read1
0 + 0 read2
0 + 0 properly paired (N/A : N/A)
0 + 0 with itself and mate mapped
0 + 0 singletons (N/A : N/A)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)

I don't understand why > 99% of reads would be mapped correctly but 0 would be paired in sequencing, properly paired, etc. Could someone point me as to what went wrong with the alignment?

Thank you.

alignment genome next-gen • 2.4k views
ADD COMMENT
1
Entering edit mode

Presumably you didn't align them as paired-end, but rather multiple single-end files. samtools flagstat is just reporting what the aligner output, so the problem is either with the aligner or how you used it.

ADD REPLY
1
Entering edit mode

Have a look at, and maybe post, the header of the bam file which you can extract with samtools view -H myAln.bam. The line(s) starting with @PG should contain the command that was used to align the reads. This will tell you whether bwa was run in single or paired-end mode.

ADD REPLY
0
Entering edit mode

I just had this problem, did you supply the forward or reverse file twice?

ADD REPLY

Login before adding your answer.

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