run_mad: Calculate the Median Absolute Deviance (MAD) of Sample Runs

View source: R/filter_objects.R

run_madR Documentation

Calculate the Median Absolute Deviance (MAD) of Sample Runs

Description

This function calculates the median absolute deviance across data for each sample run.

Usage

run_mad(data_only)

Arguments

data_only

a p \times n data.frame, where p is the number of peptides and n is the number of samples.

Details

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.

Value

data.frame with two elements: Sample, a character vector giving the sample names; and MAD, a numeric vector giving the MAD values

Author(s)

Lisa Bramer


pmartR/pmartR documentation built on March 4, 2024, 8:32 a.m.