1
// -*- Mode: C++; tab-width: 2; -*-
4
// --------------------------------------------------------------------------
5
// OpenMS Mass Spectrometry Framework
6
// --------------------------------------------------------------------------
7
// Copyright (C) 2003-2011 -- Oliver Kohlbacher, Knut Reinert
9
// This library is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU Lesser General Public
11
// License as published by the Free Software Foundation; either
12
// version 2.1 of the License, or (at your option) any later version.
14
// This library is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
// Lesser General Public License for more details.
19
// You should have received a copy of the GNU Lesser General Public
20
// License along with this library; if not, write to the Free Software
21
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
// --------------------------------------------------------------------------
24
// $Maintainer: Hendrik Weisser $
25
// $Authors: Steffen Sass, Hendrik Weisser $
26
// --------------------------------------------------------------------------
28
#ifndef OPENMS_DATASTRUCTURES_GRIDFEATURE_H
29
#define OPENMS_DATASTRUCTURES_GRIDFEATURE_H
31
#include <OpenMS/KERNEL/StandardTypes.h>
32
#include <OpenMS/KERNEL/BaseFeature.h>
38
* @brief Representation of a feature in a hash grid.
40
* A GridFeature can be stored in a HashGrid and points to a BaseFeature (Feature or ConsensusFeature). Used for QT feature grouping (see QTClusterFinder).
43
class OPENMS_DLLAPI GridFeature
46
/// Reference to the contained feature
47
const BaseFeature& feature_;
49
/// Index of the feature map or consensus map
52
/// Index of the feature in the map
55
/// Set of peptide sequences annotated to the feature
56
std::set<AASequence> annotations_;
60
* @brief Detailed constructor
61
* @param feature Reference to the contained feature
62
* @param map_index Index of the feature map or consensus map
63
* @param feature_index Index of the feature in the map
65
GridFeature(const BaseFeature& feature, Size map_index, Size feature_index);
67
/// Returns the feature
68
const BaseFeature& getFeature() const;
71
virtual ~GridFeature();
73
/// Returns the map index
74
Size getMapIndex() const;
76
/// Returns the feature index
77
Size getFeatureIndex() const;
79
/// Returns the ID of the GridFeature (same as the feature index)
82
/// Returns the set of peptide sequences annotated to the cluster center
83
const std::set<AASequence>& getAnnotations() const;
85
/// Returns the feature RT
86
DoubleReal getRT() const;
88
/// Returns the feature m/z
89
DoubleReal getMZ() const;
93
#endif // OPENMS_DATASTRUCTURES_GRIDFEATURE_H