SAM-STATS(1)
π SAM-STATS(1) π
okay bestie, welcome to sam-stats β that's sam-stats, section 1 of the User Commands manual, and she is the ea-utils girlie who produces digested statistics. yes literally. she chews up your alignment files and spits out stats that are, unlike your ex, easy to digest. π«Ά
β¨ NAME β¨
sam-stats β ea-utils: produce digested statistics πΈ
π SYNOPSIS π
sam-stats [options] [file1] [file2...filen]
π¦ DESCRIPTION π¦
Version: 1.38.681
She produces lots of easily digested statistics for the files you list. that's it, that's the job, and she ate. π
Options (default in parens):
-Dβ keep track of multiple alignments. yes bestie, all of them. π-O PREFIXβ output prefix enabling extended output (see below)-R FILβ coverage/RNA output (coverage, 3' bias, etc, implies-A) π-Aβ report all chr sigs, even if there are more than 1000-b INTβ number of reads to sample for per-base stats (1M)-S INTβ size of ascii-signature (30)-x FILβ file extension for handling multiple files (stats)-Mβ only overwrite if newer (requires-x, or multiple files)-Bβ input is bam, don't bother looking at magic π₯-zβ don't fail when zero entries in sam
π OUTPUT π
If one file is specified, then the output is to standard out. If multiple files are specified, or if the -x option is supplied, the output file is <filename>.<ext>. Default extension is stats.
π Complete Stats π
<STATS> : mean, max, stdev, median, Q1 (25 percentile), Q3
reads : # of entries in the sam file, might not be # reads
phred : phred scale used
bsize : # reads used for qual stats
mapped reads : number of aligned reads (unique probe id sequences)
mapped bases : total of the lengths of the aligned reads
forward : number of forward-aligned reads
reverse : number of reverse-aligned reads
snp rate : mismatched bases / total bases (snv rate)
ins rate : insert bases / total bases
del rate : deleted bases / total bases
pct mismatch : percent of reads that have mismatches
pct align : percent of reads that aligned
len <STATS> : read length stats, ignored if fixed-length
mapq <STATS> : stats for mapping qualities
insert <STATS> : stats for insert sizes
%<CHR> : percentage of mapped bases per chr, followed by a signature
β¨ Subsampled stats (1M reads max) β¨
base qual <STATS> : stats for base qualities
%A,%T,%C,%G : base percentages
π§ Meaning of the per-chromosome signature π§
A ascii-histogram of mapped reads by chromosome position. It is only output if the original SAM/BAM has a header. The values are the log2 of the # of mapped reads at each position + ascii '0'.
π Extended output mode π
Extended output mode produces a set of files:
.stats: primary output.fastx: fastx-toolkit compatible output.rcov: per-reference counts & coverage.xdist: mismatch distribution.ldist: length distribution (if applicable).mqdist: mapping quality distribution
not me emotionally attached to .ldist when it says "(if applicable)" π she's conditional, she's mysterious, she's iconic.
and that's the whole page, bestie!! this was sam-stats version 1.1.2, dropped July 2015 β go get those digested stats, you absolute main character πβ¨π
π¦ where this page comes from
- debian bookworm: ea-utils 1.1.2+dfsg-9+b2 Β· MIT
- debian trixie: ea-utils 1.1.2+dfsg-9+b3 Β· MIT
- ubuntu jammy: ea-utils 1.1.2+dfsg-9build1 Β· MIT
- ubuntu noble: ea-utils 1.1.2+dfsg-9build1 Β· MIT
- ubuntu questing: ea-utils 1.1.2+dfsg-9build2
- ubuntu resolute: ea-utils 1.1.2+dfsg-9build3 Β· MIT
- ubuntu stonking: ea-utils 1.1.2+dfsg-10 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms