.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Bio::Ontology::OBOEngine 3pm" .TH Bio::Ontology::OBOEngine 3pm "2020-10-28" "perl v5.30.3" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Bio::Ontology::OBOEngine \- An Ontology Engine for OBO style flat file format from the Gene Ontology Consortium .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& use Bio::Ontology::OBOEngine; \& \& my $parser = Bio::Ontology::OBOEngine\->new \& ( \-file => "gene_ontology.obo" ); \& \& my $engine = $parser\->parse(); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Needs Graph.pm from \s-1CPAN.\s0 .PP This module replaces SimpleGOEngine.pm, which is deprecated. .SH "FEEDBACK" .IX Header "FEEDBACK" .SS "Mailing Lists" .IX Subsection "Mailing Lists" User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing lists Your participation is much appreciated. .PP .Vb 2 \& bioperl\-l@bioperl.org \- General discussion \& http://bioperl.org/wiki/Mailing_lists \- About the mailing lists .Ve .SS "Support" .IX Subsection "Support" Please direct usage questions or support issues to the mailing list: .PP \&\fIbioperl\-l@bioperl.org\fR .PP rather than to the module maintainer directly. Many experienced and reponsive experts will be able 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. .SS "Reporting Bugs" .IX Subsection "Reporting Bugs" Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web: .PP .Vb 1 \& https://github.com/bioperl/bioperl\-live/issues .Ve .SH "AUTHOR" .IX Header "AUTHOR" Sohel Merchant .PP Email: s\-merchant@northwestern.edu .PP Address: .PP .Vb 5 \& Northwestern University \& Center for Genetic Medicine (CGM), dictyBase \& Suite 1206, \& 676 St. Clair st \& Chicago IL 60611 .Ve .SS "\s-1CONTRIBUTOR\s0" .IX Subsection "CONTRIBUTOR" .Vb 2 \& Hilmar Lapp, hlapp at gmx.net \& Chris Mungall, cjm at fruitfly.org .Ve .SH "APPENDIX" .IX Header "APPENDIX" The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ .SS "new" .IX Subsection "new" .Vb 5 \& Title : new \& Usage : $engine = Bio::Ontology::OBOEngine\->new() \& Function: Creates a new OBOEngine \& Returns : A new OBOEngine object \& Args : .Ve .SS "init" .IX Subsection "init" .Vb 5 \& Title : init() \& Usage : $engine\->init(); \& Function: Initializes this Engine. \& Returns : \& Args : .Ve .SS "is_a_relationship" .IX Subsection "is_a_relationship" .Vb 6 \& Title : is_a_relationship() \& Usage : $IS_A = $engine\->is_a_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "is\-a" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "IS_A" \& Args : .Ve .SS "part_of_relationship" .IX Subsection "part_of_relationship" .Vb 6 \& Title : part_of_relationship() \& Usage : $PART_OF = $engine\->part_of_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "part\-of" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "PART_OF" \& Args : .Ve .SS "related_to_relationship" .IX Subsection "related_to_relationship" .Vb 6 \& Title : related_to_relationship() \& Usage : $RELATED_TO = $engine\->related_to_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "related\-to" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "RELATED_TO" \& Args : .Ve .SS "regulates_relationship" .IX Subsection "regulates_relationship" .Vb 6 \& Title : regulates_relationship() \& Usage : $REGULATES = $engine\->regulates_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "regulates" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "REGULATES" \& Args : .Ve .SS "positively_regulates_relationship" .IX Subsection "positively_regulates_relationship" .Vb 6 \& Title : positively_regulates_relationship() \& Usage : $REGULATES = $engine\->positively_regulates_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "positively_regulates" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "POSITIVELY_REGULATES" \& Args : .Ve .SS "negatively_regulates_relationship" .IX Subsection "negatively_regulates_relationship" .Vb 6 \& Title : negatively_regulates_relationship() \& Usage : $REGULATES = $engine\->negatively_regulates_relationship(); \& Function: Returns a Bio::Ontology::RelationshipType object for "negatively_regulates" \& relationships \& Returns : Bio::Ontology::RelationshipType set to "POSITIVELY_REGULATES" \& Args : .Ve .SS "add_term" .IX Subsection "add_term" .Vb 6 \& Title : add_term \& Usage : $engine\->add_term( $term_obj ); \& Function: Adds a Bio::Ontology::TermI to this engine \& Returns : true if the term was added and false otherwise (e.g., if the \& term already existed in the ontology engine) \& Args : Bio::Ontology::TermI\` .Ve .SS "has_term" .IX Subsection "has_term" .Vb 7 \& Title : has_term \& Usage : $engine\->has_term( $term ); \& Function: Checks whether this engine contains a particular term \& Returns : true or false \& Args : Bio::Ontology::TermI \& or \& Term identifier (e.g. "GO:0012345") .Ve .SS "add_relationship_type" .IX Subsection "add_relationship_type" .Vb 7 \& Title : add_relationship_type \& Usage : $engine\->add_relationship_type( $type_name, $ont ); \& Function: Adds a new relationship type to the engine. Use \& get_relationship_type($type_name) to retrieve. \& Returns : true if successfully added, false otherwise \& Args : relationship type name to add (scalar) \& ontology to which to assign the relationship type .Ve .SS "get_relationship_type" .IX Subsection "get_relationship_type" .Vb 6 \& Title : get_relationship_type \& Usage : $engine\->get_relationship_type( $type_name ); \& Function: Gets a Bio::Ontology::RelationshipI object corresponding \& to $type_name \& Returns : a Bio::Ontology::RelationshipI object \& Args : .Ve .SS "add_relationship" .IX Subsection "add_relationship" .Vb 9 \& Title : add_relationship \& Usage : $engine\->add_relationship( $relationship ); \& $engine\->add_relatioship( $subject_term, $predicate_term, \& $object_term, $ontology ); \& $engine\->add_relatioship( $subject_id, $predicate_id, \& $object_id, $ontology); \& Function: Adds a relationship to this engine \& Returns : true if successfully added, false otherwise \& Args : The relationship in one of three ways: \& \& a) subject (or child) term id, Bio::Ontology::TermI \& (rel.type), object (or parent) term id, ontology \& \& or \& \& b) subject Bio::Ontology::TermI, predicate \& Bio::Ontology::TermI (rel.type), object \& Bio::Ontology::TermI, ontology \& \& or \& \& c) Bio::Ontology::RelationshipI\-compliant object .Ve .SS "get_relationships" .IX Subsection "get_relationships" .Vb 8 \& Title : get_relationships \& Usage : $engine\->get_relationships( $term ); \& Function: Returns all relationships of a term, or all relationships in \& the graph if no term is specified. \& Returns : Relationship \& Args : term id \& or \& Bio::Ontology::TermI .Ve .SS "get_all_relationships" .IX Subsection "get_all_relationships" .Vb 5 \& Title : get_all_relationships \& Usage : @rels = $engine\->get_all_relationships(); \& Function: Returns all relationships in the graph. \& Returns : Relationship \& Args : .Ve .SS "get_predicate_terms" .IX Subsection "get_predicate_terms" .Vb 5 \& Title : get_predicate_terms \& Usage : $engine\->get_predicate_terms(); \& Function: Returns the types of relationships this engine contains \& Returns : Bio::Ontology::RelationshipType \& Args : .Ve .SS "get_child_terms" .IX Subsection "get_child_terms" .Vb 8 \& Title : get_child_terms \& Usage : $engine\->get_child_terms( $term_obj, @rel_types ); \& $engine\->get_child_terms( $term_id, @rel_types ); \& Function: Returns the children of this term \& Returns : Bio::Ontology::TermI \& Args : Bio::Ontology::TermI, Bio::Ontology::RelationshipType \& or \& term id, Bio::Ontology::RelationshipType \& \& if NO Bio::Ontology::RelationshipType is indicated: children \& of ALL types are returned .Ve .SS "get_descendant_terms" .IX Subsection "get_descendant_terms" .Vb 8 \& Title : get_descendant_terms \& Usage : $engine\->get_descendant_terms( $term_obj, @rel_types ); \& $engine\->get_descendant_terms( $term_id, @rel_types ); \& Function: Returns the descendants of this term \& Returns : Bio::Ontology::TermI \& Args : Bio::Ontology::TermI, Bio::Ontology::RelationshipType \& or \& term id, Bio::Ontology::RelationshipType \& \& if NO Bio::Ontology::RelationshipType is indicated: \& descendants of ALL types are returned .Ve .SS "get_parent_terms" .IX Subsection "get_parent_terms" .Vb 8 \& Title : get_parent_terms \& Usage : $engine\->get_parent_terms( $term_obj, @rel_types ); \& $engine\->get_parent_terms( $term_id, @rel_types ); \& Function: Returns the parents of this term \& Returns : Bio::Ontology::TermI \& Args : Bio::Ontology::TermI, Bio::Ontology::RelationshipType \& or \& term id, Bio::Ontology::RelationshipType \& \& if NO Bio::Ontology::RelationshipType is indicated: \& parents of ALL types are returned .Ve .SS "get_ancestor_terms" .IX Subsection "get_ancestor_terms" .Vb 8 \& Title : get_ancestor_terms \& Usage : $engine\->get_ancestor_terms( $term_obj, @rel_types ); \& $engine\->get_ancestor_terms( $term_id, @rel_types ); \& Function: Returns the ancestors of this term \& Returns : Bio::Ontology::TermI \& Args : Bio::Ontology::TermI, Bio::Ontology::RelationshipType \& or \& term id, Bio::Ontology::RelationshipType \& \& if NO Bio::Ontology::RelationshipType is indicated: \& ancestors of ALL types are returned .Ve .SS "get_leaf_terms" .IX Subsection "get_leaf_terms" .Vb 5 \& Title : get_leaf_terms \& Usage : $engine\->get_leaf_terms(); \& Function: Returns the leaf terms \& Returns : Bio::Ontology::TermI \& Args : .Ve .SS "\fBget_root_terms()\fP" .IX Subsection "get_root_terms()" .Vb 5 \& Title : get_root_terms \& Usage : $engine\->get_root_terms(); \& Function: Returns the root terms \& Returns : Bio::Ontology::TermI \& Args : .Ve .SS "get_terms" .IX Subsection "get_terms" .Vb 6 \& Title : get_terms \& Usage : @terms = $engine\->get_terms( "GO:1234567", "GO:2234567" ); \& Function: Returns term objects with given identifiers \& Returns : Bio::Ontology::TermI, or the term corresponding to the \& first identifier if called in scalar context \& Args : term ids .Ve .SS "get_all_terms" .IX Subsection "get_all_terms" .Vb 5 \& Title : get_all_terms \& Usage : $engine\->get_all_terms(); \& Function: Returns all terms in this engine \& Returns : Bio::Ontology::TermI \& Args : .Ve .SS "find_terms" .IX Subsection "find_terms" .Vb 3 \& Title : find_terms \& Usage : ($term) = $oe\->find_terms(\-identifier => "SO:0000263"); \& Function: Find term instances matching queries for their attributes. \& \& This implementation can efficiently resolve queries by \& identifier. \& \& Example : \& Returns : an array of zero or more Bio::Ontology::TermI objects \& Args : Named parameters. The following parameters should be recognized \& by any implementations: \& \& \-identifier query by the given identifier \& \-name query by the given name .Ve .SS "find_identically_named_terms" .IX Subsection "find_identically_named_terms" .Vb 7 \& Title : find_identically_named_terms \& Usage : ($term) = $oe\->find_identically_named_terms($term0); \& Function: Find term instances where names match the query term \& name exactly \& Example : \& Returns : an array of zero or more Bio::Ontology::TermI objects \& Args : a Bio::Ontology::TermI object .Ve .SS "find_identical_terms" .IX Subsection "find_identical_terms" .Vb 7 \& Title : find_identical_terms \& Usage : ($term) = $oe\->find_identical_terms($term0); \& Function: Find term instances where name or synonym \& matches the query exactly \& Example : \& Returns : an array of zero or more Bio::Ontology::TermI objects \& Args : a Bio::Ontology::TermI object .Ve .SS "find_similar_terms" .IX Subsection "find_similar_terms" .Vb 7 \& Title : find_similar_terms \& Usage : ($term) = $oe\->find_similar_terms($term0); \& Function: Find term instances where name or synonym, or part of one, \& matches the query. \& Example : \& Returns : an array of zero or more Bio::Ontology::TermI objects \& Args : a Bio::Ontology::TermI object .Ve .SS "relationship_factory" .IX Subsection "relationship_factory" .Vb 4 \& Title : relationship_factory \& Usage : $fact = $obj\->relationship_factory() \& Function: Get/set the object factory to be used when relationship \& objects are created by the implementation on\-the\-fly. \& \& Example : \& Returns : value of relationship_factory (a Bio::Factory::ObjectFactoryI \& compliant object) \& Args : on set, a Bio::Factory::ObjectFactoryI compliant object .Ve .SS "term_factory" .IX Subsection "term_factory" .Vb 4 \& Title : term_factory \& Usage : $fact = $obj\->term_factory() \& Function: Get/set the object factory to be used when term objects are \& created by the implementation on\-the\-fly. \& \& Note that this ontology engine implementation does not \& create term objects on the fly, and therefore setting this \& attribute is meaningless. \& \& Example : \& Returns : value of term_factory (a Bio::Factory::ObjectFactoryI \& compliant object) \& Args : on set, a Bio::Factory::ObjectFactoryI compliant object .Ve .SS "graph" .IX Subsection "graph" .Vb 5 \& Title : graph() \& Usage : $engine\->graph(); \& Function: Returns the Graph this engine is based on \& Returns : Graph \& Args : .Ve