Bio::O...hipType(3pm)
π Bio::Ontology::RelationshipType π
okay so bestie, this is a page from the User Contributed Perl Documentation collection, and it's literally all about Bio::Ontology::RelationshipType β a relationship type for an ontology. yes. that's the whole vibe. let's get into it π¦
β¨ NAME β¨
Bio::Ontology::RelationshipType β it's a relationship type for an ontology, no cap π
πΈ SYNOPSIS πΈ
#
that's it. that's the synopsis. iconic minimalism honestly π
π DESCRIPTION π
so this class is your girl for modelling alllll the different kinds of relationships β think "IS_A", "PART_OF", "CONTAINS", "FOUND_IN", "RELATED_TO". the whole friend group π«Ά
and here's the tea: this class extends Bio::Ontology::Term, so it essentially is-a Bio::Ontology::TermI. but ALSO β plot twist β every single method is overridden so the object becomes immutable. once it's set, it's set. no take-backs, periodt πβ¨
π FEEDBACK π
π¬ Mailing Lists
user feedback is an integral part of the evolution of this and other Bioperl modules, fr fr. send your comments and suggestions preferably to the Bioperl mailing lists β your participation is much appreciated π
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, okay bestie? there are so many experienced and responsive experts who will be able to look at the problem and quickly address it. please include a thorough description of the problem with code and data examples if at all possible β the more deets the better π
π 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
π AUTHOR π
Christian M. Zmasek
Email: czmasek-at-burnham.org or cmzmasek@yahoo.com
WWW: http://monochrome-effect.net/
Address:
Genomics Institute of the Novartis Research Foundation
10675 John Jay Hopkins Drive
San Diego, CA 92121
π APPENDIX π
the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β iykyk π
β get_instance
- Title:
get_instance - Usage:
$IS_A = Bio::Ontology::RelationshipType->get_instance( "IS_A" );
$PART_OF = Bio::Ontology::RelationshipType->get_instance( "PART_OF" );
$RELATED_TO = Bio::Ontology::RelationshipType->get_instance( "RELATED_TO" );
$CONTAINS = Bio::Ontology::RelationshipType->get_instance( "CONTAINS" );
$FOUND_IN = Bio::Ontology::RelationshipType->get_instance( "FOUND_IN" );
- Function: factory method to create instances of RelationshipType π
- Returns:
[Bio::Ontology::RelationshipType] - Args:
"IS_A"or"PART_OF"or"CONTAINS"or"FOUND_IN"or"RELATED_TO"[scalar] the ontology[Bio::Ontology::OntologyI](optional)
π§ init
- Title:
init() - Usage:
$type->init(); - Function: initializes this to all undef and empty lists π«§
- Returns:
- Args:
π« equals
- Title:
equals - Usage:
if ( $type->equals( $other_type ) ) { ... - Function: compares this type to another one, based on string
"eq"of the"identifier"field, if at least one of the two types has the identifier set, or stringeqof the name otherwise π - Returns: true or false
- Args:
[Bio::Ontology::RelationshipType]
π identifier
- Title:
identifier - Usage:
$term->identifier( "IS_A" );orprint $term->identifier(); - Function: set/get for the immutable identifier of this Type π
- Returns: the identifier [scalar].
- Args: the identifier [scalar] (optional).
π¦ name
- Title:
name - Usage:
$term->name( "is a type" );orprint $term->name(); - Function: set/get for the immutable name of this Type π
- Returns: the name [scalar].
- Args: the name [scalar] (optional).
πΈ definition
- Title:
definition - Usage:
$term->definition( "" );orprint $term->definition(); - Function: set/get for the immutable definition of this Type π
- Returns: the definition [scalar].
- Args: the definition [scalar] (optional).
π ontology
- Title:
ontology - Usage:
$term->ontology( $top );or$top = $term->ontology(); - Function: set/get for the ontology this relationship type lives in π
- Returns: the ontology
[Bio::Ontology::OntologyI]. - Args: on set, the ontology
[Bio::Ontology::OntologyI](optional).
π version
- Title:
version - Usage:
$term->version( "1.00" );orprint $term->version(); - Function: set/get for immutable version information π’
- Returns: the version [scalar].
- Args: the version [scalar] (optional).
π is_obsolete
- Title:
is_obsolete - Usage:
$term->is_obsolete( 1 );orif ( $term->is_obsolete() ) - Function: set/get for the immutable obsoleteness of this Type π»
- Returns: the obsoleteness [0 or 1].
- Args: the obsoleteness [0 or 1] (optional).
π¬ comment
- Title:
comment - Usage:
$term->comment( "..." );orprint $term->comment(); - Function: set/get for an arbitrary immutable comment about this Type π
- Returns: a comment.
- Args: a comment (optional).
π Private methods
may be overridden in a derived class, but should never be called from outside. no touching, bestie π ββοΈ
π veto_change
- Title:
veto_change - Usage:
- Function: called if an attribute is changed. setting an attribute is considered a change if it had a value before and the attempt to set it would change the value.
this method returns the message to be printed in the exception β οΈ
- Example:
- Returns: a string
- Args: the name of the attribute that was attempted to change. optionally, the old value and the new value for reporting purposes only.
and that's the whole page, bestie!! π this one's perl v5.32.1, dated 2021-08-15, and it's a Bio::O...hipType(3pm) moment β love that for us. go forth and be immutable β¨ππ¦
π¦ 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