Parse and Process NMR data.
Project description
#+TITLE: pyNMR
- Module Description pyNMR is a set of python modules to parse, process, and analyze NMR data.
There are some fragments of a graphical user interface but at this point pyNMR is best used together with Jupyter Lab.
Currently supported NMR formats are Bruker TopSpin and RS2D.
There is some code for parsing files from Tecmag NTNMR, Magritek, and Varian under pyNMR/model/parser, but at htis point these formats are not officially supported.
- Installation pyNMR is available at pip. It may be installed with
#+BEGIN_SRC pip install pynmr #+END_SRC
or with
#+BEGIN_SRC easy_install pynmr #+END_SRC
Usage
To import a Bruker dataset instantiate an nmr Data object:
#+BEGIN_SRC python import pynmr path = "pathToTopSpin/"
import pyNMR.model.parser.topSpin as T import pyNMR.model.processor as P import pyNMR.model.operations as O
import matplotlib.pyplot as plt import numpy as np
data = T.TopSpin("./data/bruker/dnp_210316_1_solids/1/")
Processor = P.Processor([O.LeftShift(21), O.LineBroadening(0.2), O.FourierTransform(), O.Phase0D(190)]) Processor.runStack(data) #+END_SRC
Internal Notes
To install this package locally and install for development, use this command
pip install -e ./
More info available here: https://packaging.python.org/tutorials/installing-packages/
MIT License
Copyright (c) 2022 Benno Meier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pynmr-0.24-py3-none-any.whl
.
File metadata
- Download URL: pynmr-0.24-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ecaf4456b5e5fa0416d923fb49011460ce030e0ea6bb1d46a81376212840828 |
|
MD5 | e08c5c2ac49947acd8eb587deb736ffe |
|
BLAKE2b-256 | ecce2d6f7dc1057e0b7ed09903a996f96f03aef57ea11239a2ccf10b9ce148b8 |