| 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(2); |
| 22 | |
| 23 | FeatureXMLFile feature_file; |
| 24 | feature_file.load(tutorial_data_path + "/data/Tutorial_Unlabeled_1.featureXML", maps[0]); |
| 25 | feature_file.load(tutorial_data_path + "/data/Tutorial_Unlabeled_2.featureXML", maps[1]); |
| 26 | |
| 27 | ConsensusMap out; |
| 28 | out.getColumnHeaders()[0].filename = "/data/Tutorial_Unlabeled_1.mzML"; |
| 29 | out.getColumnHeaders()[0].size = maps[0].size(); |
| 30 | out.getColumnHeaders()[1].filename = "/data/Tutorial_Unlabeled_2.mzML"; |
| 31 | out.getColumnHeaders()[1].size = maps[1].size(); |
| 32 | |
| 33 | |
| 34 | FeatureGroupingAlgorithmUnlabeled algorithm; |
| 35 | // ... set parameters |
| 36 | algorithm.group(maps, out); |
| 37 | ConsensusXMLFile consensus_file; |
| 38 | consensus_file.store("Tutorial_Unlabeled.consensusXML", out); |
| 39 | |
| 40 | return 0; |
| 41 | } //end of main |