Package ubic.gemma.core.visualization
Class ExpressionDataHeatmap
java.lang.Object
ubic.gemma.core.visualization.ExpressionDataHeatmap
- All Implemented Interfaces:
Serializable,Heatmap
Expression data heatmap for experiments and subsets.
There is also an implementation of this in JavaScript
- Author:
- poirigui
- See Also:
-
Field Summary
Fields inherited from interface ubic.gemma.core.visualization.Heatmap
GEMMA_PAINT_SCALE -
Method Summary
Modifier and TypeMethodDescriptioncreateImage(int cellSize) Render a heatmap image.static ExpressionDataHeatmapfromDesignElements(ExpressionExperiment ee, BioAssayDimension dimension, Slice<CompositeSequence> designElements, List<Gene> genes) Create a heatmap for a given set of design elements.static ExpressionDataHeatmapfromDesignElements(ExpressionExperimentSubSet subSet, BioAssayDimension dimension, Slice<CompositeSequence> designElements, List<Gene> genes) Create a heatmap for a subset using design elements.static ExpressionDataHeatmapfromVectors(ExpressionExperiment ee, BioAssayDimension dimension, Slice<? extends BulkExpressionDataVector> vectors, List<Gene> genes) Create a heatmap for a given set of vectors.static ExpressionDataHeatmapfromVectors(ExpressionExperimentSubSet subSet, BioAssayDimension dimension, Slice<? extends BulkExpressionDataVector> vectors, List<Gene> genes) Create a heatmap for a subset.int[]intGet the size of a cell in pixels.getGenes()List of genes to use for display purposes.Quantitation type of the single-cell data this heatmap was generated from, if applicable.Slice<? extends BulkExpressionDataVector> booleanIndicate if this heatmap is transposed.voidsetCellLevelCharacteristics(CellLevelCharacteristics cellLevelCharacteristics) voidsetCellSize(int cellSize) voidsetFocusedCellLevelCharacteristic(Characteristic focusedCellLevelCharacteristic) voidsetSingleCellQuantitationType(QuantitationType singleCellQuantitationType) Quantitation type of the single-cell data this heatmap was generated from, if applicable.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
-
Method Details
-
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:
-
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.
- See Also:
-
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.- See Also:
-
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
-
getXLabels
- Specified by:
getXLabelsin interfaceHeatmap
-
getYLabels
- Specified by:
getYLabelsin interfaceHeatmap
-
getBioAssaySet
-
getDimension
-
getAssays
-
getAssayIndex
public int[] getAssayIndex() -
getVectors
-
getDesignElements
-
getGenes
List of genes to use for display purposes. -
getSingleCellQuantitationType
Quantitation type of the single-cell data this heatmap was generated from, if applicable. -
getCellLevelCharacteristics
-
getFocusedCellLevelCharacteristic
-
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
-
setSingleCellQuantitationType
Quantitation type of the single-cell data this heatmap was generated from, if applicable. -
setCellLevelCharacteristics
public void setCellLevelCharacteristics(@Nullable CellLevelCharacteristics cellLevelCharacteristics) -
setFocusedCellLevelCharacteristic
public void setFocusedCellLevelCharacteristic(@Nullable Characteristic focusedCellLevelCharacteristic) -
setCellSize
public void setCellSize(int cellSize) -
setTranspose
public void setTranspose(boolean transpose)
-