Processing 4D LC-IM-MS data using Met4DX
4.0K
Met4DX is an R package for versatile LC-IM-MS based 4D metabolomics data processing.Now Met4DX supports data processing for PASEF-DDA and PASEF-DIA data from timsTOF pro, and IM-AIF data from Agilent DTIM-MS 6560.
The docker image zhulab/met4dx-r contains entire environment for running Met4DX. For convenience and taking fully use of Met4DX, users can pull it and run Met4DX just as following.
Met4DX-r is a Docker environment to processing LC-IM-MS based 4D data with Met4DX R package. It is based on the r-base docker.
Users can pull the Met4DX-r image with the following script
docker pull zhulab/met4dx-r
For data processing with different data acquisition methods and instruments, the data folder to run Met4DX should contains different data files. The R script must be named as "run.R"
PASEF-DDA data (MS2 spectrum oriented, with MS2 spectra converted from DataAnalysis): The data folder should contain raw data files (.d), and a script. Demo files could be downloaded from https://doi.org/10.5281/zenodo.7215544.
PASEF-DDA data (MS2 spectrum oriented, with MS2 spectra converted from GenerateMS2 function): The data folder should contain raw data files (.d), and a script. Demo files could be downloaded from https://doi.org/10.5281/zenodo.7215544.
PASEF-DDA data (precursor ion list oriented): The data folder should contain raw data files (.d), a precursor ion list and a script. Demo files could be downloaded from https://doi.org/10.5281/zenodo.7215544.
PASEF-DIA data (precursor ion list oriented): The data folder should contain raw data files (.d), a precursor ion list and a script. Demo files could be downloaded from https://www.biosino.org/node/project/detail/OEP003846.
IM-AIF data (precursor ion list oriented): The data folder should contain converted data files (.mzML format converted by ProteoWizard version 3.0.20360), a precursor ion list, a CCS calibration coefficient table and script. Demo files could be downloaded from https://www.biosino.org/node/project/detail/OEP003846.
For metabolite identification using demo library, a RT recalibration table is required. The demo file of positive and negative mode, and demo code were provided.
For metabolite identification using user-inputted library, tow msp file recording level1&2 metabolites and level3 metabolites are require. Demo file were provided. For level 1&2 annotation, in the msp file, each compound must contain information listed below. The LABID must be nonredundant. RAW_ID is the source of the compound in the chemical database. LEVEL indicates the source of MS2 spectrum, of which 1 and 2 indicate that the MS2 spectrum was from experimental acquisition and the external library, respectively. PRECURSORMZ is the extract mass of the compound. FORMULA, SMILES, INCHI and INCHIKEY record the structural information of the compound. INCHIKEY1 is the first segment of INCHIKEY. KINGDOM, SUPERCLASS, CLASS and SUBCLASS are the chemical classes defined by ClassyFire. rt_OTHER records the RT of the compound and ccs_ADDUCT are the CCS values of different adduct forms. It is worth noting that MS2 spectra in positive and negative modes must be recorded in separated msp files and indicated in the ION_MODE. The MS2 spectrum is recorded with m/z and intensity of the specific fragment ion. The msp file for level 3 annotation contains similar information. The LEVEL is 3 and the MS2 spectrum is recorded as 0 in this file. And the RT recalibration table is not required.
cd data
# MUST keep the code exactly as it is!
docker run -it --rm -v "$PWD":/data -u $(id -u ${USER}):$(id -g ${USER}) zhulab/met4dx-r Rscript run.R
wait till data processing work done
Explaining docker run arguments
-v "$PWD":/home/${USER}: mapping current directory as home directory in docker container
-u $(id -u ${USER}):$(id -g ${USER}): using current user to run the container
Rscript ~/run.R: run run.R in container home directory with Rscript command
After the data processing work done, a folder name 'results' would be generated in the root folder.

The main results are listed following:
To run additional MSFinder filtering, users can run the demo scripts and MSFinder parameters provided here under Windows OS. After running MS-FINDER and combining with "result3_ScoreCombine_refined_level.csv", users could obtain the final multidimensional match result named "ScoreCombine.csv" with the provided R script. In general, columns of “ScoreCombine.csv” included feature information, structural information of annotated metabolites, match errors in three dimensions (m/z, RT, CCS), match scores for RT match, CCS match, and MS2 spectral match, combined score, and the confidence level for metabolite annotation. Therefore, yes, each individual match score and the combined score were all outputted. Detailed explanations of the results are provided here.
This work is licensed under the Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)
Content type
Image
Digest
sha256:f957bc1eb…
Size
708.4 MB
Last updated
over 3 years ago
docker pull zhulab/met4dx-r