35 #ifndef OPENMS_KERNEL_FEATUREMAP_H
36 #define OPENMS_KERNEL_FEATUREMAP_H
47 #include <OpenMS/OpenMSConfig.h>
55 class ProteinIdentification;
56 class PeptideIdentification;
95 private std::vector<Feature>,
109 using privvec::value_type;
110 using privvec::iterator;
111 using privvec::const_iterator;
112 using privvec::size_type;
113 using privvec::pointer;
114 using privvec::reference;
115 using privvec::const_reference;
116 using privvec::difference_type;
119 using privvec::begin;
123 using privvec::resize;
124 using privvec::empty;
125 using privvec::reserve;
126 using privvec::operator[];
130 using privvec::push_back;
131 using privvec::pop_back;
132 using privvec::erase;
137 typedef std::vector<FeatureType>
Base;
247 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
260 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
274 template <
typename Type>
277 Size assignments = 0;
278 assignments += ((*this).*member_function)();
279 for (Iterator iter = this->begin(); iter != this->end(); ++iter)
281 assignments += iter->applyMemberFunction(member_function);
287 template <
typename Type>
290 Size assignments = 0;
291 assignments += ((*this).*member_function)();
292 for (ConstIterator iter = this->begin(); iter != this->end(); ++iter)
294 assignments += iter->applyMemberFunction(member_function);
317 #endif // OPENMS_KERNEL_DFEATUREMAP_H
Base::const_iterator ConstIterator
Definition: FeatureMap.h:139
void sortByMZ()
Sort features by m/z position.
void sortByRT()
Sort features by RT position.
std::vector< Size > states
Definition: FeatureMap.h:63
FeatureMap()
Default constructor.
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
StringList getPrimaryMSRunPath() const
get the file path to the first MS run
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:94
void setPrimaryMSRunPath(const StringList &s)
set the file path to the primary MS run (usually the mzML file obtained after data conversion from ra...
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:140
bool operator==(const FeatureMap &rhs) const
Equality operator.
FeatureType & Reference
Definition: FeatureMap.h:142
Feature FeatureType
Definition: FeatureMap.h:135
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)...
Definition: FeatureMap.h:275
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Base::const_reverse_iterator ConstReverseIterator
Definition: FeatureMap.h:141
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:143
RangeManager< 2 > RangeManagerType
Definition: FeatureMap.h:136
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:304
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:138
An LC-MS feature.
Definition: Feature.h:70
std::vector< Feature > privvec
Definition: FeatureMap.h:106
std::vector< PeptideIdentification > unassigned_peptide_identifications_
peptide identifications not matched to a specific feature
Definition: FeatureMap.h:307
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:52
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
std::vector< FeatureType > Base
Definition: FeatureMap.h:137
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:310
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:61
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:288
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