Label transfer via KNN

KnnLabelTransfer(query.emb, ref.emb, ref.labels, k = 100)

Arguments

query.emb

The embedding matrix of query data.

ref.emb

The embedding matrix of reference atlas.

ref.labels

A named vector <cell name, labels>.

k

K nearest neighbors used. Default: 100

Value

A data.frame contains prediction results.