|
Cytoscape 2.1 (c) 2004 ISB, MSKCC, UCSD | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcytoscape.data.ExpressionData
This class provides a reader for the common file format for expression data and an interface to access the data.
There are variations in the file format used; the following assumptions about the file format are considered valid. Attempting to read a file that does not satisfy these assumptions is not guaranteed to work.
1. A token is a consecutive sequence of alphanumeric characters separated
by whitespace.
2. The file consists of an arbitrary number of lines, each of which
contains the same number of tokens (except for possibly the first line)
and has a total length less than 8193 characters.
3. The first line of the file is a header line with one of the following
three formats:
<\t><\t>RATIOS<\t><\t>...LAMBDAS
Here cond1 through condN are the names of the conditions. In the first
case, the two sequences of condition names must match exactly in order
and lexicographically; each name among cond1 ... condN must be unique.
In the second case, each name must be unique, but need only appear once.
The last label, NumSigConds, is optional.
4. Each successive line represents the measurements for a partcular gene,
and has one of the following two formats, depending on the header:
where
The first format is used in conjuction with the first or third header formats.
The second format is used in conjunction with the second header format.
5. An optional last line can be included with the following form:
NumSigGenes: I I ... I
where there are N I's, each an integer representing the number of
significant genes in that condition.
The third case is the standard header for a MTX file. The numer of '\t'
characters between the words "RATIOS" and "LAMBDAS" is equal to the number
of ratio columns in the file (which must be equal to the number of lambda
columns).
Field Summary
static intLAMBDA
static intMAX_LINE_SIZE
static intNONE
static intPVAL
Kinds of significance values
static intUNKNOWN
Constructor Summary
ExpressionData()
ExpressionData(String filename)
ExpressionData(String filename,
TaskMonitor taskMonitor)
Method Summary
voidconvertLambdasToPvals()
Converts all lambdas to p-values.
voidcopyToAttribs(cytoscape.data.GraphObjAttributes nodeAttribs,
TaskMonitor taskMonitor)
Copies ExpressionData data structure into
GraphObjAttributes data structure.
VectorgetAllMeasurements()
intgetConditionIndex(String condition)
String[]getConditionNames()
StringgetDescription()
Returns a text description of this data object.
double[][]getExtremeValues()
StringgetFileName()
FilegetFullPath()
StringgetGeneDescriptor(String gene)
String[]getGeneDescriptors()
VectorgetGeneDescriptorsVector()
String[]getGeneNames()
VectorgetGeneNamesVector()
cytoscape.data.mRNAMeasurementgetMeasurement(String gene,
String condition)
VectorgetMeasurements(String gene)
intgetNumberOfConditions()
intgetNumberOfGenes()
static doublegetPvalueFromLambda(double lambda)
intgetSignificanceType()
booleanhasSignificanceValues()
booleanloadData(String filename)
booleanoldLoadData(String filename)
voidsetGeneDescriptors(Vector newDescripts)
voidsetGeneNames(Vector newNames)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
MAX_LINE_SIZE
public static final int MAX_LINE_SIZE
PVAL
public static final int PVAL
LAMBDA
public static final int LAMBDA
NONE
public static final int NONE
UNKNOWN
public static final int UNKNOWN
Constructor Detail
ExpressionData
public ExpressionData()
ExpressionData
public ExpressionData(String filename)
throws IOException
ExpressionData
public ExpressionData(String filename,
TaskMonitor taskMonitor)
throws IOException
Method Detail
getFileName
public String getFileName()
getFullPath
public File getFullPath()
oldLoadData
public boolean oldLoadData(String filename)
throws IOException
IOException
loadData
public boolean loadData(String filename)
throws IOException
IOException
convertLambdasToPvals
public void convertLambdasToPvals()
getPvalueFromLambda
public static double getPvalueFromLambda(double lambda)
getSignificanceType
public int getSignificanceType()
getDescription
public String getDescription()
getNumberOfGenes
public int getNumberOfGenes()
getNumberOfConditions
public int getNumberOfConditions()
getGeneNames
public String[] getGeneNames()
getGeneNamesVector
public Vector getGeneNamesVector()
setGeneNames
public void setGeneNames(Vector newNames)
getGeneDescriptors
public String[] getGeneDescriptors()
getGeneDescriptorsVector
public Vector getGeneDescriptorsVector()
setGeneDescriptors
public void setGeneDescriptors(Vector newDescripts)
getConditionNames
public String[] getConditionNames()
getConditionIndex
public int getConditionIndex(String condition)
getExtremeValues
public double[][] getExtremeValues()
getGeneDescriptor
public String getGeneDescriptor(String gene)
hasSignificanceValues
public boolean hasSignificanceValues()
getAllMeasurements
public Vector getAllMeasurements()
getMeasurements
public Vector getMeasurements(String gene)
getMeasurement
public cytoscape.data.mRNAMeasurement getMeasurement(String gene,
String condition)
copyToAttribs
public void copyToAttribs(cytoscape.data.GraphObjAttributes nodeAttribs,
TaskMonitor taskMonitor)
nodeAttribs - Node Attributes Object.taskMonitor - Task Monitor. Can be null.
Overview
Package
Class
Tree
Deprecated
Index
Help
www.cytoscape.org
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD