Bio::D...Pileup(3pm)
π Bio::DB::Bam::Pileup β the manual page, but make it cute
okay bestie, so this is Bio::D...Pileup(3pm) from the User Contributed Perl Documentation, and it's literally the manual for Bio::DB::Bam::Pileup π
pull up a chair, we're doing bioinformatics today.
β¨ NAME β¨
Bio::DB::Bam::Pileup β the little object that gets handed to your pileup() callback π
πΈ SYNOPSIS πΈ
See "The generic fetch() and pileup() methods" in Bio::DB::Sam for how
this object is passed to pileup callbacks.
that's it, that's the synopsis hun π if you wanna know how this cutie actually reaches you, go read that section in Bio::DB::Sam.
π¦ DESCRIPTION π¦
so here's the vibe π: a Bio::DB::Bam::Pileup object β or a Bio::DB::Bam::PileupWrapper object β gets passed to the callback you give to the Bio::DB::Sam->pileup() method, one for every single column in a sequence alignment. yes, every column. she's thorough like that π
and the only difference between the two of them? the wrapper one (Bio::DB::Bam::PileupWrapper) returns the way more convenient Bio::DB::Bam::AlignWrapper objects when you call alignment() on it π
β¨ but bestie, nothing in this life is free β you pay for it with some performance loss π keep that in mind.
π§ Methods
$alignment = $pileup->alignmentβ hands you back theBio::DB::Bam::AlignmentorBio::DB::Bam::AlignWrapperobject that represents the aligned read π«Ά$alignment = $pileup->bβ this one's just an alias foralignment(). she exists purely for compatibility with the C API, no cap π€$qpos = $pileup->qposβ returns the position of this aligned column in read coordinates, using zero-based coordinates π’$pos = $pileup->posβ same energy, but returns the position of this aligned column in read coordinates using 1-based coordinates. (yes the label is different-looking, that's literally what it says, don't come for me π)$indel = $pileup->indelβ if this column is an indel, she'll return a positive integer for an insertion relative to the reference, a negative integer for a deletion relative to the reference, or0if there's no indel at this column. three moods, one method π$is_del = $pileup->is_delβ true if the base on the padded read is a deletion β$level = $pileup->levelβ ifpileup()orfast_pileup()was invoked with the"keep_level"flag, then this returns a positive integer telling you the level of the read in a printed multiple alignment π (no keep_level flag = no level for you, babe)$pileup->is_head$pileup->is_tail
β these two fields are defined in bam.h but their interpretation is obscure π«οΈ like, genuinely, nobody's explaining them here. mystery behavior. iconic in a cryptic way, honestly π
π SEE ALSO π
go read these next, bestie, they're all connected:
Bio::PerlBio::DB::SamBio::DB::Bam::AlignmentBio::DB::Bam::Constants
π 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 πβ¨
and that's the whole page, bestie, you ate it π no cap, fr fr.
perl v5.42.3 π¦ 2026-08-19 π β mwah, go read your pileups, ily π
π¦ 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