Compute the correlation of features broken down by groups with another covariate
GroupCorrelation(
object,
assay = NULL,
slot = "scale.data",
var = NULL,
group.assay = NULL,
min.cells = 5,
ngroups = 6,
do.plot = TRUE
)
A Seurat object with the correlation stored in metafeatures
Seurat object
Assay to pull the data from
Slot in the assay to pull feature expression data from (counts, data, or scale.data)
Variable with which to correlate the features
Compute the gene groups based off the data in this assay.
Only compute for genes in at least this many cells
Number of groups to split into
Display the group correlation boxplot (via
GroupCorrelationPlot
)