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

Function main

doc/code_examples/Tutorial_Labeled.cpp:14–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace std;
13
14int main(int argc, const char** argv)
15{
16 if (argc < 2) return 1;
17 // the path to the data should be given on the command line
18 String tutorial_data_path(argv[1]);
19
20 vector<FeatureMap > maps;
21 maps.resize(1);
22
23 FeatureXMLFile feature_file;
24 feature_file.load(tutorial_data_path + "/data/Tutorial_Labeled.featureXML", maps[0]);
25 ConsensusMap out;
26 out.getColumnHeaders()[0].filename = "data/Tutorial_Labeled.mzML";
27 out.getColumnHeaders()[0].size = maps[0].size();
28 out.getColumnHeaders()[0].label = "light";
29 out.getColumnHeaders()[1].filename = "data/Tutorial_Labeled.mzML";
30 out.getColumnHeaders()[1].size = maps[0].size();
31 out.getColumnHeaders()[1].label = "heavy";
32
33 FeatureGroupingAlgorithmLabeled algorithm;
34 // ... set parameters
35 algorithm.group(maps, out);
36 ConsensusXMLFile consensus_file;
37 consensus_file.store("Tutorial_Labeled.consensusXML", out);
38
39 return 0;
40} //end of main

Callers

nothing calls this directly

Calls 5

resizeMethod · 0.45
loadMethod · 0.45
sizeMethod · 0.45
groupMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected