2D NMR Data Processing with nmrPipe

nmrPipe is a widely used, free, powerful NMR data processing software. nmrDraw is the packaged graphic user interface for data processing and display. nmrPipe is a Unix pipe command based program for streaming FID and data vectors during processing of a multi-dimensional spectrum. The data pipes feed results from previous commands to following commands, mostly in memory, to give the final processed data. The program can process data from 1D to 4D. This document limits the discussion to 2D data only.

Currently, the program runs under the Unix environment, including Linux, and under Mac and Windows XP operating systems. The programs have been installed on NMR500, NMR600, and the data workstations. For more information on software availability and references, visit author Frank Delaglio's website at NIH and his private website.

While learning the whole programming package takes time, I have written two programs (pipe2d or snap2d) that automatically generate scripts and do the processing for known types of routine 2D experiments. You do have to adjust phase parameters for phase-sensitive spectrum after the initial processing. Please report problems you may encounter using these programs.

The following details the procedure using pipe2d or snap2d. For details of nmrPipe and nmrDraw program, see the following pages.

See Section 3 for plotting with X and Y projections.

In the following, all commands must be entered in a Linux terminal window. To open a terminal, right-button click inside the Desktop, select Open Terminal.

1: Procedure (after experiment finishes and data saved)

See section below for taking snapshot during a 2D experiment run.

Reference the direct 1H dimension before saving data

Make sure that before you save your data, reference the 1H spectrum of the direct dimension carefully in vnmrJ. The pipe2d program uses the 1H reference of the direct dimension to reference the indirect dimension, regardless of the type of nucleus (1H, 13C, 15N, etc.) along the 2nd dimension.

If you use the experiment setup procedure given in the instructions, the reference should be carried over from the 1D 1H spectrum done before the 2D experiment. No additional action is needed.

Run pipe2d

The pipe2d program must be launched from within a .fid folder (we'll use noesy2d.fid as an example below) that contains Varian's data files. Enter the following commands:

Enter the index number of the template experiment that matches the type of experiment you have. If you simply hit the RETURN/ENTER key, by default the program uses 0 (the 1st template experiment). The default value is correct most of the times. Next, the program creates fid.com (data conversion) and nmrproc.com (Fourier Transform) under the .fid folder and executes the files to create the processed spectrum (test.ft2). Once done, the program automatically launches nmrDraw. Press r with cursor in main window to draw contours. Both scripts can be executed manually, after manual editing of certain parameters, from the terminal window, by typing either fid.com or nmrproc.com. Data conversion usually only needs to be done once; processing may need to be re-run and fine tuned more times.

Adjust phases

There is no need for phase adjustment if the data is in absolute-value (or magnitude) mode such as in a typical gCOSY, HMBC. The phase parameters for both dimensions may need to be adjusted if the spectrum is phase-sensitive. These phase parameters are contained in nmrproc.com.

2: Procedure (snapshot during experiment with snap2d)

Follow the same procedure above for data processing after experiment finishes, except the following:

Once the information is provided, the program creates and runs the scripts and launches nmrDraw. Press r with cursor in nmrDraw window to draw contours.

You can stop the experiment (with aa or click Abort Acquisition button) anytime if you feel the data quality is adequate from the snapshot. Note that if a 2D data collection aborts before the last FID is collected, the data matrix is only filled partially. There appears to be no saved parameter in the parameter file procpar that indicates the index number of the last FID collected. nmrPipe gives an error if the full 2D matrix is to be processed. snap2D asks user input for the correct size of finished FIDs. But if you do not know this value after data collection, you can reduce the Y-axis points (-yN and -yT fields) via try-and-error and re-run the data conversion until the error message disppears.

After you finish with the experiment, to make a copy of the snapshot data folder as your final data folder, type:

Alternatively, you can rename the temp folder to the final data folder name rather than copy it to a new folder:

3: Plot 2D spectrum with X and Y projections

To generate a plot with the X and Y projection displayed along the edges, type the following commands:

By default, the plot1D2D.tcl program takes test.ft2 as input, automatically set contour threshold and plot the whole region of the spectrum with projections along the sides. The default output postscript file is: roi.ps. The ps2pdf command turns the .ps file into a pdf file (roi.pdf). Both can be edited with Adobe Illustrator or other programs without the loss of digital resolution.

To plot only a region of the spectrum or use a different contour threshold (find the value next to First: in nmrDraw display), modify the following commands:

If any of the options starting with a dash ("-") is not specified, the default value or name is used. See the entire list of the options from Frank Delaglio's website here.

4: Reference PPM adjustment

pipe2d and snap2d automatically set reference PPM for the indirect dimension according to IUPAC unified chemical shift method. The method relies on the presence of accurate reference parameters of direct 1H dimension saved (from vnmrJ) in the parameter file procpar. If for some reason, you forget to keep proper referencing before saving the data, use one of the several methods below to correct the reference PPM during processing.


H. Zhou updated Oct 2010