This function transfers cell type labels from a sketched dataset to a full dataset based on the similarities in the lower dimensional space.
TransferSketchLabels(
object,
sketched.assay = "sketch",
reduction,
dims,
refdata = NULL,
k = 50,
reduction.model = NULL,
neighbors = NULL,
recompute.neighbors = FALSE,
recompute.weights = FALSE,
verbose = TRUE
)
A Seurat object with transferred labels stored in the metadata. If a UMAP model is provided, the full data are also projected onto the UMAP space, with the results stored in a new reduction, full.`reduction.model`
A Seurat object.
Sketched assay name. Default is 'sketch'.
Dimensional reduction name to use for label transfer.
An integer vector indicating which dimensions to use for label transfer.
A list of character strings indicating the metadata columns containing labels to transfer. Default is NULL. Similar to refdata in `MapQuery`
Number of neighbors to use for label transfer. Default is 50.
Dimensional reduction model to use for label transfer. Default is NULL.
An object storing the neighbors found during the sketching process. Default is NULL.
Whether to recompute the neighbors for label transfer. Default is FALSE.
Whether to recompute the weights for label transfer. Default is FALSE.
Print progress and diagnostic messages