This function calculates the median absolute deviance across data for each sample run.
run_mad(data_only)
data.frame with two elements: Sample, a character vector giving the sample names; and MAD, a numeric vector giving the MAD values
When calculating the MAD within a sample NA values are ignored. If all peptide abundance values are missing within a sample, the MAD is replaced by the overall mean MAD values for the data.