Bio::Ontology
SimpleGOEngine
Summary
Bio::Ontology::SimpleGOEngine - a Ontology Engine for GO implementing OntologyEngineI
Package variables
No package variables defined.
Inherit
Synopsis
use Bio::Ontology::SimpleGOEngine;
my $parser = Bio::Ontology::SimpleGOEngine->new
( -defs_file => "/home/czmasek/GO/GO.defs",
-files => ["/home/czmasek/GO/component.ontology",
"/home/czmasek/GO/function.ontology",
"/home/czmasek/GO/process.ontology"] );
my $engine = $parser->parse();
my $IS_A = Bio::Ontology::RelationshipType->get_instance( "IS_A" );
my $PART_OF = Bio::Ontology::RelationshipType->get_instance( "PART_OF" );
my $RELATED_TO = Bio::Ontology::RelationshipType->get_instance( "RELATED_TO" );
Description
This class is deprecated and instead Bio::Ontology::OBOEngine should be used.
Needs Graph.pm from CPAN.
Methods
| _get_id | No description | Code |
Methods description
None available.
Methods code
| _get_id | description | prev | next | Top |
sub _get_id
{ my ( $self, $term ) = @_;
my $id = $term;
if(ref($term)) {
$self->throw("Object doesn't implement Bio::Ontology::TermI. ".
"Bummer.")
unless $term->isa("Bio::Ontology::TermI");
$id = $term->identifier();
if(!$id) {
$id = $term->ontology->name() if $term->ontology();
$id = $id ? $id.'|' : '';
$id .= $term->name();
}
}
return $id
if $term->isa("Bio::Ontology::GOterm")||($id =~ /^\w+:\w+$/);
if($id =~ /^\d+$/) {
$self->warn(ref($self).": identifier [$id] is only numbers - ".
"prefixing with 'GO:'");
return "GO:" . $id;
}
$self->throw(ref($self).": non-standard identifier '$id'\n")
unless $id =~ /\|/;
return $id;
}
} |
General documentation
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.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
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:
http://bugzilla.open-bio.org/
The rest of the documentation details each of the object
methods. Internal methods are usually preceded with a _