Class ExpressionDataStringMatrix
- java.lang.Object
- 
- ubic.gemma.core.datastructure.matrix.BaseExpressionDataMatrix<String>
- 
- ubic.gemma.core.datastructure.matrix.ExpressionDataStringMatrix
 
 
- 
- All Implemented Interfaces:
- Serializable,- ExpressionDataMatrix<String>
 
 public class ExpressionDataStringMatrix extends BaseExpressionDataMatrix<String> - Author:
- pavlidis
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ExpressionDataStringMatrix(Collection<? extends DesignElementDataVector> vectors)ExpressionDataStringMatrix(Collection<? extends DesignElementDataVector> dataVectors, QuantitationType quantitationType)ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, Collection<CompositeSequence> designElements, QuantitationType quantitationType)ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumns()Total number of columns.Stringget(int row, int column)Access a single value of the matrix.String[][]get(List<CompositeSequence> designElements, List<BioAssay> bioAssays)Access a submatrixStringget(CompositeSequence designElement, BioAssay bioAssay)Access a single value of the matrix.String[]getColumn(Integer index)Access a single column of the matrix.String[]getColumn(BioAssay bioAssay)Access a single column of the matrix.String[][]getColumns(List<BioAssay> bioAssays)Access a submatrix slice by columnsString[][]getRawMatrix()Access the entire matrix.String[]getRow(Integer index)Access a single row of the matrix, by index.String[]getRow(CompositeSequence designElement)Return a row that 'came from' the given design element.String[][]getRows(List<CompositeSequence> designElements)Access a submatrixbooleanhasMissingValues()introws()voidset(int row, int column, String value)Set a value in the matrix, by indexprotected voidvectorsToMatrix(Collection<? extends DesignElementDataVector> vectors)- 
Methods inherited from class ubic.gemma.core.datastructure.matrix.BaseExpressionDataMatrixcolumns, getBestBioAssayDimension, getBioAssayDimension, getBioAssaysForColumn, getBioMaterialForColumn, getColumnIndex, getDesignElementForRow, getDesignElements, getExpressionExperiment, getQuantitationTypes, getRowElement, getRowElements, getRowIndex
 
- 
 
- 
- 
- 
Constructor Detail- 
ExpressionDataStringMatrixpublic ExpressionDataStringMatrix(Collection<? extends DesignElementDataVector> vectors) 
 - 
ExpressionDataStringMatrixpublic ExpressionDataStringMatrix(Collection<? extends DesignElementDataVector> dataVectors, QuantitationType quantitationType) 
 - 
ExpressionDataStringMatrixpublic ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, Collection<CompositeSequence> designElements, QuantitationType quantitationType) 
 - 
ExpressionDataStringMatrixpublic ExpressionDataStringMatrix(ExpressionExperiment expressionExperiment, QuantitationType quantitationType) 
 
- 
 - 
Method Detail- 
columnspublic int columns() Description copied from interface:ExpressionDataMatrixTotal number of columns.- Returns:
- int
 
 - 
getpublic String get(CompositeSequence designElement, BioAssay bioAssay) Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix. Note that because there can be multiple bioassays per column and multiple designelements per row, it is possible for this method to retrieve a data that does not come from the bioassay and/or designelement arguments.- Parameters:
- designElement- de
- bioAssay- ba
- Returns:
- T t
 
 - 
getpublic String get(int row, int column) Description copied from interface:ExpressionDataMatrixAccess a single value of the matrix. This is generally the easiest way to do it.- Parameters:
- row- row
- column- col
- Returns:
- t
 
 - 
getpublic String[][] get(List<CompositeSequence> designElements, List<BioAssay> bioAssays) Description copied from interface:ExpressionDataMatrixAccess a submatrix- Parameters:
- designElements- de
- bioAssays- bas
- Returns:
- T[][]
 
 - 
getColumnpublic String[] getColumn(BioAssay bioAssay) Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Parameters:
- bioAssay- i
- Returns:
- T[]
 
 - 
getColumnpublic String[] getColumn(Integer index) Description copied from interface:ExpressionDataMatrixAccess a single column of the matrix.- Parameters:
- index- index
- Returns:
- T[]
 
 - 
getColumnspublic String[][] getColumns(List<BioAssay> bioAssays) Description copied from interface:ExpressionDataMatrixAccess a submatrix slice by columns- Parameters:
- bioAssays- ba
- Returns:
- t[][]
 
 - 
getRawMatrixpublic String[][] getRawMatrix() Description copied from interface:ExpressionDataMatrixAccess the entire matrix.- Returns:
- T[][]
 
 - 
getRowpublic String[] getRow(CompositeSequence designElement) Description copied from interface:ExpressionDataMatrixReturn a row that 'came from' the given design element.- Parameters:
- designElement- de
- Returns:
- t
 
 - 
getRowpublic String[] getRow(Integer index) Description copied from interface:ExpressionDataMatrixAccess a single row of the matrix, by index. A complete row is returned.- Parameters:
- index- i
- Returns:
- t[]
 
 - 
getRowspublic String[][] getRows(List<CompositeSequence> designElements) Description copied from interface:ExpressionDataMatrixAccess a submatrix- Parameters:
- designElements- de
- Returns:
- T[][]
 
 - 
hasMissingValuespublic boolean hasMissingValues() - Returns:
- true if any values are null or NaN (for Doubles); all other values are considered non-missing.
 
 - 
rowspublic int rows() - Returns:
- int
 
 - 
setpublic void set(int row, int column, String value)Description copied from interface:ExpressionDataMatrixSet a value in the matrix, by index- Parameters:
- row- row
- column- col
- value- val
 
 - 
vectorsToMatrixprotected void vectorsToMatrix(Collection<? extends DesignElementDataVector> vectors) - Specified by:
- vectorsToMatrixin class- BaseExpressionDataMatrix<String>
 
 
- 
 
-