Giter Club home page Giter Club logo

pscnn's Introduction

pSCNN

Nuclear magnetic resonance (NMR) spectroscopy provides us a powerful tool to analyze mixtures consisting of small molecules but is difficult to identify compounds in mixtures because of chemical shift variation of the same compound in different mixtures and peak overlapping among molecules. We presented a pseudo Siamese convolutional neural network method (pSCNN) to solve the problems of compound identification in NMR spectra of mixtures. This is the code repo for the paper Deep Learning-based Method for Compound Identification in NMR Spectra of Mixtures.

Installation

Python and TensorFlow:

Python 3.8.13 and TensorFlow (version 2.5.0-GPU)

The main packages can be seen in requirements.txt

  • Install Anaconda https://www.anaconda.com/

  • Install main packages in requirements.txt with following commands

     conda create --name pSCNN python=3.8.13
     conda activate pSCNN
     python -m pip install -r requirements.txt
     pip install tqdm

Clone the repo and run it directly

git clone at:https://github.com/yuxuanliao/pSCNN.git

Download the model and run directly

Since the model exceeded the limit, we have uploaded the model and all the NMR data to Zenodo.

DOI

Training your model and predict mixture spectra data

Run the file 'pSCNN.py'. The model and these data have been uploaded at Zenodo. Download the model and these example data, pSCNN can be reload and predict easily.

Contact

Yuxuan Liao: [email protected]

pscnn's People

Contributors

yuxuanliao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

fakher77 raaaii

pscnn's Issues

Problem Loading pSCNN model

Dear Dr. Liao,

By testing your scripts in Google Golab environment, I encountered a problem in particular in the 'pSCNN.py' script when loading the model: indeed seems that scripts and related function ' load_pSCNN' are unable to correctly find dir and *.h5 and *.pkl files.

For more clarity, I can share you privately ( by email) my Drive dir with files and related .ipynb scripts.

Thanks in advance!

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.