Package ubic.gemma.core.visualization
Class ExpressionDataHeatmap
- java.lang.Object
-
- ubic.gemma.core.visualization.ExpressionDataHeatmap
-
- All Implemented Interfaces:
Serializable
,Heatmap
public class ExpressionDataHeatmap extends Object implements Heatmap
Expression data heatmap for experiments and subsets.There is also an implementation of this in JavaScript
- Author:
- poirigui
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface ubic.gemma.core.visualization.Heatmap
GEMMA_PAINT_SCALE
-
-
Method Summary
-
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
-
-
-
-
Method Detail
-
fromVectors
public static ExpressionDataHeatmap fromVectors(ExpressionExperiment ee, BioAssayDimension dimension, Slice<? extends BulkExpressionDataVector> vectors, @Nullable List<Gene> genes)
Create a heatmap for a given set of vectors.- Parameters:
ee
- experiment from which the data originatesdimension
- dimension to rendervectors
- vectors to displaygenes
- genes to display as row labels (must match the number of vectors)
-
fromVectors
public static ExpressionDataHeatmap fromVectors(ExpressionExperimentSubSet subSet, BioAssayDimension dimension, Slice<? extends BulkExpressionDataVector> vectors, @Nullable List<Gene> genes)
Create a heatmap for a subset.- Parameters:
subSet
- subset from which the data originatesdimension
- dimension encompassing the subset, only the assays from the subset will be displayed- See Also:
fromVectors(ExpressionExperiment, BioAssayDimension, Slice, List)
-
fromDesignElements
public static ExpressionDataHeatmap fromDesignElements(ExpressionExperiment ee, BioAssayDimension dimension, Slice<CompositeSequence> designElements, @Nullable List<Gene> genes)
Create a heatmap for a given set of design elements.in this mode, no image can be generated, but labels are available.
-
fromDesignElements
public static ExpressionDataHeatmap fromDesignElements(ExpressionExperimentSubSet subSet, BioAssayDimension dimension, Slice<CompositeSequence> designElements, @Nullable List<Gene> genes)
Create a heatmap for a subset using design elements. Create a heatmap for a subset.
-
createImage
public BufferedImage createImage(int cellSize)
Description copied from interface:Heatmap
Render a heatmap image.- Specified by:
createImage
in interfaceHeatmap
- Parameters:
cellSize
- size in pixel to use for individual cells in the heatmap
-
getXLabels
public List<String> getXLabels()
- Specified by:
getXLabels
in interfaceHeatmap
-
getYLabels
public List<String> getYLabels()
- Specified by:
getYLabels
in interfaceHeatmap
-
-