TransferData: Transfer Labels

Description Usage Arguments Value

Description

Transfers the labels

Usage

1
2
3
TransferData(anchorset, refdata, 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.

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

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.


atakanekiz/Seurat3.0 documentation built on May 26, 2019, 2:33 a.m.