|
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.Annotation
public class Annotation
Store any number of classifications for named entities, each of which is from a specified species, and where the classifications are all terms from an ontology (a controlled vocabulary for some subject domain, expressed as a directed acyclic graph). For example:
Constructor Summary | |
---|---|
Annotation(String species,
String type,
Ontology ontology)
Creates a new Annotation object. |
|
Annotation(String species,
String type,
String curator)
Creates a new Annotation object. |
Method Summary | |
---|---|
void |
add(String name,
int classificationID)
create a new annotation for an entity (typically a gene) of the current species and with respect to the current ontology. an entity may have more than one classification. |
int |
count()
total number of entities, usually ORFs. |
String[][] |
getAllHierarchyPathsAsNames(String name)
DOCUMENT ME! |
int[] |
getClassifications()
returns an array of all the classifications in the current annotation |
int[] |
getClassifications(String name)
all of the ontology identifiers registered for the specified entity |
Vector |
getClassificationsVector(String name)
all of the ontology identifiers registered for the specified entity, as a Vector of Integers |
String |
getCurator()
DOCUMENT ME! |
HashMap |
getMap()
DOCUMENT ME! |
String[] |
getNames()
returns an array of all the names (usually ORFs) currently annotated |
Ontology |
getOntology()
DOCUMENT ME! |
String |
getOntologyType()
DOCUMENT ME! |
String |
getSpecies()
DOCUMENT ME! |
String |
getType()
DOCUMENT ME! |
int |
maxDepth()
get all of the full paths (as ints) from the ontology for all of the currently annotated entities. then traverse this (possibly large) list and return the longest path. |
void |
setOntology(Ontology newValue)
DOCUMENT ME! |
int |
size()
total number of classifications. this will usually be larget than count (), since entities are frequently given two or more classifications, reflecting the multiple roles of many biological entities. |
String |
toString()
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Annotation(String species, String type, Ontology ontology)
species
- DOCUMENT ME!type
- DOCUMENT ME!ontology
- DOCUMENT ME!public Annotation(String species, String type, String curator)
species
- DOCUMENT ME!type
- DOCUMENT ME!curator
- DOCUMENT ME!Method Detail |
---|
public HashMap getMap()
public void setOntology(Ontology newValue)
newValue
- DOCUMENT ME!public Ontology getOntology()
public String getCurator()
public String getType()
public String getOntologyType()
public String getSpecies()
public void add(String name, int classificationID)
name
- usually an ORF name, a unique identifier for this speciesclassificationID
- a pointer into the ontology hierarchypublic String[] getNames()
public int[] getClassifications()
public int[] getClassifications(String name)
public Vector getClassificationsVector(String name)
public String[][] getAllHierarchyPathsAsNames(String name)
name
- DOCUMENT ME!
public int count()
public int size()
public int maxDepth()
public String toString()
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |