52 #include <OpenMS/OpenMSConfig.h> 59 class ProteinIdentification;
60 class PeptideIdentification;
99 private std::vector<Feature>,
111 typedef std::vector<Feature>
Base;
114 using Base::value_type;
115 using Base::iterator;
116 using Base::const_iterator;
117 using Base::size_type;
119 using Base::reference;
120 using Base::const_reference;
121 using Base::difference_type;
132 using Base::operator[];
136 using Base::push_back;
137 using Base::emplace_back;
138 using Base::pop_back;
257 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
274 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
288 template <
typename Type>
291 Size assignments = 0;
292 assignments += ((*this).*member_function)();
293 for (
Iterator iter = this->begin(); iter != this->end(); ++iter)
295 assignments += iter->applyMemberFunction(member_function);
301 template <
typename Type>
304 Size assignments = 0;
305 assignments += ((*this).*member_function)();
306 for (
ConstIterator iter = this->begin(); iter != this->end(); ++iter)
308 assignments += iter->applyMemberFunction(member_function);
Base::const_iterator ConstIterator
Definition: FeatureMap.h:145
void sortByMZ()
Sort features by m/z position.
void sortByRT()
Sort features by RT position.
~FeatureMap() override
Destructor.
std::vector< Size > states
count each state, indexing by BaseFeature::AnnotationState
Definition: FeatureMap.h:67
FeatureMap()
Default constructor.
void getPrimaryMSRunPath(StringList &toFill) const
get the file path to the first MS run
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: FeatureMap.h:302
FeatureMap & operator+=(const FeatureMap &rhs)
Add one feature map to another.
void swap(FeatureMap &from)
A container for features.
Definition: FeatureMap.h:98
void setPrimaryMSRunPath(const StringList &s)
set the file path to the primary MS run (usually the mzML file obtained after data conversion from ra...
std::vector< Feature > Base
Definition: FeatureMap.h:111
Base::reverse_iterator ReverseIterator
Definition: FeatureMap.h:146
Definition: IdentificationData.h:112
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)...
Definition: FeatureMap.h:289
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
Base::const_reverse_iterator ConstReverseIterator
Definition: FeatureMap.h:147
void setDataProcessing(const std::vector< DataProcessing > &processing_method)
sets the description of the applied data processing
Utilities for Feature and ConsensusMap.
Definition: MapUtilities.h:49
const IdentificationData & getIdentificationData() const
Immutable access to the contained identification data.
void setProteinIdentifications(const std::vector< ProteinIdentification > &protein_identifications)
sets the protein identifications
bool operator!=(const FeatureMap &rhs) const
Equality operator.
FeatureMap & operator=(const FeatureMap &rhs)
Assignment operator.
bool operator==(const FeatureMap &rhs) const
Equality operator.
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: FeatureMap.h:335
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:63
Base::iterator Iterator
Definition: FeatureMap.h:144
static String & reverse(String &this_s)
Definition: StringUtilsSimple.h:355
IdentificationData id_data_
general identification results (peptides/proteins, RNA, compounds)
Definition: FeatureMap.h:344
std::vector< PeptideIdentification > unassigned_peptide_identifications_
peptide identifications not matched to a specific feature
Definition: FeatureMap.h:338
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:50
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
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:341
void updateRanges() override
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
AnnotationState
state of identification, use getAnnotationState() to query it
Definition: BaseFeature.h:71
void sortByOverallQuality(bool reverse=false)
Sort features by ascending overall quality.
RangeManager< RangeRT, RangeMZ, RangeIntensity > RangeManagerType
Definition: FeatureMap.h:143
Definition: FeatureMap.h:65
RangeManagerContainer< RangeRT, RangeMZ, RangeIntensity > RangeManagerContainerType
Definition: FeatureMap.h:142
Handles the management of a multidimensional range, e.g. RangeMZ and RangeIntensity for spectra...
Definition: RangeManager.h:565
Definition: RangeManager.h:896
const std::vector< ProteinIdentification > & getProteinIdentifications() const
void sortByIntensity(bool reverse=false)
Sorts the peaks according to ascending intensity.
AnnotationStatistics getAnnotationStatistics() const
void clear(bool clear_meta_data=true)
Clears all data and meta data.
Manage source document information.
Definition: DocumentIdentifier.h:55
FeatureMap operator+(const FeatureMap &rhs) const
Joins two feature maps.
void setUnassignedPeptideIdentifications(const std::vector< PeptideIdentification > &unassigned_peptide_identifications)
sets the unassigned peptide identifications
std::set< IdentificationData::ObservationMatchRef > getUnassignedIDMatches() const
Return observation matches (e.g. PSMs) from the identification data that are not assigned to any feat...