OpenMS
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IsotopeCluster.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg$
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/CONCEPT/Types.h>
12 #include <vector>
13 #include <set>
14 
15 namespace OpenMS
16 {
29  struct OPENMS_DLLAPI IsotopeCluster
30  {
37  typedef std::pair<Size, Size> IndexPair;
38 
45  typedef std::set<IndexPair> IndexSet;
46 
54  struct ChargedIndexSet :
55  public IndexSet
56  {
63  charge(0)
64  {
65  }
66 
69  };
70 
77  peaks(),
78  scans()
79  {
80  }
81 
84 
86  std::vector<Size> scans;
87  };
88 
89 } // namespace OPENMS
90 
int Int
Signed integer type.
Definition: Types.h:72
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Index set with associated charge estimate.
Definition: IsotopeCluster.h:56
Int charge
Charge estimate (convention: zero means "no charge estimate")
Definition: IsotopeCluster.h:68
ChargedIndexSet()
Default constructor.
Definition: IsotopeCluster.h:62
Stores information about an isotopic cluster (i.e. potential peptide charge variants)
Definition: IsotopeCluster.h:30
IsotopeCluster()
Default constructor.
Definition: IsotopeCluster.h:76
std::pair< Size, Size > IndexPair
An index pair typically representing (scan_index, peak_index) in an MSExperiment.
Definition: IsotopeCluster.h:37
std::vector< Size > scans
The scan indices where this cluster appears.
Definition: IsotopeCluster.h:86
ChargedIndexSet peaks
Peaks in this cluster, with their charge state information.
Definition: IsotopeCluster.h:83
std::set< IndexPair > IndexSet
A set of index pairs, usually referring to peaks in an MSExperiment.
Definition: IsotopeCluster.h:45