AutoMS is a peak picking and quality estimation tool for LC-MS data processing, which utilizes a denoising autoencoder (DAE) to find the common characteristics of chromatographic peaks, predict the noise-free peaks from input ROIs, and evaluate peak qualities. AutoMS integrates HPIC for ROI extraction in order to accept raw data directly and output quantitative results. It also supports peak lists obtained from other tools with little adjustment.
-
Create conda environment and activate:
conda create -n automs python=3.8 conda activate automs
-
Clone the repository and enter:
git clone https://github.com/hcji/AutoMS.git cd ./AutoMS
-
Install dependency:
pip install -r requirements.txt
-
Run python
python
Please download the demo data, unzip to the data folder and run the following codes.
from AutoMS.automs import AutoMS
file = 'data/600mix_pos.mzML'
peaks = AutoMS(file, min_intensity = 5000)
Please download the demo data, unzip to the data folder and run the following codes.
# need install rpy2: pip install rpy2,
# and set R_HOME first (R version >= 3.4.1 and <= 4.1.1).
import pandas as pd
from AutoMS.automs_external import AutoMS_External
file = 'data/600mix_pos.mzML'
## Need reset the column name of xcms/mzmine output refer to demo file.
peaks = pd.read_csv('data/xcms_mzmine_input_demo.csv')
peaks = AutoMS_External(file, peaks)
All the results in the paper can be reproduced by the scripts in the notebook dir. Please download the dataset in the figshare, and unzip them to the data dir.
Ji Hongchao
E-mail: [email protected]