| 44 | XTandemXMLFile xml_file; |
| 45 | |
| 46 | START_SECTION(void load(const String& filename, ProteinIdentification& protein_identification, std::vector<PeptideIdentification>& id_data, ModificationDefinitionsSet& mod_def_set)) |
| 47 | { |
| 48 | ModificationDefinitionsSet mod_set(ListUtils::create<String>(""), ListUtils::create<String>("Carbamidomethyl (C),Oxidation (M),Carboxymethyl (C)")); |
| 49 | |
| 50 | xml_file.load(OPENMS_GET_TEST_DATA_PATH("XTandemXMLFile_test.xml"), protein_identification, peptide_identifications, mod_set); |
| 51 | TEST_EQUAL(peptide_identifications.size(), 303); |
| 52 | TEST_EQUAL(protein_identification.getHits().size(), 497); |
| 53 | // should have picked up the default N-terminal modifications: |
| 54 | TEST_EQUAL(mod_set.getNumberOfVariableModifications(), 6); |
| 55 | TEST_EQUAL(mod_set.getNumberOfFixedModifications(), 0); |
| 56 | |
| 57 | mod_set.setModifications("", "Carbamidomethyl (C),Oxidation (M),Carboxymethyl (C)"); |
| 58 | xml_file.load(OPENMS_GET_TEST_DATA_PATH("XTandemXMLFile_test_2.xml"), protein_identification, peptide_identifications, mod_set); |
| 59 | TEST_EQUAL(peptide_identifications.size(), 2); |
| 60 | TEST_EQUAL(protein_identification.getHits().size(), 21); |
| 61 | // no additional modifications in this case: |
| 62 | TEST_EQUAL(mod_set.getNumberOfVariableModifications(), 3); |
| 63 | TEST_EQUAL(mod_set.getNumberOfFixedModifications(), 0); |
| 64 | } |
| 65 | END_SECTION |
| 66 | |
| 67 | ///////////////////////////////////////////////////////////// |
no test coverage detected