35 #ifndef OPENMS_KERNEL_FEATUREMAP_H
36 #define OPENMS_KERNEL_FEATUREMAP_H
54 class ProteinIdentification;
55 class PeptideIdentification;
94 private std::vector<Feature>,
107 using privvec::value_type;
108 using privvec::iterator;
109 using privvec::const_iterator;
110 using privvec::size_type;
111 using privvec::pointer;
112 using privvec::reference;
113 using privvec::const_reference;
114 using privvec::difference_type;
117 using privvec::begin;
121 using privvec::resize;
122 using privvec::empty;
123 using privvec::reserve;
124 using privvec::operator[];
128 using privvec::push_back;
129 using privvec::pop_back;
130 using privvec::erase;
135 typedef std::vector<FeatureType>
Base;
245 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
252 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
266 template <
typename Type>
269 Size assignments = 0;
270 assignments += ((*this).*member_function)();
271 for (Iterator iter = this->begin(); iter != this->end(); ++iter)
273 assignments += iter->applyMemberFunction(member_function);
279 template <
typename Type>
282 Size assignments = 0;
283 assignments += ((*this).*member_function)();
284 for (ConstIterator iter = this->begin(); iter != this->end(); ++iter)
286 assignments += iter->applyMemberFunction(member_function);
309 #endif // OPENMS_KERNEL_DFEATUREMAP_H
Base::const_iterator ConstIterator
Definition: FeatureMap.h:137
void sortByMZ()
Sort features by m/z position.
void sortByRT()
Sort features by RT position.
std::vector< Size > states
Definition: FeatureMap.h:62
FeatureMap()
Default constructor.
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
AnnotationStatistics getAnnotationStatistics() const
FeatureMap & operator+=(const FeatureMap &rhs)
Add one feature map to another.
void swap(FeatureMap &from)
A container for features.
Definition: FeatureMap.h:93
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:138
bool operator==(const FeatureMap &rhs) const
Equality operator.
FeatureType & Reference
Definition: FeatureMap.h:140
Feature FeatureType
Definition: FeatureMap.h:133
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)...
Definition: FeatureMap.h:267
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Base::const_reverse_iterator ConstReverseIterator
Definition: FeatureMap.h:139
void setDataProcessing(const std::vector< DataProcessing > &processing_method)
sets the description of the applied data processing
AnnotationState
state of identification, use getIDState() to query it
Definition: BaseFeature.h:70
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
const FeatureType & ConstReference
Definition: FeatureMap.h:141
RangeManager< 2 > RangeManagerType
Definition: FeatureMap.h:134
void setProteinIdentifications(const std::vector< ProteinIdentification > &protein_identifications)
sets the protein identifications
FeatureMap & operator=(const FeatureMap &rhs)
Assignment operator.
bool operator!=(const FeatureMap &rhs) const
Equality operator.
FeatureMap operator+(const FeatureMap &rhs) const
Joins two feature maps.
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: FeatureMap.h:296
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
void sortByPosition()
Sort features by position. Lexicographical comparison (first RT then m/z) is done.
A base class for random access containers for classes derived from UniqueIdInterface that adds functi...
Definition: UniqueIdIndexer.h:64
Base::iterator Iterator
Definition: FeatureMap.h:136
An LC-MS feature.
Definition: Feature.h:70
std::vector< Feature > privvec
Definition: FeatureMap.h:104
std::vector< PeptideIdentification > unassigned_peptide_identifications_
peptide identifications not matched to a specific feature
Definition: FeatureMap.h:299
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:52
std::vector< FeatureType > Base
Definition: FeatureMap.h:135
void swapFeaturesOnly(FeatureMap &from)
Swaps the feature content (plus its range information) of this map with the content of from...
std::vector< DataProcessing > data_processing_
applied data processing
Definition: FeatureMap.h:302
void updateRanges()
Updates minimum and maximum position/intensity.
virtual ~FeatureMap()
Destructor.
void sortByOverallQuality(bool reverse=false)
Sort features by ascending overall quality.
Definition: FeatureMap.h:60
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:280
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
void sortByIntensity(bool reverse=false)
Sorts the peaks according to ascending intensity.
void clear(bool clear_meta_data=true)
Clears all data and meta data.
Manage source document information.
Definition: DocumentIdentifier.h:56
void setUnassignedPeptideIdentifications(const std::vector< PeptideIdentification > &unassigned_peptide_identifications)
sets the unassigned peptide identifications