Class SingleCellExpressionDataVector

All Implemented Interfaces:
Identifiable

public class SingleCellExpressionDataVector extends DesignElementDataVector
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 Details

    • SingleCellExpressionDataVector

      public SingleCellExpressionDataVector()
  • Method Details

    • equals

      public boolean equals(Object object)
      Description copied from class: AbstractIdentifiable
      Important 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:
      equals in class AbstractIdentifiable
    • toString

      public String toString()
      Overrides:
      toString in class AbstractIdentifiable
    • getOriginalDesignElement

      @Nullable public String getOriginalDesignElement()
      Description copied from class: DesignElementDataVector
      The 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:
      getOriginalDesignElement in class DesignElementDataVector
    • getSingleCellDimension

      public SingleCellDimension getSingleCellDimension()
      The dimension of the single-cell data which is shared among all the vectors.

      This is shared among all the single-cell vectors of the associated ExpressionExperiment.

    • getDataIndices

      public int[] getDataIndices()
      Positions of the non-zero data in the DataVector.getData() vector.

      This is mapped in the database using ByteArrayType.

    • setOriginalDesignElement

      public void setOriginalDesignElement(@Nullable String originalDesignElement)
    • setSingleCellDimension

      public void setSingleCellDimension(SingleCellDimension singleCellDimension)
      The dimension of the single-cell data which is shared among all the vectors.

      This is shared among all the single-cell vectors of the associated ExpressionExperiment.

    • setDataIndices

      public void setDataIndices(int[] dataIndices)
      Positions of the non-zero data in the DataVector.getData() vector.

      This is mapped in the database using ByteArrayType.