Worker function of create_metacells(): runs hdWGCNA's MetacellsByGroups() on the cells of one
cell type from one sample and returns the metacell counts and metadata.
Arguments
- data
A Seurat object with the cells of one cell type from one sample (must contain a
pcareduction).- min_cells
Minimum number of cells required to build metacells; smaller groups are skipped.
- k
Number of nearest neighbours aggregated into each metacell.
Maximum number of cells shared between two metacells.
- labels_column
Name of the metadata column with the cell type labels.
- samples_column
Name of the metadata column with the sample labels.
