Bio::G..._tower(3pm)
π Bio::G..._tower β the allele_tower glyph π
okay bestie, so this page is from the Bio::Graphics::Glyph family β specifically the allele_tower glyph β and it's living in the User Contributed Perl Documentation. she's giving SNP-visualisation main character energy and honestly? iconic. πΈ
β¨ NAME β¨
Bio::Graphics::Glyph::allele_tower β the "allele_tower" glyph. yes that's the whole name, she's lowkey mysterious like that π
π¦ SYNOPSIS π¦
See <Bio::Graphics::Panel> and <Bio::Graphics::Glyph>.
like, that's it, that's the synopsis. go read those two first, iykyk π
π DESCRIPTION π
so basically this glyph draws a letter for each allele found at a SNP position β one stacked right on top of the other, i.e. in a column. it's giving little alphabet tower. for example:
A
G
fr fr, that's the whole vibe. β¨
also go peek at http://www.hapmap.org/cgi-perl/gbrowse/gbrowse under 'genotyped SNPs' if you want to see it in the wild β that's the example they're pointing at π
the common options are all available (the one exception: height, because that gets calculated based on how many alleles there are β the tower grows itself, periodt π
). and on top of that, if you hand the glyph the minor allele frequency (MAF) and tell it which allele is the minor one, she will display those differences too. obsessed. ππ
𧬠GETTING THE ALLELES π§¬
to specify the alleles, you make an "Alleles" attribute for the feature. there should be two of those attributes. so for a T/G polymorphism, the GFF load file should look like:
Chr3 . SNP 12345 12345 . . . SNP ABC123; Alleles T ; Alleles G
alternatively (the other way, bestie, pick your fighter) you can pass an "alleles" callback to the appropriate section of the config file. this option should return the two alleles separated by a slash:
alleles = sub {
my $snp = shift;
my @d = $snp->get_tag_values('AllelePair');
return join "/",@d;
}
π OPTIONS π
here's the lil menu of what this glyph can do:
- π¨ Glyph Colour
- π Different colour for alleles on the reverse strand
- π Print out the complement for alleles on the reverse strand
- π ±οΈ Major allele shown in bold
- π Horizontal histogram to show allele frequency
π GLYPH COLOR π
the glyph color can be configured to be different depending on whether the feature is on the plus or minus strand. use fgcolor to define the glyph color for the plus strand, and bgcolor for the minus strand. like:
fgcolor = blue
bgcolor = red
β οΈ for this option to work you ALSO have to set ref_strand to return the strand of the feature:
ref_strand = sub {shift->strand}
π REVERSE STRAND ALLELES π
if the alleles on the negative strand need to be the complement of what's listed in the GFF files (so like, A/G becomes T/C), set the complement option to have value 1:
complement = 1
β οΈ and again bestie β for this option to work, you must also set ref_strand to return the strand of the feature:
ref_strand = sub {shift->strand}
π ±οΈ MAJOR/MINOR ALLELE π ±οΈ
use the 'minor_allele' option to return the minor allele for the SNP. if you use this option, the major allele will appear in bold type. bold of her, literally. π
π ALLELE FREQUENCY HISTOGRAMS π
use the 'maf' option to return the minor allele frequency for the SNP. if you use this option, a horizontal histogram will be drawn next to the alleles, showing their relative frequencies. e.g.
A______
C__
π Note: the'label'option must be set to1(i.e. on) and the'minor_allele'option must return a valid allele for this to work. both. no shortcuts. π«Ά
π BUGS π
Please report them. (short, sweet, slightly ominous β she said what she said π)
π SEE ALSO π
Bio::Graphics::PanelBio::Graphics::GlyphBio::Graphics::Glyph::arrowBio::Graphics::Glyph::cdsBio::Graphics::Glyph::crossboxBio::Graphics::Glyph::diamondBio::Graphics::Glyph::dnaBio::Graphics::Glyph::dotBio::Graphics::Glyph::ellipseBio::Graphics::Glyph::extending_arrowBio::Graphics::Glyph::genericBio::Graphics::Glyph::graded_segmentsBio::Graphics::Glyph::heterogeneous_segmentsBio::Graphics::Glyph::lineBio::Graphics::Glyph::pinsertionBio::Graphics::Glyph::primersBio::Graphics::Glyph::rndrectBio::Graphics::Glyph::segmentsBio::Graphics::Glyph::ruler_arrowBio::Graphics::Glyph::toomanyBio::Graphics::Glyph::transcriptBio::Graphics::Glyph::transcript2Bio::Graphics::Glyph::translationBio::Graphics::Glyph::allele_towerBio::DB::GFFBio::SeqIBio::SeqFeatureIBio::DasGD
π AUTHOR π
Fiona Cunningham <cunningh@cshl.edu> in Lincoln Stein's lab <steinl@cshl.edu>. queens. π
Copyright (c) 2003 Cold Spring Harbor Laboratory
This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty. π«Ά
and that's the whole page bestie!! this one's shipped as perl v5.30.0, dated 2019-11-25, and she's filed under the manual name Bio::G..._tower(3pm). go forth and stack those alleles πβ¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- debian bookworm: libbio-graphics-perl 2.40-6 Β· Perl
- debian trixie: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu jammy: libbio-graphics-perl 2.40-6 Β· Perl
- ubuntu noble: libbio-graphics-perl 2.40-6 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms