Performs NCA metric learning for single-cell data. Maximizes the leave-one-out classification probability using a stochastic nearest neighbors approach.
Usage
runNCA(
high_varGenes,
expression_profile,
sample_information,
max_iter = 100,
learn_rate = 0.01,
seed = 1,
verbose = TRUE
)
Arguments
- high_varGenes
Character vector of high-variance genes
- expression_profile
Numeric matrix (genes x cells)
- sample_information
Named vector of cell type labels
- max_iter
Maximum iterations (default: 100)
- learn_rate
Learning rate (default: 0.01)
- seed
Random seed (default: 1)
- verbose
Print progress messages (default: TRUE)