8000 GitHub - philibe/NMRformer
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

philibe/NMRformer

 
 

Repository files navigation

NMRformer

Metabolite identification from 1D 1H NMR spectra is a major challenge in NMR-based metabolomics. This study introduces NMRformer, a Transformer-based deep learning framework for accurate peak assignment and metabolite identification in 1D 1H NMR spectroscopy.

Environment

python 3.9.13 torch 1.10.0+cu113 you can use this comand to download torch :

pip install torch==1.10.0+cpu torchvision==0.11.0+cpu torchaudio==0.10.0 -f https://download.pytorch.org/whl/torch_stable.html

use this comand to download numpy :

pip install numpy==1.26.4

use this comand to download pandas :

pip install pandas==1.5.1

use these comands to download plotly :

pip install plotly

and

pip install --upgrade nbformat

use this comand to download scipy :

pip install scipy

use this comand to download einops :

pip install einops

Input

The uploaded files include:

  1. csv file, the first column is the chemical shift, and the second column is the 1H NMR spectrum.
  2. txt file, one data per row, representing the chemical shift of the peak in the spectrum.
When you input peaks that cannot be recognized or noisy peaks into the model, it will affect the output of the model, so please try to filter the peaks in the input spectral peak list as much as possible.

Output:

Metabolites corresponding to peaks in input data.

In NMRformer.ipynb, you can load the model and input data, resulting in an output.csv file that contains the corresponding metabolites and probabilities for each peak. You can use the data in example_data for testing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.8%
  • Python 0.2%
0