Bio::G...en_box(3pm)

πŸ“¦
version 2.40 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’… Bio::Graphics::Glyph::redgreen_box β€” bestie edition

okay so real talk, this is the manual page for the <pink>Bio::Graphics::Glyph::redgreen_box</pink> module, aka the "redgreen_box" glyph, and it lives in the User Contributed Perl Documentation corner of the perl v5.30.0 world. buckle up, it's shorter than you think but every crumb matters πŸ“


✨ NAME ✨

Bio::Graphics::Glyph::redgreen_box β€” it's the "redgreen_box" glyph, that's it, that's the name, she's iconic, she knows it πŸ’…


🌸 SYNOPSIS 🌸

See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.

like. that's the whole vibe. go read those two first, bestie, they're the lore 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this glyph is similar to the graded_segments glyph, right? but here's the twist — she generates a green→red gradient that's specifically made for microarray data. it's giving color-coded science, it's giving data visualization era.

the color rules are literally this simple:

  • a feature score of 0 β†’ full green πŸ’š
  • a feature score of 1.0 β†’ full red ❀️
  • everything in between β†’ shades of yellow πŸ’›

no cap, that's the whole gradient. 0 to 1, green to red, yellow holding it down in the middle like the peacekeeper she is.

✨ OPTIONS ✨

so these next ones are standard among ALL Glyphs, not just this one. Bio::Graphics::Glyph has the full explanation if you want the deep lore, but here's the rundown:

  • -fgcolor β€” the foreground color. default: black
  • -outlinecolor β€” literally just a synonym for -fgcolor
  • -bgcolor β€” the background color. default: turquoise
  • -fillcolor β€” synonym for -bgcolor
  • -linewidth β€” line width. default: 1
  • -height β€” height of glyph. default: 10
  • -font β€” glyph font. default: gdSmallFont
  • -connector β€” connector type. default: 0 (false)
  • -connector_color β€” connector color. default: black
  • -label β€” whether to draw a label. default: 0 (false)
  • -description β€” whether to draw a description. default: 0 (false)
  • -hilite β€” highlight color. default: undef (no color)

and now for the glyph-specific one, the main character, the one you came here for πŸ‘‘

  • -border β€” draw a fgcolor border around the box. default: 0 (false)
  • -color_subparts β€” give each subpart a separate color based on its score. default: 0 (false)
bestie listen. if -color_subparts is true, then the glyph goes and individually colorizes each of its subparts, okay? AND β€” plot twist β€” internal bumping of features gets turned off. the result? an effect similar to graded_segments. slay ✨

πŸ’€ BUGS πŸ’€

Please report them.

(that's it. that's all she wrote. not me being dramatic over three words but honestly? relatable, we love a low-effort bug section 🫢)


πŸŽ€ SEE ALSO πŸŽ€

okay so the reading list is LONG and honestly kind of a flex, so let's get into it. go check out:

  • Bio::Graphics::Panel
  • Bio::Graphics::Glyph
  • Bio::Graphics::Glyph::arrow
  • Bio::Graphics::Glyph::cds
  • Bio::Graphics::Glyph::crossbox
  • Bio::Graphics::Glyph::diamond
  • Bio::Graphics::Glyph::dna
  • Bio::Graphics::Glyph::dot
  • Bio::Graphics::Glyph::ellipse
  • Bio::Graphics::Glyph::extending_arrow
  • Bio::Graphics::Glyph::generic
  • Bio::Graphics::Glyph::graded_segments
  • Bio::Graphics::Glyph::heterogeneous_segments
  • Bio::Graphics::Glyph::line
  • Bio::Graphics::Glyph::pinsertion
  • Bio::Graphics::Glyph::primers
  • Bio::Graphics::Glyph::rndrect
  • Bio::Graphics::Glyph::segments
  • Bio::Graphics::Glyph::ruler_arrow
  • Bio::Graphics::Glyph::toomany
  • Bio::Graphics::Glyph::transcript
  • Bio::Graphics::Glyph::transcript2
  • Bio::Graphics::Glyph::translation
  • Bio::Graphics::Glyph::triangle
  • Bio::DB::GFF
  • Bio::SeqI
  • Bio::SeqFeatureI
  • Bio::Das
  • GD

like. that's the whole squad. the whole friend group. iykyk πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Lincoln Stein <lstein@cshl.org> β€” the icon, the legend, the moment 🌈

Copyright (c) 2001 Cold Spring Harbor Laboratory

this library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. see DISCLAIMER.txt for disclaimers of warranty.


fr fr, if you're out here using this, know that the license is the same as Perl itself, and the warranty disclaimer lives in DISCLAIMER.txt. don't skip that part bestie, it's not just vibes 🫢

and that's the whole page!! this was perl v5.30.0, dated 2019-11-25, brought to you by the Bio::G...en_box(3pm) manual itself. mwah, go make some pretty red-green boxes, you got this πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from