simpleEstimate: Estimate simple simulation parameters

Description Usage Arguments Details Value Examples

View source: R/simple-estimate.R

Description

Estimate simulation parameters for the simple simulation from a real dataset.

Usage

1
2
3
4
5
6
7
simpleEstimate(counts, params = newSimpleParams())

## S3 method for class 'SingleCellExperiment'
simpleEstimate(counts, params = newSimpleParams())

## S3 method for class 'matrix'
simpleEstimate(counts, params = newSimpleParams())

Arguments

counts

either a counts matrix or a SingleCellExperiment object containing count data to estimate parameters from.

params

SimpleParams object to store estimated values in.

Details

The nGenes and nCells parameters are taken from the size of the input data. The mean parameters are estimated by fitting a gamma distribution to the library size normalised mean expression level using fitdist. See SimpleParams for more details on the parameters.

Value

SimpleParams object containing the estimated parameters.

Examples

1
2
3
4
5
6
7
# Load example data
library(scater)
set.seed(1)
sce <- mockSCE()

params <- simpleEstimate(sce)
params

splatter documentation built on Dec. 3, 2020, 2:01 a.m.