Bio::O...actory(3pm)
π Bio::O...actory β the Perl man page, but make it a group chat π
okay so bestie, welcome to Bio::Ontology::TermFactory, a page straight out of the User Contributed Perl Documentation collection. It's giving "small module, big feelings". Let's get into it π
β¨ NAME β¨
Bio::Ontology::TermFactory β the little factory that instantiates a brand new Bio::Ontology::TermI (or literally any class derived from it) for you. No cap. It just builds them. ππ¦
πΈ SYNOPSIS πΈ
Here's the vibe in code form:
use Bio::Ontology::TermFactory;
# the default type is Bio::Ontology::Term
my $factory = Bio::Ontology::TermFactory->new(
-type => 'Bio::Ontology::GOterm');
my $term = $factory->create_object(-name => 'peroxisome',
-ontology => 'Gene Ontology',
-identifier => 'GO:0005777');
see how easy that was?? You spin up the factory, tell it what type you want, and it hands you a term. Main character energy fr fr β¨
π DESCRIPTION π
So basically this object builds Bio::Ontology::TermI objects generically. That's the whole gig. It's a factory. It factories. Periodt. π«Ά
π FEEDBACK π
π§ Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Yes, integral. Your thoughts matter, babe. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated β like genuinely, they mean it. π
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
π©· Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Lowkey important: there are many experienced and reponsive experts who will be able look at the problem and quickly address it. So like, don't DM the maintainer, ask the group chat. π
Please include a thorough description of the problem with code and data examples if at all possible. The more detail the better, bestie. Give them the whole story. π
π Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
Slay. Go forth and file that issue. ππ₯
π AUTHOR - Hilmar Lapp π
Email hlapp at gmx.net
Shoutout to Hilmar. Iconic. π
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ β iykyk, that underscore is the secret handshake. π€«
π new
- Title β
new - Usage β
my $obj = Bio::Ontology::TermFactory->new(); - Function β Builds a new
Bio::Ontology::TermFactoryobject β¨ - Returns β
Bio::Ontology::TermFactory - Args β
-type => string, name of aBio::Ontology::TermIderived class. The default isBio::Ontology::Term.
See Bio::Ontology::TermI, Bio::Ontology::Term.
π¦ create_object
- Title β
create_object - Usage β
my $term = $factory->create_object(<named parameters>); - Function β Instantiates new
Bio::Ontology::TermI(or one of its child classes)
This object allows us to genericize the instantiation of Term objects. genericize the instantiation... she's so versatile π
- Returns β
Bio::Ontology::TermIcompliant object. The return type is configurable usingnew(-type =>"..."). - Args β initialization parameters specific to the type of term object we want. Typically
-name => $name
-identifier => identifier for the term
-ontology => ontology for the term
See Bio::Ontology::TermI.
And that's the whole page, bestie. Go build some terms. You got this. π
This was perl v5.32.1, dated 2021-08-15, from the Bio::O...actory(3pm) corner of the world. Mwah. πβ¨
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms