Class RandomSingleCellDataUtils
java.lang.Object
ubic.gemma.persistence.service.expression.bioAssayData.RandomSingleCellDataUtils
Utilities for generating random single-cell data.
- Author:
- poirigui
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
RandomSingleCellDataUtilspublic RandomSingleCellDataUtils()
 
- 
- 
Method Details- 
setSeedpublic static void setSeed(long seed) Set the seed used to generate random single-cell vectors.
- 
randomSingleCellVectors
- 
randomSingleCellVectorspublic static List<SingleCellExpressionDataVector> randomSingleCellVectors(QuantitationType quantitationType) 
- 
randomSingleCellVectorspublic static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, ScaleType scaleType) 
- 
randomSingleCellVectorspublic static List<SingleCellExpressionDataVector> randomSingleCellVectors(int numDesignElements, int numSamples, int numCellsPerBioAssay, double sparsity, QuantitationType qt) 
- 
randomSingleCellVectorspublic static List<SingleCellExpressionDataVector> randomSingleCellVectors(ExpressionExperiment ee, ArrayDesign ad, QuantitationType qt) Generate random single-cell vectors with 1000 cells/sample and 90% sparsity.- See Also:
 
- 
randomSingleCellVectorspublic 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 per- BioAssay
- sparsity- sparsity of the vectors
 
- 
randomSingleCellVectorpublic static SingleCellExpressionDataVector randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, int numCellsPerBioAssay, double sparsity) 
- 
randomSingleCellVectorpublic static SingleCellExpressionDataVector randomSingleCellVector(ExpressionExperiment ee, CompositeSequence compositeSequence, QuantitationType qt, SingleCellDimension dimension, double sparsity) Generate a single random single-cell vector.
- 
randomCellTypeAssignmentGenerate a random cell type assignment with 10 cell types and 10% sparsity.
- 
randomCellTypeAssignmentpublic static CellTypeAssignment randomCellTypeAssignment(SingleCellDimension scd, int numberOfCellTypes, double sparsity) 
 
-