77 SIZE_OF_ANNOTATIONSTATE
80 static const std::string NamesOfAnnotationState[SIZE_OF_ANNOTATIONSTATE];
97 quality_ = feature.quality_;
98 charge_ = feature.charge_;
99 width_ = feature.width_;
102 peptides_ = std::move(feature.peptides_);
103 primary_id_ = std::move(feature.primary_id_);
104 id_matches_ = std::move(feature.id_matches_);
215 const std::set<IdentificationData::ObservationMatchRef>&
getIDMatches()
const;
246 std::optional<IdentificationData::IdentifiedMolecule>
primary_id_;
A basic LC-MS feature.
Definition: BaseFeature.h:59
void setPeptideIdentifications(const std::vector< PeptideIdentification > &peptides)
sets the PeptideIdentification vector
std::optional< IdentificationData::IdentifiedMolecule > primary_id_
primary ID (peptide, RNA, compound) assigned to this feature
Definition: BaseFeature.h:246
void setQuality(QualityType q)
Set the overall quality.
BaseFeature & operator=(BaseFeature &&rhs) &=default
Move Assignment operator.
void sortPeptideIdentifications()
sorts PeptideIdentifications, assuming they have the same scoreType.
void clearPrimaryID()
clear any primary ID that was assigned
WidthType width_
Width (FWHM) for the feature. The default value is 0.0, a feature finding algorithm can compute this ...
Definition: BaseFeature.h:240
bool operator==(const BaseFeature &rhs) const
Equality operator.
QualityType getQuality() const
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:237
bool hasPrimaryID() const
float QualityType
Definition: BaseFeature.h:64
float WidthType
Type of feature width/FWHM (RT)
Definition: BaseFeature.h:68
std::set< IdentificationData::ObservationMatchRef > & getIDMatches()
mutable access to the set of matches (e.g. PSMs) with IDs for this feature
BaseFeature(const BaseFeature &feature)=default
Copy constructor.
std::vector< PeptideIdentification > & getPeptideIdentifications()
returns a mutable reference to the PeptideIdentification vector
const std::set< IdentificationData::ObservationMatchRef > & getIDMatches() const
immutable access to the set of matches (e.g. PSMs) with IDs for this feature
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:66
void setWidth(WidthType fwhm)
Set the width of the feature (FWHM)
const IdentificationData::IdentifiedMolecule & getPrimaryID() const
Return the primary ID (peptide, RNA, compound) assigned to this feature.
const std::vector< PeptideIdentification > & getPeptideIdentifications() const
void addIDMatch(IdentificationData::ObservationMatchRef ref)
add an ID match (e.g. PSM) for this feature
bool operator!=(const BaseFeature &rhs) const
Inequality operator.
QualityType quality_
Overall quality measure of the feature.
Definition: BaseFeature.h:234
BaseFeature(const RichPeak2D &point)
Constructor from raw data point with meta information.
void setCharge(const ChargeType &ch)
Set charge state.
std::set< IdentificationData::ObservationMatchRef > id_matches_
set of observation matches (e.g. PSMs) with IDs for this feature
Definition: BaseFeature.h:249
BaseFeature(BaseFeature &&feature) noexcept
Definition: BaseFeature.h:94
~BaseFeature() override
Destructor.
AnnotationState
state of identification, use getAnnotationState() to query it
Definition: BaseFeature.h:72
@ FEATURE_ID_MULTIPLE_SAME
Definition: BaseFeature.h:75
@ FEATURE_ID_SINGLE
Definition: BaseFeature.h:74
@ FEATURE_ID_NONE
Definition: BaseFeature.h:73
@ FEATURE_ID_MULTIPLE_DIVERGENT
Definition: BaseFeature.h:76
std::vector< PeptideIdentification > peptides_
PeptideIdentifications belonging to the feature.
Definition: BaseFeature.h:243
BaseFeature & operator=(const BaseFeature &rhs)=default
Assignment operator.
void updateIDReferences(const IdentificationData::RefTranslator &trans)
Update ID references (primary ID, matches) for this feature.
BaseFeature(const Peak2D &point)
Constructor from raw data point.
BaseFeature(const FeatureHandle &fh)
Constructor from a featurehandle.
void setPrimaryID(const IdentificationData::IdentifiedMolecule &id)
set the primary ID (peptide, RNA, compound) for this feature
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:48
Compare by quality.
Definition: BaseFeature.h:131
bool operator()(const BaseFeature &left, const BaseFeature &right) const
Definition: BaseFeature.h:132
bool operator()(const QualityType &left, const QualityType &right) const
Definition: BaseFeature.h:147
bool operator()(const BaseFeature &left, const QualityType &right) const
Definition: BaseFeature.h:137
bool operator()(const QualityType &left, const BaseFeature &right) const
Definition: BaseFeature.h:142
Variant type holding Peptide/Compound/Oligo references and convenience functions.
Definition: IdentifiedMolecule.h:55
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:46
structure that maps references of corresponding objects after copying
Definition: IdentificationData.h:210