Nothing
#' Stabilize variance in spectra
#'
#' @param spec List of MALDIquant::MassSpectrum
#' @param method Method for stabilization
#' @param correctBaseline Baseline correction method
#'
#' @return
#' stabilized spectra
#' @importFrom MALDIquant transformIntensity
#' @noRd
stabilizeVariance <- function(spec,
method = c("sqrt", "log", "log2", "log10"),
correctBaseline = c(NA, "SNIP", "TopHat", "ConvexHull", "median")) {
method <- match.arg(method)
correctBaseline <- match.arg(correctBaseline)
spec <- transformIntensity(spec, method = method)
if (!is.na(correctBaseline)) {
spec <- removeBaseline(spec, method = correctBaseline)
}
return(spec)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.