Class CellBrowserTabularMatrixReader

java.lang.Object
ubic.gemma.core.visualization.cellbrowser.CellBrowserTabularMatrixReader

public class CellBrowserTabularMatrixReader extends Object
Author:
poirigui
  • Constructor Details

    • CellBrowserTabularMatrixReader

      public CellBrowserTabularMatrixReader()
  • Method Details

    • readMatrix

      public SingleCellExpressionDataDoubleMatrix readMatrix(Reader reader, QuantitationType quantitationType, Map<String,CompositeSequence> designElementsMap, Map<String,BioAssay> cellIdToBioAssayMap) throws IOException
      Read a single-cell data matrix from a Cell Browser-compatible format.
      Parameters:
      reader - reader to read the matrix from
      quantitationType - quantitation type to use for the resulting matrix. It affects how the values are parsed.
      designElementsMap - a mapping of identifiers in the "gene" column to design elements.
      Throws:
      IOException
    • setIgnoreUnmatchedCellIds

      public void setIgnoreUnmatchedCellIds(boolean ignoreUnmatchedCellIds)
      Ignore cell identifiers in the header for which no assay can be found instead of throwing an exception.
    • setIgnoreUnmatchedGenes

      public void setIgnoreUnmatchedGenes(boolean ignoreUnmatchedGenes)
      Ignore gene identifiers in the "gene" column for which no design element can be found instead of throwing an exception.