mfaEstimate {splatter} | R Documentation

## Estimate mfa simulation parameters

### Description

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

### Usage

    mfaEstimate(counts, params = newMFAParams())

    ## S3 method for class 'SingleCellExperiment'
    mfaEstimate(counts,
      params = newMFAParams())

    ## S3 method for class 'matrix'
    mfaEstimate(counts, params = newMFAParams())

### Arguments

`counts` | either a counts matrix or a SingleCellExperiment object containing count data to estimate parameters from.
`params` | MFAParams object to store estimated values in.

### Details

The `nGenes` and `nCells` parameters are taken from the size of the input data. The dropout lambda parameter is estimate using `empirical_lambda`. See `MFAParams` for more details on the parameters.

### Value

MFAParams object containing the estimated parameters.

### Examples

    # Load example data
    library(scater)
    data("sc_example_counts")

    params <- mfaEstimate(sc_example_counts)
    params

[Package splatter version 1.8.0 Index]