Calculate sequencing depth and coverage across genomic positions from SAM, BAM, or CRAM files.
samtools depth
samtools depth calculates the read depth
at each genomic position from a SAM, BAM, or CRAM file.
Read depth represents the number of sequencing reads
aligned to a particular location in the reference genome.
It is commonly used to evaluate sequencing coverage, identify low-coverage regions, and assess overall data quality.
samtools depth [options] input.bam
The input file can be in:
The output contains three columns:
| Column | Description |
|---|---|
| 1 | Reference Sequence Name |
| 2 | Position |
| 3 | Read Depth |
chr1 100 30
chr1 101 31
chr1 102 32
chr1 103 29
...
This indicates: