OpenMS offers a number of map alignment algorithms. The take several peak or feature maps and transform the retention time axis so that peak/feature positions become comparable.
The classes described in this section can be found in the ANALYSIS/MAPMATCHING folder.
All map alignment algorithms are derived from the common base class MapAlignmentAlgorithm and, thus, share a common interface. That is why only one example (Tutorial_MapAlignment.C) is shown here. Other algorithms can be work accordingly.
First, we load two feature maps:
Int main() { vector<FeatureMap<> > maps; maps.resize(2); FeatureXMLFile xml_file; xml_file.load("data/Tutorial_MapAlignment_1.featureXML", maps[0]); xml_file.load("data/Tutorial_MapAlignment_2.featureXML", maps[1]);
Then, we instanciate the algorithm and align the feature maps:
MapAlignmentAlgorithmPoseClustering algorithm;
// ... set parameters
vector<TransformationDescription> transformations;
algorithm.alignFeatureMaps(maps, transformations);
Finally, the aligned maps are written to files:
xml_file.store("output/Tutorial_MapAlignment_1.featureXML", maps[0]); xml_file.store("output/Tutorial_MapAlignment_2.featureXML", maps[1]); return 0; } //end of main
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:47 using doxygen 1.7.1 |