View source: R/developmental_classifier_helpers.R
tof_classify_cells | R Documentation |
This function uses a specified distance metric to classify each cell in a data.frame or matrix ('cancer_data') into one of 'nrow(classifier_fit)' subpopulations based on minimum distance, as described in this paper.
tof_classify_cells(
classifier_fit,
cancer_data,
distance_function = c("mahalanobis", "cosine", "pearson")
)
classifier_fit |
A tibble produced by |
cancer_data |
A matrix in which each row corresponds to a cell and each column corresponds to a measured CyTOF antigen. |
distance_function |
A string indicating which of three distance functions should be used to calculate the distances between each row of 'cancer_data' and the healthy developmental subpopulations corresponding to each row of 'classifier_fit'. |
A data.frame in which each column represents the distance between a cell in the input data and each healthy subpopulation cells are being classified into.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.