Class SingleCellExpressionDataVector
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.expression.bioAssayData.DataVector
ubic.gemma.model.expression.bioAssayData.DesignElementDataVector
ubic.gemma.model.expression.bioAssayData.SingleCellExpressionDataVector
- All Implemented Interfaces:
Identifiable
An expression data vector that contains data at the resolution of individual cells.
This is achieved by storing cell metadata such as IDs and cell types in a SingleCellDimension that is shared
among all vectors of a given ExpressionExperiment and individual
non-zero cell expression in a sparse data structure similar to the rows of a CSR matrix.
- Author:
- poirigui
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.int[]Positions of the non-zero data in theDataVector.getData()vector.The original design element that was used to create this vector.OwningQuantitationType.voidsetDataIndices(int[] dataIndices) Positions of the non-zero data in theDataVector.getData()vector.voidsetOriginalDesignElement(String originalDesignElement) voidsetQuantitationType(QuantitationType quantitationType) voidsetSingleCellDimension(SingleCellDimension singleCellDimension) toString()Methods inherited from class DesignElementDataVector
getDesignElement, hashCode, setDesignElementMethods inherited from class DataVector
getData, getDataAsBooleans, getDataAsBuffer, getDataAsChars, getDataAsDoubleBuffer, getDataAsDoubles, getDataAsFloatBuffer, getDataAsFloats, getDataAsIntBuffer, getDataAsInts, getDataAsLongBuffer, getDataAsLongs, getDataAsObjects, getDataAsStrings, getDataAsTabbedStrings, getExpressionExperiment, setData, setDataAsBooleans, setDataAsChars, setDataAsDoubles, setDataAsFloats, setDataAsInts, setDataAsLongs, setDataAsObjects, setDataAsStrings, setDataAsTabbedStrings, setExpressionExperimentMethods inherited from class AbstractIdentifiable
getId, setId
-
Constructor Details
-
SingleCellExpressionDataVector
public SingleCellExpressionDataVector()
-
-
Method Details
-
equals
Description copied from class:AbstractIdentifiableImportant note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-
getQuantitationType
Description copied from class:DataVectorOwningQuantitationType. Fetch mode varies by concrete subclass — bulk vectors keep the QT LAZY to avoid an N+1 on bulk loads, single-cell vectors fetch eagerly to match the original hbm. Declared as an abstract accessor here so each subclass can configure its own@ManyToOnefetch policy (which @MappedSuperclass + @AssociationOverride cannot do).- Specified by:
getQuantitationTypein classDataVector
-
getSingleCellDimension
-
getOriginalDesignElement
Description copied from class:DesignElementDataVectorThe original design element that was used to create this vector.This is generally null, but if the data was imported and a mapping was done between some external data source and one of Gemma's platform, this will contain the original ID.
- Specified by:
getOriginalDesignElementin classDesignElementDataVector
-
getDataIndices
public int[] getDataIndices()Positions of the non-zero data in theDataVector.getData()vector.This is mapped in the database using
ByteArrayType. -
setQuantitationType
- Specified by:
setQuantitationTypein classDataVector
-
setSingleCellDimension
-
setOriginalDesignElement
-
setDataIndices
public void setDataIndices(int[] dataIndices) Positions of the non-zero data in theDataVector.getData()vector.This is mapped in the database using
ByteArrayType.
-