Description Usage Arguments Value See Also Examples
View source: R/kersplat-estimate.R
Estimate simulation parameters for the Kersplat simulation from a real dataset. See the individual estimation functions for more details on how this is done.
1 2 3 4 5 6 7 | 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
1 2 3 4 5 6 7 8 9 | if (requireNamespace("igraph", quietly = TRUE)) {
# Load example data
library(scater)
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.