|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.db.Database
public class Database
The Database Class encapsulates the functionality that interacts with the Metnet MySQL database.
| Field Summary | |
|---|---|
(package private) java.sql.Connection |
connection
|
| Constructor Summary | |
|---|---|
Database()
Constructor. |
|
| Method Summary | |
|---|---|
java.util.HashMap |
getAllLocationInfo()
This method retrieves all of the cellular location information from the database. |
java.util.ArrayList |
getGoBioProcesses(java.lang.Integer goID)
This method returns a list of GO biological process term IDs in which the given entity participates. |
java.util.ArrayList |
getGoChildren(java.lang.Integer goNodeID)
This method retrieves a list of the child nodes for the given node. |
java.util.ArrayList |
getGoFunctions(java.lang.Integer goID)
This method returns a list of GO molecular function term IDs in which the given entity is involved. |
java.lang.Integer |
getGoGeneProductID(java.lang.String locusID)
This method converts the given locus ID into a GO gene product ID querying the GO database in the Metnet DB. |
java.lang.String |
getGoNodeName(java.lang.Integer goNodeID)
This method retrieves the name of the GO node with the given ID. |
java.util.ArrayList |
getGoNodesWithinDistance(java.lang.Integer rootNodeID,
int distance)
This method retrieves a unique list of the nodes of the hierarchy for the given root within the given distance from the root. |
java.util.ArrayList |
getGoTermAncestors(java.lang.Integer goTermID)
This method returns a list of terms which are the ancestors (parents, itself, etc.) for the given term. |
java.util.ArrayList |
getLocations(java.lang.Integer entityID)
This method returns a list of cellular locations for the given entity. |
java.util.ArrayList |
getLocusIDs(java.lang.String affyID)
This method converts the given affymetrix ID (..._at) into Locus IDs (AT-G----...) by querying a cross-ref table in the Metnet DB. |
java.lang.Integer |
getMetnetEntityID(java.lang.String locusID)
This method converts the given locus ID into a Metnet Entity ID by querying the Metnet DB. |
java.util.ArrayList |
getPathways(java.lang.Integer entityID)
This method returns a list of pathways in which the given entity participates. |
java.util.ArrayList |
getPolypeptides(java.lang.Integer entityID)
This method returns a list of polypeptides for the given entity (gene). |
java.util.ArrayList |
getProteinComplexes(java.lang.Integer entityID)
This method returns a list of protein complexes of which the given entity (polypeptide) is a component. |
void |
initialize()
This method makes the connection to the Metnet DB. |
static void |
main(java.lang.String[] args)
This method tests the Database class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.sql.Connection connection
| Constructor Detail |
|---|
public Database()
| Method Detail |
|---|
public void initialize()
throws BirdsEyeViewException
BirdsEyeViewException - SQL error
public java.lang.Integer getMetnetEntityID(java.lang.String locusID)
throws BirdsEyeViewException
locusID - Locus ID
BirdsEyeViewException - SQL error
public java.util.ArrayList getLocusIDs(java.lang.String affyID)
throws BirdsEyeViewException
affyID - Affymatrix ID
BirdsEyeViewException - SQL error
public java.util.ArrayList getPolypeptides(java.lang.Integer entityID)
throws BirdsEyeViewException
entityID -
BirdsEyeViewException - SQL error
public java.util.ArrayList getProteinComplexes(java.lang.Integer entityID)
throws BirdsEyeViewException
entityID -
BirdsEyeViewException - SQL error
public java.util.ArrayList getLocations(java.lang.Integer entityID)
throws BirdsEyeViewException
entityID -
BirdsEyeViewException - SQL error
public java.util.ArrayList getPathways(java.lang.Integer entityID)
throws BirdsEyeViewException
entityID -
BirdsEyeViewException - SQL error
public java.lang.Integer getGoGeneProductID(java.lang.String locusID)
throws BirdsEyeViewException
locusID - Locus ID
BirdsEyeViewException - SQL error
public java.util.ArrayList getGoBioProcesses(java.lang.Integer goID)
throws BirdsEyeViewException
goID -
BirdsEyeViewException - SQL error
public java.util.ArrayList getGoFunctions(java.lang.Integer goID)
throws BirdsEyeViewException
goID -
BirdsEyeViewException - SQL error
public java.util.ArrayList getGoChildren(java.lang.Integer goNodeID)
throws BirdsEyeViewException
goNodeID -
BirdsEyeViewException
public java.util.ArrayList getGoTermAncestors(java.lang.Integer goTermID)
throws BirdsEyeViewException
goTermID - GO term ID
BirdsEyeViewException
public java.util.ArrayList getGoNodesWithinDistance(java.lang.Integer rootNodeID,
int distance)
throws BirdsEyeViewException
rootNodeID - distance - Distance from the root (inclusive)
BirdsEyeViewException
public java.lang.String getGoNodeName(java.lang.Integer goNodeID)
throws BirdsEyeViewException
goNodeID -
BirdsEyeViewException - Database error
public java.util.HashMap getAllLocationInfo()
throws BirdsEyeViewException
BirdsEyeViewException - Database errorpublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||