OpenMS
ProteinModificationSummary.h
Go to the documentation of this file.
1 // Copyright (c) 2002-2023, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Timo Sachsenberg $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <map>
13 
14 namespace OpenMS
15 {
25  struct OPENMS_DLLAPI ProteinModificationSummary
26  {
28  struct OPENMS_DLLAPI Statistics
29  {
30  bool operator==(const Statistics& rhs) const;
31  size_t count = 0;
32  double frequency = 0.0;
33  double FLR = 0.0;
34  double probability = 0.0;
35  };
36 
38  bool operator==(const ProteinModificationSummary& rhs) const;
39 
40  using ModificationsToStatistics = std::map<const ResidueModification*, Statistics>;
41  using AALevelModificationSummary = std::map<size_t, ModificationsToStatistics>;
42 
45  };
46 }
47 
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
basic modification statistic
Definition: ProteinModificationSummary.h:29
bool operator==(const Statistics &rhs) const
Map a protein position to all observed modifications and associated statistics.
Definition: ProteinModificationSummary.h:26
std::map< size_t, ModificationsToStatistics > AALevelModificationSummary
Definition: ProteinModificationSummary.h:41
bool operator==(const ProteinModificationSummary &rhs) const
comparison operator
std::map< const ResidueModification *, Statistics > ModificationsToStatistics
Definition: ProteinModificationSummary.h:40
AALevelModificationSummary AALevelSummary
position -> modification -> statistic (counts, etc.)
Definition: ProteinModificationSummary.h:44