![]() |
![]()
| ![]() |
![]()
NAMEsamtools coverage - produces a histogram or table of coverage per chromosome SYNOPSISsamtools coverage [options] [in1.sam|in1.bam|in1.cram [in2.sam|in2.bam|in2.cram] [...]] DESCRIPTIONComputes the coverage at each position or region and draws an ASCII-art histogram or tabulated text. Coverage is defined as the percentage of positions within each bin with at least one base aligned against it. The tabulated form uses the following headings.
OPTIONSInput options:
Output options:
EXAMPLESRunning coverage in tabular mode, on a specific region, with tabs shown as spaces for clarity in this man page.
samtools coverage -r chr1:1M-12M input.bam #rname startpos endpos numreads covbases coverage meandepth meanbaseq meanmapq chr1 1000000 12000000 528695 1069995 9.72723 3.50281 34.4 55.8 An example of the histogram output is below, with ASCII block characters replaced by "#" for rendering in this man page.
samtools coverage -A -w 32 -r chr1:1M-12M input.bam chr1 (249.25Mbp) > 24.19% | . | Number of reads: 528695 > 21.50% |:: | (132000 filtered) > 18.81% |:: | Covered bases: 1.07Mbp > 16.12% |:: : | Percent covered: 9.727% > 13.44% |:: : . :: : :| Mean coverage: 3.5x > 10.75% |:: :: : :: : : :| Mean baseQ: 34.4 > 8.06% |::::: : :: : : : :| Mean mapQ: 55.8 > 5.37% |::::: :: ::: : ::::: :| > 2.69% |::::: ::: ::: ::: :::::::::| Histo bin width: 343.8Kbp > 0.00% |:::::::::::. :::::::::::::::::::| Histo max bin: 26.873%
samtools coverage -m -r 'chr1:24500000-25600000' --plot-depth -w 32 -A input.bam chr1 (249.25Mbp) > 38.8 | .::::::: | Number of reads: 283218 > 34.5 | :::::::: | (3327 filtered) > 30.2 | :::::::::. | Covered bases: 1.10Mbp > 25.9 |.:::::.:.::::::::::::::::::::::.| Percent covered: 99.83% > 21.6 |::::::::::::::::::::::::::::::::| Mean coverage: 33.2x > 17.2 |::::::::::::::::::::::::::::::::| Mean baseQ: 37.2 > 12.9 |::::::::::::::::::::::::::::::::| Mean mapQ: 59.3 > 8.6 |::::::::::::::::::::::::::::::::| > 4.3 |::::::::::::::::::::::::::::::::| Histo bin width: 34.5Kbp > 0.0 |::::::::::::::::::::::::::::::::| Histo max cov: 43.117 AUTHORWritten by Florian P Breitwieser. SEE ALSOsamtools(1), samtools-depth(1), Samtools website: <http://www.htslib.org/>
|