Class CellTypeAssignmentValueObject
java.lang.Object
ubic.gemma.model.common.IdentifiableValueObject<CellTypeAssignment>
ubic.gemma.model.analysis.AnalysisValueObject<CellTypeAssignment>
ubic.gemma.model.analysis.CellTypeAssignmentValueObject
- All Implemented Interfaces:
Serializable, Identifiable
- Author:
- poirigui
- See Also:
-
Field Summary
Fields inherited from class IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptionCellTypeAssignmentValueObject(CellTypeAssignment cellTypeAssignment, boolean excludeCellTypeIds) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA list of IDs, one-per-cell, that refers to one of the cell type labels incellTypes.A set of cell types that are assigned to individual cells.Indicate how many cells have an assigned cell type, ornullif this information is not available.How many cells carry each cell type, keyed by theidof the entry incellTypes.inthashCode()booleanIndicate if this assignment is the preferred one.voidsetCellTypeIds(List<Long> cellTypeIds) A list of IDs, one-per-cell, that refers to one of the cell type labels incellTypes.voidsetCellTypes(Set<CharacteristicValueObject> cellTypes) A set of cell types that are assigned to individual cells.voidsetNumberOfAssignedCells(Integer numberOfAssignedCells) Indicate how many cells have an assigned cell type, ornullif this information is not available.voidsetNumberOfAssignedCellsByCellType(Map<Long, Integer> numberOfAssignedCellsByCellType) How many cells carry each cell type, keyed by theidof the entry incellTypes.voidsetPreferred(boolean isPreferred) Indicate if this assignment is the preferred one.toString()Methods inherited from class AnalysisValueObject
getName, getProtocol, setName, setProtocolMethods inherited from class IdentifiableValueObject
getId, setId
-
Constructor Details
-
CellTypeAssignmentValueObject
public CellTypeAssignmentValueObject(CellTypeAssignment cellTypeAssignment, boolean excludeCellTypeIds)
-
-
Method Details
-
getCellTypes
A set of cell types that are assigned to individual cells. -
getCellTypeIds
-
getNumberOfAssignedCells
Indicate how many cells have an assigned cell type, ornullif this information is not available. -
getNumberOfAssignedCellsByCellType
How many cells carry each cell type, keyed by theidof the entry incellTypes.nullwhen the indices are unavailable.The tally comes off the same
cellTypeIndicesarraycellTypeIdsis built from, so it costs one extra pass and no extra query. It exists because the per-cell array was the only way to answer "how many astrocytes" — 89,700 entries and 809 KB on one dataset to recover ten numbers (uib, 2026-09-03) — and a client that only needs the tally can now exclude the array outright. -
isPreferred
public boolean isPreferred()Indicate if this assignment is the preferred one. -
setCellTypes
A set of cell types that are assigned to individual cells. -
setCellTypeIds
-
setNumberOfAssignedCells
Indicate how many cells have an assigned cell type, ornullif this information is not available. -
setNumberOfAssignedCellsByCellType
public void setNumberOfAssignedCellsByCellType(@Nullable Map<Long, Integer> numberOfAssignedCellsByCellType) How many cells carry each cell type, keyed by theidof the entry incellTypes.nullwhen the indices are unavailable.The tally comes off the same
cellTypeIndicesarraycellTypeIdsis built from, so it costs one extra pass and no extra query. It exists because the per-cell array was the only way to answer "how many astrocytes" — 89,700 entries and 809 KB on one dataset to recover ten numbers (uib, 2026-09-03) — and a client that only needs the tally can now exclude the array outright. -
setPreferred
public void setPreferred(boolean isPreferred) Indicate if this assignment is the preferred one. -
toString
- Overrides:
toStringin classIdentifiableValueObject<CellTypeAssignment>
-
equals
- Overrides:
equalsin classIdentifiableValueObject<CellTypeAssignment>
-
canEqual
- Overrides:
canEqualin classIdentifiableValueObject<CellTypeAssignment>
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableValueObject<CellTypeAssignment>
-