samtools flagstat
samtools flagstat is a command-line utility that
provides a quick summary of alignment statistics from SAM, BAM,
or CRAM files. It counts reads belonging to different FLAG
categories and reports important metrics such as mapped reads,
properly paired reads, duplicates, and supplementary alignments.
100000 + 0 in total 95000 + 0 mapped 92000 + 0 properly paired 3000 + 0 duplicates 500 + 0 singletons
Official Samtools Manual Pages: Samtools Flagstat Manual
If you use samtools flagstat in your work,
please cite the following reference:
Li, H., Handsaker, B., Wysoker, A., Fennell, T., Ruan, J., Homer, N., et al. (2009). The Sequence Alignment/Map (SAM) format and SAMtools. Bioinformatics, 25(16), 2078–2079. doi:10.1093/bioinformatics/btp352