Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
MultiplexDeltaMassesGenerator.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-2017.
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: Lars Nilse $
32 // $Authors: Lars Nilse $
33 // --------------------------------------------------------------------------
34 
35 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_MULTIPLEXDELTAMASSESGENERATOR_H
36 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_MULTIPLEXDELTAMASSESGENERATOR_H
37 
43 
44 #include <vector>
45 #include <algorithm>
46 #include <iostream>
47 
48 namespace OpenMS
49 {
60  class OPENMS_DLLAPI MultiplexDeltaMassesGenerator :
61  public DefaultParamHandler
62  {
63  public:
64 
68  struct OPENMS_DLLAPI Label
69  {
73  double delta_mass;
74 
75  Label(String sn, String ln, String d, double dm);
76  };
77 
82 
92  MultiplexDeltaMassesGenerator(String labels, int missed_cleavages, std::map<String,double> label_mass_shift);
93 
98  void generateKnockoutDeltaMasses();
99 
107  void printSamplesLabelsList() const;
108 
119  void printDeltaMassesList() const;
120 
124  std::vector<MultiplexDeltaMasses> getDeltaMassesList();
125 
129  const std::vector<MultiplexDeltaMasses>& getDeltaMassesList() const;
130 
138  std::vector<std::vector<String> > getSamplesLabelsList();
139 
147  const std::vector<std::vector<String> >& getSamplesLabelsList() const;
148 
154  String getLabelShort(String label);
155 
161  String getLabelLong(String label);
162 
171  MultiplexDeltaMasses::LabelSet extractLabelSet(AASequence sequence);
172 
173  private:
174 
179 
183  std::vector<String> labels_list_;
184 
188  std::vector<std::vector<String> > samples_labels_;
189 
194 
198  std::vector<MultiplexDeltaMasses> delta_masses_list_;
199 
203  std::vector<Label> label_master_list_;
204 
209  std::map<String, double> label_delta_mass_;
210 
215  std::map<String, String> label_short_long_;
216 
221  std::map<String, String> label_long_short_;
222 
226  void fillLabelMasterList_();
227  };
228 
229 }
230 
231 #endif /* MULTIPLEXDELTAMASSESGENERATOR_H */
std::vector< std::vector< String > > samples_labels_
list of samples with their corresponding labels
Definition: MultiplexDeltaMassesGenerator.h:188
A more convenient string class.
Definition: String.h:57
std::vector< String > labels_list_
flat list of all occurring isotopic labels
Definition: MultiplexDeltaMassesGenerator.h:183
int missed_cleavages_
maximum number of missed cleavages
Definition: MultiplexDeltaMassesGenerator.h:193
String short_name
Definition: MultiplexDeltaMassesGenerator.h:70
std::vector< Label > label_master_list_
master list of all labels
Definition: MultiplexDeltaMassesGenerator.h:203
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::map< String, String > label_short_long_
mapping from a short label (as in the user params) to a long label (as in PSI-MS name) e...
Definition: MultiplexDeltaMassesGenerator.h:215
String labels_
isotopic labels
Definition: MultiplexDeltaMassesGenerator.h:178
String description
Definition: MultiplexDeltaMassesGenerator.h:72
std::multiset< String > LabelSet
set of labels associated with a mass shift
Definition: MultiplexDeltaMasses.h:74
std::map< String, double > label_delta_mass_
mapping from single label to delta mass e.g. "Arg10" -> 10.0082686
Definition: MultiplexDeltaMassesGenerator.h:209
std::vector< MultiplexDeltaMasses > delta_masses_list_
list of all possible mass shift patterns
Definition: MultiplexDeltaMassesGenerator.h:198
generates complete list of all possible mass shifts due to isotopic labelling
Definition: MultiplexDeltaMassesGenerator.h:60
String long_name
Definition: MultiplexDeltaMassesGenerator.h:71
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
complete label information
Definition: MultiplexDeltaMassesGenerator.h:68
std::map< String, String > label_long_short_
mapping from a long label (as in PSI-MS name) to a short label (as in the user params) e...
Definition: MultiplexDeltaMassesGenerator.h:221
double delta_mass
Definition: MultiplexDeltaMassesGenerator.h:73

OpenMS / TOPP release 2.3.0 Documentation generated on Tue Jan 9 2018 18:22:02 using doxygen 1.8.13