View source: R/evaluate_performance.R
evaluate_emd | R Documentation |
The function computes the Earth Mover's Distance of the two given datasets. Then the reduction is calculated as the relative change in total EMD.
evaluate_emd(
uncorrected,
corrected,
binSize = 0.1,
cell_col = "label",
batch_col = "batch",
markers = NULL,
plots = TRUE,
filter_limit = 2
)
uncorrected |
Dataframe of uncorrected data |
corrected |
Dataframe of corrected data |
binSize |
The size of bins to use when binning data |
cell_col |
Column name of df that contains cell population labels (or clusters) |
batch_col |
Column name of df that contains batch numbers |
markers |
Vector of the markers to calculate EMD for. If NULL, |
plots |
If TRUE, a violin and scatter plot of the emds will be returned |
filter_limit |
Limit for EMD removal (Removing EMDs that are below filter_limit in both before and after correction) |
Other emd:
compute_emd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.