Batch Integration
A detailed step-by-step guide for new users on how to integrate a series of spectra automatically and write them out for analysis in a spreadsheet program. The example given is for a series of HSQC15N spectra measured for amide exchange rate determination. Once you have learned a few tricks described here, you will be able to work very efficiently. -FD
What you will need:
- all your spectra in one format in a single directory.
- an xeasy peaklist that fits your spectrum: its useful if the peak numbers equal the residue number. (See the script PeakListNumberedByResidue.lua in the Lua scripts page).
Step 1: Set up Project file and Read in your Spectrum Series:
- Place all the spectra from your series of measurements in the same directory
- For XEASY format, rename them with endings like "_001.3D.param", "_002.3D.param", "_003.3D.param" ... "_100.3D.param" etc. If you have another spectrum format do something analogous.
- Start CARA and load your favorite template file. (File-Open from Template) or an existing repository (File-Open).
- Create a new project (Project-New Project) and read in sequence if you wish (not needed for this application).
- Click on Spectra in the new Project tree (Main CARA window, left side)
- Click in the Main CARA window, right side with right mouse button.
- In the resulting context menu, click on Add Spectrum and select the spectrum type for your series (e.g. HSQC15N)
- Select the directory containing your spectra.
- Click on the first spectrum in the series.
- move the scroll bar to the right end of the window.
- Hold down shift key and simultaneously click on last spectrum in series. All spectra in directory should be selected. You can deselect a spectrum by holding down the Ctrl key and simultaneously clicking on the spectrum.
- Click on Open to import all the selected spectra in the series. They should appear in the Main-CARA window, right side in the correct order.
Step 2: Set up Peaklist and adjust peak positions.
- Main CARA window, right side: right-click on first spectrum in list and Open MonoScope (spectrum should appear with correct orientation X-axis=1H,Y-axis=15N)
- View-Show Intensity or keyboard shortcut si (toggle intensity off/on)
- View-Auto Contour level or keyboard shortcut sc (to turn on auto-contour mode)
- Peaks-Import Peaklist (to import peaklist with xeasy format)
- Select desired Peaklist to import (this will not be overwritten - Cara creates a local copy in the repository) click Open (crosspeak positions should appear)
- Peaks-Save Peaklist - enter a unique name for the peaklist (this will be stored in repository)
- Use Shift-Ctrl click-drag to zoom a region to inspect peak positions.
- To calibrate the peaklist to the spectrum: Click at the actual position for a particular peak.
- While holding Shift key click the crosspeak symbol "+" corresponding to the same peak.
- Peaks-Calibrate Peaklist (calibrate peaklist to spectrum). Now most crosspeak symbols "+" should be quite close to the actual crosspeak.
- View-Show List or keyboard shortcut sl (to show the peaklist in table format)
- Zoom into a particular peak.
- Double-click on the first line of the peaklist to go to the first peak in the list.
- Use arrow keys to adjust the cursor onto the center of the peak.
- Type mp or Right-click in 2D spectrum window and select Move Peak
- Hit Tab key 3 times (or shift-tab once) to switch focus back to peaklist.
- Hit Down-arrow key one time (to select next peak in list)
- Hit Return key to display the second peak. Adjust peak position.
- Continue until you reach bottom of list and all peaks are adjusted.
Step 3: Adjust Integrator Model.
- Double-click a peak in the peaklist to display the peak.
- Integrator-Show Peak Model
- Integrator-Tune Peak Model
- Drag the slider for "Width 0" to adjust the width of the model to fit the actual linewidth along X-axis (1H)
- Drag the slider for "Width 1" to adjust the width of the model to fit the actual linewidth along Y-axis (15N)
- Click on [CLOSE] to store the model parameters.
- Integrator-Show Base Width
- Integator-Tune Peak Model adjust Peak Tol. 0 to be 50% (enough to detect the maximum intensity within the range displayed by the bar above the peak model along the X-axis) adjust Peak Tol. 1 in a similar way. (Warning: It is dangerous to set tolerences to values >70% since you may find maxima from other peaks)
- Integrator-Integrate All (to integrate all peaks in current spectrum)
- Integrator-Show Backcalculation (check how well model matches data by switching back and forth)
- Integrator-Show Difference Spectrum (check discrepancy between model and data)
- Display different peaks using the peaklist as described in Step 2 and check how well the model fits different peaks.
- Note: You can only adjust one model for all peaks in the current version of CARA. However, it is possible to define several models by editing the repository file. You can then classify each peak to belong to a specific model. But you must edit the repository to alter the peakmodel.
Step 4: Define Batch List.
- Spectrum-Setup Batch List
- Right-Click inside the window.
- In the Context menu, select: Add All Spectra
- If you want to remove a spectrum, click on it, and Right-click Remove Spectrum
- When done setting up the Batch List click [OK]
- To display the next spectrum in the list: type "ns" or use the menu: Spectrum-Next Spectrum
- To display the previous spectrum type "ps" or use the menu: Spectrum-Previous Spectrum
- To jump to a particular spectrum type "gs" and enter the spectrum ID number and hit [RETURN]
- Alternatively, use the menu: Spectrum-Select Spectrum
- Check whether the peak positions are close in the Spectrum series. Try adjusting Peak tolerence if there are slight shifts between spectra.
- You can also adjust the peak positions in individual spectra. These movements in the current CARA version affect the peakposition only the displayed spectrum.
- To move a peak in all spectra, display the first spectrum (the one the peaklist is associated with)
Step 5: Integrate All Spectra and write out Table of Integrals
- Integrator-Integrate Batch List
- You can display the various spectra in the batch list using gs, ns and ps. The peaklist will update to reflect the integrals in the currently displayed spectrum.
- To find problem peaks, display the first spectrum. Click on the Amp column in the peaklist (the peaklist is now ordered by amplitude)
- The lowest amplitudes are at the top. Double-click and check any peaks with negative or zero Amplitude
- Check the plot of peak amplitude versus spectrum ID number by clicking on the peak in 2D spectrum or double-clicking in peaklist followed by: Integrator-Show Peak Curve
- Do not resize the Peak Curve window (otherwise the context info does not correspond to the datapoint position - see below)
- Systematic errors can be observed in this window quickly. If you see a spike, move the cursor on the spike to find out which spectrum is causing problems (context info). Cara will display the spectrum number in the batch list, the spectrum ID, and the spectrum name at the current cursor position. Now return to the Spectrum-Setup Batch List and remove the offending spectrum. Repeat the Integrator-Integrate Batch List and recheck the Peak Curve. The offending data point should be gone.
- When you are satisfied with the appearance of the Peak curves, write out the Peak Amplitudes into a text file: Peaks-Export Integration Table (one column for each peak, first row is the title, first column is the names of the spectra)
- Import into your favorite Plotting, Fitting program (like EXCEL) and analyse data.
Note: There are some Lua scripts available to support batch integration:
- PeakListNumberedByResidue.lua generates an appropriately numbered peaklist from a project.
- WriteBatchTable.lua can write out a batch table including the X-axis parameter in the first column and the spectrum titles along the top row. You must name the Spectra to equal the value (e.g. 50, 100, 200) or associate an attribute with each spectrum such as "ExchTime", "RelaxTime", or "MixTime". If you use an attribute, you will need to edit the script a little. It is described in the header. Contact me if you have questions. Fred
- GraphDemo.lua plots the intensity for a given peak vs. spectrum number. It reproduces the function of the menu item "integrator-show peakcurve" in MonoScope. Somewhere I have a version that plots against the attribute of the spectra (e.g. Intensity vs. ExchTime). If you need this, I can try to dig it up. Fred
BACK: HomonuclearAssignment
NEXT: StructureCalculation