Chazin Home Chazin Home | Ca-binding Protein DB | Vanderbilt Home Vanderbilt Home
Research Description | Publications | Wisdom | Search
How to contribute | About this page

A tool for overlaying multiple spectra


I've written a simple perl script: coloroverlay.pl. You can copy it and modify it to suit your needs. If the comments in the file are not clear enough to get you going, you can contact me for help.

It overlays multiple PostScript files into one, coloring each one
sequentially in a color range, which is defined at the beginning of the
file. It's intended for a titration experiment, where you have, say,
20 HSQC (2D) spectra that you'd like to compare. Felix does not make it
easy to overlay them, and the color selection is very limited. The same for
NMRview. This helps.

This is useful for highlighting small differences between a range of spectra. Here's a portion of one overlay of 20 spectra from red to cyan (note that you can pick your own colors):

partial spectrum
 

So, once you have this, the cumbersome part becomes generating a directory full of PostScript files of your spectra, with the same dimensions, limits, etc. Haitao helped me write a Felix macro called batchmplot.mac which automates this. It is not general enough for distribution (relies on a list of files), but you can certainly use it as a template for your own project if you wish.

Hope this is useful.

Back to main wisdom page

Back to my home page


created 5/5/01 by Jonathan Sheehan