Class SingleCellDataVectorAggregatorUtils
- java.lang.Object
-
- ubic.gemma.core.analysis.singleCell.aggregate.SingleCellDataVectorAggregatorUtils
-
public class SingleCellDataVectorAggregatorUtils extends Object
Utilities for aggregating single-cell data vectors.TODO: reuse these in
SingleCellExpressionExperimentAggregatorServiceImpl
- Author:
- poirigui
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod
-
Constructor Summary
Constructors Constructor Description SingleCellDataVectorAggregatorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<RawExpressionDataVector>
aggregate(Collection<SingleCellExpressionDataVector> vectors, SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, CellLevelCharacteristics cellLevelCharacteristics)
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.static Function<SingleCellExpressionDataVector,RawExpressionDataVector>
createAggregator(SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, CellLevelCharacteristics cellLevelCharacteristics)
Create an aggregator that can be used on aStream
of vectors.
-
-
-
Method Detail
-
createAggregator
public static Function<SingleCellExpressionDataVector,RawExpressionDataVector> createAggregator(SingleCellDataVectorAggregatorUtils.SingleCellAggregationMethod method, @Nullable CellLevelCharacteristics cellLevelCharacteristics)
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)
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.
-
-