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

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

✨ NAME ✨

okay so bestie, welcome to Bio::Graphics::Glyph::ruler_arrow πŸ’– β€” it's the glyph that draws an arrow as a ruler, with 5' and 3' marked up as labels. iconic behavior honestly.


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

This glyph draws arrows, periodt. πŸŽ€ The label, if you ask for one, will be 5' and 3' at both ends, and the tick scale gets printed if the no_tick_label option is set and the tick option is set. Depending on your options, the arrows can be labeled, they can be oriented vertically or horizontally, or they can contain major and minor ticks suitable for use as a scale. versatile queen πŸ’…

✨ OPTIONS ✨

on top of the common options, these glyph-specific options are recognized (iykyk):

  • -tick β€” whether to draw major and minor ticks. Default is 0. 0 = no ticks, 1 = major ticks, 2 = minor ticks. so like a little vibe slider for tick energy ✨
  • -label β€” 5' at start, 3' at end, sitting above the arrow. Default 0.
  • -both β€” 5', 3' above, and 3', 5' below the arrow. Default 0. double the labels, double the fun 🫢
  • -direction β€” 0 = ruler is plus strand, -1 = ruler is minus strand. Default 0.
  • -parallel β€” whether to draw the arrow parallel to the sequence or perpendicular to it. Default true.
  • -northeast β€” force a north or east arrowhead (depending on orientation). Default true.
  • -east β€” synonym of the above. same thing, different font πŸ’…
  • -southwest β€” force a south or west arrowhead (depending on orientation). Default true.
  • -west β€” synonym of the above. again, twins fr fr
  • -double β€” force a doubleheaded arrow. two heads, no notes πŸ‘‘
  • -base β€” draw a vertical base at the non-arrowhead side. Default false.
  • -scale β€” reset the labels on the arrow to reflect an externally established scale. Default false.

Set -parallel to false to display a point-like feature such as a polymorphism, or to indicate an important location. If the feature start == end, then the glyph will draw a single arrow at the designated location:

       ^
       |

Otherwise, there will be two arrows at the start and end:

       ^              ^
       |              |

Scale: pass in an externally established scale to reset the labels on the arrow. This is particularly useful for manually constructed images where the founding parameters of the panel are not 1-based. For example, a genetic map interval ranging from 0.1 - 0.3 can be constructed by first multiplying every value by 100. Passing

arrow(-scale=>100);

will draw tick marks labelled appropriately to your external scale. chef's kiss 😭✨


πŸ’€ BUGS πŸ’€

Please report them. (yes that's literally it, go off and report those bugs bestie, we're rooting for you 🫢)


🌈 SEE ALSO 🌈

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


πŸ‘‘ AUTHOR πŸ‘‘

Shengqiang Shu <sshu@bdgp.lbl.gov> Lincoln Stein <lstein@cshl.org>.

Copyright (c) 2001 BDGP, 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.


and that's a wrap babes πŸŽ€ this page is from perl v5.30.0, dated 2019-11-25 β€” oldie but a goodie, still slaying πŸ’…βœ¨ no cap.

πŸ“¦ where this page comes from