35 #ifndef OPENMS_ANALYSIS_QUANTITATION_KDTREEFEATUREMAPS_H 36 #define OPENMS_ANALYSIS_QUANTITATION_KDTREEFEATUREMAPS_H 38 #include <OpenMS/config.h> 62 check_defaults_ =
false;
66 template <
typename MapType>
70 check_defaults_ =
false;
81 template <
typename MapType>
82 void addMaps(
const std::vector<MapType>& maps)
84 num_maps_ = maps.size();
86 for (
Size i = 0; i < num_maps_; ++i)
91 addFeature(i, &(*it));
104 double rt(
Size i)
const;
107 double mz(
Size i)
const;
110 float intensity(
Size i)
const;
122 Size treeSize()
const;
125 Size numMaps()
const;
134 void getNeighborhood(
Size index, std::vector<Size>& result_indices,
double rt_tol,
double mz_tol,
bool mz_ppm,
bool include_features_from_same_map =
false,
double max_pairwise_log_fc = -1.0)
const;
137 void queryRegion(
double rt_low,
double rt_high,
double mz_low,
double mz_high, std::vector<Size>& result_indices,
Size ignored_map_index = std::numeric_limits<Size>::max())
const;
140 void applyTransformations(
const std::vector<TransformationModelLowess*>& trafos);
144 virtual void updateMembers_();
164 #endif // OPENMS_ANALYSIS_QUANTITATION_KDTREEFEATUREMAPS_H
Stores a set of features, together with a 2D tree for fast search.
Definition: KDTreeFeatureMaps.h:50
FeatureKDTree kd_tree_
2D tree on features from all input maps.
Definition: KDTreeFeatureMaps.h:159
Iterator begin()
Definition: MSExperiment.h:162
Base::const_iterator const_iterator
Definition: MSExperiment.h:130
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size num_maps_
Number of maps.
Definition: KDTreeFeatureMaps.h:156
A basic LC-MS feature.
Definition: BaseFeature.h:56
Iterator end()
Definition: MSExperiment.h:172
KDTree::KDTree< 2, KDTreeFeatureNode > FeatureKDTree
2D tree on features
Definition: KDTreeFeatureMaps.h:56
void addMaps(const std::vector< MapType > &maps)
Add maps and balance kd-tree.
Definition: KDTreeFeatureMaps.h:82
KDTreeFeatureMaps(const std::vector< MapType > &maps, const Param ¶m)
Constructor.
Definition: KDTreeFeatureMaps.h:67
Management and storage of parameters / INI files.
Definition: Param.h:75
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
std::vector< double > rt_
(Potentially transformed) retention times
Definition: KDTreeFeatureMaps.h:153
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
KDTreeFeatureMaps()
Default constructor.
Definition: KDTreeFeatureMaps.h:59
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
std::vector< Size > map_index_
Map indices.
Definition: KDTreeFeatureMaps.h:150
int Int
Signed integer type.
Definition: Types.h:103
~KDTreeFeatureMaps()
Destructor.
Definition: KDTreeFeatureMaps.h:76
std::vector< const BaseFeature * > features_
Feature data.
Definition: KDTreeFeatureMaps.h:147