MapTo: Map query Seurat object to reference Seurat object

View source: R/MapTo.R

MapToR Documentation

Map query Seurat object to reference Seurat object

Description

This function is a wrapper for Seurat's TransferData, IntegrateEmbeddings, and ProjectUMAP functions, meant to be run after OptiK, as part of the Denoise/OptiK/MapTo pipeline.

Usage

MapTo(
  ref,
  query,
  lab = "seurat_clusters",
  k = "opti",
  get.anchors = T,
  dims = 30
)

Arguments

ref

Reference Seurat object

query

Wuery Seurat object

lab

The reference label to treat as clusters. Default is "seurat_clusters"

k

The k-weight to use when weighting anchors. Default is opti

get.anchors

A logical that when true will first run Seurat's FindTransferAnchors. Default is TRUE.

dims

Number of PCs to use when get.anchors = T. Default is 30

Value

Returns a Seurat object with a new slot where the k-weight is stored: misc$CellTools$opti_k


TrakhtenbergLab/CellTools documentation built on Aug. 21, 2023, 2:39 p.m.