| 20 | { |
| 21 | |
| 22 | IDMapper::IDMapper() : |
| 23 | DefaultParamHandler("IDMapper"), |
| 24 | rt_tolerance_(5.0), |
| 25 | mz_tolerance_(20), |
| 26 | measure_(MEASURE_PPM), |
| 27 | ignore_charge_(false) |
| 28 | { |
| 29 | defaults_.setValue("rt_tolerance", rt_tolerance_, "RT tolerance (in seconds) for the matching"); |
| 30 | defaults_.setMinFloat("rt_tolerance", 0); |
| 31 | defaults_.setValue("mz_tolerance", mz_tolerance_, "m/z tolerance (in ppm or Da) for the matching"); |
| 32 | defaults_.setMinFloat("mz_tolerance", 0); |
| 33 | defaults_.setValue("mz_measure", "ppm", "unit of 'mz_tolerance' (ppm or Da)"); |
| 34 | defaults_.setValidStrings("mz_measure", {"ppm","Da"}); |
| 35 | defaults_.setValue("mz_reference", "precursor", "source of m/z values for peptide identifications"); |
| 36 | defaults_.setValidStrings("mz_reference", {"precursor","peptide"}); |
| 37 | |
| 38 | defaults_.setValue("ignore_charge", "false", "For feature/consensus maps: Assign an ID independently of whether its charge state matches that of the (consensus) feature."); |
| 39 | defaults_.setValidStrings("ignore_charge", {"true","false"}); |
| 40 | |
| 41 | defaultsToParam_(); |
| 42 | } |
| 43 | |
| 44 | IDMapper::IDMapper(const IDMapper& cp) : |
| 45 | DefaultParamHandler(cp), |