Package ubic.gemma.core.visualization
Class SingleCellSparsityHeatmap
- java.lang.Object
-
- ubic.gemma.core.visualization.SingleCellSparsityHeatmap
-
- All Implemented Interfaces:
Serializable,Heatmap
public class SingleCellSparsityHeatmap extends Object implements Heatmap
Heatmap that displays the sparsity of single-cell data.- Author:
- poirigui
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingleCellSparsityHeatmap.SingleCellHeatmapType
-
Field Summary
-
Fields inherited from interface ubic.gemma.core.visualization.Heatmap
GEMMA_PAINT_SCALE
-
-
Constructor Summary
Constructors Constructor Description SingleCellSparsityHeatmap(ExpressionExperiment expressionExperiment, SingleCellDimension singleCellDimension, BioAssayDimension dimension, Collection<ExpressionExperimentSubSet> subSets, Map<BioAssay,Long> designElementsPerSample, SingleCellSparsityHeatmap.SingleCellHeatmapType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedImagecreateAggregateImage(SingleCellSparsityHeatmap.SingleCellHeatmapType type)BufferedImagecreateImage(int cellSize)Render a heatmap image.List<String>getXLabels()List<String>getYLabels()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.core.visualization.Heatmap
createImage, getCellSize, isTranspose
-
-
-
-
Constructor Detail
-
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 Detail
-
createImage
public BufferedImage createImage(int cellSize)
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
public BufferedImage createAggregateImage(SingleCellSparsityHeatmap.SingleCellHeatmapType type)
-
getXLabels
public List<String> getXLabels()
- Specified by:
getXLabelsin interfaceHeatmap
-
getYLabels
public List<String> getYLabels()
- Specified by:
getYLabelsin interfaceHeatmap
-
-