OpenMS
RNPxlModificationsGenerator.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Timo Sachsenberg $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
15 #include <vector>
16 #include <map>
17 #include <set>
18 
19 namespace OpenMS
20 {
21  class AASequence;
22 
23  struct OPENMS_DLLAPI RNPxlModificationMassesResult
24  {
25  std::map<String, double> mod_masses;
26  std::map<String, std::set<String> > mod_combinations;
27  };
28 
29  class OPENMS_DLLAPI RNPxlModificationsGenerator
30  {
31  public:
33  const StringList& nt_groups,
34  const std::set<char>& can_xl,
35  const StringList& mappings,
36  const StringList& modifications,
37  String sequence_restriction,
38  bool cysteine_adduct,
39  Int max_length = 4);
40  private:
41  static bool notInSeq(const String& res_seq, const String& query);
42  static void generateTargetSequences(const String& res_seq, Size param_pos, const std::map<char, std::vector<char> >& map_source2target, StringList& target_sequences);
43  };
44 }
45 
46 
Definition: RNPxlModificationsGenerator.h:30
static void generateTargetSequences(const String &res_seq, Size param_pos, const std::map< char, std::vector< char > > &map_source2target, StringList &target_sequences)
static RNPxlModificationMassesResult initModificationMassesRNA(const StringList &target_nucleotides, const StringList &nt_groups, const std::set< char > &can_xl, const StringList &mappings, const StringList &modifications, String sequence_restriction, bool cysteine_adduct, Int max_length=4)
static bool notInSeq(const String &res_seq, const String &query)
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:76
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:101
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
std::map< String, double > mod_masses
empirical formula -> mass
Definition: RNPxlModificationsGenerator.h:25
std::map< String, std::set< String > > mod_combinations
empirical formula -> nucleotide formula(s) (formulas if modifications lead to ambiguities)
Definition: RNPxlModificationsGenerator.h:26
Definition: RNPxlModificationsGenerator.h:24