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

Method readProtein

src/openms/source/FORMAT/OSWFile.cpp:296–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 */
295
296 void OSWFile::readProtein(OSWData& swath_result, const Size index)
297 {
298 if (!swath_result.getProteins()[index].getPeptidePrecursors().empty())
299 { // already populated
300 return;
301 }
302 getFullProteins_(swath_result, index);
303 if (swath_result.getProteins()[index].getPeptidePrecursors().empty())
304 {
305 throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "ID is not known in OSWFile " + filename_, String(swath_result.getProteins()[index].getID()));
306 }
307 }
308
309 void OSWFile::read(OSWData& swath_result)
310 {

Callers 2

prepareSignal_Method · 0.80
OSWFile_test.cppFile · 0.80

Calls 3

getIDMethod · 0.80
StringClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected