Ace::G...gments(3pm)

πŸ’… Ace::Graphics::Glyph::segments β€” the "discontinuous segments" glyph

okay bestie, this is a page from the User Contributed Perl Documentation for Ace::Graphics::Glyph::segments, and we're gonna get into it πŸ’–


✨ SYNOPSIS ✨

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

like, that's the whole synopsis, she's lowkey minimal, iconic behavior honestly πŸŽ€


🌸 DESCRIPTION 🌸

so this glyph draws a sequence feature that consists of multiple discontinuous segments β€” think the exons on a transcript, or a gapped alignment. the way it shows up on screen is a whole row of filled rectangles connected together by line segments, like little beads on a string fr fr 🧚

and here's the vibe check on what you're allowed to feed it: the features you pass in must be one of these two flavors β€”

  • they respond to the Bio::SequenceFeatureI-style subSeqFeatures() method, or
  • they respond to the AcePerl/Das-style segments() or merged_segments() methods

that's it, that's the guest list, no plus-ones πŸ™ˆ

πŸ‘‘ OPTIONS πŸ‘‘

on top of all the common options (iykyk), this glyph also recognizes the -stranded argument. here's the tea:

  • -stranded β€” if it's true and the feature is an alignment (meaning: it has the target() method), then the glyph will draw little arrows inside the segment boxes to show off which direction the alignment is going ➑️✨

so cute, so functional, we love a glyph that communicates.


πŸ’€ BUGS πŸ’€

Please report them.

(not me, not the glyph, them β€” the bugs. go snitch. it's giving responsible user 🫢)


🌈 SEE ALSO 🌈

  • Ace::Sequence
  • Ace::Sequence::Feature
  • Ace::Graphics::Panel
  • Ace::Graphics::Track
  • Ace::Graphics::Glyph::anchored_arrow
  • Ace::Graphics::Glyph::arrow
  • Ace::Graphics::Glyph::box
  • Ace::Graphics::Glyph::primers
  • Ace::Graphics::Glyph::segments
  • Ace::Graphics::Glyph::toomany
  • Ace::Graphics::Glyph::transcript

yes she cited herself in her own SEE ALSO. main character energy, periodt πŸ’…


✨ AUTHOR ✨

Lincoln Stein <lstein@cshl.org>.

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, read the license, don't skip it, that's the whole point of it being there 😭

and that's the page!! this was perl v5.42.3, dated 2026-08-19, and it's giving "old but still serving" β€” thanks for reading bestie, go draw some exons πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from