Class SingleCellDataVectorAggregatorUtils
java.lang.Object
ubic.gemma.core.analysis.singleCell.aggregate.SingleCellDataVectorAggregatorUtils
Utilities for aggregating single-cell data vectors.
TODO: reuse these in SingleCellExpressionExperimentAggregatorServiceImpl
- Author:
- poirigui
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection
<RawExpressionDataVector> aggregate
(Collection<SingleCellExpressionDataVector> vectors, SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, CellLevelCharacteristics cellLevelCharacteristics, boolean aggregateUnknownCharacteristics) Aggregate a collection of vectors.static <T> BulkExpressionDataMatrix
<T> aggregate
(SingleCellExpressionDataMatrix<T> scMatrix, SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, Class<T> scalarType) Aggregate a single-cell data matrix.createAggregator
(SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, CellLevelCharacteristics cellLevelCharacteristics, boolean aggregateUnknownCharacteristics) Create an aggregator that can be used on aStream
of vectors.
-
Constructor Details
-
SingleCellDataVectorAggregatorUtils
public SingleCellDataVectorAggregatorUtils()
-
-
Method Details
-
createAggregator
public static Function<SingleCellExpressionDataVector,RawExpressionDataVector> createAggregator(SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, @Nullable CellLevelCharacteristics cellLevelCharacteristics, boolean aggregateUnknownCharacteristics) Create an aggregator that can be used on aStream
of vectors.Vectors from different experiments, QTs or dimension can be mixed.
-
aggregate
public static Collection<RawExpressionDataVector> aggregate(Collection<SingleCellExpressionDataVector> vectors, SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, @Nullable CellLevelCharacteristics cellLevelCharacteristics, boolean aggregateUnknownCharacteristics) Aggregate a collection of vectors.Vectors from different experiments, QTs or dimension can be mixed.
-
aggregate
public static <T> BulkExpressionDataMatrix<T> aggregate(SingleCellExpressionDataMatrix<T> scMatrix, SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, Class<T> scalarType) Aggregate a single-cell data matrix.
-