GMMfit: Fit a Gaussian model to a set of channels

Description Usage Arguments Value

View source: R/gmm.R

Description

Fit a Gaussian model to a set of channels

Usage

1
GMMfit(X, cid, ..., bounds, baseline = 0.01, mu_init = c(0.2, 0.8), seed = 100)

Arguments

X

- cell-by-channel data frame of marker expression

cid

- column name or index that contains cell IDs

...

- columns to fit a GMM to

bounds

- [optional] Two values specifying the range of values to be used for mixture modeling. This allows for exclusion of outliers from model fitting. Calculated automatically, if not provided.

baseline

- [optional] baseline for automatic boundary calculation

mu_init

- [optional] vector of two values, each between 0 and 1, specifying the initial placement of Gaussian means.

seed

- [optional] random seed to allow for reproducibility

Value

A composite data frame containing trained GMMs and their fits to data


ArtemSokolov/naivestates documentation built on May 31, 2021, 9:26 p.m.