View source: R/pheno-estimate.R
phenoEstimate | R Documentation |
Estimate simulation parameters for the PhenoPath simulation from a real dataset.
phenoEstimate(counts, params = newPhenoParams())
## S3 method for class 'SingleCellExperiment'
phenoEstimate(counts, params = newPhenoParams())
## S3 method for class '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. |
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.
PhenoParams object containing the estimated parameters.
if (requireNamespace("phenopath", quietly = TRUE)) {
# Load example data
library(scuttle)
set.seed(1)
sce <- mockSCE()
params <- phenoEstimate(sce)
params
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.