| 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 | { |
no test coverage detected