|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.Annotation
public class Annotation
The Annotation Class encapsulates the annotation data for one gene product. It actually only holds the data that is necessary in the Bird's Eye View. It also holds the experimental variance (i.e. the percentage change from normal levels for this experiment) which is odd but convenient.
| Field Summary | |
|---|---|
static java.lang.String |
GeneType
|
static java.lang.String |
PolypeptideType
|
static java.lang.String |
ProteinComplexType
|
| Constructor Summary | |
|---|---|
Annotation(java.lang.String lid,
int mid)
Constructor. |
|
Annotation(java.lang.String n,
java.lang.String t,
java.util.ArrayList l,
java.util.ArrayList p,
double v,
java.util.ArrayList g,
java.util.ArrayList f)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addLocations(java.util.ArrayList locs)
Add the locations and set the location string. |
void |
addPathways(java.util.ArrayList paths)
Adds the pathways and sets the pathway string. |
void |
addProtein(Protein protein)
This method adds the given protein to the protein list. |
int |
compareTo(Annotation b)
This method implements the interface's method compareTo in order to sort the list |
static java.lang.String |
createListString(java.lang.String prefix,
java.util.ArrayList list)
This method turns a list of strings into a comma-delimited string. |
boolean |
equals(Annotation a)
This method compares this object to the given object. |
java.util.ArrayList |
getGoBioProcesses()
This method returns the node IDs of the GO biological processes in which this gene product participates. |
java.util.ArrayList |
getGoFunctions()
This method returns the node IDs of the GO molecular functions of this gene product. |
int |
getGoGeneProductID()
Returns the gene ontology gene product ID. |
java.util.ArrayList |
getLocations()
Returns the locations. |
java.lang.String |
getLocationString()
Returns the location string. |
java.lang.String |
getLocusID()
Returns the locus ID. |
int |
getMetnetEntityID()
Returns the metnet entity ID. |
java.lang.String |
getName()
Returns the name. |
java.util.ArrayList |
getPathways()
Returns the pathways. |
java.lang.String |
getPathwayString()
Returns the pathway string. |
java.util.ArrayList |
getProteins()
Returns the proteins. |
java.lang.String |
getType()
Returns the type. |
double |
getVariance()
This method returns the experimental variance. |
boolean |
hasGoBioProcess(java.lang.Integer nodeID)
This method indicates whether or not this gene product participates in the GO Biological Process with the given ID. |
boolean |
hasGoFunction(java.lang.Integer nodeID)
This method indicates whether or not this gene product has the GO molecular function with the given ID. |
static void |
main(java.lang.String[] args)
This method tests the Annotation class. |
void |
setGoBioProcesses(java.util.ArrayList nodes)
This method sets the the node IDs of the GO biological processes in which this gene product participates. |
void |
setGoFunctions(java.util.ArrayList nodes)
This method sets the node IDs of the GO molecular functions of this gene product. |
void |
setGoGeneProductID(int id)
Returns the gene ontology gene product ID. |
void |
setLocations(java.util.ArrayList locs)
Sets the locations and the location string. |
void |
setLocusID(java.lang.String id)
Sets the locus ID. |
void |
setMetnetEntityID(int id)
Returns the metnet entity ID. |
void |
setName()
Sets the name. |
void |
setPathways(java.util.ArrayList paths)
Sets the pathways and the pathway string. |
void |
setVariance(double v)
Sets the experimental variance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ProteinComplexType
public static final java.lang.String PolypeptideType
public static final java.lang.String GeneType
| Constructor Detail |
|---|
public Annotation(java.lang.String lid,
int mid)
lid - Locus IDmid - Metnet Entity ID
public Annotation(java.lang.String n,
java.lang.String t,
java.util.ArrayList l,
java.util.ArrayList p,
double v,
java.util.ArrayList g,
java.util.ArrayList f)
n - t - l - List of String objectsp - List of String objectsv - g - List of Integer objectsf - List of Integer objects| Method Detail |
|---|
public java.util.ArrayList getLocations()
public void setLocations(java.util.ArrayList locs)
List - of String objectspublic void addLocations(java.util.ArrayList locs)
List - of String objectspublic java.lang.String getLocationString()
public java.lang.String getName()
public void setName()
public java.util.ArrayList getPathways()
public void setPathways(java.util.ArrayList paths)
List - of String objectspublic void addPathways(java.util.ArrayList paths)
List - of String objectspublic java.lang.String getPathwayString()
public java.lang.String getType()
public double getVariance()
public void setVariance(double v)
v - public java.lang.String getLocusID()
public void setLocusID(java.lang.String id)
id - String objectpublic int getMetnetEntityID()
public void setMetnetEntityID(int id)
id - Metnet Entity IDpublic java.util.ArrayList getProteins()
public void addProtein(Protein protein)
protein - Protein objectpublic int getGoGeneProductID()
public void setGoGeneProductID(int id)
id - Gene Ontology gene product IDpublic java.util.ArrayList getGoBioProcesses()
public void setGoBioProcesses(java.util.ArrayList nodes)
nodes - ArrayList of Integer objectspublic boolean hasGoBioProcess(java.lang.Integer nodeID)
nodeID -
public boolean hasGoFunction(java.lang.Integer nodeID)
nodeID -
public java.util.ArrayList getGoFunctions()
public void setGoFunctions(java.util.ArrayList nodes)
nodes - ArrayList of Integer objectspublic boolean equals(Annotation a)
a - Annotation object
public static java.lang.String createListString(java.lang.String prefix,
java.util.ArrayList list)
prefix - list -
public int compareTo(Annotation b)
compareTo in interface java.lang.Comparable<Annotation>two - annotation s,public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||