Bio::G...2::Util(3pm)
π Bio::G...2::Util β bestie's guide to the exported utilities π
okay so real quick, before anything else: this is a page from the User Contributed Perl Documentation set, and it lives in section 3pm (that's the Perl module manual section, iykyk). Grab a snack, we're going in π
β¨ NAME β¨
Bio::Graphics::Browser2::Util β it's giving exported utilities, periodt. A whole little grab-bag of helper functions. π
πΈ SYNOPSIS πΈ
the vibe check, in code form:
use Bio::Graphics::Browser2::Util;
my $r = modperl_request();
that's it. that's the whole entrance. slay. π
π¦ DESCRIPTION π¦
So here's the tea β: this package is a bunch of functions that exist to support the Generic Genome Browser. That's its whole job, its main character energy.
ngl, important caveat: it is not currently designed for external use. So likeβ¦ it's an inside-job module. Not for randos. π
π FUNCTIONS π
every function, one by one, no skips, no skimming, we're thorough in this house π
my $r = modperl_request()β hands you back anApache2::Requestobject or anApache::Requestobject, depending on whichever version of Apache is actually running. Surprise mechanic! πerror('message')β literally just prints an error message. That's the whole function. It ate and left no crumbs πurl_label($yucky_url)β takes a URL string and creates alabel.aliasfor it, but only for URLs starting with'http'or'ftp'. The last word (the bit following a/) in the url becomes the label. Returns a string formatted as"url:label". β¨citation(DataSource, 'label, [Language])β returns a track citation. short king, this one. π$id = generate_idβ generates a fresh md5 hash of a random value, for use in various IDs. unique-ish, bestie π²$string = segment_str($segment)β returns a nicely formatted string in the formatchr:start..stopwith commas. so pretty. so readable. we love her π₯°
π SEE ALSO π
go read these too, they're the friend group:
Bio::Graphics::BrowserBio::Graphics::PanelBio::Graphics::GlyphBio::Graphics::FeatureBio::Graphics::FeatureFile
π AUTHOR π
Lincoln Stein <lstein@cshl.org> β iconic, we stan π«Ά
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!! πβ
sign-off time: this lil doc came from perl v5.40.0, dated 2024-10-20 π stay hydrated, read your licenses, and never run undocumented internals in prod, mwah π
π¦ where this page comes from
- ubuntu questing: gbrowse 2.56+dfsg-12build4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms