| 12 | using namespace std; |
| 13 | |
| 14 | int 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 |