README.md

NMR.Utils

Contains functions to automatically import, process and plot Bruker NMR data. Primarily designed to speed up the processing of in-situ electrochemical experiments.

Installation

  1. Install the devtools package if you do not already have it:

install.packages("devtools")

  1. Install this package

devtools::install_github("jmstrat/NMR.Utils")

Details

Graphical interface for in situ data processing

This package includes a graphical interface for importing, processing, and plotting in situ / operando NMR data. This processing wizard can be summoned using the incantation insitu_gui().

Importing NMR data

Use the function read.nmr to import 1D or 2D nmr data. Only processed bruker data (1D / 2D binary files), or files exported from topspin (convbin2asc / totxt) are supported.

Use plot or iplot to plot the data.

Scripting interface for in situ NMR data

Any / all of these steps can be performed graphically using the command insitu_gui or any of the interactive family of commands (interactiveImport, interactivePhase, interactiveBaseline and interactivePlotting). Data can be exported as a csv file using the export function.

Fitting in situ NMR data

Import and process the data as described above. Note that it is very important that the baseline is 0 for fitting, if your baseline is reasonably flat the command data = correct_baseline(data, method="modpolyfit",degree=1) will fit a straight line to the data. Otherwise consider using interactiveBaseline.

Results are available in the fit object under result, e.g. fit$result. These can be exported to a csv file using export. A simple plot can be made using plot(fit), or an animation as described below.

Animations

A simple animation of in situ NMR data can be made using save_animation, optionally including a fit.

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details



jmstrat/NMR.Utils documentation built on July 14, 2019, 11:35 p.m.