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

Function storeSplitSwathFile

src/tests/class_tests/openms/source/SwathFile_test.cpp:59–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void storeSplitSwathFile(std::vector<String> filenames)
60{
61 {
62 PeakMap exp;
63 MSSpectrum s;
64 s.setMSLevel(1);
65 Peak1D p; p.setMZ(101); p.setIntensity(201);
66 s.push_back(p);
67 exp.addSpectrum(s);
68 MzMLFile().store(filenames[0], exp);
69 }
70 for (Size i = 0; i< filenames.size() -1; i++)
71 {
72 PeakMap exp;
73 MSSpectrum s;
74 s.setMSLevel(2);
75 std::vector<Precursor> prec(1);
76 prec[0].setIsolationWindowLowerOffset(12.5);
77 prec[0].setIsolationWindowUpperOffset(12.5);
78 prec[0].setMZ(400 + i*25 + 12.5);
79 s.setPrecursors(prec);
80 Peak1D p; p.setMZ(101 + i); p.setIntensity(201 + i);
81 s.push_back(p);
82 exp.addSpectrum(s);
83 MzMLFile().store(filenames[i+1], exp);
84 }
85}
86
87START_TEST(SwathFile, "$Id$")
88

Callers 1

START_SECTIONFunction · 0.85

Calls 10

MzMLFileClass · 0.85
setMSLevelMethod · 0.80
addSpectrumMethod · 0.80
setPrecursorsMethod · 0.80
setMZMethod · 0.45
push_backMethod · 0.45
storeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected