metabolomics2018

DOI

LC-MS data pre-processing with xcms

This workshop provides an overview of recent developments in Bioconductor to work with mass spectrometry (MSnbase) and specifically LC-MS data (xcms) and walks through the preprocessing of a toy data set emphasizing on selection of data-dependent settings for the individual pre-processing steps. The present workshop represents an updated version of the workshop given at the Metabolomics Society conference 2018 in Seattle (http://metabolomics2018.org).

Covered topics are:

The full R code of all examples along with comprehensive descriptions is provided in the xcms-preprocessing.Rmd file. This file can be opened with e.g. RStudio which allows execution of the individual R commands (see section below for additionally required R packages). The R command rmarkdown::render("xcms-preprocessing.Rmd") would generate the html file xcms-preprocessing.html.

For those that can not attend the workshop: you can have a look at the presentation online xcms-preprocessing-ioslides.html.

Prerequisites

The analysis in this document requires an R version >= 3.6.0 and recent versions of the MSnbase and xcms (version >= 3.3.1 is needed) packages. The code below installs all packages for the analysis.

install("BiocManager")
BiocManager::install(c("xcms",
                       "MSnbase",
                       "msdata",
                       "magrittr",
                       "devtools",
                       "BiocParallel"))

Files