Bio::D...nstants(3pm)
π Bio::DB::Sam::Constants β the group chat, but make it SAM/BAM π
okay so bestie, welcome to Bio::DB::Sam::Constants(3pm), coming at you from the User Contributed Perl Documentation section of the manual. This is the little stash of constants you use with SAM/BAM, and honestly? It's giving "small module, big main character energy." πΈ
β¨ NAME β¨
Bio::DB::Sam::Constants β literally just constants for use with SAM/BAM. That's the whole job. She's a simple queen. π
π SYNOPSIS π
use Bio::DB::Sam::Constants;
my $pad_flag = BAM_CPAD;
See? Pull the module in, grab a constant, go live your life. No cap. π¦
π DESCRIPTION π
This module exports a bunch of constants for use with the SAM/BAM module. For what they actually mean β the interpretation, the lore, the whole backstory β go read the SAM documentation, because that's where the real answers live. π
𧬠Cigar operations π§¬
Here's the full lineup of cigar-operation constants. Every single one, no skipping, we don't gatekeep here:
BAM_CIGAR_SHIFTBAM_CIGAR_MASKBAM_CMATCHBAM_CINSBAM_CDELBAM_CREF_SKIPBAM_CSOFT_CLIPBAM_CHARD_CLIPBAM_CPAD
Slay. That's the set. β¨
π© FLAGS π©
A hashref that maps flag values to human-readable names. So when you've got a cryptic little number and you want to know what it feels, you look it up here. For example:
FLAGS->{0x0008} == 'M_UNMAPPED'
Look at her. Number in, name out. Iconic behaviour tbh. π
π RFLAGS π
The reverse of FLAGS β so instead of number β‘οΈ name, it's name β‘οΈ number. The page presents it like this, bestie, and we are copying it exactly as written:
FLAGS->{M_UNMAPPED} == 0x0008
(yes, it literally says FLAGS in that snippet in the source. Not me editing anything, I am a faithful narrator. π)
π SEE ALSO π
Go check out her friends, they're all icons too:
Bio::PerlBio::DB::SamBio::DB::Bam::Alignment
π AUTHOR π
Lincoln Stein <lincoln.stein@oicr.on.ca>. <lincoln.stein@bmail.com>
Copyright (c) 2009-2015 Ontario Institute for Cancer Research.
This package and its accompanying libraries are free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0, the Apache 2.0 License, or the GNU General Public License (version 1 or higher). Refer to LICENSE for the full license text. π«Ά
Fr fr, that's the actual license situation β three options, pick your fighter, and read LICENSE if you want the whole thing spelled out.
And that's the page!! This was Bio::D...nstants(3pm) from perl v5.42.3, dated 2026-08-19. Thank you for coming to my TED talk, mwah, love you, bye!! πβ¨ππ¦πΈπ
π
π¦ where this page comes from
- ubuntu stonking: libbio-samtools-perl 1.43-5build2 Β· GPL-1.0-or-later OR Artistic-2.0 OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms