edu.iastate.metnet.metaomgraph
Class MetaOmAnalyzer

java.lang.Object
  extended by edu.iastate.metnet.metaomgraph.MetaOmAnalyzer

public class MetaOmAnalyzer
extends java.lang.Object


Field Summary
static int PEARSON
           
static int SPEARMAN
           
 
Constructor Summary
MetaOmAnalyzer()
           
 
Method Summary
static void doAnalysis(MetaOmProject project, java.lang.String geneList, int row, java.lang.String name, int method)
          Runs an analysis of the given row, in a given list, in a given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PEARSON

public static final int PEARSON
See Also:
Constant Field Values

SPEARMAN

public static final int SPEARMAN
See Also:
Constant Field Values
Constructor Detail

MetaOmAnalyzer

public MetaOmAnalyzer()
Method Detail

doAnalysis

public static void doAnalysis(MetaOmProject project,
                              java.lang.String geneList,
                              int row,
                              java.lang.String name,
                              int method)
                       throws java.io.IOException
Runs an analysis of the given row, in a given list, in a given project. Note that the row is within the list, not within the project. So to use the second row in the list as base data, you would pass 2 as the row parameter, regardless of what row in the complete list it represented. After the analysis completes successfully, this method calls project.setLastCorrelation(result, name+" Correlation").

Parameters:
project - a MetaOmProject to use for analysis
geneList - The name of the list in the project to analyze. If this value is null, MetaOmProject.COMPLETE_LIST will be assumed.
row - the row in the list to use as "base data"
name - an identifier for the base data row
method - the correlation method to use (MetaOmAnalyzer.PEARSON or MetaOmAnalyzer.SPEARMAN)
Throws:
java.io.IOException - if there is an error retrieving data from the project