knitr::opts_chunk$set( collapse = TRUE, comment = "#>", warning = FALSE, message = TRUE )
The demo data for peak picking are from MetDNA. You can download it from here: http://metdna.zhulab.cn/metdna/DemoDataset. The demo data is embed in my demoData
package. So you can get them from the demoData
package.
The code for data processing are in the dataProcessing.R
file.
metflow2 is a R package which is used to process and analyze metabolomics data.
Please install it via github.
if(!require(devtools)){ install.packages("devtools") } devtools::install_github("jaspershen/metflow2")
We use the demo data in demoData
package to show how to use metflow2
. Please install it first.
devtools::install_github("jaspershen/demoData")
Firstly, please transform your raw standard MS data (positive and negative modes) to mzXML format using ProteoWizard. The parameter setting is shown like figure below:
Secondly, please organize your mzXML data into different folders.
Blank
QC
QC_DL
Subject
process_data
functionmetflow2::process_data(path = ".", polarity = "positive", peakwidth = c(5,30), threads = 5, output.tic = TRUE, output.bpc = TRUE, min.fraction = 0.8, output.rt.correction.plot = TRUE, fill.peaks = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.