SetMultiExpr.Rd
This function sets up the expression matrix input for consensus WGCNA based on the metacell expression matrix, the full expression matrix, or a provided pseudobulk expression matrix.
SetMultiExpr(
seurat_obj,
group_name,
use_metacells = TRUE,
group.by = NULL,
multi.group.by = NULL,
multi_groups = NULL,
assay = NULL,
slot = "data",
mat = NULL,
mat_group_delim = 3,
wgcna_name = NULL,
...
)
A Seurat object
A string containing a group present in the provided group.by column or in the Seurat Idents.
A logical determining if we use the metacells (TRUE) or the full expression matrix (FALSE)
A string containing the name of a column in the Seurat object with cell groups (clusters, cell types, etc). If NULL (default), hdWGCNA uses the Seurat Idents as the group.
A string containing the name of a column in the Seurat object with groups for consensus WGCNA (dataset, sample, condition, etc)
A character vecrtor containing the names of groups to select
The name of the assay in the Seurat object
The name of the slot in the Seurat object (counts, data)
A Matrix containing gene expression data. Supplying a matrix using this parameter ignores other options. This is almost exclusively used for pseudobulk analysis.
A string containing the name of the WGCNA slot in seurat_obj@misc. Default = NULL which retrieves the currently active WGCNA data