Class DifferentialExpressionAnalysisUtil
java.lang.Object
ubic.gemma.core.analysis.expression.diff.DifferentialExpressionAnalysisUtil
A helper class for the differential expression analyzers. This class contains helper methods commonly needed when
performing an analysis.
- Author:
- keshav
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
blockComplete
(BioAssaySet expressionExperiment, Collection<ExperimentalFactor> factors) Returns true if the block design is complete and there are at least 2 biological replicates for each "group", false otherwise.static boolean
checkValidForLm
(BioAssaySet expressionExperiment, ExperimentalFactor experimentalFactor) Check that the factorValues are measurements, or that there are at least two assays for at least one factor value.
-
Constructor Details
-
DifferentialExpressionAnalysisUtil
public DifferentialExpressionAnalysisUtil()
-
-
Method Details
-
blockComplete
public static boolean blockComplete(BioAssaySet expressionExperiment, Collection<ExperimentalFactor> factors) Returns true if the block design is complete and there are at least 2 biological replicates for each "group", false otherwise. When determining completeness, a biomaterial's factor values are only considered if they are equivalent to one of the input experimental factors.- Parameters:
expressionExperiment
- the experimentfactors
- to consider completeness for.- Returns:
- true if block complete
-
checkValidForLm
public static boolean checkValidForLm(BioAssaySet expressionExperiment, ExperimentalFactor experimentalFactor) Check that the factorValues are measurements, or that there are at least two assays for at least one factor value. Otherwise the model fit will be perfect and pvalues will not be returned.- Parameters:
expressionExperiment
- the experimentexperimentalFactor
- exp. factor- Returns:
- true if it's okay, false otherwise.
-