Bio::T...r::Bam(3pm)
πΈ NAME πΈ
okay so bestie, gather round π β this is Bio::Tradis::Parser::Bam, and honestly? it's giving very basic BAM parser. like, limited functionality. it does what it does and it does NOT do more, no cap. π
β¨ VERSION β¨
this is version 1.4.5 β she's on perl v5.30.0 energy, vintage icon behavior π
π¦ SYNOPSIS π¦
so basically? it parses BAM files and hands you the basic info living inside them. lowkey simple, highkey useful π«Ά
use Bio::Tradis::Parser::Bam;
my $pipeline = Bio::Tradis::Parser::Bam->new(file => 'abc');
$pipeline->read_info;
$pipeline->next_read;
$pipeline->seq_info;
$pipeline->is_mapped;
$pipeline->is_reverse;
here's the breakdown of each lil method, because i love you and i want you to actually get it π
=seq_infoβ reads the BAM header and hands back a hash. the keys are sequence ids, and the values are hash refs whose keys are tags (likeLNandM5). it's giving metadata moment β¨=next_readβ moves_currentreadto the next entry in the BAM. returns0if you've hit EOF. that's it, that's the whole vibe, and when it's done it's done π=read_infoβ returns info from_currentreadas a hash reference, with the field name as the key. the standard fields are named exactly as per the SAM format specification:QNAMEFLAGRNAMEPOSMAPQCIGARRNEXTPNEXTTLENSEQQUAL
any additional fields will use their tag names instead. and the complete line comes back with the key READ. not me being obsessed with how tidy that is π
=is_mappedβ parses the flag for the current read and figures out if it's mapped. returns0or1. binary queen π=is_reverseβ parses the flag for the current read and figures out if it's reverse complemented. returns0or1. same energy, different question π
heads up bestie: the docs literally say "Very basic BAM parser. Limited functionality." β so don't come for her for not doing the most. she's doing her best and her best is exactly this πΈ
π AUTHOR π
Carla Cummins <path-help@sanger.ac.uk> β we stan, periodt π«Ά
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
and that's the whole page, bestie!! π
this was Bio::Tradis::Parser::Bam, page name Bio::T...r::Bam(3pm), generated by perl v5.30.0 on 2020-01-11. iconic, timeless, a little chaotic β just like us πβ¨π
π¦ where this page comes from
- debian bookworm: bio-tradis 1.4.5+dfsg2-1 Β· GPL-3.0-only
- ubuntu jammy: bio-tradis 1.4.5+dfsg2-1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms