spectacle

Description:  Create an image file of an annotated spectrum.

Usage:  spectacle [options]  <annotated spec>

Input: <annotated spectrum> - a file containing one or more spectra in the following format.
    > <identifier> <m/z> [<comment>]
    <m/z> <intensity> [<label>] [<color>] *

The first line for each spectrum begins with a > followed by a unique identifier (e.g. scan number), pre-cursor m/z, and an optional, unstructured comment. A four column list of peaks follows. The first column is m/z, the second intensity, and the third and fourth optional columns contain the text annotation to appear beside the peak and the color of the peak. Here is an example annotation file.

Output:  An image file(s) of the spectrum printed to a file named '<identifier>.ext' where identifier is taken from the annotation file and ext is png, eps, or fig depending of file format. The default is eps. Options exist for controlling output file names and formats.

Options:

Warning messages:

  • Warning: Color <color> not recognized.

    The color given in the annotation file is not available. Supported colors are red, green, blue, and magenta. Default color is black

  • Warning: HTML file cannot be created with this file format.

    The HTML file option can only be used with png file format. No HTML file will be written.