Run Seurat MapQuery to reference
RunSeuratMap2Ref.Rd
This will normalize the query object, find transfer anchors, and map the query to the reference.
Usage
RunSeuratMap2Ref(
object,
ref,
use,
ident = "seurat_clusters",
refnorm = c("auto", "LogNormalize", "SCT", "SCTransform"),
skip_if_normalized = TRUE,
split_by = NULL,
ncores = 1,
MapQuery_args = list(refdata = list()),
FindTransferAnchors_args = list(),
SCTransform_args = list(),
NormalizeData_args = list(),
log = NULL,
cache = NULL
)
Arguments
- object
Seurat object
- ref
Reference Seurat object or a file path to a Seurat object with .rds or .h5seurat extension
- use
The name in the metadata of the reference to use as identity for the query after mapping
- ident
The name of the identity in metadata after mapping
- refnorm
The normalization method used by the reference. The same normalization method will be used for the query.
"auto": automatically detect the normalization method used by the reference
"LogNormalize": LogNormalize
"SCT": SCTransform
"SCTransform": SCTransform (alias for SCT)
- skip_if_normalized
Skip normalization if the query is already normalized with the same method as the reference
- split_by
The name of the metadata to split the query object by and do the mapping separately
- ncores
Number of cores to use for parallel processing for the split query objects
- MapQuery_args
Arguments to pass to
Seurat::MapQuery()
. Theuse
argument will be added to therefdata
list.- FindTransferAnchors_args
Arguments to pass to
Seurat::FindTransferAnchors()
.- SCTransform_args
Arguments to pass to
Seurat::SCTransform()
. Will be used to normalize the query object ifrefnorm
is set to "SCT"- NormalizeData_args
Arguments to pass to
Seurat::NormalizeData()
. Will be used to normalize the query object ifrefnorm
is set to "LogNormalize"- log
Logger
- cache
Directory to cache the results. Set to
FALSE
to disable caching