View source: R/kersplat-estimate.R
kersplatEstimate | R Documentation |
Estimate simulation parameters for the Kersplat simulation from a real dataset. See the individual estimation functions for more details on how this is done.
kersplatEstimate(counts, params = newKersplatParams(), verbose = TRUE)
## S3 method for class 'SingleCellExperiment'
kersplatEstimate(counts, params = newKersplatParams(), verbose = TRUE)
## S3 method for class 'matrix'
kersplatEstimate(counts, params = newKersplatParams(), verbose = TRUE)
counts |
either a counts matrix or a SingleCellExperiment object containing count data to estimate parameters from. |
params |
KersplatParams object to store estimated values in. |
verbose |
logical. Whether to print progress messages. |
KersplatParams object containing the estimated parameters.
kersplatEstMean
, kersplatEstBCV
,
kersplatEstLib
if (requireNamespace("igraph", quietly = TRUE)) {
# Load example data
library(scuttle)
set.seed(1)
sce <- mockSCE()
params <- kersplatEstimate(sce)
params
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.