OpenMS
GridFeature.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Hendrik Weisser $
6 // $Authors: Steffen Sass, Hendrik Weisser $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 #include <OpenMS/CONCEPT/Types.h>
12 #include <OpenMS/OpenMSConfig.h>
13 
14 #include <set>
15 
16 namespace OpenMS
17 {
18  class BaseFeature;
19  class AASequence;
20 
26  class OPENMS_DLLAPI GridFeature
27  {
28 private:
31 
34 
37 
39  std::set<AASequence> annotations_;
40 
41 public:
48  GridFeature(const BaseFeature& feature, Size map_index, Size feature_index);
49 
51  const BaseFeature& getFeature() const;
52 
54  virtual ~GridFeature();
55 
57  Size getMapIndex() const;
58 
61 
63  Int getID() const;
64 
66  const std::set<AASequence>& getAnnotations() const;
67 
69  double getRT() const;
70 
72  double getMZ() const;
73  };
74 }
75 
A basic LC-MS feature.
Definition: BaseFeature.h:33
Representation of a feature in a hash grid.
Definition: GridFeature.h:27
double getRT() const
Returns the feature RT.
const BaseFeature & feature_
Reference to the contained feature.
Definition: GridFeature.h:30
GridFeature(const BaseFeature &feature, Size map_index, Size feature_index)
Detailed constructor.
std::set< AASequence > annotations_
Set of peptide sequences annotated to the feature.
Definition: GridFeature.h:39
Size getMapIndex() const
Returns the map index.
Int getID() const
Returns the ID of the GridFeature (same as the feature index)
Size getFeatureIndex() const
Returns the feature index.
const std::set< AASequence > & getAnnotations() const
Returns the set of peptide sequences annotated to the cluster center.
virtual ~GridFeature()
Destructor.
Size map_index_
Index of the feature map or consensus map.
Definition: GridFeature.h:33
const BaseFeature & getFeature() const
Returns the feature.
Size feature_index_
Index of the feature in the map.
Definition: GridFeature.h:36
double getMZ() const
Returns the feature m/z.
int Int
Signed integer type.
Definition: Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19