Bio::O...:PathI(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Bio::Ontology::PathI β€” the vibe ✨

okay bestie, welcome to Bio::O...:PathI(3pm), which is literally the manual page for this interface. Settle in, it's short but it's iconic πŸŽ€


🌸 NAME 🌸

Bio::Ontology::PathI β€” the interface for a path between ontology terms, fr fr. That's it. That's the whole name. Periodt πŸ’…


✨ SYNOPSIS ✨

# see documentation of methods and an implementation, e.g.,
# Bio::Ontology::Path

so like, there's no big dramatic example here, the original is just pointing you at the method docs and at an actual implementation like Bio::Ontology::Path. Go look at those, iykyk πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

Bestie. Listen. This is the minimal interface for a path between two terms in an ontology. That's the whole assignment. Ontology engines are allowed to use it, and honestly? slay πŸ‘‘

Here's the tea: it's basically a very thin extension of the Bio::Ontology::RelationshipI interface. Like, thin thin. The one (1) thing it adds is an attribute: distance().

And the way to think about distance() for a RelationshipI? It's equal to zero when subject == object, or 1 when subject != object. That's the lore πŸ”₯


🫢 FEEDBACK 🫢

πŸ’Œ Mailing Lists

User feedback is, no exaggeration, an integral part of the evolution of this and every other Bioperl module. So send your comments and suggestions, preferably to the Bioperl mailing list. Your participation is so appreciated, genuinely πŸ₯Ή

bioperl-l@bioperl.org                  - General discussion
http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

🌈 Support

okay real talk β€” please send usage questions and support issues to the mailing list:

bioperl-l@bioperl.org

...and not directly to the module maintainer. Why? Because there are many experienced and responsive experts who can look at your problem and quickly address it πŸ™Œ And please, for the love of everything, include a thorough description of the problem with code and data examples if at all possible. It helps so much, no cap.

πŸ› Reporting Bugs

Report bugs to the Bioperl bug tracking system β€” it helps them keep track of the bugs and their resolution. Bug reports can be submitted via the web:

https://github.com/bioperl/bioperl-live/issues

πŸ‘‘ AUTHOR - Hilmar Lapp πŸ‘‘

Email: hlapp at gmx.net


πŸ“– APPENDIX πŸ“–

The rest of the documentation goes into detail on each of the object methods. Internal methods are usually preceded with a _ (so if you see one, that's the heads-up, bestie 🫑).

⭐ distance

  • Title β€” distance
  • Usage β€” $obj->distance($newval)
  • Function β€” Get (and set, if the implementation allows it) the distance between the two terms connected by this path.
  • Example β€”
  • Returns β€” value of distance (a scalar)
  • Args β€” on set, new value (a scalar or undef, optional)

🧚 Bio::Ontology::RelationshipI Methods 🧚

🌸 subject_term

  • Title β€” subject_term
  • Usage β€” $subj = $rel->subject_term();
  • Function β€” Set/get for the subject term of this Relationship.

The common convention for ontologies is to express relationships between terms as triples (subject, predicate, object).

  • Returns β€” The subject term [Bio::Ontology::TermI].
  • Args β€”

🌸 object_term

  • Title β€” object_term
  • Usage β€” $object = $rel->object_term();
  • Function β€” Set/get for the object term of this Relationship.

The common convention for ontologies is to express relationships between terms as triples (subject, predicate, object).

  • Returns β€” The object term [Bio::Ontology::TermI].
  • Args β€”

🌸 predicate_term

  • Title β€” predicate_term
  • Usage β€” $type = $rel->predicate_term();
  • Function β€” Set/get for the predicate of this relationship.

For a path, the predicate (relationship type) is defined as the greatest common denominator of all predicates (relationship types) encountered along the path. I.e., if predicate A is-a predicate B, the greatest common denominator for a path containing both predicates A and B is B

  • Returns β€” The predicate term [Bio::Ontology::TermI].
  • Args β€”

🌸 ontology

  • Title β€” ontology
  • Usage β€” $ont = $obj->ontology()
  • Function β€” Get the ontology that defined this relationship.
  • Example β€”
  • Returns β€” an object implementing Bio::Ontology::OntologyI
  • Args β€”

See Bio::Ontology::OntologyI.


and that's the whole page, bestie πŸ’œ this was perl v5.32.1, dated 2021-08-15, and the module is Bio::O...:PathI(3pm) β€” go forth and slay your ontology paths βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from