This function assigns cluster-level annotations in a Seurat object based on the majority annotation of cells within each cluster.
TransferAnnotations(seurat_object, annotation_col, cluster_col, output_col)
The Seurat object with an additional column in its metadata, specified by output_col
.
Seurat object containing cluster and annotation information.
The name of the metadata column with annotations (character string).
The name of the metadata column with cluster information (character string).
The name of the output column to store cluster annotations (character string).