Bio::D...nstants(3pm)
π LICENSE π
okay bestie, before we get into the fun stuff, legal said I have to tell you this and honestly? slay of them.
Copyright [2015-2018] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
no cap, that's the whole thing. read it, it's giving "please just use it responsibly" π
β¨ NAME β¨
Bio::DB::HTS::Constants β Constants for use with SAM/BAM
(and yeah, this page shows up as Bio::D...nstants(3pm) in the header because the terminal is dramatic and truncates things, but the real name is the whole thing, iykyk π)
π¦ SYNOPSIS π¦
use Bio::DB::HTS::Constants;
my $pad_flag = BAM_CPAD;
that's it. that's the vibe. import the module, grab a constant, go be a main character πΈ
π DESCRIPTION π
so this module exports several constants for use with the SAM/BAM module. that's literally its whole job and it does it flawlessly, no notes.
See the SAM documentation for their interpretation. β like, I can hand you the constants but the meaning? that's between you and the SAM spec, bestie π«Ά
π Cigar operations π
the whole cigar squad, in order, no one left behind:
BAM_CIGAR_SHIFTBAM_CIGAR_MASKBAM_CMATCHBAM_CINSBAM_CDELBAM_CREF_SKIPBAM_CSOFT_CLIPBAM_CHARD_CLIPBAM_CPAD
nine constants, all iconic, all accounted for π
π FLAGS π
a hashref that maps flag values to human-readable names. for example:
FLAGS->{0x0008} == 'M_UNMAPPED'
the way that 0x0008 just becomes a whole readable string?? obsessed. πβ¨
π RFLAGS π
the reverse of FLAGS β same energy, opposite direction:
RFLAGS->{M_UNMAPPED} == 0x0008
so you can go name β number instead of number β name. both directions, because the module is a generous queen π
π AUTHOR π
Rishi Nag <rishi@ebi.ac.uk<gt>>
(yes, the <gt> is in there exactly like that. I don't make the rules, I just transcribe them fr fr π)
π₯ SEE ALSO π₯
Bio::PerlBio::DB::HTSBio::DB::Bam::Alignment
go read those next, bestie, the lore runs deep β
and that's the whole page!! brought to you by perl v5.40.0, dated 2024-10-31, and the one and only Bio::D...nstants(3pm) β stay constant, stay iconic, periodt ππ§π
π¦ where this page comes from
- debian trixie: libbio-db-hts-perl 3.01-5 Β· Apache-2.0
- ubuntu questing: libbio-db-hts-perl 3.01-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms