| 39 | START_SECTION(~PepXMLFile()) |
| 40 | delete ptr; |
| 41 | END_SECTION |
| 42 | |
| 43 | START_SECTION(void load(const String& filename, std::vector<ProteinIdentification>& proteins, std::vector<PeptideIdentification>& peptides, const String& experiment_name, SpectrumMetaDataLookup& lookup)) |
| 44 | { |
| 45 | vector<ProteinIdentification> proteins; |
| 46 | vector<PeptideIdentification> peptides; |
| 47 | String pep_file = OPENMS_GET_TEST_DATA_PATH("PepXMLFile_test.pepxml"); |
| 48 | String mz_file = OPENMS_GET_TEST_DATA_PATH("PepXMLFile_test.mzML"); |
| 49 | String exp_name = "PepXMLFile_test"; |
| 50 | PeakMap experiment; |
| 51 | MzMLFile().load(mz_file, experiment); |
| 52 | SpectrumMetaDataLookup lookup; |
| 53 | lookup.readSpectra(experiment.getSpectra()); |
| 54 | file.load(pep_file, proteins, peptides, exp_name, lookup); |
| 55 | TEST_EQUAL(peptides.size(), 18); |
| 56 | TEST_EQUAL(proteins.size(), 2); |
| 57 | PeptideIdentification first = peptides[0]; |
| 58 | TEST_REAL_SIMILAR(first.getRT(), 1.3653); |
| 59 | TEST_REAL_SIMILAR(first.getMZ(), 538.605); |
| 60 | // more checks below |
| 61 | } |
| 62 | |
| 63 | END_SECTION |
| 64 |
no test coverage detected