OpenMS  3.0.0
ProteinModificationSummary.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: Timo Sachsenberg $
32 // $Authors: Timo Sachsenberg $
33 // --------------------------------------------------------------------------
34 
35 #pragma once
36 
37 #include <map>
39 
40 namespace OpenMS
41 {
51  struct OPENMS_DLLAPI ProteinModificationSummary
52  {
54  struct OPENMS_DLLAPI Statistics
55  {
56  bool operator==(const Statistics& rhs) const;
57  size_t count = 0;
58  double frequency = 0.0;
59  double FLR = 0.0;
60  double probability = 0.0;
61  };
62 
64  bool operator==(const ProteinModificationSummary& rhs) const;
65 
66  using ModificationsToStatistics = std::map<const ResidueModification*, Statistics>;
67  using AALevelModificationSummary = std::map<size_t, ModificationsToStatistics>;
68 
71  };
72 }
73 
std::map< const ResidueModification *, Statistics > ModificationsToStatistics
Definition: ProteinModificationSummary.h:66
Map a protein position to all observed modifications and associated statistics.
Definition: ProteinModificationSummary.h:51
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
AALevelModificationSummary AALevelSummary
position -> modification -> statistic (counts, etc.)
Definition: ProteinModificationSummary.h:70
basic modification statistic
Definition: ProteinModificationSummary.h:54
std::map< size_t, ModificationsToStatistics > AALevelModificationSummary
Definition: ProteinModificationSummary.h:67