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,...,NAME representing 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 🌟


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