Median normalisation
Performs median normalisation on intensities. The normalised intensity is the original intensity minus the run median plus the global median. This is also the way it is implemented in Spectronaut.
median_normalisation(data, sample, intensity_log2)
data |
A data frame containing at least sample names and intensity values. |
sample |
The name of the column containing the sample names. |
intensity_log2 |
The name of the column containing the log2 transformed intensity values to be normalised. |
A dataframe with a column called normalised_intensity_log2
containing the normalised intensity values.
data <- data.frame( r_file_name = c("s1", "s2", "s3", "s1", "s2", "s3"), intensity_log2 = c(18, 19, 17, 20, 21, 19) ) median_normalisation(data, sample = r_file_name, intensity_log2 = intensity_log2 )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.