![]() |
OpenMS
|
#include <OpenMS/IONMOBILITY/IMTypes.h>
Static Public Member Functions | |
| static IMFormat | determineIMFormat (const MSExperiment &exp) |
| static IMFormat | determineIMFormat (const MSSpectrum &spec) |
| Checks for existence of a single driftTime (using spec.getDriftTime()) or an ion-mobility float data array (using spec.hasIMData()) More... | |
| static DIM_UNIT | fromIMUnit (const DriftTimeUnit from) |
Static Public Attributes | |
| static constexpr double | DRIFTTIME_NOT_SET = -1.0 |
| If drift time for a spectrum is unavailable (i.e. not an IM spectrum), it will have this value. More... | |
|
static |
Checks the all spectra for their type (see overload) and returns the common type (or IMFormat::MIXED if both CONCATENATED and MULTIPLE_SPECTRA are present) If exp is empty or contains no IM spectra at all, IMFormat::NONE is returned
| Exception::InvalidValue | if IM values are annotated as single drift time and float array for any single spectrum |
Referenced by TOPPPeakPickerIM::FormatDetector::consumeSpectrum(), and TOPPPeakPickerIM::main_().
|
static |
Checks for existence of a single driftTime (using spec.getDriftTime()) or an ion-mobility float data array (using spec.hasIMData())
If neither is found, IMFormat::NONE is returned. If a single drift time (== IMFormat::MULTIPLE_SPECTRA) is found, but no unit, a warning is issued.
| Exception::InvalidValue | if IM values are annotated as single drift time and float array in the given spectrum |
|
static |
| from | Drift unit to convert from |
| Exception::ConversionError | if from has invalid value (e.g. 'NONE') |
Referenced by TOPPViewBase::showCurrentPeaksAsIonMobility().
|
inlinestaticconstexpr |
If drift time for a spectrum is unavailable (i.e. not an IM spectrum), it will have this value.