SAMBAMBA-FLAGSTAT(1)
π sambamba-flagstat(1) β the flag stats page, bestie edition
okay so this is the manual page for sambamba-flagstat β it's a little tool that pulls stats out of a BAM file's read flags. yes, that sambamba. it's giving "quietly carrying the whole pipeline" energy. π§
β¨ NAME β¨
sambamba-flagstat β getting flag statistics from a BAM file π
πΈ SYNOPSIS πΈ
sambamba flagstat OPTIONS <input.bam>
π¦ DESCRIPTION π¦
So what does it actually do? It outputs some statistics drawn from read flags. that's the whole vibe. π
The first line contains the numbers of QC-passed and QC-failed reads. After that come pairs of numbers β the former for QC-passed reads, the latter for QC-failed ones. no cap, every line after the first is a little duo like that:
- duplicates
- mapped reads (plus percentage relative to the numbers from the first line)
- reads with
is_pairedflag set - paired reads which are first mates
- paired reads which are second mates
- paired reads with
proper_pairflag set (plus percentage relative to the numbers of QC-passed/failed reads withis_pairedflag set) - paired reads where both mates are mapped
- paired reads where read itself is unmapped but mate is mapped
- paired reads where mate is mapped to a different chromosome
- the same as previous but mapping quality is not less than 5
π OPTIONS π
-t,--nthreads=NTHREADSβ specify number of threads to use for BAM decompression. yes bestie, more threads = less waiting around. π-p,--show-progressβ show progressbar inSTDERR. it's giving "I want to watch the little bar move". π
heads up: those two options go inOPTIONS, and the input BAM is the<input.bam>positional. don't forget it or the vibe check fails. π
k bye, this page is from August 2014 and it's the sambamba-flagstat(1) manual β mwah, love that for us. π«Άβ¨
π¦ where this page comes from
- debian bookworm: sambamba 1.0+dfsg-1 Β· GPL-2.0-or-later
- debian trixie: sambamba 1.0.1+dfsg-2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: sambamba 0.8.2+dfsg-2 Β· GPL-2.0-or-later
- ubuntu noble: sambamba 1.0.1+dfsg-1build3 Β· GPL-2.0-or-later
- ubuntu questing: sambamba 1.0.1+dfsg-2build1
- ubuntu resolute: sambamba 1.0.1+dfsg-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: sambamba 1.0.1+dfsg-3ubuntu3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms