Learn R Programming

Seurat (version 3.0.1)

TransferData: Transfer Labels

Description

Transfers the labels

Usage

TransferData(anchorset, refdata, weight.reduction = "pcaproject",
  l2.norm = FALSE, dims = 1:30, k.weight = 50, sd.weight = 1,
  eps = 0, do.cpp = TRUE, verbose = TRUE, slot = "data")

Arguments

anchorset

Results from FindTransferAnchors

refdata

Data to transfer. Should be either a vector where the names correspond to reference cells, or a matrix, where the column names correspond to the reference cells.

weight.reduction

Dimensional reduction to use for the weighting. Options are:

  • pcaproject: Use the projected PCA used for anchor building

  • pca: Use an internal PCA on the query only

  • cca: Use the CCA used for anchor building

  • custom DimReduc: User provided DimReduc object computed on the query cells

l2.norm

Perform L2 normalization on the cell embeddings after dimensional reduction

dims

Number of PCs to use in the weighting procedure

k.weight

Number of neighbors to consider when weighting

sd.weight

Controls the bandwidth of the Gaussian kernel for weighting

eps

Error bound on the neighbor finding algorithm (from RANN)

do.cpp

Run cpp code where applicable

verbose

Print progress bars and output

slot

Slot to store the imputed data

Value

If refdata is a vector, returns a dataframe with label predictions. If refdata is a matrix, returns an Assay object where the imputed data has been stored in the provided slot.