|
NAMEBio::Ontology::OBOEngine - An Ontology Engine for OBO style flat file format from the Gene Ontology ConsortiumSYNOPSISuse Bio::Ontology::OBOEngine; my $parser = Bio::Ontology::OBOEngine->new ( -file => "gene_ontology.obo" ); my $engine = $parser->parse(); DESCRIPTIONNeeds Graph.pm from CPAN.This module replaces SimpleGOEngine.pm, which is deprecated. FEEDBACKMailing ListsUser 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.bioperl-l@bioperl.org - General discussion http://bioperl.org/wiki/Mailing_lists - About the mailing lists SupportPlease direct usage questions or support issues to the mailing list:bioperl-l@bioperl.org 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 BugsReport 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 AUTHORSohel MerchantEmail: s-merchant@northwestern.edu Address: Northwestern University Center for Genetic Medicine (CGM), dictyBase Suite 1206, 676 St. Clair st Chicago IL 60611 CONTRIBUTORHilmar Lapp, hlapp at gmx.net Chris Mungall, cjm at fruitfly.org APPENDIXThe rest of the documentation details each of the object methods. Internal methods are usually preceded with a _newTitle : new Usage : $engine = Bio::Ontology::OBOEngine->new() Function: Creates a new OBOEngine Returns : A new OBOEngine object Args : initTitle : init() Usage : $engine->init(); Function: Initializes this Engine. Returns : Args : is_a_relationshipTitle : 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 : part_of_relationshipTitle : 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 : related_to_relationshipTitle : 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 : regulates_relationshipTitle : 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 : positively_regulates_relationshipTitle : 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 : negatively_regulates_relationshipTitle : 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 : add_termTitle : 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` has_termTitle : 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") add_relationship_typeTitle : 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 get_relationship_typeTitle : 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 : add_relationshipTitle : 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 get_relationshipsTitle : 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 get_all_relationshipsTitle : get_all_relationships Usage : @rels = $engine->get_all_relationships(); Function: Returns all relationships in the graph. Returns : Relationship Args : get_predicate_termsTitle : get_predicate_terms Usage : $engine->get_predicate_terms(); Function: Returns the types of relationships this engine contains Returns : Bio::Ontology::RelationshipType Args : get_child_termsTitle : 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 get_descendant_termsTitle : 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 get_parent_termsTitle : 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 get_ancestor_termsTitle : 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 get_leaf_termsTitle : get_leaf_terms Usage : $engine->get_leaf_terms(); Function: Returns the leaf terms Returns : Bio::Ontology::TermI Args : get_root_terms()Title : get_root_terms Usage : $engine->get_root_terms(); Function: Returns the root terms Returns : Bio::Ontology::TermI Args : get_termsTitle : 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 get_all_termsTitle : get_all_terms Usage : $engine->get_all_terms(); Function: Returns all terms in this engine Returns : Bio::Ontology::TermI Args : find_termsTitle : 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 find_identically_named_termsTitle : 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 find_identical_termsTitle : 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 find_similar_termsTitle : 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 relationship_factoryTitle : 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 term_factoryTitle : 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 graphTitle : graph() Usage : $engine->graph(); Function: Returns the Graph this engine is based on Returns : Graph Args :
Visit the GSP FreeBSD Man Page Interface. |