Learn R Programming

scPipeline (version 0.2.0.0)

AnnotateCellsWithSingleR: Annotate cells in a Seurat object using SingleR with Celldex

Description

This function annotates the cells in a Seurat object using the SingleR package with reference data obtained from the Celldex package.

Usage

AnnotateCellsWithSingleR(seurat_object, reference_data = NULL, assay = "RNA")

Value

The Seurat object with cell annotations added to the metadata.

Arguments

seurat_object

A Seurat object to be annotated.

reference_data

A reference dataset to use for annotation (e.g., HumanPrimaryCellAtlasData from Celldex). If NULL, HumanPrimaryCellAtlasData is used by default.

assay

The assay in the Seurat object to use for annotation. Default is "RNA".