| 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 | { |
nothing calls this directly
no test coverage detected