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

Method main_

src/topp/MRMMapper.cpp:121–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120
121 ExitCodes main_(int, const char **) override
122 {
123 String in = getStringOption_("in");
124 String tr_file = getStringOption_("tr");
125 String out = getStringOption_("out");
126
127 OpenMS::TargetedExperiment targeted_exp;
128 OpenMS::PeakMap chromatogram_map;
129 OpenMS::PeakMap output;
130
131 TraMLFile().load(tr_file, targeted_exp);
132 MzMLFile().load(in, chromatogram_map);
133
134 Param param = getParam_().copy("algorithm:", true);
135
136 MRMMapping mrmm;
137 mrmm.setParameters(param);
138 mrmm.mapExperiment(chromatogram_map, targeted_exp, output);
139
140 // add all data processing information to all the chromatograms
141 DataProcessing dp_ = getProcessingInfo_(DataProcessing::FORMAT_CONVERSION);
142 DataProcessingPtr dp = boost::shared_ptr<DataProcessing>(new DataProcessing(dp_));
143 std::vector<MSChromatogram > chromatograms = output.getChromatograms();
144 for (Size i=0; i<chromatograms.size(); ++i)
145 {
146 chromatograms[i].getDataProcessing().push_back(dp);
147 }
148 output.setChromatograms(chromatograms);
149
150 MzMLFile().store(out, output);
151 return EXECUTION_OK;
152 }
153
154};
155

Callers

nothing calls this directly

Calls 11

MzMLFileClass · 0.85
setParametersMethod · 0.80
mapExperimentMethod · 0.80
getChromatogramsMethod · 0.80
setChromatogramsMethod · 0.80
loadMethod · 0.45
copyMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
getDataProcessingMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected