Skip to contents

Calculate mean and variance for partition id and feature id

Usage

cluster_stats(
  scMuffinList = NULL,
  partition_id = NULL,
  feature_name = NULL,
  mean_f = mean,
  var_f = sd,
  na.rm = TRUE
)

Arguments

scMuffinList

scMuffinList object

partition_id

partition id

feature_name

feature name

mean_f

function to use for average

var_f

function to use for variability

na.rm

whether to remove NA or not

Value

scMuffinList with data.frames "mean" and "var" added to "scMuffinList$cluster_data[[partition_id]]"