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;
197 OPENMS_DLLAPI
void sortByIntensity(
bool reverse =
false);
201 OPENMS_DLLAPI
void sortByPosition();
204 OPENMS_DLLAPI
void sortByRT();
207 OPENMS_DLLAPI
void sortByMZ();
210 OPENMS_DLLAPI
void sortByOverallQuality(
bool reverse =
false);
215 OPENMS_DLLAPI
void updateRanges();
218 OPENMS_DLLAPI
void swapFeaturesOnly(
FeatureMap& from);
223 OPENMS_DLLAPI
const std::vector<ProteinIdentification>& getProteinIdentifications()
const;
226 OPENMS_DLLAPI std::vector<ProteinIdentification>& getProteinIdentifications();
229 OPENMS_DLLAPI
void setProteinIdentifications(
const std::vector<ProteinIdentification>& protein_identifications);
232 OPENMS_DLLAPI
const std::vector<PeptideIdentification>& getUnassignedPeptideIdentifications()
const;
235 OPENMS_DLLAPI std::vector<PeptideIdentification>& getUnassignedPeptideIdentifications();
238 OPENMS_DLLAPI
void setUnassignedPeptideIdentifications(
const std::vector<PeptideIdentification>& unassigned_peptide_identifications);
241 OPENMS_DLLAPI
const std::vector<DataProcessing>& getDataProcessing()
const;
244 OPENMS_DLLAPI std::vector<DataProcessing>& getDataProcessing();
247 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
250 OPENMS_DLLAPI
void setPrimaryMSRunPath(
const StringList& s);
253 OPENMS_DLLAPI
void getPrimaryMSRunPath(
StringList& toFill)
const;
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
std::vector< Size > states
Definition: FeatureMap.h:63
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:288
A container for features.
Definition: FeatureMap.h:94
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:140
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
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
const FeatureType & ConstReference
Definition: FeatureMap.h:143
RangeManager< 2 > RangeManagerType
Definition: FeatureMap.h:136
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: FeatureMap.h:304
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
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
std::vector< DataProcessing > data_processing_
applied data processing
Definition: FeatureMap.h:310
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
AnnotationState
state of identification, use getIDState() to query it
Definition: BaseFeature.h:70
Definition: FeatureMap.h:61
Handles the management of a position and intensity range.
Definition: RangeManager.h:48
Manage source document information.
Definition: DocumentIdentifier.h:56