|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.bio.geneset.GONames
Rea data from GO XML file, store in easy-to-use data structure.
Copyright (c) 2004 Columbia University
| Constructor Summary | |
GONames(java.io.InputStream inputStream)
|
|
GONames(java.lang.String filename)
|
|
| Method Summary | |
void |
addClass(java.lang.String id,
java.lang.String name)
|
java.lang.String |
getAspectForId(java.lang.String go_ID)
Get the aspect (molecular_function etc) for an id. |
java.util.Set |
getChildren(java.lang.String id)
|
DirectedGraph |
getGraph()
Get the graph representation of the GO hierarchy. |
java.util.Map |
getMap()
Get the Map representation of the GO id - name associations. |
java.lang.String |
getNameForId(java.lang.String go_ID)
|
java.util.Set |
getNewGeneSets()
Return the Set of all new gene sets (ones which were added after loading the file) |
java.util.Set |
getParents(java.lang.String id)
|
void |
modifyClass(java.lang.String id,
java.lang.String name)
|
boolean |
newSet(java.lang.String id)
Check if a gene set is already defined. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GONames(java.lang.String filename)
throws org.xml.sax.SAXException,
java.io.IOException
filename - String The XML file containing class to name mappings. First column is the class
id, second is a description that will be used int program output.
java.io.IOException
org.xml.sax.SAXException
public GONames(java.io.InputStream inputStream)
throws java.io.IOException,
org.xml.sax.SAXException
inputStream -
java.io.IOException
org.xml.sax.SAXException| Method Detail |
public DirectedGraph getGraph()
public java.util.Set getChildren(java.lang.String id)
id -
public java.util.Set getParents(java.lang.String id)
id -
public java.util.Map getMap()
public java.lang.String getNameForId(java.lang.String go_ID)
go_ID - String
public java.lang.String getAspectForId(java.lang.String go_ID)
go_ID -
public void addClass(java.lang.String id,
java.lang.String name)
id - Stringname - String
public void modifyClass(java.lang.String id,
java.lang.String name)
id - Stringname - Stringpublic boolean newSet(java.lang.String id)
id -
public java.util.Set getNewGeneSets()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||