Utilities / Count alignments in BAM

Description

Given a BAM file, this tool counts how many alignments it contains, taking the mapping quality into account if needed.

Parameters

Details

By default all alignments are counted, but users can choose to count only alignments which have the specified mapping quality or higher. Note that a read can have several alignments, so this tool doesn't give you the number of reads mapped.

Output

Output is a text file containing the number of alignments.

References

This tool is based on the SAMtools package. Please cite the article The Sequence alignment/map (SAM) format and SAMtools by Li H., Handsaker B., Wysoker A., Fennell T., Ruan J., Homer N., Marth G., Abecasis G., Durbin R. and 1000 Genome Project Data Processing Subgroup (2009) Bioinformatics, 25, 2078-9. [PMID: 19505943].