Package ubic.gemma.core.visualization
Class SingleCellSparsityHeatmap
java.lang.Object
ubic.gemma.core.visualization.SingleCellSparsityHeatmap
- All Implemented Interfaces:
Serializable,Heatmap
Heatmap that displays the sparsity of single-cell data.
- Author:
- poirigui
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface ubic.gemma.core.visualization.Heatmap
GEMMA_PAINT_SCALE -
Constructor Summary
ConstructorsConstructorDescriptionSingleCellSparsityHeatmap(ExpressionExperiment expressionExperiment, SingleCellDimension singleCellDimension, BioAssayDimension dimension, Collection<ExpressionExperimentSubSet> subSets, Map<BioAssay, Long> designElementsPerSample, SingleCellSparsityHeatmap.SingleCellHeatmapType type) -
Method Summary
Modifier and TypeMethodDescriptioncreateImage(int cellSize) Render a heatmap image.intGet the size of a cell in pixels.getType()booleanIndicate if this heatmap is transposed.voidsetCellSize(int cellSize) voidsetTranspose(boolean transpose) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.visualization.Heatmap
createImage
-
Constructor Details
-
SingleCellSparsityHeatmap
public SingleCellSparsityHeatmap(ExpressionExperiment expressionExperiment, SingleCellDimension singleCellDimension, BioAssayDimension dimension, Collection<ExpressionExperimentSubSet> subSets, @Nullable Map<BioAssay, Long> designElementsPerSample, @Nullable SingleCellSparsityHeatmap.SingleCellHeatmapType type) - Parameters:
expressionExperiment- an experiment containing single-cell datasingleCellDimension- a single-cell dimensiondimension- a regular dimension for aggregated datasubSets- a set of subsets containing aggregated datadesignElementsPerSample- the number of design elements for the platform of each sampletype- the type of heatmap to generate
-
-
Method Details
-
createImage
Description copied from interface:HeatmapRender a heatmap image.- Specified by:
createImagein interfaceHeatmap- Parameters:
cellSize- size in pixel to use for individual cells in the heatmap
-
createAggregateImage
-
getXLabels
- Specified by:
getXLabelsin interfaceHeatmap
-
getYLabels
- Specified by:
getYLabelsin interfaceHeatmap
-
getExpressionExperiment
-
getSamples
-
getSingleCellDimension
-
getDimension
-
getSubSets
-
getDesignElementsPerSample
-
getType
-
getCellSize
public int getCellSize()Description copied from interface:HeatmapGet the size of a cell in pixels.Use this to adjust how labels are displayed.
- Specified by:
getCellSizein interfaceHeatmap
-
isTranspose
public boolean isTranspose()Description copied from interface:HeatmapIndicate if this heatmap is transposed.- Specified by:
isTransposein interfaceHeatmap
-
setCellSize
public void setCellSize(int cellSize) -
setTranspose
public void setTranspose(boolean transpose)
-