| 78 | } |
| 79 | |
| 80 | ExitCodes main_(int, const char **) override |
| 81 | { |
| 82 | //------------------------------------------------------------- |
| 83 | // parameter handling |
| 84 | //------------------------------------------------------------- |
| 85 | |
| 86 | //input/output files |
| 87 | String in(getStringOption_("in")); |
| 88 | String out(getStringOption_("out")); |
| 89 | |
| 90 | //------------------------------------------------------------- |
| 91 | // loading input |
| 92 | //------------------------------------------------------------- |
| 93 | |
| 94 | PeakMap exp; |
| 95 | MzMLFile f; |
| 96 | f.setLogType(log_type_); |
| 97 | f.load(in, exp); |
| 98 | |
| 99 | //------------------------------------------------------------- |
| 100 | // filter |
| 101 | //------------------------------------------------------------- |
| 102 | Param filter_param = getParam_().copy("algorithm:", true); |
| 103 | writeDebug_("Used filter parameters", filter_param, 3); |
| 104 | |
| 105 | Normalizer filter; |
| 106 | filter.setParameters(filter_param); |
| 107 | filter.filterPeakMap(exp); |
| 108 | |
| 109 | //------------------------------------------------------------- |
| 110 | // writing output |
| 111 | //------------------------------------------------------------- |
| 112 | |
| 113 | //annotate output with data processing info |
| 114 | addDataProcessing_(exp, getProcessingInfo_(DataProcessing::FILTERING)); |
| 115 | |
| 116 | f.store(out, exp); |
| 117 | |
| 118 | return EXECUTION_OK; |
| 119 | } |
| 120 | |
| 121 | }; |
| 122 |
nothing calls this directly
no test coverage detected