samtools-flags(1)
π samtools-flags(1) β the manual page, but make it make sense
okay bestie, welcome to the samtools-flags(1) page β yes that's the real manual name, yes it's giving reference-doc energy, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
samtools flags β the little translator that converts between textual and numeric flag representation. that's it. that's the whole job. and it ate π
πΈ SYNOPSIS πΈ
samtools flags FLAGS...
π¦ DESCRIPTION π¦
okay so real talk: this command converts between textual and numeric flag representation. same info, two outfits β one's a number, one's a name, and it slays at both π
each FLAGS argument can be either:
- an integer (in decimal, hexadecimal, or octal, so go off with whatever base you vibe with) representing a combination of the numeric flag values listed below, or
- a comma-separated string
NAME,...,NAMErepresenting a combination of the flag names listed below.
like, either flavor works. no cap. π§
FLAGS:
0x1βPAIREDβ paired-end (or multiple-segment) sequencing technology π0x2βPROPER_PAIRβ each segment properly aligned according to the aligner β¨0x4βUNMAPβ segment unmapped π0x8βMUNMAPβ next segment in the template unmapped π0x10βREVERSEβ SEQ is reverse complemented π₯0x20βMREVERSEβ SEQ of the next segment in the template is reverse complemented π₯0x40βREAD1β the first segment in the template π0x80βREAD2β the last segment in the template π0x100βSECONDARYβ secondary alignment β0x200βQCFAILβ not passing quality controls π0x400βDUPβ PCR or optical duplicate π0x800βSUPPLEMENTARYβ supplementary alignment π
those are exactly the values, hex and all β don't come for me, I copied them character for character π
π AUTHOR π
written by Petr Danacek from the Sanger Institute. king behavior, honestly π
π SEE ALSO π
samtools(1)- Samtools website: <http://www.htslib.org/>
and that's the page!! π¦ this was samtools-1.24, dated 9 July 2026 β go forth and decode your flags, bestie, iykyk π β¨
π¦ where this page comes from
- epel 10: samtools 1.24-2.el10_3 Β· MIT
- nixpkgs unstable: samtools 1.24
- Copyright (C) 2008-2011, 2013-2018 Genome Research Ltd
- copyright (C) 2010, 2011 Broad Institute
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms