Class RandomExperimentalDesignUtils
java.lang.Object
ubic.gemma.persistence.service.expression.experiment.RandomExperimentalDesignUtils
Generate random experimental design for a given experiment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentalFactorrandomCategoricalFactor(ExperimentalDesign design, Collection<BioMaterial> samples, String name, int numValues) Create and assign a categorical factor.static ExperimentalFactorrandomCategoricalFactor(ExpressionExperiment ee, String name, int numValues) Create and assign a categorical factor to all the samples of an experiment.static ExperimentalFactorrandomContinuousFactor(ExperimentalDesign design, Collection<BioMaterial> samples, String name) Create and assign a continuous factor.static ExperimentalFactorrandomContinuousFactor(ExpressionExperiment ee, String name) Create and assign a continuous factor to all the samples of an experiment.randomExperimentalDesign(Collection<BioMaterial> samples, int numCategoricalFactors, int numContinuousFactors) Create a random experimental design with the given number of categorical and continuous factors.randomExperimentalDesign(ExpressionExperiment ee, int numCategoricalFactors, int numContinuousFactors) Create and assign a random experimental design to the given experiment.static voidsetSeed(long seed)
-
Constructor Details
-
RandomExperimentalDesignUtils
public RandomExperimentalDesignUtils()
-
-
Method Details
-
setSeed
public static void setSeed(long seed) -
randomExperimentalDesign
public ExperimentalDesign randomExperimentalDesign(ExpressionExperiment ee, int numCategoricalFactors, int numContinuousFactors) Create and assign a random experimental design to the given experiment. -
randomExperimentalDesign
public ExperimentalDesign randomExperimentalDesign(Collection<BioMaterial> samples, int numCategoricalFactors, int numContinuousFactors) Create a random experimental design with the given number of categorical and continuous factors. -
randomCategoricalFactor
public static ExperimentalFactor randomCategoricalFactor(ExpressionExperiment ee, String name, int numValues) Create and assign a categorical factor to all the samples of an experiment.- See Also:
-
randomCategoricalFactor
public static ExperimentalFactor randomCategoricalFactor(ExperimentalDesign design, Collection<BioMaterial> samples, String name, int numValues) Create and assign a categorical factor.- Parameters:
design- design to which the factor will be addedsamples- samples to which the factor values will be assignedname- name to use for the factornumValues- number of factor values to create
-
randomContinuousFactor
Create and assign a continuous factor to all the samples of an experiment. -
randomContinuousFactor
public static ExperimentalFactor randomContinuousFactor(ExperimentalDesign design, Collection<BioMaterial> samples, String name) Create and assign a continuous factor.
-