|
CycloBranch
|
The representation of a peak list. More...
#include <iostream>#include <fstream>#include <vector>#include <string>#include <algorithm>#include "core/cPeak.h"#include "core/cMzML.h"#include "core/cImzML.h"Go to the source code of this file.
Classes | |
| class | cPeaksList |
| The class representing a peak list. More... | |
Functions | |
| bool | compareRelativePeakIntensitiesDesc (const cPeak &a, const cPeak &b) |
| Compare two peaks by relative intensities. More... | |
| bool | isInPpmMassErrorTolerance (double experimentalmass, double theoreticalmass, double tolerance) |
| Check whether two masses are inside a ppm mass error tolerance. More... | |
| double | ppmError (double experimentalmass, double theoreticalmass) |
| Compute a ppm error between two masses. More... | |
| bool | searchHint (double mzratio, cPeaksList &experimentalpeaks, double fragmentmasserrortolerance) |
| Check if an m/z ratio exists in an experimental spectrum. More... | |
| Q_DECLARE_METATYPE (cPeaksList) | |
| Register cPeaksList by Qt. | |
The representation of a peak list.
Compare two peaks by relative intensities.
| a | first peak |
| b | second peak |
| bool | true when the relative intensity of the peak a is bigger than the relative intensity of the peak b |
| bool isInPpmMassErrorTolerance | ( | double | experimentalmass, |
| double | theoreticalmass, | ||
| double | tolerance | ||
| ) |
Check whether two masses are inside a ppm mass error tolerance.
| experimentalmass | first mass |
| theoreticalmass | second mass |
| tolerance | fragment mass error tolerance |
| bool | true when masses are inside a mass tolerance |
| double ppmError | ( | double | experimentalmass, |
| double | theoreticalmass | ||
| ) |
Compute a ppm error between two masses.
| experimentalmass | first mass |
| theoreticalmass | second mass |
| double | ppm error |
| bool searchHint | ( | double | mzratio, |
| cPeaksList & | experimentalpeaks, | ||
| double | fragmentmasserrortolerance | ||
| ) |
Check if an m/z ratio exists in an experimental spectrum.
| mzratio | theoretical m/z ratio |
| experimentalpeaks | an input experimental spectrum (sorted in ascending order) |
| fragmentmasserrortolerance | m/z error tolerance |
| true | if the theoretical m/z ratio was mathed; false otherwise |