resamplePerplexity: Calculate and visualize perplexity of all models in a...

Description Usage Arguments Value Examples

View source: R/model_performance.R

Description

Calculates the erplexity of each model's cluster assignments given the provided count matrix, as well as resamplings of that count matrix, providing a distribution of perplexities and a better sense of the quality of a given K/L choice.

Usage

1
resamplePerplexity(counts, celda.list, resample = 5, seed = 12345)

Arguments

counts

Integer matrix. Rows represent features and columns represent cells. This matrix should be the same as the one used to generate 'celda.mod'.

celda.list

Object of class 'celda_list'.

resample

Integer. The number of times to resample the counts matrix for evaluating perplexity. Default 5.

seed

Parameter to set.seed() for random number generation. Default 12345.

Value

celda_list. Returns the provided ‘celda.list' with a 'perplexity' property, detailing the perplexity of all K/L combinations that appeared in the celda_list’s models.

Examples

1
2
3

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.