samtools_flagstat

samtools_flagstat computes summary alignment statistics from Binary Alignment/Map (BAM) files to assess read mapping and alignment quality for short and long reads (up to 128 Mbp) produced by various sequencing platforms.


Key Features:

  • Efficient Statistics Calculation: Reports flag-based counts such as total reads, mapped reads, properly paired reads, duplicates, and other alignment metrics from BAM files.
  • Integration with SAM format and SAMtools: Leverages the Sequence Alignment/Map (SAM) format and SAMtools functionality for compact storage and efficient random access when computing statistics.
  • Support for High-Throughput Sequencing Data: Handles large datasets typical of next-generation sequencing and produces summary outputs used for data quality assessment.

Scientific Applications:

  • Quality Control: Assesses sequencing run quality via mapping rates, duplication levels, and pairing statistics.
  • Data Validation: Validates that aligned sequencing data meet expected alignment standards prior to downstream analysis.
  • Benchmarking and Reporting: Provides standardized alignment metrics for comparing sequencing technologies or protocols and for inclusion in scientific reports.

Methodology:

Parses BAM files, extracts alignment information and flags, and calculates flag-based metrics (total reads, mapped reads, properly paired, duplicates, etc.).

Topics

Collections

Details

Maturity:
Mature
Tool Type:
web application
Operating Systems:
Linux, Windows, Mac
Programming Languages:
C
Added:
12/19/2016
Last Updated:
11/25/2024

Operations

Data Inputs & Outputs

Publications

Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R. The Sequence Alignment/Map format and SAMtools. Bioinformatics. 2009;25(16):2078-2079. doi:10.1093/bioinformatics/btp352. PMID:19505943. PMCID:PMC2723002.

Afgan E, Baker D, van den Beek M, Blankenberg D, Bouvier D, Čech M, Chilton J, Clements D, Coraor N, Eberhard C, Grüning B, Guerler A, Hillman-Jackson J, Von Kuster G, Rasche E, Soranzo N, Turaga N, Taylor J, Nekrutenko A, Goecks J. The Galaxy platform for accessible, reproducible and collaborative biomedical analyses: 2016 update. Nucleic Acids Research. 2016;44(W1):W3-W10. doi:10.1093/nar/gkw343. PMID:27137889. PMCID:PMC4987906.

Mareuil F, Doppelt-Azeroual O, Ménager H. A public Galaxy platform at Pasteur used as an execution engine for web services. Unknown Journal. 2017. doi:10.7490/f1000research.1114334.1.

Documentation

Links