This example shows how nmrglue can be used to process and display one dimensional Bruker data.
Raw Bruker data from modern spectrometers contains a group delay artifact which must be removed during processing. There has been much speculation as to the origins of this artifact and many methods for removing the artifact have been suggested [1], [2], [3], [4], [5].
Nmrglue provides an algorithm for removing this artifact based on the protocol presented in "DMX DIGITAL FILTERS AND NON-BRUKER OFFLINE PROCESSING III" by W. M. Westler and F. Abildgaard. This method is available for use through :py:func:`nmrglue.fileio.bruker.remove_digital_filter`. Nmrglue users can use this included function to remove the artifact or implement their own method if they are unsatisfied with the results.
In this example a 1D NMR spectrum of 1,3 diaminopropane is processed and plotted using nmrglue. The results can be compared with the spectrum produced from NMRPipe which provides a different artifact removal algorithm. Note that no apodization or baseline corrections are performed on these spectra.
- Download the 1D proton spectrum of 1,3 diaminopropane and unpack in this directory. This raw data is available from the Madison Metabolomics Consortium Database as expnmr_00001_1.tar.
- Execute
process_and_plot_nmrglue.pyto process and plot the 1D spectrum. This creates the filefigure_nmrglue.png. - Optionally, the data can be processed with NMRPipe using the script
nmrpipe_proc.com. Thenplot_nmrpipe.pycan be used to plot the resulting spectrum. This creates the filefigure_nmrpipe.png.
process_and_plot_nmrglue.py [:download:`source code <../../../examples/bruker_data/process_and_plot_nmrglue.py>`]
.. literalinclude:: ../../../examples/bruker_data/process_and_plot_nmrglue.py
Output:
[:download:`figure_nmrglue.png <../../../examples/bruker_data/figure_nmrglue.png>`]
nmrpipe_proc.com [:download:`source code <../../../examples/bruker_data/nmrpipe_proc.com>`]
.. literalinclude:: ../../../examples/bruker_data/nmrpipe_proc.com
plot_nmrpipe.py [:download:`source code <../../../examples/bruker_data/plot_nmrpipe.py>`]
.. literalinclude:: ../../../examples/bruker_data/plot_nmrpipe.py
Output:
[:download:`figure_nmrpipe.png <../../../examples/bruker_data/figure_nmrpipe.png>`]

