Class HeatmapDataValueObject
java.lang.Object
ubic.gemma.rest.HeatmapDataValueObject
Wire payload for
GET /datasets/{id}/heatmap-data.
Ships a raw probe×sample matrix plus per-row and per-column metadata, and a flat catalogue of
experimental factors with full statement / measurement fidelity (mirrors the curation-ui
Factor shape). NO server-side ordering decisions, NO colour assignment, NO legend —
the client owns those.
See HEATMAP_REWRITE_RECCE.md §5 for the locked schema.
- Author:
- claude
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classOneExperimentalFactorValueObjectplus, for continuous factors, the per-sample measurement map (keyed by bioAssayId).static classCompact gene reference: official symbol + full name + Gemma ID + NCBI gene ID.static classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.The numeric matrix; row-major (one row per probe).The quantitation type the matrix is in.getRows()Optional.voidsetColumns(List<HeatmapDataValueObject.ColumnMeta> columns) Optional.voidsetDatasetId(Long datasetId) voidsetDatasetShortName(String datasetShortName) voidsetFactors(List<HeatmapDataValueObject.FactorEntry> factors) Optional.voidThe numeric matrix; row-major (one row per probe).voidsetQuantitationType(QuantitationTypeValueObject quantitationType) The quantitation type the matrix is in.voidOptional.
-
Constructor Details
-
HeatmapDataValueObject
public HeatmapDataValueObject()
-
-
Method Details
-
getDatasetId
-
getDatasetShortName
-
getMatrix
The numeric matrix; row-major (one row per probe).valuesis either adouble[][](json encoding) or a base64-encoded string holding little-endian float32 cells (base64f32 encoding). The matrix is the only required block — every other field below is optional and may benullor omitted; the client is designed to render a bare-matrix payload with no row, column or factor metadata, so a producer that has nothing to say for a given block should leave it out. -
getRows
Optional. Per-row metadata; when present, same length asmatrix.rowsCount. Indexicorresponds tomatrix.values[i]. May benullor empty when the producer has nothing to attach to rows (the client renders an unlabelled axis in that case). Row entries themselves carry only the gene-shaped metadata the producer chose to attach — gene IDs/symbols, a numeric statistic (e.g. p-value), a category, a boolean flag — all individually optional. -
getColumns
Optional. Per-column metadata in original BioAssayDimension order; when present, same length asmatrix.colsCount. May benullor empty when the producer ships an axis-less matrix (the client falls back to numeric column indices). -
getFactors
Optional. Full experimental-factor catalogue: factors, factor values, statements, baseline-relevance. For continuous factors, the per-sample measurements map is onHeatmapDataValueObject.FactorEntry.getMeasurements()keyed by bioAssayId.nullor empty when the matrix is not tied to a Gemma experimental design (e.g. a generic data-table renderer). -
getQuantitationType
The quantitation type the matrix is in.nullwhen the matrix is empty or generic. -
setDatasetId
-
setDatasetShortName
-
setMatrix
The numeric matrix; row-major (one row per probe).valuesis either adouble[][](json encoding) or a base64-encoded string holding little-endian float32 cells (base64f32 encoding). The matrix is the only required block — every other field below is optional and may benullor omitted; the client is designed to render a bare-matrix payload with no row, column or factor metadata, so a producer that has nothing to say for a given block should leave it out. -
setRows
Optional. Per-row metadata; when present, same length asmatrix.rowsCount. Indexicorresponds tomatrix.values[i]. May benullor empty when the producer has nothing to attach to rows (the client renders an unlabelled axis in that case). Row entries themselves carry only the gene-shaped metadata the producer chose to attach — gene IDs/symbols, a numeric statistic (e.g. p-value), a category, a boolean flag — all individually optional. -
setColumns
Optional. Per-column metadata in original BioAssayDimension order; when present, same length asmatrix.colsCount. May benullor empty when the producer ships an axis-less matrix (the client falls back to numeric column indices). -
setFactors
Optional. Full experimental-factor catalogue: factors, factor values, statements, baseline-relevance. For continuous factors, the per-sample measurements map is onHeatmapDataValueObject.FactorEntry.getMeasurements()keyed by bioAssayId.nullor empty when the matrix is not tied to a Gemma experimental design (e.g. a generic data-table renderer). -
setQuantitationType
The quantitation type the matrix is in.nullwhen the matrix is empty or generic.
-