Giter Club home page Giter Club logo

dl_rtzs's Introduction

DL_RTZS

A deep learning method for obtaining ultraclean pure shift NMR spectra.

Profiles

Programs for TensorFolw 2.4.0:

  1. TensorFlow 2.4.0

Real time ZS experimental data of quinine (divided into 2 spectra, according to the preparing method of dealing with spectral width of over 4096 Hz in the paper), azithromycin and strychnine:

  1. exp_quinine_1.mat
  2. exp_quinine_2.mat
  3. exp_azithromycin.mat
  4. exp_strychnine.mat

Model weight file (model_rtzs.h5) can be download from the weblink: https://www.dropbox.com/s/12v3bggv56fbytw/model_rtzs.h5

Model can be tested or used by the file:

  1. modelTest.py

Model training code, using AC-ResNet and SM-CDMANE, is shown in the file:

  1. modelTrain.py

Dependencies

Python == 3.6

  1. keras == 2.2.4
  2. numpy == 1.16.0
  3. tensorfolw == 1.14.0
  4. h5py == 3.1.0
  5. matplotlib == 3.3.1

Model has been written and tested with the above dependencies. Performance with other module versions has not been tested.

Preparing Data

The input to the DNN must be in '.mat' format (mat v7.3) with variable name of 'data', which can be edited in MATLAB or Python.

Prior to input into the network model, the FID data containing less than 4096 complex points needs to be zero-filled to 4096 complex points and Fourier transformed to the spectrum. Then, the spectrum is phased, taken as the real part, and normalized to 1.

If FID contains more than 4096 complex points or the spectral width is larger than 4096 Hz, FID can be zero-filled to 8192 or more (integer multiple of 4096) complex points, then the corresponding spectrum can be divided into two or more spectra with 4096 real points as inputs, and finally the processed spectra can be concatenated into a complete spectrum.

dl_rtzs's People

Contributors

1320799775 avatar

Stargazers

 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.