public class Gene
extends Object
Gene class represents (1) the
name of a gene (2) the reported function of the gene and (3) the
gene's expression values from a set of experiments.| Constructor and Description |
|---|
Gene(String lineFromFile)
Creates a
Gene from a tab-delimited String. |
| Modifier and Type | Method and Description |
|---|---|
double |
distanceToExpressionVector(java.util.Vector<Double> vector)
Returns the Euclidean distance between this
Gene's expression values and the specified collection of expression values. |
double |
getExpressionInOneExperiment(int experiment)
Returns the expression value of this
Gene in the specified experiment. |
java.util.Vector<Double> |
getExpressionVector()
Returns a copy of this
Gene's expression values in all experiments. |
String |
getGeneFunction()
Returns a
String representation of the gene's function. |
String |
getGeneName()
Returns a
String representation of the gene's name. |
String |
toString()
Returns a
String representation of this Gene, including the gene's name and function. |
public Gene(String lineFromFile)
Gene from a tab-delimited String.lineFromFile - a tab-delimited String, possibly read-in from a filepublic String toString()
String representation of this Gene, including the gene's name and function.toString in class ObjectString represenation of this Genepublic String getGeneName()
String representation of the gene's name.String represenation of this Gene's namepublic String getGeneFunction()
String representation of the gene's function.String represenation of this Gene's functionpublic double getExpressionInOneExperiment(int experiment)
Gene in the specified experiment.experiment - the index of a particular experimentdouble representing this Gene's expression valuepublic java.util.Vector<Double> getExpressionVector()
Gene's expression values in all experiments.Vector of doubles corresponding to this Gene's expression valuespublic double distanceToExpressionVector(java.util.Vector<Double> vector)
Gene's expression values and the specified collection of expression values.vector - a collection of expression valuesdouble corresponding to the distance between two sets of expression values