asign_labels: Assign labels for each cell in for target data given the...

Description Usage Arguments

View source: R/evaluation_metrics.R

Description

Assign labels to each cell by the mode of neighboring reference cell types

Usage

1
2
3
4
5
6
7
8
asign_labels(
  exprs.source,
  exprs.target,
  labels.source,
  k = NULL,
  max.k = 50,
  verbose = F
)

Arguments

exprs.source

ncells-by-ngenes expression matrix of source data

exprs.target

ncells-by-ngenes expression matrix of target data

labels.source

a vector of labels for source cells

k

integer, number of nearest neighor (by default min(max.k, max(10, floor(0.01* (n.source + n.target)))) is used)

max.k

upper bound of k (default 50)

verbose

boolean scalar, whether to show extensive program logs (default TRUE)


pengminshi/cFIT documentation built on July 11, 2021, 11:12 p.m.