Class CellBrowserTabularMatrixReader
java.lang.Object
ubic.gemma.core.visualization.cellbrowser.CellBrowserTabularMatrixReader
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadMatrix(Reader reader, QuantitationType quantitationType, Map<String, CompositeSequence> designElementsMap, Map<String, BioAssay> cellIdToBioAssayMap) Read a single-cell data matrix from a Cell Browser-compatible format.voidsetIgnoreUnmatchedCellIds(boolean ignoreUnmatchedCellIds) Ignore cell identifiers in the header for which no assay can be found instead of throwing an exception.voidsetIgnoreUnmatchedGenes(boolean ignoreUnmatchedGenes) Ignore gene identifiers in the "gene" column for which no design element can be found instead of throwing an exception.
-
Constructor Details
-
CellBrowserTabularMatrixReader
public CellBrowserTabularMatrixReader()
-
-
Method Details
-
readMatrix
public SingleCellExpressionDataDoubleMatrix readMatrix(Reader reader, QuantitationType quantitationType, Map<String, CompositeSequence> designElementsMap, Map<String, throws IOExceptionBioAssay> cellIdToBioAssayMap) Read a single-cell data matrix from a Cell Browser-compatible format.- Parameters:
reader- reader to read the matrix fromquantitationType- 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.
-