NAME
Bio::Ontology::OBOEngine - An Ontology Engine for OBO style flat file format from the Gene Ontology Consortium
SYNOPSIS
use Bio::Ontology::OBOEngine;my $parser = Bio::Ontology::OBOEngine->new( -file => "gene_ontology.obo" );my $engine = $parser->parse();
DESCRIPTION
Needs Graph.pm from CPAN.
This module replaces SimpleGOEngine.pm, which is deprecated.
FEEDBACK
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.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
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.
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:
https://github.com/bioperl/bioperl-live/issues
AUTHOR
Sohel Merchant
Email: [email protected]
Address:
Northwestern UniversityCenter for Genetic Medicine (CGM), dictyBaseSuite 1206,676 St. Clair stChicago IL 60611
CONTRIBUTOR
Hilmar Lapp, hlapp at gmx.netChris Mungall, cjm at fruitfly.org
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
new
Title : newUsage : $engine = Bio::Ontology::OBOEngine->new()Function: Creates a new OBOEngineReturns : A new OBOEngine objectArgs :
init
Title : init()Usage : $engine->init();Function: Initializes this Engine.Returns :Args :
is_a_relationship
Title : is_a_relationship()Usage : $IS_A = $engine->is_a_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "is-a"relationshipsReturns : Bio::Ontology::RelationshipType set to "IS_A"Args :
part_of_relationship
Title : part_of_relationship()Usage : $PART_OF = $engine->part_of_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "part-of"relationshipsReturns : Bio::Ontology::RelationshipType set to "PART_OF"Args :
related_to_relationship
Title : related_to_relationship()Usage : $RELATED_TO = $engine->related_to_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "related-to"relationshipsReturns : Bio::Ontology::RelationshipType set to "RELATED_TO"Args :
regulates_relationship
Title : regulates_relationship()Usage : $REGULATES = $engine->regulates_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "regulates"relationshipsReturns : Bio::Ontology::RelationshipType set to "REGULATES"Args :
positively_regulates_relationship
Title : positively_regulates_relationship()Usage : $REGULATES = $engine->positively_regulates_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "positively_regulates"relationshipsReturns : Bio::Ontology::RelationshipType set to "POSITIVELY_REGULATES"Args :
negatively_regulates_relationship
Title : negatively_regulates_relationship()Usage : $REGULATES = $engine->negatively_regulates_relationship();Function: Returns a Bio::Ontology::RelationshipType object for "negatively_regulates"relationshipsReturns : Bio::Ontology::RelationshipType set to "POSITIVELY_REGULATES"Args :
add_term
Title : add_termUsage : $engine->add_term( $term_obj );Function: Adds a Bio::Ontology::TermI to this engineReturns : true if the term was added and false otherwise (e.g., if theterm already existed in the ontology engine)Args : Bio::Ontology::TermI`
has_term
Title : has_termUsage : $engine->has_term( $term );Function: Checks whether this engine contains a particular termReturns : true or falseArgs : Bio::Ontology::TermIorTerm identifier (e.g. "GO:0012345")
add_relationship_type
Title : add_relationship_typeUsage : $engine->add_relationship_type( $type_name, $ont );Function: Adds a new relationship type to the engine. Useget_relationship_type($type_name) to retrieve.Returns : true if successfully added, false otherwiseArgs : relationship type name to add (scalar)ontology to which to assign the relationship type
get_relationship_type
Title : get_relationship_typeUsage : $engine->get_relationship_type( $type_name );Function: Gets a Bio::Ontology::RelationshipI object correspondingto $type_nameReturns : a Bio::Ontology::RelationshipI objectArgs :
add_relationship
Title : add_relationshipUsage : $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 engineReturns : true if successfully added, false otherwiseArgs : The relationship in one of three ways:a) subject (or child) term id, Bio::Ontology::TermI(rel.type), object (or parent) term id, ontologyorb) subject Bio::Ontology::TermI, predicateBio::Ontology::TermI (rel.type), objectBio::Ontology::TermI, ontologyorc) Bio::Ontology::RelationshipI-compliant object
get_relationships
Title : get_relationshipsUsage : $engine->get_relationships( $term );Function: Returns all relationships of a term, or all relationships inthe graph if no term is specified.Returns : RelationshipArgs : term idorBio::Ontology::TermI
get_all_relationships
Title : get_all_relationshipsUsage : @rels = $engine->get_all_relationships();Function: Returns all relationships in the graph.Returns : RelationshipArgs :
get_predicate_terms
Title : get_predicate_termsUsage : $engine->get_predicate_terms();Function: Returns the types of relationships this engine containsReturns : Bio::Ontology::RelationshipTypeArgs :
get_child_terms
Title : get_child_termsUsage : $engine->get_child_terms( $term_obj, @rel_types );$engine->get_child_terms( $term_id, @rel_types );Function: Returns the children of this termReturns : Bio::Ontology::TermIArgs : Bio::Ontology::TermI, Bio::Ontology::RelationshipTypeorterm id, Bio::Ontology::RelationshipTypeif NO Bio::Ontology::RelationshipType is indicated: childrenof ALL types are returned
get_descendant_terms
Title : get_descendant_termsUsage : $engine->get_descendant_terms( $term_obj, @rel_types );$engine->get_descendant_terms( $term_id, @rel_types );Function: Returns the descendants of this termReturns : Bio::Ontology::TermIArgs : Bio::Ontology::TermI, Bio::Ontology::RelationshipTypeorterm id, Bio::Ontology::RelationshipTypeif NO Bio::Ontology::RelationshipType is indicated:descendants of ALL types are returned
get_parent_terms
Title : get_parent_termsUsage : $engine->get_parent_terms( $term_obj, @rel_types );$engine->get_parent_terms( $term_id, @rel_types );Function: Returns the parents of this termReturns : Bio::Ontology::TermIArgs : Bio::Ontology::TermI, Bio::Ontology::RelationshipTypeorterm id, Bio::Ontology::RelationshipTypeif NO Bio::Ontology::RelationshipType is indicated:parents of ALL types are returned
get_ancestor_terms
Title : get_ancestor_termsUsage : $engine->get_ancestor_terms( $term_obj, @rel_types );$engine->get_ancestor_terms( $term_id, @rel_types );Function: Returns the ancestors of this termReturns : Bio::Ontology::TermIArgs : Bio::Ontology::TermI, Bio::Ontology::RelationshipTypeorterm id, Bio::Ontology::RelationshipTypeif NO Bio::Ontology::RelationshipType is indicated:ancestors of ALL types are returned
get_leaf_terms
Title : get_leaf_termsUsage : $engine->get_leaf_terms();Function: Returns the leaf termsReturns : Bio::Ontology::TermIArgs :
get_root_terms()
Title : get_root_termsUsage : $engine->get_root_terms();Function: Returns the root termsReturns : Bio::Ontology::TermIArgs :
get_terms
Title : get_termsUsage : @terms = $engine->get_terms( "GO:1234567", "GO:2234567" );Function: Returns term objects with given identifiersReturns : Bio::Ontology::TermI, or the term corresponding to thefirst identifier if called in scalar contextArgs : term ids
get_all_terms
Title : get_all_termsUsage : $engine->get_all_terms();Function: Returns all terms in this engineReturns : Bio::Ontology::TermIArgs :
find_terms
Title : find_termsUsage : ($term) = $oe->find_terms(-identifier => "SO:0000263");Function: Find term instances matching queries for their attributes.This implementation can efficiently resolve queries byidentifier.Example :Returns : an array of zero or more Bio::Ontology::TermI objectsArgs : Named parameters. The following parameters should be recognizedby any implementations:-identifier query by the given identifier-name query by the given name
find_identically_named_terms
Title : find_identically_named_termsUsage : ($term) = $oe->find_identically_named_terms($term0);Function: Find term instances where names match the query termname exactlyExample :Returns : an array of zero or more Bio::Ontology::TermI objectsArgs : a Bio::Ontology::TermI object
find_identical_terms
Title : find_identical_termsUsage : ($term) = $oe->find_identical_terms($term0);Function: Find term instances where name or synonymmatches the query exactlyExample :Returns : an array of zero or more Bio::Ontology::TermI objectsArgs : a Bio::Ontology::TermI object
find_similar_terms
Title : find_similar_termsUsage : ($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 objectsArgs : a Bio::Ontology::TermI object
relationship_factory
Title : relationship_factoryUsage : $fact = $obj->relationship_factory()Function: Get/set the object factory to be used when relationshipobjects are created by the implementation on-the-fly.Example :Returns : value of relationship_factory (a Bio::Factory::ObjectFactoryIcompliant object)Args : on set, a Bio::Factory::ObjectFactoryI compliant object
term_factory
Title : term_factoryUsage : $fact = $obj->term_factory()Function: Get/set the object factory to be used when term objects arecreated by the implementation on-the-fly.Note that this ontology engine implementation does notcreate term objects on the fly, and therefore setting thisattribute is meaningless.Example :Returns : value of term_factory (a Bio::Factory::ObjectFactoryIcompliant object)Args : on set, a Bio::Factory::ObjectFactoryI compliant object
graph
Title : graph()Usage : $engine->graph();Function: Returns the Graph this engine is based onReturns : GraphArgs :