#include <OpenMS/ANALYSIS/ID/IDSpectrumMapper.h>
The identifications stored in a ProteinIdentification instance can be added to the corresponding spectrum. Furthermore the annotations that are present can be retrieved.
Public Member Functions | |
IDSpectrumMapper () | |
Constructor. | |
template<class PeakT> | |
UInt | annotate (MSExperiment< PeakT > &experiment, const std::vector< PeptideIdentification > &identifications, DoubleReal precision=0.01f) throw (Exception::MissingInformation) |
Annotates the spectra belonging to the experiment. |
IDSpectrumMapper | ( | ) |
Constructor.
UInt annotate | ( | MSExperiment< PeakT > & | experiment, | |
const std::vector< PeptideIdentification > & | identifications, | |||
DoubleReal | precision = 0.01f | |||
) | throw (Exception::MissingInformation) [inline] |
Annotates the spectra belonging to the experiment.
The retention time and mass-to-charge ratio of the PeptideIdentification have to be given in the MetaInfoInterface ('MZ' and 'RT').
The exception MissingInformation is thrown if the MetaInfoInterface of identifications
does not contain 'MZ' and 'RT'.
Generated Tue Apr 1 15:36:41 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |