Giter Site home page Giter Site logo

kohulan / maw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zmahnoor14/maw

0.0 1.0 0.0 46.11 MB

Metabolome Annotation Workflow

R 26.44% Python 31.84% Jupyter Notebook 41.37% Dockerfile 0.16% Makefile 0.05% Batchfile 0.07% Common Workflow Language 0.07%

maw's Introduction

License Maintenance GitHub contributors GitHub issues DOI

MAW

This repository hosts Metabolome Annotation Workflow (MAW). The workflow takes MS2 .mzML format data files as an input in R. It performs spectral database dereplication using R Package Spectra and compound database dereplication using SIRIUS. Final candidate selection is done in Python using RDKit and PubChemPy.The classification of the tentative candidates from the input data are classified using CANOPUS and ClassyFire.

Install MAW

Install Docker on your MAC OS OR on Linux.

Since MAW is implemented in R and Python so we have two separate Docker images.

Pull maw-r Docker Image

To pull MAW-R a R-docker image, run the following command on your terminal:

docker pull zmahnoor/maw-r:1.0.0

This will creat a R-Docker image on your system. This image contains /opt/workdir as the working directory which contains the following files and folders:

  1. /data (folder)
  2. /data/example_Tyrosine.mzML
  3. /data/hmdb.rda
  4. /data/gnps.rda
  5. /data/mbankNIST.rda
  6. Workflow_R_Functions.r (R function script)
  7. Workflow_R_Script.r (R example script)
  8. install_packages.R (R package installation script, these pacakges are already installed the docker container)

Pull maw-py Docker Image

To pull MAW-Py Python-docker image, run the following command on your terminal:

docker pull zmahnoor/maw-py:1.0.0

This will creat a R-Docker image on your system. This image contains /opt/workdir as the working directory which contains the following files and folders:

  1. /data (folder)
  2. /data/example_Tyrosine/ (result folder generated by MAW-R)
  3. /data/hmdb_dframe_str.csv
  4. Workflow_Python_Functions.py (Python function script)
  5. Workflow_Python_Script.py (Python example script)
  6. requirements.txt (Python package installation script, these pacakges are already installed the docker container)

Use Case

  1. First Run maw-r:
docker run --name example_maw-r -i -t zmahnoor/maw-r:1.0.0 /bin/bash

Once you enter the docker container, you can run the script and check the results.

Rscript --no-save --no-restore --verbose Workflow_R_Script.r >outputFile.txt 2>&1

This command will run the Workflow_R_Script.r which is an example script for /data/example_Tyrosine.mzML. The calculation takes about 2 minutes on an Ubuntu system with 64GB RAM.

  1. Run maw-py
docker run --name example_maw-py -i -t zmahnoor/maw-py:1.0.0 /bin/bash

Once you enter the docker container, you can run the script and check the results.

python3 Workflow_Python_Script.py

This command will run the Workflow_Python_Script.py which is an example script for /data/Example_Tyrosine/ obtained earlier with MAW-R. In order to leave the container without killing the process, add $ at the end of commands inside of the container. Then disown the PID and leave the container with CTRL+P and CTRL+Q.

The results can be seen in the /data/final_candidates.csv

For further information on the scripts used for the Bechmark datasets to validate results from MAW, please refer to the MAW-Benchmark repository.

Note For details on using the workflow on Jupyter notebooks in a more interactive mode, please follow the Tutorial part on wiki page of this repository.

Citation

Zulfiqar, M., Gadelha, L., Steinbeck, C. et al. MAW: the reproducible Metabolome Annotation Workflow for untargeted tandem mass spectrometry. J Cheminform 15, 32 (2023). https://doi.org/10.1186/s13321-023-00695-y

More information about our research group

GitHub Logo

maw's People

Contributors

kohulan avatar lgadelha avatar zmahnoor14 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.