Class ExpressionDataMatrixColumnSort
java.lang.Object
ubic.gemma.core.datastructure.matrix.ExpressionDataMatrixColumnSort
Methods to organize ExpressionDataMatrices by column (or at least provide the ordering). This works by greedily
finding the factor with the fewest categories, sorting the samples by the factor values (measurements are treated as
numbers if possible), and recursively repeating this for each block, until there are no more factors with more than
one value.
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List
<BioMaterial> orderByExperimentalDesign
(List<BioMaterial> start, Collection<ExperimentalFactor> factors, ExperimentalFactor primaryFactor) static <R> DoubleMatrix
<R, BioAssay> orderByExperimentalDesign
(DoubleMatrix<R, BioAssay> mat, Collection<ExperimentalFactor> factors, ExperimentalFactor primaryFactor) static List
<BioMaterial> orderByExperimentalDesign
(BulkExpressionDataMatrix<?> dmatrix, Collection<ExperimentalFactor> factors, ExperimentalFactor primaryFactor)
-
Constructor Details
-
ExpressionDataMatrixColumnSort
public ExpressionDataMatrixColumnSort()
-
-
Method Details
-
orderByExperimentalDesign
public static <R> DoubleMatrix<R,BioAssay> orderByExperimentalDesign(DoubleMatrix<R, BioAssay> mat, @Nullable Collection<ExperimentalFactor> factors, @Nullable ExperimentalFactor primaryFactor) -
orderByExperimentalDesign
public static List<BioMaterial> orderByExperimentalDesign(BulkExpressionDataMatrix<?> dmatrix, @Nullable Collection<ExperimentalFactor> factors, @Nullable ExperimentalFactor primaryFactor) -
orderByExperimentalDesign
public static List<BioMaterial> orderByExperimentalDesign(List<BioMaterial> start, @Nullable Collection<ExperimentalFactor> factors, @Nullable ExperimentalFactor primaryFactor) - Parameters:
start
- biomaterials to sortfactors
- factors to consider for ordering biomaterials or all of them ifnull
primaryFactor
- first factor to consider when ordering, auto-detected ifnull
- Returns:
- sorted biomaterials
-