Skip to contents

Predict the cell type of Seurat object using SingleR package.

Usage

AutoAnnotate_SingleR(SeuratObj, ref, ref_type = c("bulk", "single-cell"))

Arguments

SeuratObj

Seurat object to annotate

ref

Reference dataset, bulk RNA-seq or microarray data or single-cell data, SummarizedExperiment or SingleCellExperiment object containing a matrix of log-expression values with labels stored as ref$label.

ref_type

type of reference dataset, "bulk" (bulk RNA-seq) or "single-cell" (single-cell data) are supported.

Value

Seurat object. The predicted cell type label is stored in SeuratObj$predicted_label.