This function calculates the kurtosis across data for each sample run.

run_kurtosis(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.

Value

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

Details

Kurtosis is calculated by method 2 in the e1071 package, which is unbiased under normality. Within a sample NA values are ignorned in the kurtosis calculation. If all peptide abundance values are missing within a sample, the kurtosis is replaced by the overall mean of nonmissing kurtosis values for the data.

Author

Lisa Bramer