OpenMS  2.7.0
OpenPepXLAlgorithm.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-2021.
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: Eugen Netz $
32 // $Authors: Timo Sachsenberg, Eugen Netz $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
43 
44 namespace OpenMS
45 {
46 
47 //-------------------------------------------------------------
48 //Doxygen docu
49 //-------------------------------------------------------------
50 
113  class OPENMS_DLLAPI OpenPepXLAlgorithm :
114  public DefaultParamHandler, public ProgressLogger
115  {
116 public:
117 
120  {
124  INCOMPATIBLE_INPUT_DATA
125  };
126 
129 
132 
145  ExitCodes run(PeakMap& unprocessed_spectra, ConsensusMap& cfeatures, std::vector<FASTAFile::FASTAEntry>& fasta_db, std::vector<ProteinIdentification>& protein_ids, std::vector<PeptideIdentification>& peptide_ids, OPXLDataStructs::PreprocessedPairSpectra& preprocessed_pair_spectra, std::vector< std::pair<Size, Size> >& spectrum_pairs, std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > >& all_top_csms, PeakMap& spectra);
146 
147 private:
148  void updateMembers_() override;
149 
150  static OPXLDataStructs::PreprocessedPairSpectra preprocessPairs_(const PeakMap& spectra, const std::vector< std::pair<Size, Size> >& spectrum_pairs, const double cross_link_mass_iso_shift, double fragment_mass_tolerance, double fragment_mass_tolerance_xlinks, bool fragment_mass_tolerance_unit_ppm, bool deisotope);
151 
154 
160 
164 
171 
178 
181 
189  };
190 }
A container for consensus elements.
Definition: ConsensusMap.h:88
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
Search for peptide pairs linked with a labeled cross-linker.
Definition: OpenPepXLAlgorithm.h:115
Int number_top_hits_
Definition: OpenPepXLAlgorithm.h:179
String add_c_ions_
Definition: OpenPepXLAlgorithm.h:186
bool precursor_mass_tolerance_unit_ppm_
Definition: OpenPepXLAlgorithm.h:158
StringList fixedModNames_
Definition: OpenPepXLAlgorithm.h:172
bool fragment_mass_tolerance_unit_ppm_
Definition: OpenPepXLAlgorithm.h:163
StringList varModNames_
Definition: OpenPepXLAlgorithm.h:173
String add_x_ions_
Definition: OpenPepXLAlgorithm.h:184
double fragment_mass_tolerance_xlinks_
Definition: OpenPepXLAlgorithm.h:162
IntList precursor_correction_steps_
Definition: OpenPepXLAlgorithm.h:159
double cross_link_mass_light_
Definition: OpenPepXLAlgorithm.h:167
Size missed_cleavages_
Definition: OpenPepXLAlgorithm.h:176
OpenPepXLAlgorithm()
Default constructor.
Int max_precursor_charge_
Definition: OpenPepXLAlgorithm.h:156
String decoy_string_
Definition: OpenPepXLAlgorithm.h:152
Size peptide_min_size_
Definition: OpenPepXLAlgorithm.h:175
String add_y_ions_
Definition: OpenPepXLAlgorithm.h:182
double cross_link_mass_iso_shift_
Definition: OpenPepXLAlgorithm.h:168
bool decoy_prefix_
Definition: OpenPepXLAlgorithm.h:153
String add_losses_
Definition: OpenPepXLAlgorithm.h:188
double precursor_mass_tolerance_
Definition: OpenPepXLAlgorithm.h:157
Int min_precursor_charge_
Definition: OpenPepXLAlgorithm.h:155
String enzyme_name_
Definition: OpenPepXLAlgorithm.h:177
ExitCodes run(PeakMap &unprocessed_spectra, ConsensusMap &cfeatures, std::vector< FASTAFile::FASTAEntry > &fasta_db, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids, OPXLDataStructs::PreprocessedPairSpectra &preprocessed_pair_spectra, std::vector< std::pair< Size, Size > > &spectrum_pairs, std::vector< std::vector< OPXLDataStructs::CrossLinkSpectrumMatch > > &all_top_csms, PeakMap &spectra)
Performs the main function of this class, the search for cross-linked peptides.
String cross_link_name_
Definition: OpenPepXLAlgorithm.h:170
StringList cross_link_residue1_
Definition: OpenPepXLAlgorithm.h:165
String deisotope_mode_
Definition: OpenPepXLAlgorithm.h:180
String add_b_ions_
Definition: OpenPepXLAlgorithm.h:183
DoubleList cross_link_mass_mono_link_
Definition: OpenPepXLAlgorithm.h:169
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
ExitCodes
Exit codes.
Definition: OpenPepXLAlgorithm.h:120
@ ILLEGAL_PARAMETERS
Definition: OpenPepXLAlgorithm.h:122
@ EXECUTION_OK
Definition: OpenPepXLAlgorithm.h:121
@ UNEXPECTED_RESULT
Definition: OpenPepXLAlgorithm.h:123
String add_a_ions_
Definition: OpenPepXLAlgorithm.h:185
String add_z_ions_
Definition: OpenPepXLAlgorithm.h:187
double fragment_mass_tolerance_
Definition: OpenPepXLAlgorithm.h:161
Size max_variable_mods_per_peptide_
Definition: OpenPepXLAlgorithm.h:174
StringList cross_link_residue2_
Definition: OpenPepXLAlgorithm.h:166
~OpenPepXLAlgorithm() override
Default destructor.
static OPXLDataStructs::PreprocessedPairSpectra preprocessPairs_(const PeakMap &spectra, const std::vector< std::pair< Size, Size > > &spectrum_pairs, const double cross_link_mass_iso_shift, double fragment_mass_tolerance, double fragment_mass_tolerance_xlinks, bool fragment_mass_tolerance_unit_ppm, bool deisotope)
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:55
A more convenient string class.
Definition: String.h:61
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:62
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
The PreprocessedPairSpectra struct represents the result of comparing a light and a heavy labeled spe...
Definition: OPXLDataStructs.h:304