Interface BulkExpressionDataMatrix<T>

    • Method Detail

      • getQuantitationTypes

        Collection<QuantitationType> getQuantitationTypes()
        Return the quantitation types for this matrix. Often (usually) there will be just one.
        Returns:
        qts
      • getQuantitationType

        QuantitationType getQuantitationType()
        Obtain the single quantitation type for this matrix.
        Throws:
        IllegalStateException - if there is more than one quantitation type.
      • getBestBioAssayDimension

        BioAssayDimension getBestBioAssayDimension()
        Returns:
        a BioAssayDimension that covers all the biomaterials in this matrix.
        Throws:
        IllegalStateException - if there isn't a single bioassaydimension that encapsulates all the biomaterials used in the experiment.
      • hasMissingValues

        boolean hasMissingValues()
        Returns:
        true if any values are null or NaN (for Doubles); all other values are considered non-missing.
      • get

        T get​(CompositeSequence designElement,
              BioAssay bioAssay)
        Access 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
      • getRawMatrix

        T[][] getRawMatrix()
        Access the entire matrix.
        Returns:
        T[][]
      • getColumn

        T[] getColumn​(BioAssay bioAssay)
        Access a single column of the matrix.
        Parameters:
        bioAssay - i
        Returns:
        T[]
      • getColumns

        T[][] getColumns​(List<BioAssay> bioAssays)
        Access a submatrix slice by columns
        Parameters:
        bioAssays - ba
        Returns:
        t[][]
      • columns

        int columns​(CompositeSequence el)
        Number of columns that use the given design element. Useful if the matrix includes data from more than one array design.
        Parameters:
        el - el
        Returns:
        int
      • getBioMaterialForColumn

        BioMaterial getBioMaterialForColumn​(int index)
        Parameters:
        index - i
        Returns:
        BioMaterial. Note that if this represents a subsetted data set, the BioMaterial may be a lightweight 'fake'.
      • getColumnIndex

        int getColumnIndex​(BioMaterial bioMaterial)
        Parameters:
        bioMaterial - bm
        Returns:
        the index of the column for the data for the bioMaterial, or -1 if missing
      • getColumnIndex

        int getColumnIndex​(BioAssay bioAssay)
        Returns:
        the index of the column for the data for the bioAssay, or -1 if missing
      • getBioAssayDimension

        BioAssayDimension getBioAssayDimension​(CompositeSequence designElement)
        Produce a BioAssayDimension representing the matrix columns for a specific row. The designelement argument is needed because a matrix can combine data from multiple array designs, each of which will generate its own bioassaydimension. Note that if this represents a subsetted data set, the return value may be a lightweight 'fake'.
        Parameters:
        designElement - de
        Returns:
        bad
      • getBioAssaysForColumn

        Collection<BioAssay> getBioAssaysForColumn​(int index)
        Parameters:
        index - i
        Returns:
        bioassays that contribute data to the column. There can be multiple bioassays if more than one array was used in the study.
      • getBioAssayForColumn

        BioAssay getBioAssayForColumn​(int index)
        Obtain a single assay for a column.
        Parameters:
        index -
        Returns:
        Throws:
        IllegalStateException - if there is more than one assay for the column.
      • set

        void set​(int row,
                 int column,
                 T value)
        Set a value in the matrix, by index
        Parameters:
        row - row
        column - col
        value - val