Estimate simulation parameters for the PhenoPath simulation from a real dataset.
phenoEstimate(counts, params = newPhenoParams()) # S3 method for SingleCellExperiment phenoEstimate(counts, params = newPhenoParams()) # S3 method for matrix phenoEstimate(counts, params = newPhenoParams())
counts | either a counts matrix or an SingleCellExperiment object containing count data to estimate parameters from. |
---|---|
params | PhenoParams object to store estimated values in. |
PhenoParams object containing the estimated parameters.
The nGenes
and nCells
parameters are taken from the size of the
input data. The total number of genes is evenly divided into the four types.
See PhenoParams
for more details on the parameters.
if (requireNamespace("phenopath", quietly = TRUE)) { # Load example data library(scater) set.seed(1) sce <- mockSCE() params <- phenoEstimate(sce) params }#> A Params object of class PhenoParams #> Parameters can be (estimable) or [not estimable], 'Default' or 'NOT DEFAULT' #> Secondary parameters are usually set during simulation #> #> Global: #> (GENES) (CELLS) [Seed] #> 2000 200 121054 #> #> 4 additional parameters #> #> Genes: #> [DE] [PST] [PST + BETA] [DE + PST + BETA] #> 500 500 500 500 #>