Python GCxGC-MS data processing
« Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Python package to process GCxGC-MS data.
- Processing and annotation of chromatograms
- Chromatogram visualization
- Peak tables alignment and chromatogram alignment using R package
- Machine learning and statistical analysis for the automatic detection of biomarkers
- Pixel discriminant approach for the automatic detection of biomarkers
- GCxGC-MS data simulation
This is an example of how to use the package.
- Python
- Rscript
- Set NIST database location in matching_nist_lib_from_chromato_cube() in matching.py
- Update the path to the NIST database location by setting the lib_path argument line 53
- Set the work_dir line 55
- Clone the repo
git clone [email protected]:Easy47/Python-2DGC.git
- Install Python packages
pip install -r requirements.txt
- R package for alignment R2DGC and RGCxGC.
- Generate lib scores
cd src python generate_lib_scores.py
- (Optional) Copy of the hmdb library with NIST Casno in spectra metadata (the file is already in src folder). If you need to recreate the file use the function generate_lib_scores_from_lib() in utils.py.
import utils utils.generate_lib_scores_from_lib("lib_filename", "output_filename")
- Processes cohort chromatograms, generates peak tables and performs alignment.
cd src #PATH_TO_THE_COHORT: Path to the folder containing chromatograms of the cohort. # OUTPUT_PATH: Directory where peak tables and aligned peak table will be generated. # READ detailed documentation in identification_main.py for more parameters. python identification_main.py -p PATH_TO_THE_COHORT -op OUTPUT_PATH
For more examples, please refer to the Documentation for an overview of the functions, read the detailed documentation of a specific function directly in its file or read example notebooks in notebooks folder.
See LICENSE.txt
for more information.
Project Link: https://github.com/Easy47/Python-2DGC