ssc.average.cell | R Documentation |
calcualte the average expression of cells of each group
ssc.average.cell(
obj,
assay.name = "exprs",
gene = NULL,
column = "majorCluster",
ncell.downsample = NULL,
avg = "mean",
ret.type = "data.melt",
do.parallel = F
)
obj |
object of |
assay.name |
character; which assay (default: "exprs") |
gene |
character; only consider the specified gnees (default: NULL) |
column |
character; columns in colData(obj) to be averaged. (default: "majorCluster") |
ncell.downsample |
integer; for each group, number of cells downsample to. (default: NULL) |
avg |
character; average method. can be one of "mean", "diff", "zscore" . (default: "mean") |
ret.type |
character; return type. can be one of "data.melt", "data.cast", "data.mtx". (default: "data.melt") |
do.parallel |
logical; parallel of ldply. (default: FALSE) |
multiple average methods are implemented
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.