|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectbaseCode.bio.geneset.GeneAnnotations
Reads tab-delimited file to create maps of probes to classes, classes to probes, probes to genes, genes to probes.
Maintains the following important data structures, all derived from the input file:
probe->Classes -- each value is a Set of the Classes that a probe belongs to.
Classes->probe -- each value is a Set of the probes that belong to a class
probe->gene -- each value is the gene name corresponding to the probe.
gene->list of probes -- each value is a list of probes corresponding to a gene
probe->description -- each value is a text description of the probe (actually...of the gene)
Copyright (c) 2004 Columbia University
| Constructor Summary | |
GeneAnnotations(GeneAnnotations geneData,
java.util.Set activeProbes)
This is for creating GeneAnnotations by pruning a copy. |
|
GeneAnnotations(java.io.InputStream stream,
java.util.Set activeGenes,
StatusViewer messenger)
Make a new GeneAnnotations that only includes the probes in the parameter 'probes'. |
|
GeneAnnotations(java.lang.String fileName,
java.util.Set activeGenes,
StatusViewer messenger)
|
|
GeneAnnotations(java.lang.String filename,
StatusViewer messenger)
This is for creating GeneAnnotations by reading from a file |
|
| Method Summary | |
void |
addClass(java.lang.String id,
java.util.ArrayList probesForNew)
Add a class |
boolean |
geneSetExists(java.lang.String id)
Returns true if the class is in the classToProbe map |
java.util.Map |
geneSetToRedundantMap()
|
java.util.ArrayList |
getClassToProbes(java.lang.String id)
|
java.util.ArrayList |
getGeneProbeList(java.lang.String g)
Get a list of the probes that correspond to a particular gene. |
java.lang.String |
getGeneSetByIndex(int i)
Get a class by an integer index i from the sorted list. |
java.util.Map |
getGeneSetToGeneMap()
|
java.util.Map |
getGeneSetToProbeMap()
|
java.util.Map |
getGeneToGeneSetMap()
|
java.util.Map |
getGeneToProbeList()
|
java.lang.String |
getProbeDescription(java.lang.String p)
Get the description for a gene. |
java.lang.String |
getProbeGeneName(java.lang.String p)
Get the gene that a probe belongs to. |
java.util.Map |
getProbeToGeneMap()
|
java.util.Map |
getProbeToGeneSetMap()
|
java.util.List |
getSelectedProbes()
|
java.util.List |
getSelectedSets()
|
void |
modifyClass(java.lang.String classId,
java.util.ArrayList probesForNew)
Redefine a class. |
int |
numAnnotatedGenes()
Compute how many genes have Gene set annotations. |
int |
numGenes()
How many genes are in the file? |
int |
numGeneSets()
Get the number of classes. |
int |
numGenesInGeneSet(java.lang.String id)
Get the number of genes in a gene set, identified by id. |
int |
numProbesForGene(java.lang.String g)
Get how many probes point to the same gene. |
int |
numProbesInGeneSet(java.lang.String id)
Get the number of probes in a gene set, identified by id. |
void |
print(java.io.Writer out)
Print out the gene annotations in the same format we got them in, but if the gene sets have been modified, this will be reflected. |
void |
removeClassFromMaps(java.lang.String id)
Remove a gene set (class) from all the maps that reference it. |
void |
resetSelectedProbes()
Set the selected gene set to be the entire set. |
void |
resetSelectedSets()
Set the selected gene set to be the entire set. |
int |
selectedProbes()
|
int |
selectedSets()
|
void |
selectProbes(java.lang.String searchOn)
Create a selected probes list based on a search string. |
void |
selectSets(java.lang.String searchOn,
GONames goData)
|
void |
sortGeneSets()
Sort the gene sets, filling out the sortedGeneSets. |
java.util.List |
sortGeneSetsBySize()
|
javax.swing.table.TableModel |
toTableModel()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GeneAnnotations(java.lang.String filename,
StatusViewer messenger)
throws java.io.IOException
filename - Stringmessenger - StatusViewer to print status updates to.
java.io.IOException
public GeneAnnotations(GeneAnnotations geneData,
java.util.Set activeProbes)
geneData - GeneAnnotations copy to prune fromactiveProbes - Set only include these probes
public GeneAnnotations(java.io.InputStream stream,
java.util.Set activeGenes,
StatusViewer messenger)
throws java.io.IOException
stream - activeGenes - Only genes in this set are left.
java.io.IOException
public GeneAnnotations(java.lang.String fileName,
java.util.Set activeGenes,
StatusViewer messenger)
throws java.io.IOException
fileName - | Method Detail |
public java.util.Map getProbeToGeneMap()
public java.util.Map getGeneToProbeList()
public java.util.Map getGeneSetToProbeMap()
public java.util.ArrayList getClassToProbes(java.lang.String id)
id - String class id
public void sortGeneSets()
public java.util.List sortGeneSetsBySize()
public java.util.Map getProbeToGeneSetMap()
public java.util.Map geneSetToRedundantMap()
public java.lang.String getProbeGeneName(java.lang.String p)
p - String
public java.lang.String getProbeDescription(java.lang.String p)
p - String
public java.util.ArrayList getGeneProbeList(java.lang.String g)
g - String a gene name
public java.lang.String getGeneSetByIndex(int i)
i -
public boolean geneSetExists(java.lang.String id)
id - String a class id
public int numProbesForGene(java.lang.String g)
g -
public int numGeneSets()
public int numGenes()
public int numProbesInGeneSet(java.lang.String id)
id - String a class id
public int numGenesInGeneSet(java.lang.String id)
id - String a class id
public void addClass(java.lang.String id,
java.util.ArrayList probesForNew)
id - String class to be addedprobesForNew - ArrayList user-defined list of members.
public void modifyClass(java.lang.String classId,
java.util.ArrayList probesForNew)
classId - String class to be modifiedprobesForNew - ArrayList current user-defined list of members. The "real" version of the class is modified to
look like this one.public javax.swing.table.TableModel toTableModel()
public void selectProbes(java.lang.String searchOn)
searchOn - A string to be searched.public void resetSelectedProbes()
public java.util.List getSelectedProbes()
public int selectedProbes()
public void selectSets(java.lang.String searchOn,
GONames goData)
searchOn - goData - public void resetSelectedSets()
public java.util.List getSelectedSets()
public int selectedSets()
public void print(java.io.Writer out)
throws java.io.IOException
out -
java.io.IOExceptionpublic java.util.Map getGeneSetToGeneMap()
public java.util.Map getGeneToGeneSetMap()
public int numAnnotatedGenes()
public void removeClassFromMaps(java.lang.String id)
id -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||