Git Product home page Git Product logo

deepei's Introduction

This is the repository of codes for the paper entitled "Predicting Molecular Fingerprint from Electron-Ionization Mass Spectrum with Deep Neural Networks". This repository only contains the source codes without any data or pretrained models, due to the models were trained by NIST dataset.

Depends:

python3
rdkit
tensorflow

optinal:
pycdk
smiles_to_onehot

Data preprocess

Data preprocess scripts are used for extracting compound information of NIST into numpy object. They are included in the scripts/read.py , including gathering the SMILES, exact masses, retention indices, Morgan fingerprints, molecular descriptors and mass spectra.

Training the model

DeepEI contain two main parts of models: 1. Predicting molecular fingerprint from EI-MS (Fingerprint folder); 2. Predicting retention index from structure (retention folder). Each folder contains the codes for data pretreatment, model training and model selection. For FP prediction, we compared for models, which are MLP, XGBoost, LR and PLS-DA. For RI prediction, we compared single-channel CNN, multi-channel CNN and MLP.

Prediction

The main functions of predication are included in the DeepEI folder. predict_RI function takes SMILES as input and predicts the corresponding retention index. predict_fingerprint function takes mass spectrum as input and predicts the corresponding fingerprints.

Comparison

The Discussion folder contains the scripts for evaluating the identification performance, and comparing with NEIMS package. The corresponding results are also included. We compared DeepEI, NEIMS and their combination.

Usage

The example codes for usage is included in the Usage.ipynb

Contact: [email protected]

deepei's People

Contributors

hcji avatar ljocha avatar

Forkers

mohammed-abbass

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.