46 #include <OpenMS/OpenMSConfig.h> 53 class ProteinIdentification;
76 private std::vector<ConsensusFeature>,
85 typedef std::vector<ConsensusFeature>
privvec;
88 using privvec::value_type;
89 using privvec::iterator;
90 using privvec::const_iterator;
91 using privvec::size_type;
92 using privvec::pointer;
93 using privvec::reference;
94 using privvec::const_reference;
95 using privvec::difference_type;
102 using privvec::resize;
103 using privvec::empty;
104 using privvec::reserve;
105 using privvec::operator[];
109 using privvec::push_back;
134 typedef std::vector<ConsensusFeature>
Base;
138 typedef std::vector<ConsensusFeature>::iterator
Iterator;
188 OPENMS_DLLAPI
void clear(
bool clear_meta_data =
true);
268 OPENMS_DLLAPI
void setDataProcessing(
const std::vector<DataProcessing>& processing_method);
295 template <
typename Type>
298 Size assignments = 0;
299 assignments += ((*this).*member_function)();
300 for (
Iterator iter = this->begin(); iter != this->end(); ++iter)
302 assignments += ((*iter).*member_function)();
308 template <
typename Type>
311 Size assignments = 0;
312 assignments += ((*this).*member_function)();
313 for (
ConstIterator iter = this->begin(); iter != this->end(); ++iter)
315 assignments += ((*iter).*member_function)();
void setDataProcessing(const std::vector< DataProcessing > &processing_method)
sets the description of the applied data processing
~ConsensusMap() override
Destructor.
std::vector< ConsensusFeature >::iterator Iterator
Mutable iterator.
Definition: ConsensusMap.h:138
void sortPeptideIdentificationsByMapIndex()
Sorts PeptideIdentifications of consensus features with respect to their map index.
void sortByMZ()
Sorts the peaks to m/z position.
const ColumnHeaders & getColumnHeaders() const
Non-mutable access to the file descriptions.
A more convenient string class.
Definition: String.h:57
void clear(bool clear_meta_data=true)
Clears all data and meta data.
ConsensusMap & appendColumns(const ConsensusMap &rhs)
Add consensus map entries as new columns.
std::vector< ConsensusFeature >::const_reverse_iterator ConstReverseIterator
Non-mutable reverse iterator.
Definition: ConsensusMap.h:144
std::vector< PeptideIdentification > unassigned_peptide_identifications_
protein identifications
Definition: ConsensusMap.h:346
A container for consensus elements.
Definition: ConsensusMap.h:75
ColumnHeaders column_description_
Map from index to file description.
Definition: ConsensusMap.h:337
void sortByQuality(bool reverse=false)
Sorts the peaks according to ascending quality.
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all consensus features. The returned values are accumulated.
Definition: ConsensusMap.h:296
bool operator==(const ConsensusMap &rhs) const
Equality operator.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
std::vector< DataProcessing > data_processing_
applied data processing
Definition: ConsensusMap.h:349
void setExperimentType(const String &experiment_type)
Mutable access to the experiment type.
Size size
Number of elements (features, peaks, ...). This is e.g. used to check for correct element indices whe...
Definition: ConsensusMap.h:127
ConsensusMap()
Default constructor.
Log Stream Class.
Definition: LogStream.h:302
std::vector< ConsensusFeature >::reverse_iterator ReverseIterator
Mutable reverse iterator.
Definition: ConsensusMap.h:142
String label
Label e.g. 'heavy' and 'light' for ICAT, or 'sample1' and 'sample2' for label-free quantitation...
Definition: ConsensusMap.h:124
const std::vector< DataProcessing > & getDataProcessing() const
returns a const reference to the description of the applied data processing
void getPrimaryMSRunPath(StringList &toFill) const
returns the MS run path (stored in ColumnHeaders)
String experiment_type_
type of experiment (label-free, labeled_MS1, labeled_MS2)
Definition: ConsensusMap.h:340
std::vector< ConsensusFeature > Base
Definition: ConsensusMap.h:134
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
void sortByMaps()
Sorts with respect to the sets of maps covered by the consensus features (lexicographically).
A base class for random access containers for classes derived from UniqueIdInterface that adds functi...
Definition: UniqueIdIndexer.h:63
void setPrimaryMSRunPath(const StringList &s)
set the file paths to the primary MS run (stored in ColumnHeaders)
bool isMapConsistent(Logger::LogStream *stream=nullptr) const
checks if the given maps are unique and all FeatureHandles actually refer to a registered map ...
RangeManager< 2 > RangeManagerType
Definition: ConsensusMap.h:135
void setUnassignedPeptideIdentifications(const std::vector< PeptideIdentification > &unassigned_peptide_identifications)
sets the unassigned peptide identifications
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
std::map< UInt64, ColumnHeader > ColumnHeaders
Definition: ConsensusMap.h:136
A base class defining a common interface for all classes having a unique id.
Definition: UniqueIdInterface.h:51
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
bool operator!=(const ConsensusMap &rhs) const
Equality operator.
std::vector< ProteinIdentification > protein_identifications_
protein identifications
Definition: ConsensusMap.h:343
ConsensusMap & operator=(const ConsensusMap &source)
Assignment operator.
void sortBySize()
Sorts with respect to the size (number of elements)
const std::vector< ProteinIdentification > & getProteinIdentifications() const
non-mutable access to the protein identifications
void setColumnHeaders(const ColumnHeaders &column_description)
Mutable access to the file descriptions.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
std::vector< ConsensusFeature > privvec
Definition: ConsensusMap.h:85
void swap(ConsensusMap &from)
Swaps the content of this map with the content of from.
ConsensusMap & appendRows(const ConsensusMap &rhs)
Add consensus map entries as new rows.
Size applyMemberFunction(Size(Type::*member_function)() const) const
The "const" variant.
Definition: ConsensusMap.h:309
Description of the columns in a consensus map.
Definition: ConsensusMap.h:112
const String & getExperimentType() const
Non-mutable access to the experiment type.
String filename
File name of the mzML file.
Definition: ConsensusMap.h:122
void sortByPosition()
Lexicographically sorts the peaks by their position (First RT then m/z).
Handles the management of a position and intensity range.
Definition: RangeManager.h:47
void updateRanges() override
Updates minimum and maximum position/intensity.
std::vector< ConsensusFeature >::const_iterator ConstIterator
Non-mutable iterator.
Definition: ConsensusMap.h:140
void setProteinIdentifications(const std::vector< ProteinIdentification > &protein_identifications)
sets the protein identifications
void sortByRT()
Sorts the peaks to RT position.
const std::vector< PeptideIdentification > & getUnassignedPeptideIdentifications() const
non-mutable access to the unassigned peptide identifications
Manage source document information.
Definition: DocumentIdentifier.h:55
UInt64 unique_id
Unique id of the file.
Definition: ConsensusMap.h:129
void sortByIntensity(bool reverse=false)
Sorts the peaks according to ascending intensity.