43 class PeptideIdentification;
76 SIZE_OF_ANNOTATIONSTATE
79 static const std::string NamesOfAnnotationState[SIZE_OF_ANNOTATIONSTATE];
A basic LC-MS feature.
Definition: BaseFeature.h:58
void setPeptideIdentifications(const std::vector< PeptideIdentification > &peptides)
sets the PeptideIdentification vector
void setQuality(QualityType q)
Set the overall quality.
BaseFeature(BaseFeature &&feature)=default
Move constructor.
BaseFeature & operator=(BaseFeature &&rhs) &=default
Move Assignment operator.
void sortPeptideIdentifications()
sorts PeptideIdentifications, assuming they have the same scoreType.
WidthType width_
Width (FWHM) for the feature. The default value is 0.0, a feature finding algorithm can compute this ...
Definition: BaseFeature.h:190
bool operator==(const BaseFeature &rhs) const
Equality operator.
QualityType getQuality() const
Non-mutable access to the overall quality.
const ChargeType & getCharge() const
Non-mutable access to charge state.
AnnotationState getAnnotationState() const
state of peptide identifications attached to this feature. If one ID has multiple hits,...
BaseFeature(const BaseFeature &rhs, UInt64 map_index)
Copy constructor with a new map_index.
ChargeType charge_
Charge of the peptide represented by this feature. The default value is 0, which represents an unknow...
Definition: BaseFeature.h:187
float QualityType
Type of quality values.
Definition: BaseFeature.h:63
float WidthType
Type of feature width/FWHM (RT)
Definition: BaseFeature.h:67
BaseFeature(const BaseFeature &feature)=default
Copy constructor.
std::vector< PeptideIdentification > & getPeptideIdentifications()
returns a mutable reference to the PeptideIdentification vector
WidthType getWidth() const
Non-mutable access to the features width (full width at half max, FWHM)
Int ChargeType
Type of charge values.
Definition: BaseFeature.h:65
void setWidth(WidthType fwhm)
Set the width of the feature (FWHM)
const std::vector< PeptideIdentification > & getPeptideIdentifications() const
returns a const reference to the PeptideIdentification vector
bool operator!=(const BaseFeature &rhs) const
Inequality operator.
QualityType quality_
Overall quality measure of the feature.
Definition: BaseFeature.h:184
BaseFeature(const RichPeak2D &point)
Constructor from raw data point with meta information.
void setCharge(const ChargeType &ch)
Set charge state.
~BaseFeature() override
Destructor.
AnnotationState
state of identification, use getIDState() to query it
Definition: BaseFeature.h:71
@ FEATURE_ID_MULTIPLE_SAME
Definition: BaseFeature.h:74
@ FEATURE_ID_SINGLE
Definition: BaseFeature.h:73
@ FEATURE_ID_NONE
Definition: BaseFeature.h:72
@ FEATURE_ID_MULTIPLE_DIVERGENT
Definition: BaseFeature.h:75
std::vector< PeptideIdentification > peptides_
PeptideIdentifications belonging to the feature.
Definition: BaseFeature.h:193
BaseFeature & operator=(const BaseFeature &rhs)=default
Assignment operator.
BaseFeature()
Default constructor.
BaseFeature(const Peak2D &point)
Constructor from raw data point.
BaseFeature(const FeatureHandle &fh)
Constructor from a featurehandle.
Representation of a Peak2D, RichPeak2D or Feature .
Definition: FeatureHandle.h:60
A 2-dimensional raw data point or peak.
Definition: Peak2D.h:55
A 2-dimensional raw data point or peak with meta information.
Definition: RichPeak2D.h:56
OPENMS_UINT64_TYPE UInt64
Unsigned integer type (64bit)
Definition: Types.h:77
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Compare by quality.
Definition: BaseFeature.h:119
bool operator()(const BaseFeature &left, const BaseFeature &right) const
Definition: BaseFeature.h:120
bool operator()(const QualityType &left, const QualityType &right) const
Definition: BaseFeature.h:135
bool operator()(const BaseFeature &left, const QualityType &right) const
Definition: BaseFeature.h:125
bool operator()(const QualityType &left, const BaseFeature &right) const
Definition: BaseFeature.h:130