Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
MRMDecoy.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: George Rosenberger $
32 // $Authors: George Rosenberger, Hannes Roest $
33 // --------------------------------------------------------------------------
34 
35 #ifndef OPENMS_ANALYSIS_OPENSWATH_MRMDECOY_H
36 #define OPENMS_ANALYSIS_OPENSWATH_MRMDECOY_H
37 
41 
42 #include <boost/algorithm/string.hpp>
43 #include <boost/lexical_cast.hpp>
44 #include <boost/assign.hpp>
45 #include <boost/random/mersenne_twister.hpp>
46 #include <boost/random/uniform_int.hpp>
47 #include <boost/random/variate_generator.hpp>
48 #include <boost/unordered_map.hpp>
49 
50 #include <string>
51 #include <vector>
52 #include <map>
53 #include <utility> // for pair
54 
55 // #define DEBUG_MRMDECOY
56 
57 namespace OpenMS
58 {
89  class OPENMS_DLLAPI MRMDecoy :
90  public ProgressLogger
91  {
92 public:
93  MRMDecoy() {} // empty, no members
94 
110  void generateDecoys(OpenMS::TargetedExperiment& exp,
111  OpenMS::TargetedExperiment& dec, String method, String decoy_tag,
112  double identity_threshold, int max_attempts, double mz_threshold,
113  double mz_shift, bool exclude_similar,
114  double similarity_threshold, bool remove_CNterm_mods,
115  double precursor_mass_shift, std::vector<String> fragment_types,
116  std::vector<size_t> fragment_charges, bool enable_specific_losses,
117  bool enable_unspecific_losses, bool remove_unannotated,
118  int round_decPow = -4);
119 
120  typedef std::vector<OpenMS::TargetedExperiment::Protein> ProteinVectorType;
121  typedef std::vector<OpenMS::TargetedExperiment::Peptide> PeptideVectorType;
122  typedef std::vector<OpenMS::ReactionMonitoringTransition> TransitionVectorType;
123 
124  typedef std::map<String, std::vector<const ReactionMonitoringTransition*> > PeptideTransitionMapType;
125 
129  std::vector<std::pair<std::string::size_type, std::string> > find_all_tryptic(
130  std::string sequence);
131 
135  float AASequenceIdentity(const String& sequence, const String& decoy);
136 
140  bool has_CNterminal_mods(const OpenMS::TargetedExperiment::Peptide& peptide);
141 
150  OpenMS::TargetedExperiment::Peptide peptide, double identity_threshold, int seed = -1,
151  int max_attempts = 10, bool replace_aa_instead_append = false);
152 
158  OpenMS::TargetedExperiment::Peptide pseudoreversePeptide(
160 
166  };
167 }
168 
169 #endif
A more convenient string class.
Definition: String.h:57
std::vector< OpenMS::ReactionMonitoringTransition > TransitionVectorType
Definition: MRMDecoy.h:122
std::vector< OpenMS::TargetedExperiment::Peptide > PeptideVectorType
Definition: MRMDecoy.h:121
MRMDecoy()
Definition: MRMDecoy.h:93
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
std::vector< OpenMS::TargetedExperiment::Protein > ProteinVectorType
Definition: MRMDecoy.h:120
This class generates a TargetedExperiment object with decoys based on a TargetedExperiment object...
Definition: MRMDecoy.h:89
std::map< String, std::vector< const ReactionMonitoringTransition * > > PeptideTransitionMapType
Definition: MRMDecoy.h:124
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:62
Definition: TargetedExperimentHelper.h:266

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