Class ExperimentalDesignUtils
java.lang.Object
ubic.gemma.model.expression.experiment.ExperimentalDesignUtils
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<ExperimentalFactor, Map<BioMaterial, FactorValue>> getFactorValueMap(Collection<ExperimentalFactor> factors, Collection<BioMaterial> samples) static Map<ExperimentalFactor, Map<BioMaterial, FactorValue>> getFactorValueMap(ExperimentalDesign experimentalDesign, Collection<BioMaterial> samples) Create a mapping of samples to factor values for all factors in the experimental design.
-
Constructor Details
-
ExperimentalDesignUtils
public ExperimentalDesignUtils()
-
-
Method Details
-
getFactorValueMap
public static Map<ExperimentalFactor,Map<BioMaterial, getFactorValueMapFactorValue>> (ExperimentalDesign experimentalDesign, Collection<BioMaterial> samples) Create a mapping of samples to factor values for all factors in the experimental design.The resulting map will be populated for every factor in the design and every provided sample. If a sample is lacking a particular value is missing, a
nullwill be used. If a sample has more than one value, aIllegalStateExceptionwill be raised.- Throws:
IllegalStateException- if a sample has more than one value any factor in the design
-
getFactorValueMap
public static Map<ExperimentalFactor,Map<BioMaterial, getFactorValueMapFactorValue>> (Collection<ExperimentalFactor> factors, Collection<BioMaterial> samples)
-