1GO::OntologyProvider(3)User Contributed Perl DocumentatioGnO::OntologyProvider(3)
2
3
4

NAME

6       GO::OntologyProvider - abstract base class providing API for the
7       provision on Gene Ontology information
8

DESCRIPTION

10       GO::OntologyProvider is an abstract class that defines an interface
11       that should be implemented by specific subclasses, which may read
12       ontology information from databases, flatfiles, XML files etc.
13
14       All of the methods return either one or many GO::Node(s), and any
15       concrete subclass is expected to fully flesh out the such Node objects
16       with all the parents, children and paths to the root, such that any
17       node should return a true value when the isValid method is invoked on
18       it.
19

Constructor

21       Because this is an abstract class, there is no constructor.  A
22       constructor must be implemented by concrete subclasses.
23

Public instance methods

25       All of these public instance methods must be implemented by concrete
26       subclasses.
27
28   allNodes
29       This method returns an array of all the GO::Nodes that have been
30       created.
31
32       Usage:
33
34           my @nodes = $ontologyProvider->allNodes;
35
36   rootNode
37       This method returns the root node in the ontology.
38
39       Usage:
40
41               my $rootNode = $ontologyProvider->rootNode;
42
43   nodeFromId
44       This method returns a GO::Node corresponding to the provided GOID,
45       should one exist.  Otherwise it returns undef.
46
47       Usage:
48
49               my $node = $ontologyProvider->nodeFromId("GO:0003673");
50
51   numNodes
52       This method returns the number of nodes that exist within the ontology.
53
54       Usage:
55
56               my $numNodes = $ontologyProvider->numNodes;
57

AUTHOR

59       Gavin Sherlock,  sherlock@genome.stanford.edu
60
61
62
63perl v5.28.0                      2004-05-05           GO::OntologyProvider(3)
Impressum