R/wrappers.R
LabelTransfer.Rd
A wrapper for transferring reference cell labels to the query via KNN method.
LabelTransfer(
seu.q,
reference,
reduction.q = "ref.umap",
ref.emb.col = paste0("UMAP_", 1:2),
ref.label.col = "cluster.name",
k = 10
)
A query Seurat object.
Reference model.
Reduction name storing projected reference embeddings. Default is 'ref.umap'.
The column names storing the reference embeddings in reference model.
The column name storing the cell labels to be transferred.
The K param for KNN model. Default is 10.
A Seurat object. The predicted cell type is store in 'knn.pred.celltype' column.