Identify optimal bin size for AddModuleScore() function

optimalBinSize(object, pool = NULL, nbin = 24, seed = 1023, verbose = T)

Arguments

object

Seurat object

pool

List of features to check expression levels against. Defaults to rownames(x = object).

seed

See a random seed. If NULL, seed is not set.

nbinNumber

of bins of aggregate expression levels for all analyzed features. Initial value to begin with looking for optimal bin.

Author

Nicholas Mikolajewicz

Examples

optimal.nbin <-  optimalBinSize(object = so.query)
#> Error in GetAssayData(object = object): object 'so.query' not found