View source: R/JPA_functions.R
custom.featureTable | R Documentation |
Perform IPA analysis using user provided feature table in CSV format generated by MS-DIAL, MZmine2, etc instead of using XCMS feature table. Also annotates each feature as either level 1 or 2.
custom.featureTable(dir, FTdir, mz.tol = 10)
dir |
Directory of folder containing all .mzXML files of interest. This folder must contain only relevant .mzXML files of DDA sample(s). |
FTdir |
Directory containing feature table in CSV format. |
mz.tol |
Mass tolerance in ppm used to identify level 1 features by matching the feature's mz against all ms2 precursor mz. Default = 10. |
The number of mzXML files to process must be equal to the number of input CSV files where each CSV file contains features extracted from each mzXML file. Note: for multi-sample analysis, the feature table provided must not be aligned. The existing feature table must be in CSV format and contains only the following columns in order: "mz", "rt", "rtmin", "rtmax", "intensity".
Returns a feature table in dataframe format, containing the following columns in order: "mz", "rt", "rtmin", "rtmax", "maxo", "sample", "level" where "maxo" is the feature peak intensity. Also returns an XCMS object that is used by functions later in the IPA workflow.
Sam Shen, Jian Guo, Tao Huan
library(IPA)
dir = "X:/Users/Sam_Shen/IPAtest_20210330/singleDDA"
FTdir = "X:/Users/Sam_Shen/IPAtest_20210330/singleDDA"
featureTable <- read.featureTable(dir = dir, FTdir = FTdir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.