|
OpenMS
2.5.0
|
Go to the documentation of this file.
37 #include <OpenMS/config.h>
61 check_defaults_ =
false;
65 template <
typename MapType>
69 check_defaults_ =
false;
80 template <
typename MapType>
81 void addMaps(
const std::vector<MapType>& maps)
83 num_maps_ = maps.size();
85 for (
Size i = 0; i < num_maps_; ++i)
90 addFeature(i, &(*it));
103 double rt(
Size i)
const;
106 double mz(
Size i)
const;
109 float intensity(
Size i)
const;
121 Size treeSize()
const;
124 Size numMaps()
const;
133 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;
136 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;
139 void applyTransformations(
const std::vector<TransformationModelLowess*>& trafos);
143 void updateMembers_()
override;
Iterator begin()
Definition: MSExperiment.h:157
A basic LC-MS feature.
Definition: BaseFeature.h:56
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Base::const_iterator const_iterator
Definition: MSExperiment.h:125
KDTreeFeatureMaps(const std::vector< MapType > &maps, const Param ¶m)
Constructor.
Definition: KDTreeFeatureMaps.h:66
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< double > rt_
(Potentially transformed) retention times
Definition: KDTreeFeatureMaps.h:152
void addMaps(const std::vector< MapType > &maps)
Add maps and balance kd-tree.
Definition: KDTreeFeatureMaps.h:81
std::vector< Size > map_index_
Map indices.
Definition: KDTreeFeatureMaps.h:149
std::vector< const BaseFeature * > features_
Feature data.
Definition: KDTreeFeatureMaps.h:146
FeatureKDTree kd_tree_
2D tree on features from all input maps.
Definition: KDTreeFeatureMaps.h:158
Iterator end()
Definition: MSExperiment.h:167
KDTree::KDTree< 2, KDTreeFeatureNode > FeatureKDTree
2D tree on features
Definition: KDTreeFeatureMaps.h:55
Management and storage of parameters / INI files.
Definition: Param.h:73
Size num_maps_
Number of maps.
Definition: KDTreeFeatureMaps.h:155
~KDTreeFeatureMaps() override
Destructor.
Definition: KDTreeFeatureMaps.h:75
KDTreeFeatureMaps()
Default constructor.
Definition: KDTreeFeatureMaps.h:58
Stores a set of features, together with a 2D tree for fast search.
Definition: KDTreeFeatureMaps.h:49