A wrapper for mapping query data onto reference.

MapQuery(
  seu.q,
  reference,
  assay.q = "RNA",
  add.map.qual = FALSE,
  ncores = 1,
  split.by = NULL
)

Arguments

seu.q

A query Seurat object.

reference

Reference model.

assay.q

The assay used for reference mapping. Default: RNA

add.map.qual

Whether add mapping quality metric (mean kNN distance). Default: FALSE

ncores

Number of threads for calculation. Default: 1

split.by

Attribute for splitting query Seurat object, projecting the query object by a list of subsetted object. Default: NULL

Value

A Seurat object. The projected reference embeddings were saved in a dimension reduction object named 'ref.umap'. The gene set score were saved in a new assay named 'SignatureScore'.