OpenMS  2.6.0
DBSearchParam.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-2020.
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: Hendrik Weisser $
32 // $Authors: Hendrik Weisser $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
40 
41 namespace OpenMS
42 {
43  namespace IdentificationDataInternal
44  {
48  {
51 
55 
56  std::set<Int> charges;
57 
58  std::set<String> fixed_mods;
59  std::set<String> variable_mods;
60 
65 
66  // allow for either "DigestionEnzymeProtein" or "DigestionEnzymeRNA":
72 
80  {
81  }
82 
83  DBSearchParam(const DBSearchParam& other) = default;
84 
85  bool operator<(const DBSearchParam& other) const
86  {
87  return (std::tie(molecule_type, mass_type, database,
93  std::tie(other.molecule_type, other.mass_type,
94  other.database, other.database_version, other.taxonomy,
95  other.charges, other.fixed_mods, other.variable_mods,
100  other.digestion_enzyme,
102  other.min_length, other.max_length));
103  }
104 
105  bool operator==(const DBSearchParam& other) const
106  {
107  return (std::tie(molecule_type, mass_type, database,
113  std::tie(other.molecule_type, other.mass_type,
114  other.database, other.database_version, other.taxonomy,
115  other.charges, other.fixed_mods, other.variable_mods,
121  other.missed_cleavages,
122  other.min_length, other.max_length));
123  }
124  };
125 
126  typedef std::set<DBSearchParam> DBSearchParams;
128  typedef std::map<ProcessingStepRef, SearchParamRef> DBSearchSteps;
129 
130  }
131 }
OpenMS::EnzymaticDigestion::Specificity
Specificity
when querying for valid digestion products, this determines if the specificity of the two peptide end...
Definition: EnzymaticDigestion.h:66
OpenMS::IdentificationDataInternal::MoleculeType
MoleculeType
Definition: MetaData.h:63
OpenMS::IdentificationDataInternal::MassType
MassType
Definition: MetaData.h:72
OpenMS::IdentificationDataInternal::DBSearchParam::fragment_mass_tolerance
double fragment_mass_tolerance
Definition: DBSearchParam.h:62
EnzymaticDigestion.h
OpenMS::IdentificationDataInternal::DBSearchParam::operator<
bool operator<(const DBSearchParam &other) const
Definition: DBSearchParam.h:85
OpenMS::IdentificationDataInternal::DBSearchParam::fragment_tolerance_ppm
bool fragment_tolerance_ppm
Definition: DBSearchParam.h:64
MetaData.h
OpenMS::String
A more convenient string class.
Definition: String.h:59
OpenMS::IdentificationDataInternal::DBSearchParams
std::set< DBSearchParam > DBSearchParams
Definition: DBSearchParam.h:126
OpenMS::EnzymaticDigestion
Class for the enzymatic digestion of sequences.
Definition: EnzymaticDigestion.h:62
OpenMS::Size
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
OpenMS::IdentificationDataInternal::PROTEIN
Definition: MetaData.h:65
OpenMS::IdentificationDataInternal::DBSearchParam::mass_type
enum MassType mass_type
Definition: DBSearchParam.h:50
OpenMS::IdentificationDataInternal::DBSearchParam::precursor_tolerance_ppm
bool precursor_tolerance_ppm
Definition: DBSearchParam.h:63
OpenMS::IdentificationDataInternal::DBSearchParam::database
String database
Definition: DBSearchParam.h:52
OpenMS::IdentificationDataInternal::DBSearchParam
Parameters specific to a database search step.
Definition: DBSearchParam.h:47
OpenMS::IdentificationDataInternal::DBSearchParam::operator==
bool operator==(const DBSearchParam &other) const
Definition: DBSearchParam.h:105
OpenMS
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
OpenMS::IdentificationDataInternal::SearchParamRef
IteratorWrapper< DBSearchParams::iterator > SearchParamRef
Definition: DBSearchParam.h:127
OpenMS::IdentificationDataInternal::DBSearchParam::enzyme_term_specificity
EnzymaticDigestion::Specificity enzyme_term_specificity
Definition: DBSearchParam.h:68
OpenMS::IdentificationDataInternal::DBSearchParam::digestion_enzyme
const DigestionEnzyme * digestion_enzyme
Definition: DBSearchParam.h:67
OpenMS::IdentificationDataInternal::DBSearchSteps
std::map< ProcessingStepRef, SearchParamRef > DBSearchSteps
Definition: DBSearchParam.h:128
OpenMS::MetaInfoInterface
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:60
OpenMS::IdentificationDataInternal::IteratorWrapper
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:43
OpenMS::IdentificationDataInternal::DBSearchParam::variable_mods
std::set< String > variable_mods
Definition: DBSearchParam.h:59
OpenMS::IdentificationDataInternal::DBSearchParam::max_length
Size max_length
Definition: DBSearchParam.h:71
OpenMS::IdentificationDataInternal::DBSearchParam::charges
std::set< Int > charges
Definition: DBSearchParam.h:56
OpenMS::IdentificationDataInternal::DBSearchParam::min_length
Size min_length
Definition: DBSearchParam.h:70
OpenMS::IdentificationDataInternal::DBSearchParam::missed_cleavages
Size missed_cleavages
Definition: DBSearchParam.h:69
OpenMS::DigestionEnzyme
Abstract base class for digestion enzymes.
Definition: DigestionEnzyme.h:52
OpenMS::IdentificationDataInternal::DBSearchParam::precursor_mass_tolerance
double precursor_mass_tolerance
Definition: DBSearchParam.h:61
OpenMS::IdentificationDataInternal::DBSearchParam::taxonomy
String taxonomy
Definition: DBSearchParam.h:54
OpenMS::IdentificationDataInternal::MONOISOTOPIC
Definition: MetaData.h:74
DigestionEnzyme.h
OpenMS::IdentificationDataInternal::DBSearchParam::database_version
String database_version
Definition: DBSearchParam.h:53
OpenMS::IdentificationDataInternal::DBSearchParam::DBSearchParam
DBSearchParam()
Definition: DBSearchParam.h:73
OpenMS::IdentificationDataInternal::DBSearchParam::fixed_mods
std::set< String > fixed_mods
Definition: DBSearchParam.h:58
OpenMS::IdentificationDataInternal::DBSearchParam::molecule_type
enum MoleculeType molecule_type
Definition: DBSearchParam.h:49