|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.annotation.Ontology
public class Ontology
Contains a collection of OntologyTerms, each of which may have pointers to other terms, creating a hierarchical controlled vocabulary. The pointers may express either "parent/child" relationships, or "container/contained" relationships. Objects of this class each aggregate a full set of related terms, creating a distinct ontology of a certain type, like KEGG's metabolic pathways, or GeneOntology's biological processes. Extensive navigational methods are provided so that, for instance, the full leaf-to-root biological process hierarchies which may exist for a given gene are conveniently returned.
Constructor Summary | |
---|---|
Ontology(String curator,
String ontologyType)
|
Method Summary | |
---|---|
void |
add(OntologyTerm newTerm)
DOCUMENT ME! |
boolean |
containsTerm(int id)
DOCUMENT ME! |
int[][] |
getAllHierarchyPaths(int termID)
get all unique paths from the termID to the root of the ontology, in reverse order, with the most general classification first, and most specific last. |
String[][] |
getAllHierarchyPathsAsNames(int termID)
DOCUMENT ME! |
String |
getCurator()
DOCUMENT ME! |
OntologyDescription |
getDescription()
DOCUMENT ME! |
OntologyTerm |
getTerm(int id)
DOCUMENT ME! |
HashMap |
getTerms()
DOCUMENT ME! |
String |
getType()
DOCUMENT ME! |
int |
size()
DOCUMENT ME! |
String |
toString()
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ontology(String curator, String ontologyType)
curator
- The institute or group which maintains this ontologyontolotyType
- The nature of this ontology, eg, "metabolic pathway",
"molecular function", or "cellular component"Method Detail |
---|
public String getCurator()
public String getType()
public void add(OntologyTerm newTerm)
newTerm
- DOCUMENT ME!public int size()
public HashMap getTerms()
public boolean containsTerm(int id)
id
- DOCUMENT ME!
public OntologyTerm getTerm(int id)
id
- DOCUMENT ME!
public int[][] getAllHierarchyPaths(int termID)
public String[][] getAllHierarchyPathsAsNames(int termID)
termID
- DOCUMENT ME!
public OntologyDescription getDescription()
public String toString()
toString
in class Object
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |