| 75 | |
| 76 | protected: |
| 77 | void registerOptionsAndFlags_() override |
| 78 | { |
| 79 | registerInputFileList_("in", "<files>", ListUtils::create<String>(""), "Input files"); |
| 80 | setValidFormats_("in", ListUtils::create<String>("mzML")); |
| 81 | registerInputFile_("lib", "<file>", "", "searchable spectral library (MSP format)"); |
| 82 | setValidFormats_("lib", ListUtils::create<String>("msp")); |
| 83 | registerOutputFileList_("out", "<files>", ListUtils::create<String>(""), "Output files. Have to be as many as input files"); |
| 84 | setValidFormats_("out", ListUtils::create<String>("idXML")); |
| 85 | |
| 86 | registerTOPPSubsection_("precursor", "Precursor (Parent Ion) Options"); |
| 87 | registerDoubleOption_("precursor:mass_tolerance", "<tolerance>", 10.0, "Width of precursor mass tolerance window", false); |
| 88 | |
| 89 | StringList precursor_mass_tolerance_unit_valid_strings; |
| 90 | precursor_mass_tolerance_unit_valid_strings.push_back("ppm"); |
| 91 | precursor_mass_tolerance_unit_valid_strings.push_back("Da"); |
| 92 | |
| 93 | registerStringOption_("precursor:mass_tolerance_unit", "<unit>", "ppm", "Unit of precursor mass tolerance.", false, false); |
| 94 | setValidStrings_("precursor:mass_tolerance_unit", precursor_mass_tolerance_unit_valid_strings); |
| 95 | |
| 96 | registerIntOption_("precursor:min_charge", "<num>", 2, "Minimum precursor charge to be considered.", false, true); |
| 97 | registerIntOption_("precursor:max_charge", "<num>", 5, "Maximum precursor charge to be considered.", false, true); |
| 98 | |
| 99 | // consider one before annotated monoisotopic peak and the annotated one |
| 100 | IntList isotopes = {0, 1}; |
| 101 | registerIntList_("precursor:isotopes", "<num>", isotopes, "Corrects for mono-isotopic peak misassignments. (E.g.: 1 = prec. may be misassigned to first isotopic peak)", false, false); |
| 102 | |
| 103 | registerTOPPSubsection_("fragment", "Fragments (Product Ion) Options"); |
| 104 | registerDoubleOption_("fragment:mass_tolerance", "<tolerance>", 10.0, "Fragment mass tolerance", false); |
| 105 | |
| 106 | // StringList fragment_mass_tolerance_unit_valid_strings; |
| 107 | // fragment_mass_tolerance_unit_valid_strings.push_back("ppm"); |
| 108 | // fragment_mass_tolerance_unit_valid_strings.push_back("Da"); |
| 109 | |
| 110 | // registerStringOption_("fragment:mass_tolerance_unit", "<unit>", "ppm", "Unit of fragment m", false, false); |
| 111 | // setValidStrings_("fragment:mass_tolerance_unit", fragment_mass_tolerance_unit_valid_strings); |
| 112 | |
| 113 | registerStringOption_("compare_function", "<string>", "ZhangSimilarityScore", "function for similarity comparison", false); |
| 114 | PeakSpectrumCompareFunctor::registerChildren(); |
| 115 | setValidStrings_("compare_function", Factory<PeakSpectrumCompareFunctor>::registeredProducts()); |
| 116 | |
| 117 | registerTOPPSubsection_("report", "Reporting Options"); |
| 118 | registerIntOption_("report:top_hits", "<num>", 10, "Maximum number of top scoring hits per spectrum that are reported.", false, true); |
| 119 | |
| 120 | addEmptyLine_(); |
| 121 | |
| 122 | registerTOPPSubsection_("filter", "Filtering options. Most are especially useful when the query spectra are raw."); |
| 123 | registerDoubleOption_("filter:remove_peaks_below_threshold", "<threshold>", 2.01, "All peaks of a query spectrum with intensities below <threshold> will be zeroed.", false); |
| 124 | registerIntOption_("filter:min_peaks", "<number>", 5, "required minimum number of peaks for a query spectrum", false); |
| 125 | registerIntOption_("filter:max_peaks", "<number>", 150, "Use only the top <number> of peaks.", false); |
| 126 | registerIntOption_("filter:cut_peaks_below", "<number>", 1000, "Remove all peaks which are lower than 1/<number> of the highest peaks. Default equals all peaks which are lower than 0.001 of the maximum intensity peak", false); |
| 127 | |
| 128 | registerTOPPSubsection_("modifications", "Modifications Options"); |
| 129 | vector<String> all_mods; |
| 130 | ModificationsDB::getInstance()->getAllSearchModifications(all_mods); |
| 131 | registerStringList_("modifications:fixed", "<mods>", ListUtils::create<String>(""), "Fixed modifications, specified using UniMod (www.unimod.org) terms, e.g. 'Carbamidomethyl (C)'", false); |
| 132 | setValidStrings_("modifications:fixed", all_mods); |
| 133 | registerStringList_("modifications:variable", "<mods>", ListUtils::create<String>(""), "Variable modifications, specified using UniMod (www.unimod.org) terms, e.g. 'Oxidation (M)'", false); |
| 134 | setValidStrings_("modifications:variable", all_mods); |
nothing calls this directly
no test coverage detected