39 #include <boost/multi_index_container.hpp> 40 #include <boost/multi_index/ordered_index.hpp> 41 #include <boost/multi_index/member.hpp> 45 namespace IdentificationDataInternal
68 const String& sequence =
"",
const String& description =
"",
69 double coverage = 0.0,
bool is_decoy =
false,
73 molecule_type(molecule_type), sequence(sequence),
74 description(description), coverage(coverage), is_decoy(is_decoy)
83 if (sequence.empty()) sequence = other.
sequence;
84 if (description.empty()) description = other.
description;
85 if (!is_decoy) is_decoy = other.
is_decoy;
94 typedef boost::multi_index_container<
96 boost::multi_index::indexed_by<
97 boost::multi_index::ordered_unique<boost::multi_index::member<
Base class for ID data with scores and processing steps (and meta info)
Definition: ScoredProcessingResult.h:44
double coverage
sequence coverage as a fraction between 0 and 1
Definition: ParentMolecule.h:61
AppliedProcessingSteps steps_and_scores
Definition: ScoredProcessingResult.h:46
enum MoleculeType molecule_type
Definition: ParentMolecule.h:53
ParentMolecule(const String &accession, MoleculeType molecule_type=MoleculeType::PROTEIN, const String &sequence="", const String &description="", double coverage=0.0, bool is_decoy=false, const AppliedProcessingSteps &steps_and_scores=AppliedProcessingSteps())
Definition: ParentMolecule.h:65
Definition: MetaData.h:65
Wrapper that adds operator< to iterators, so they can be used as (part of) keys in maps/sets or multi...
Definition: MetaData.h:43
boost::multi_index_container< AppliedProcessingStep, boost::multi_index::indexed_by< boost::multi_index::sequenced<>, boost::multi_index::ordered_unique< boost::multi_index::member< AppliedProcessingStep, boost::optional< ProcessingStepRef >, &AppliedProcessingStep::processing_step_opt > > > > AppliedProcessingSteps
Definition: AppliedProcessingStep.h:116
MoleculeType
Definition: MetaData.h:63
String sequence
Definition: ParentMolecule.h:57
String description
Definition: ParentMolecule.h:59
ScoredProcessingResult & operator+=(const ScoredProcessingResult &other)
Merge in data from another object.
Definition: ScoredProcessingResult.h:107
bool is_decoy
Definition: ParentMolecule.h:63
A more convenient string class.
Definition: String.h:58
String accession
Definition: ParentMolecule.h:51
Representation of a parent molecule that is identified only indirectly (e.g. a protein).
Definition: ParentMolecule.h:49
IteratorWrapper< ParentMolecules::iterator > ParentMoleculeRef
Definition: ParentMolecule.h:100
boost::multi_index_container< ParentMolecule, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< ParentMolecule, String, &ParentMolecule::accession > > > > ParentMolecules
Definition: ParentMolecule.h:99
ParentMolecule & operator+=(const ParentMolecule &other)
Definition: ParentMolecule.h:80
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46