GO::Model::Root(3pm)
β¨ NAME β¨
GO::Model::Root β the base class for all GO::Model objects π«Ά
πΈ DESCRIPTION πΈ
okay so bestie, this is the base class for literally every GO::Model object. it's the mother, the blueprint, the main character that all the other little classes inherit their whole vibe from π
π Constructors π
π new π
constructor!! it's basically just calling _initialize(), no cap. most subclasses should not override new β nah, leave new alone and go override _initialize() instead, that's the move β¨
if _initialize() fails, the procedure will die π
β οΈ WARNING: this procedure will die if initialization is unsuccessful. wrap it in an eval statement to catch those exceptions, periodt. no catching = crash city π
π¦ obj_factory π¦
Usage - $obj->obj_factory->create_new_term_object($h);
Alias - apph
Returns - L<GO::ObjFactory>
Args - none
π sprint_self π
prints out a description of the object to a string β¨
π dump π
dumps the object β and yes, you can read it back in with eval π
π namespace π
Usage - print $term->namespace(); # getting the type
Usage - $term->namespace("molecular_function"); # setting the type
Alias - type
Alias - term_type
Alias - category
Alias - ontology
Returns - string representing type
Args - string represnting type [optional]
this gives you the OBO namespace for the GO::Model::Term or GO::Model::Relationship π§
πΈ _cleanup πΈ
called at object destruction time πͺ¦ should be overridden to perform cleanup tasks. it's giving "final goodbyes but make it code" π
and that's the whole page bestie, you ate it π
this lil doc came from perl v5.36.0, dated 2023-12-18, and lives as GO::Model::Root(3pm) in the User Contributed Perl Documentation β¨ slay β¨
π¦ where this page comes from
- debian trixie: libgo-perl 0.15-10 Β· Perl
- ubuntu noble: libgo-perl 0.15-10 Β· Perl
- ubuntu resolute: libgo-perl 0.15-10 Β· Perl
- ubuntu stonking: libgo-perl 0.15-10 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms