Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Enzyme.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // OpenMS -- Open-Source Mass Spectrometry
3 // --------------------------------------------------------------------------
4 // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
5 // ETH Zurich, and Freie Universitaet Berlin 2002-2016.
6 //
7 // This software is released under a three-clause BSD license:
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright
11 // notice, this list of conditions and the following disclaimer in the
12 // documentation and/or other materials provided with the distribution.
13 // * Neither the name of any author or any participating institution
14 // may be used to endorse or promote products derived from this software
15 // without specific prior written permission.
16 // For a full list of authors, refer to the file AUTHORS.
17 // --------------------------------------------------------------------------
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 // ARE DISCLAIMED. IN NO EVENT SHALL ANY OF THE AUTHORS OR THE CONTRIBUTING
22 // INSTITUTIONS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
27 // OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
28 // ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // --------------------------------------------------------------------------
31 // $Maintainer: Xiao Liang $
32 // $Authors: Xiao Liang $
33 // --------------------------------------------------------------------------
34 //
35 
36 #ifndef OPENMS_CHEMISTRY_ENZYME_H
37 #define OPENMS_CHEMISTRY_ENZYME_H
38 
41 
42 #include <iosfwd>
43 #include <set>
44 #include <vector>
45 
46 namespace OpenMS
47 {
48 
56  class OPENMS_DLLAPI Enzyme
57  {
58 public:
59 
63  Enzyme(const Enzyme & enzyme);
65 
67  explicit Enzyme(const String & name,
68  const String & cleavage_regex,
69  const std::set<String> & synonyms = std::set<String>(),
70  String regex_description = "",
71  EmpiricalFormula n_term_gain = EmpiricalFormula("H"),
72  EmpiricalFormula c_term_gain = EmpiricalFormula("OH"),
73  String psi_id = "",
74  String xtandem_id = "",
75  UInt omssa_id = 0);
76 
78  virtual ~Enzyme();
80 
84  Enzyme & operator=(const Enzyme & enzyme);
87 
91  void setName(const String & name);
93 
95  const String & getName() const;
96 
98  void setSynonyms(const std::set<String> & synonyms);
99 
101  void addSynonym(const String & synonym);
102 
104  const std::set<String> & getSynonyms() const;
105 
107  void setRegEx(const String & cleavage_regex);
108 
110  const String & getRegEx() const;
111 
113  void setRegExDescription(String value);
114 
116  String getRegExDescription() const;
117 
119  void setNTermGain(EmpiricalFormula value);
120 
122  EmpiricalFormula getNTermGain() const;
123 
125  void setCTermGain(EmpiricalFormula value);
126 
128  EmpiricalFormula getCTermGain() const;
129 
131  void setPSIid(String value);
132 
134  String getPSIid() const;
135 
137  void setXTANDEMid(String value);
138 
140  String getXTANDEMid() const;
141 
143  void setOMSSAid(UInt value);
144 
146  UInt getOMSSAid() const;
148 
152  bool operator==(const Enzyme & enzyme) const;
154 
156  bool operator!=(const Enzyme & enzyme) const;
157 
159  bool operator==(String cleavage_regex) const;
160 
162  bool operator!=(String cleavage_regex) const;
163 
165  bool operator<(const Enzyme & enzyme) const;
167 
169  friend OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const Enzyme & enzyme);
170 
171 protected:
173  Enzyme();
174 
175  // basic
177 
179 
180  std::set<String> synonyms_;
181 
183 
185 
187 
189 
191 
193  };
194 
195  OPENMS_DLLAPI std::ostream & operator<<(std::ostream & os, const Enzyme & enzyme);
196 
197 }
198 
199 #endif
UInt omssa_id_
Definition: Enzyme.h:192
A more convenient string class.
Definition: String.h:57
EmpiricalFormula c_term_gain_
Definition: Enzyme.h:186
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
bool operator<(const MultiplexDeltaMasses &dm1, const MultiplexDeltaMasses &dm2)
Representation of an empirical formula.
Definition: EmpiricalFormula.h:79
String xtandem_id_
Definition: Enzyme.h:190
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
String name_
Definition: Enzyme.h:176
String cleavage_regex_
Definition: Enzyme.h:178
Representation of an enzyme.
Definition: Enzyme.h:56
String psi_id_
Definition: Enzyme.h:188
String regex_description_
Definition: Enzyme.h:182
EmpiricalFormula n_term_gain_
Definition: Enzyme.h:184
std::set< String > synonyms_
Definition: Enzyme.h:180

OpenMS / TOPP release 2.0.0 Documentation generated on Tue Jan 31 2017 06:39:43 using doxygen 1.8.8