This function annotates the cells in a Seurat object using the SingleR package with reference data obtained from the Celldex package.
AnnotateCellsWithSingleR(seurat_object, reference_data = NULL, assay = "RNA")
The Seurat object with cell annotations added to the metadata.
A Seurat object to be annotated.
A reference dataset to use for annotation (e.g., HumanPrimaryCellAtlasData from Celldex). If NULL, HumanPrimaryCellAtlasData is used by default.
The assay in the Seurat object to use for annotation. Default is "RNA".