Learn R Programming

scPipeline (version 0.2.0.0)

TransferAnnotations: Transfer annotations to Seurat clusters

Description

This function assigns cluster-level annotations in a Seurat object based on the majority annotation of cells within each cluster.

Usage

TransferAnnotations(seurat_object, annotation_col, cluster_col, output_col)

Value

The Seurat object with an additional column in its metadata, specified by output_col.

Arguments

seurat_object

Seurat object containing cluster and annotation information.

annotation_col

The name of the metadata column with annotations (character string).

cluster_col

The name of the metadata column with cluster information (character string).

output_col

The name of the output column to store cluster annotations (character string).