IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy

Detailed Description

Tool to merge several single-spectrum files into a dataset.

Screenshot-mergetool.png

Directory containing multiple files - directory containing multiple single-spectrum files.

Note
make sure that this directory contains only the files of interest. View files, sort by size and checks extremities to detect unusual file sizes. These may be invalid spectra.
Attention
Never use directory names nor file names containing single quotes (" ' "). They are not handled properly by mergetool, and will cause the operation to fail.

File type - Currently supported types are:

  • "Pirouette .DAT" text format
  • OPUS binary format
  • Wire TXT format

File filter - wildcard filter. Examples: *.*; *.dat; *.DAT

Group code trimming dot (right-to-left) - allows you control over trimming off part of the filename for the group code of each spectrum. For example, you may have several files like:

/// sample1.000.dat
/// sample1.001.dat
/// sample1.002.dat
///        ^   ^ 
///        |   |
///        |   1 first dot (left-to-right)
///        |
///        2 second dot
/// 

All these are spectra from the same group (named "sample1"). Specifying "2" for the trimming dot will get rid of everything after the 2nd last dot counting from right to left. Thus, all spectra will have group code "sample1".

Image building options

If Build image is checked, the image height needs to be informed. The width is automatically calculated as the number of files in the directory divided by the informed height.

Note
To build an image, the files need to have a sequential numbering between dots, as above.

Definition in file mergetool.m.

Go to the source code of this file.