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

Method main_

src/topp/SpectraFilterNormalizer.cpp:80–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

addDataProcessing_Function · 0.85
setLogTypeMethod · 0.80
setParametersMethod · 0.80
loadMethod · 0.45
copyMethod · 0.45
filterPeakMapMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected