View source: R/evaluate_performance.R
compute_emd | R Documentation |
Given a dataframe, the Earth Movers Distance is computed, using the emdist package. A matrix is returned containing the EMD for each marker for each group of cells.
compute_emd( df, binSize = 0.1, cell_col = "label", batch_col = "batch", markers = NULL )
df |
Dataframe to compute the EMD of |
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, |
Other emd:
evaluate_emd()
## Not run: emd <- compute_emd(df, markers = markers) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.