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

Method annotate

src/openms_gui/source/VISUAL/LayerDataPeak.cpp:262–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 bool LayerDataPeak::annotate(const vector<PeptideIdentification>& identifications, const vector<ProteinIdentification>& protein_identifications)
263 {
264 IDMapper mapper;
265 Param p = mapper.getDefaults();
266 p.setValue("rt_tolerance", 0.1, "RT tolerance (in seconds) for the matching");
267 p.setValue("mz_tolerance", 1.0, "m/z tolerance (in ppm or Da) for the matching");
268 p.setValue("mz_measure", "Da", "unit of 'mz_tolerance' (ppm or Da)");
269 mapper.setParameters(p);
270 mapper.annotate(*getPeakDataMuteable(), identifications, protein_identifications, true);
271
272 return true;
273 }
274
275 const LayerDataBase::ConstExperimentSharedPtrType LayerDataPeak::getPeakData() const
276 {

Callers

nothing calls this directly

Calls 3

getDefaultsMethod · 0.80
setParametersMethod · 0.80
setValueMethod · 0.45

Tested by

no test coverage detected