MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / getIMData

Method getIMData

src/openms/source/KERNEL/MSSpectrum.cpp:728–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726 }
727
728 std::pair<Size, DriftTimeUnit> MSSpectrum::getIMData() const
729 {
730 Size index;
731 DriftTimeUnit unit;
732 bool has_IM = getIonMobilityArray__(this->getFloatDataArrays(), index, unit);
733
734 if (!has_IM)
735 {
736 throw Exception::MissingInformation(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION,
737 "Cannot get ion mobility data. No float array with the correct name available."
738 " Number of float arrays: " +
739 String(this->getFloatDataArrays().size()));
740 }
741
742 return {index, unit };
743 }
744
745} // namespace OpenMS

Callers 7

testMSSpectrumFunction · 0.95
pickMethod · 0.80
determineIMFormatMethod · 0.80
splitByIonMobilityMethod · 0.80
get2DPeakDataFunction · 0.80
get2DPeakDataIonFunction · 0.80
_get_ion_spec_arraysMethod · 0.80

Calls 3

getIonMobilityArray__Function · 0.85
StringClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected