Function for mapping query cells to a Symphony reference
mapQuery(
exp_query,
metadata_query,
ref_obj,
vars = NULL,
verbose = TRUE,
do_normalize = TRUE,
do_umap = TRUE,
sigma = 0.1
)Symphony query object. Mapping embedding is in the $Z slot. Other slots include query expression matrix ($exp), query cell-level metadata ($meta_data), query cell embedding in pre-Harmonized reference PCs ($Zq_pca), query cell soft cluster assignments ($R), and query cells in reference UMAP coordinates ($umap).
Query gene expression (genes by cells)
Query metadata (cells by attributes)
Reference object as returned by Symphony buildReference()
Query batch variable(s) to integrate over (column names in metadata)
Verbose output
Perform log(CP10K+1) normalization on query expression
Perform umap projection into reference UMAP (if reference includes a uwot model)
Fuzziness parameter for soft clustering (sigma = 1 is hard clustering)