#' @export
massdiff.msimat <- function(d) {
# Extract peaklist from msimat object and apply massdiff.numeric
peaklist <- d[["peaks"]]
if (!is.numeric(peaklist)) {
stop("Input peak list is not numeric")
}
output <- massdiff.numeric(d=peaklist)
return(output)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.