| 31 | { |
| 32 | |
| 33 | MascotGenericFile::MascotGenericFile() : |
| 34 | ProgressLogger(), DefaultParamHandler("MascotGenericFile"), mod_group_map_() |
| 35 | { |
| 36 | defaults_.setValue("database", "MSDB", "Name of the sequence database"); |
| 37 | defaults_.setValue("search_type", "MIS", "Name of the search type for the query", {"advanced"}); |
| 38 | defaults_.setValidStrings("search_type", {"MIS","SQ","PMF"}); |
| 39 | defaults_.setValue("enzyme", "Trypsin", "The enzyme descriptor to the enzyme used for digestion. (Trypsin is default, None would be best for peptide input or unspecific digestion, for more please refer to your mascot server)."); |
| 40 | defaults_.setValue("instrument", "Default", "Instrument definition which specifies the fragmentation rules"); |
| 41 | defaults_.setValue("missed_cleavages", 1, "Number of missed cleavages allowed for the enzyme"); |
| 42 | defaults_.setMinInt("missed_cleavages", 0); |
| 43 | defaults_.setValue("precursor_mass_tolerance", 3.0, "Tolerance of the precursor peaks"); |
| 44 | defaults_.setMinFloat("precursor_mass_tolerance", 0.0); |
| 45 | defaults_.setValue("precursor_error_units", "Da", "Units of the precursor mass tolerance"); |
| 46 | defaults_.setValidStrings("precursor_error_units", {"%","ppm","mmu","Da"}); |
| 47 | defaults_.setValue("fragment_mass_tolerance", 0.3, "Tolerance of the peaks in the fragment spectrum"); |
| 48 | defaults_.setMinFloat("fragment_mass_tolerance", 0.0); |
| 49 | defaults_.setValue("fragment_error_units", "Da", "Units of the fragment peaks tolerance"); |
| 50 | defaults_.setValidStrings("fragment_error_units", {"mmu","Da"}); |
| 51 | defaults_.setValue("charges", "1,2,3", "Charge states to consider, given as a comma separated list of integers (only used for spectra without precursor charge information)"); |
| 52 | defaults_.setValue("taxonomy", "All entries", "Taxonomy specification of the sequences"); |
| 53 | vector<String> all_mods; |
| 54 | ModificationsDB::getInstance()->getAllSearchModifications(all_mods); |
| 55 | |
| 56 | defaults_.setValue("fixed_modifications", std::vector<std::string>(), "List of fixed modifications, according to UniMod definitions."); |
| 57 | defaults_.setValidStrings("fixed_modifications", ListUtils::create<std::string>(all_mods)); |
| 58 | defaults_.setValue("variable_modifications", std::vector<std::string>(), "Variable modifications given as UniMod definitions."); |
| 59 | defaults_.setValidStrings("variable_modifications", ListUtils::create<std::string>(all_mods)); |
| 60 | |
| 61 | // special modifications, see "updateMembers_" method below: |
| 62 | defaults_.setValue("special_modifications", "Cation:Na (DE),Deamidated (NQ),Oxidation (HW),Phospho (ST),Sulfo (ST)", "Modifications with specificity groups that are used by Mascot and have to be treated specially", {"advanced"}); |
| 63 | // list from Mascot 2.4; there's also "Phospho (STY)", but that can be |
| 64 | // represented using "Phospho (ST)" and "Phospho (Y)" |
| 65 | |
| 66 | defaults_.setValue("mass_type", "monoisotopic", "Defines the mass type, either monoisotopic or average"); |
| 67 | defaults_.setValidStrings("mass_type", {"monoisotopic","average"}); |
| 68 | defaults_.setValue("number_of_hits", 0, "Number of hits which should be returned, if 0 AUTO mode is enabled."); |
| 69 | defaults_.setMinInt("number_of_hits", 0); |
| 70 | defaults_.setValue("skip_spectrum_charges", "false", "Sometimes precursor charges are given for each spectrum but are wrong, setting this to 'true' does not write any charge information to the spectrum, the general charge information is however kept."); |
| 71 | defaults_.setValidStrings("skip_spectrum_charges", {"true","false"}); |
| 72 | defaults_.setValue("decoy", "false", "Set to true if mascot should generate the decoy database."); |
| 73 | defaults_.setValidStrings("decoy", {"true","false"}); |
| 74 | |
| 75 | defaults_.setValue("search_title", "OpenMS_search", "Sets the title of the search.", {"advanced"}); |
| 76 | defaults_.setValue("username", "OpenMS", "Sets the username which is mentioned in the results file.", {"advanced"}); |
| 77 | defaults_.setValue("email", "", "Sets the email which is mentioned in the results file. Note: Some server require that a proper email is provided."); |
| 78 | |
| 79 | // the next section should not be shown to TOPP users |
| 80 | Param p; |
| 81 | p.setValue("format", "Mascot generic", "Sets the format type of the peak list, this should not be changed unless you write the header only.", {"advanced"}); |
| 82 | p.setValidStrings("format", {"Mascot generic","mzData (.XML)","mzML (.mzML)"}); // Mascot's HTTP interface supports more, but we don't :) |
| 83 | p.setValue("boundary", "GZWgAaYKjHFeUaLOLEIOMq", "MIME boundary for parameter header (if using HTTP format)", {"advanced"}); |
| 84 | p.setValue("HTTP_format", "false", "Write header with MIME boundaries instead of simple key-value pairs. For HTTP submission only.", {"advanced"}); |
| 85 | p.setValidStrings("HTTP_format", {"true","false"}); |
| 86 | p.setValue("content", "all", "Use parameter header + the peak lists with BEGIN IONS... or only one of them.", {"advanced"}); |
| 87 | p.setValidStrings("content", {"all","peaklist_only","header_only"}); |
| 88 | defaults_.insert("internal:", p); |
| 89 | |
| 90 | defaultsToParam_(); |
nothing calls this directly
no test coverage detected