OpenMS
Loading...
Searching...
No Matches
GridFeature.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: Hendrik Weisser $
6// $Authors: Steffen Sass, Hendrik Weisser $
7// --------------------------------------------------------------------------
8
9#pragma once
10
12#include <OpenMS/OpenMSConfig.h>
13
14#include <set>
15
16namespace OpenMS
17{
18 class BaseFeature;
19 class AASequence;
20
26 class OPENMS_DLLAPI GridFeature
27 {
28private:
31
34
37
39 std::set<AASequence> annotations_;
40
41public:
48 GridFeature(const BaseFeature& feature, Size map_index, Size feature_index);
49
51 const BaseFeature& getFeature() const;
52
54 virtual ~GridFeature();
55
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:34
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.
const std::set< AASequence > & getAnnotations() const
Returns the set of peptide sequences annotated to the cluster center.
Int getID() const
Returns the ID of the GridFeature (same as the feature index)
const BaseFeature & getFeature() const
Returns the feature.
Size getFeatureIndex() const
Returns the feature index.
virtual ~GridFeature()
Destructor.
Size map_index_
Index of the feature map or consensus map.
Definition GridFeature.h:33
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