Class RandomSingleCellDataUtils
java.lang.Object
ubic.gemma.persistence.service.expression.bioAssayData.RandomSingleCellDataUtils
Utilities for generating random single-cell data.
- Author:
- poirigui
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CellTypeAssignmentGenerate a random cell type assignment with 10 cell types and 10% sparsity.static CellTypeAssignmentrandomCellTypeAssignment(SingleCellDimension scd, int numberOfCellTypes, double sparsity) randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, int numCellsPerBioAssay, double sparsity) randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, SingleCellDimension dimension, double sparsity) Generate a single random single-cell vector.static List<SingleCellExpressionDataVector> static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, QuantitationType qt) static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, ScaleType scaleType) static List<SingleCellExpressionDataVector> randomSingleCellVectors(QuantitationType quantitationType) static List<SingleCellExpressionDataVector> Generate random single-cell vectors with 1000 cells/sample and 90% sparsity.static List<SingleCellExpressionDataVector> randomSingleCellVectors(ExpressionExperiment ee, ArrayDesign ad, QuantitationType qt, int numCellsPerBioAssay, double sparsity) Generate random single-cell vectors.static voidsetSeed(long seed) Set the seed used to generate random single-cell vectors.
-
Constructor Details
-
RandomSingleCellDataUtils
public RandomSingleCellDataUtils()
-
-
Method Details
-
setSeed
public static void setSeed(long seed) Set the seed used to generate random single-cell vectors. -
randomSingleCellVectors
-
randomSingleCellVectors
public static List<SingleCellExpressionDataVector> randomSingleCellVectors(QuantitationType quantitationType) -
randomSingleCellVectors
public static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, ScaleType scaleType) -
randomSingleCellVectors
public static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, QuantitationType qt) -
randomSingleCellVectors
public static List<SingleCellExpressionDataVector> randomSingleCellVectors(ExpressionExperiment ee, ArrayDesign ad, QuantitationType qt) Generate random single-cell vectors with 1000 cells/sample and 90% sparsity.- See Also:
-
randomSingleCellVectors
public static List<SingleCellExpressionDataVector> randomSingleCellVectors(ExpressionExperiment ee, ArrayDesign ad, QuantitationType qt, int numCellsPerBioAssay, double sparsity) Generate random single-cell vectors.Counts are drawn from a
NegativeBinomial.One vector is generated by design element from the provided array design with the given sparsity.
- Parameters:
numCellsPerBioAssay- how many cells to generate perBioAssaysparsity- sparsity of the vectors
-
randomSingleCellVector
public static SingleCellExpressionDataVector randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, int numCellsPerBioAssay, double sparsity) -
randomSingleCellVector
public static SingleCellExpressionDataVector randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, SingleCellDimension dimension, double sparsity) Generate a single random single-cell vector. -
randomCellTypeAssignment
Generate a random cell type assignment with 10 cell types and 10% sparsity. -
randomCellTypeAssignment
public static CellTypeAssignment randomCellTypeAssignment(SingleCellDimension scd, int numberOfCellTypes, double sparsity)
-