43 #include <boost/multi_index_container.hpp>
44 #include <boost/multi_index/ordered_index.hpp>
45 #include <boost/multi_index/composite_key.hpp>
49 namespace IdentificationDataInternal
53 typedef std::map<std::optional<ProcessingStepRef>,
68 typedef std::set<AdductInfo, AdductCompare>
Adducts;
90 const std::optional<AdductRef>&
adduct_opt = std::nullopt,
112 OPENMS_PRETTY_FUNCTION,
113 "Trying to overwrite ObservationMatch charge with conflicting value.",
124 OPENMS_PRETTY_FUNCTION,
125 "Trying to overwrite ObservationMatch adduct_opt with conflicting value.",
126 (*adduct_opt)->getName());
137 typedef boost::multi_index_container<
139 boost::multi_index::indexed_by<
140 boost::multi_index::ordered_unique<
141 boost::multi_index::composite_key<
145 boost::multi_index::member<
146 ObservationMatch, IdentifiedMolecule,
148 boost::multi_index::member<ObservationMatch,
AdductOpt,
Definition: AdductInfo.h:43
const EmpiricalFormula & getEmpiricalFormula() const
sum formula of adduct itself. Useful for comparison with feature adduct annotation
int getCharge() const
get charge of adduct
Invalid value exception.
Definition: Exception.h:329
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
boost::multi_index_container< ObservationMatch, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::composite_key< ObservationMatch, boost::multi_index::member< ObservationMatch, ObservationRef, &ObservationMatch::observation_ref >, boost::multi_index::member< ObservationMatch, IdentifiedMolecule, &ObservationMatch::identified_molecule_var >, boost::multi_index::member< ObservationMatch, AdductOpt, &ObservationMatch::adduct_opt > > > > > ObservationMatches
Definition: ObservationMatch.h:150
std::optional< AdductRef > AdductOpt
Definition: ObservationMatch.h:70
IteratorWrapper< Adducts::iterator > AdductRef
Definition: ObservationMatch.h:69
IteratorWrapper< Observations::iterator > ObservationRef
Definition: Observation.h:96
boost::multi_index_container< AppliedProcessingStep, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::ordered_unique< boost::multi_index::member< AppliedProcessingStep, std::optional< ProcessingStepRef >, &AppliedProcessingStep::processing_step_opt > > > > AppliedProcessingSteps
Definition: AppliedProcessingStep.h:133
IteratorWrapper< ObservationMatches::iterator > ObservationMatchRef
Definition: ObservationMatch.h:152
std::vector< PeptideHit::PeakAnnotation > PeakAnnotations
Definition: ObservationMatch.h:52
std::map< std::optional< ProcessingStepRef >, PeakAnnotations > PeakAnnotationSteps
Definition: ObservationMatch.h:54
std::set< AdductInfo, AdductCompare > Adducts
Definition: ObservationMatch.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Comparator for adducts.
Definition: ObservationMatch.h:60
bool operator()(const AdductInfo &left, const AdductInfo &right) const
Definition: ObservationMatch.h:61
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
Representation of a search hit (e.g. peptide-spectrum match).
Definition: ObservationMatch.h:74
ObservationMatch(const ObservationMatch &)=default
AdductOpt adduct_opt
optional reference to adduct
Definition: ObservationMatch.h:81
IdentifiedMolecule identified_molecule_var
Definition: ObservationMatch.h:75
Int charge
Definition: ObservationMatch.h:79
PeakAnnotationSteps peak_annotations
Definition: ObservationMatch.h:85
ObservationMatch(IdentifiedMolecule identified_molecule_var, ObservationRef observation_ref, Int charge=0, const std::optional< AdductRef > &adduct_opt=std::nullopt, const AppliedProcessingSteps &steps_and_scores=AppliedProcessingSteps(), const PeakAnnotationSteps &peak_annotations=PeakAnnotationSteps())
Definition: ObservationMatch.h:87
ObservationMatch & merge(const ObservationMatch &other)
Definition: ObservationMatch.h:102
ObservationRef observation_ref
Definition: ObservationMatch.h:77
Base class for ID data with scores and processing steps (and meta info)
Definition: ScoredProcessingResult.h:45
AppliedProcessingSteps steps_and_scores
Definition: ScoredProcessingResult.h:46
ScoredProcessingResult & merge(const ScoredProcessingResult &other)
Merge in data from another object.
Definition: ScoredProcessingResult.h:107