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

Function START_SECTION

src/tests/class_tests/openms/source/PepXMLFile_test.cpp:41–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39START_SECTION(~PepXMLFile())
40delete ptr;
41END_SECTION
42
43START_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
63END_SECTION
64

Callers 1

Calls 15

MzMLFileClass · 0.85
TEST_EQUALFunction · 0.85
TEST_EXCEPTIONFunction · 0.85
readSpectraMethod · 0.80
frontMethod · 0.80
backMethod · 0.80
getScoreTypeMethod · 0.80
getSequenceMethod · 0.80
toUnmodifiedStringMethod · 0.80
getAABeforeMethod · 0.80
getAAAfterMethod · 0.80

Tested by

no test coverage detected