46 #include <OpenMS/OpenMSConfig.h> 54 class ProteinIdentification;
55 class PeptideIdentification;
94 private std::vector<Feature>,
108 using privvec::value_type;
109 using privvec::iterator;
110 using privvec::const_iterator;
111 using privvec::size_type;
112 using privvec::pointer;
113 using privvec::reference;
114 using privvec::const_reference;
115 using privvec::difference_type;
118 using privvec::begin;
122 using privvec::resize;
123 using privvec::empty;
124 using privvec::reserve;
125 using privvec::operator[];
129 using privvec::push_back;
130 using privvec::pop_back;
131 using privvec::erase;
136 typedef std::vector<FeatureType>
Base;
246 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
259 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
273 template <
typename Type>
276 Size assignments = 0;
277 assignments += ((*this).*member_function)();
278 for (
Iterator iter = this->begin(); iter != this->end(); ++iter)
280 assignments += iter->applyMemberFunction(member_function);
286 template <
typename Type>
289 Size assignments = 0;
290 assignments += ((*this).*member_function)();
291 for (
ConstIterator iter = this->begin(); iter != this->end(); ++iter)
293 assignments += iter->applyMemberFunction(member_function);
void sortByOverallQuality(bool reverse=false)
Sort features by ascending overall quality.
std::vector< DataProcessing > data_processing_
applied data processing
Definition: FeatureMap.h:309
void updateRanges() override
Updates minimum and maximum position/intensity.
void swap(FeatureMap &from)
Base::const_iterator ConstIterator
Definition: FeatureMap.h:138
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
void clear(bool clear_meta_data=true)
Clears all data and meta data.
Feature FeatureType
Definition: FeatureMap.h:134
FeatureMap & operator+=(const FeatureMap &rhs)
Add one feature map to another.
void setProteinIdentifications(const std::vector< ProteinIdentification > &protein_identifications)
sets the protein identifications
~FeatureMap() override
Destructor.
FeatureMap & operator=(const FeatureMap &rhs)
Assignment operator.
Base::iterator Iterator
Definition: FeatureMap.h:137
void sortByPosition()
Sort features by position. Lexicographical comparison (first RT then m/z) is done.
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
Manage source document information.
Definition: DocumentIdentifier.h:55
An LC-MS feature.
Definition: Feature.h:70
void sortByMZ()
Sort features by m/z position.
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:287
A container for features.
Definition: FeatureMap.h:93
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
void swapFeaturesOnly(FeatureMap &from)
Swaps the feature content (plus its range information) of this map with the content of from...
std::vector< Feature > privvec
Definition: FeatureMap.h:105
FeatureType & Reference
Definition: FeatureMap.h:141
bool operator!=(const FeatureMap &rhs) const
Equality operator.
std::vector< FeatureType > Base
Definition: FeatureMap.h:136
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:139
RangeManager< 2 > RangeManagerType
Definition: FeatureMap.h:135
A base class for random access containers for classes derived from UniqueIdInterface that adds functi...
Definition: UniqueIdIndexer.h:63
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:55
std::vector< PeptideIdentification > unassigned_peptide_identifications_
peptide identifications not matched to a specific feature
Definition: FeatureMap.h:306
void setPrimaryMSRunPath(const StringList &s)
set the file path to the primary MS run (usually the mzML file obtained after data conversion from ra...
Definition: FeatureMap.h:60
std::vector< Size > states
count each state, indexing by BaseFeature::AnnotationState
Definition: FeatureMap.h:62
AnnotationStatistics getAnnotationStatistics() const
FeatureMap operator+(const FeatureMap &rhs) const
Joins two feature maps.
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)...
Definition: FeatureMap.h:274
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
FeatureMap()
Default constructor.
void getPrimaryMSRunPath(StringList &toFill) const
get the file path to the first MS run
Handles the management of a position and intensity range.
Definition: RangeManager.h:47
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void setUnassignedPeptideIdentifications(const std::vector< PeptideIdentification > &unassigned_peptide_identifications)
sets the unassigned peptide identifications
void sortByRT()
Sort features by RT position.
void sortByIntensity(bool reverse=false)
Sorts the peaks according to ascending intensity.
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:51
const FeatureType & ConstReference
Definition: FeatureMap.h:142
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: FeatureMap.h:303
bool operator==(const FeatureMap &rhs) const
Equality operator.
AnnotationState
state of identification, use getIDState() to query it
Definition: BaseFeature.h:69
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
void setDataProcessing(const std::vector< DataProcessing > &processing_method)
sets the description of the applied data processing
Base::const_reverse_iterator ConstReverseIterator
Definition: FeatureMap.h:140