compute_mad: Compute MAD

View source: R/evaluate_performance.R

compute_madR Documentation

Compute MAD

Description

Given a dataframe, the Median Absolute Deviation (MAD) is calculated per-marker, per-batch

Usage

compute_mad(df, cell_col = "label", batch_col = "batch", markers = NULL)

Arguments

df

Dataframe to compute the MADs of

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, get_markers will be used to find markers

See Also

Other mad: evaluate_mad()


shdam/cyCombine documentation built on June 12, 2022, 11:29 p.m.