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

Function storeSwathFile

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

Source from the content-addressed store, hash-verified

31
32
33void storeSwathFile(String filename, int nr_swathes=32)
34{
35 PeakMap exp;
36 {
37 MSSpectrum s;
38 s.setMSLevel(1);
39 Peak1D p; p.setMZ(101); p.setIntensity(201);
40 s.push_back(p);
41 exp.addSpectrum(s);
42 }
43 for (int i = 0; i< nr_swathes; i++)
44 {
45 MSSpectrum s;
46 s.setMSLevel(2);
47 std::vector<Precursor> prec(1);
48 prec[0].setIsolationWindowLowerOffset(12.5);
49 prec[0].setIsolationWindowUpperOffset(12.5);
50 prec[0].setMZ(400 + i*25 + 12.5);
51 s.setPrecursors(prec);
52 Peak1D p; p.setMZ(101 + i); p.setIntensity(201 + i);
53 s.push_back(p);
54 exp.addSpectrum(s);
55 }
56 MzMLFile().store(filename, exp);
57}
58
59void storeSplitSwathFile(std::vector<String> filenames)
60{

Callers 1

START_SECTIONFunction · 0.85

Calls 9

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

Tested by

no test coverage detected