51 #include <unordered_set>
206 bool allow_missing =
false;
215 if (pos != identified_peptide_refs.end())
return pos->second;
221 if (pos != identified_compound_refs.end())
return pos->second;
227 if (pos != identified_oligo_refs.end())
return pos->second;
232 "invalid molecule type",
235 if (allow_missing)
return old;
237 "no match for reference");
242 auto pos = observation_match_refs.find(old);
243 if (pos != observation_match_refs.end())
return pos->second;
244 if (allow_missing)
return old;
246 "no match for reference");
252 current_step_ref_(processing_steps_.end()), no_checks_(false)
267 input_files_(std::move(other.input_files_)),
268 processing_softwares_(std::move(other.processing_softwares_)),
269 processing_steps_(std::move(other.processing_steps_)),
270 db_search_params_(std::move(other.db_search_params_)),
271 db_search_steps_(std::move(other.db_search_steps_)),
272 score_types_(std::move(other.score_types_)),
273 observations_(std::move(other.observations_)),
274 parents_(std::move(other.parents_)),
275 parent_groups_(std::move(other.parent_groups_)),
276 identified_peptides_(std::move(other.identified_peptides_)),
277 identified_compounds_(std::move(other.identified_compounds_)),
278 identified_oligos_(std::move(other.identified_oligos_)),
279 adducts_(std::move(other.adducts_)),
280 observation_matches_(std::move(other.observation_matches_)),
281 observation_match_groups_(std::move(other.observation_match_groups_)),
282 current_step_ref_(std::move(other.current_step_ref_)),
283 no_checks_(std::move(other.no_checks_)),
285 observation_lookup_(std::move(other.observation_lookup_)),
286 parent_lookup_(std::move(other.parent_lookup_)),
287 identified_peptide_lookup_(std::move(other.identified_peptide_lookup_)),
288 identified_compound_lookup_(std::move(other.identified_compound_lookup_)),
289 identified_oligo_lookup_(std::move(other.identified_oligo_lookup_)),
290 observation_match_lookup_(std::move(other.observation_match_lookup_))
409 return processing_softwares_;
415 return processing_steps_;
421 return db_search_params_;
427 return db_search_steps_;
439 return observations_;
451 return parent_groups_;
457 return identified_peptides_;
463 return identified_compounds_;
469 return identified_oligos_;
481 return observation_matches_;
487 return observation_match_groups_;
520 bool require_score =
false)
const;
547 void cleanup(
bool require_observation_match =
true,
548 bool require_identified_sequence =
true,
549 bool require_parent_match =
true,
550 bool require_parent_group =
false,
551 bool require_match_group =
false);
589 template <
class ScoredProcessingResults>
591 bool all_elements =
false,
bool any_score =
false)
const
593 std::map<ScoreTypeRef, Size> score_counts;
597 for (
const auto& element : container)
599 for (
const auto& step : element.steps_and_scores)
601 for (
const auto& pair : step.scores)
603 score_counts[pair.first]++;
610 for (
const auto& element : container)
612 auto score_info = element.getMostRecentScore();
613 if (std::get<2>(score_info))
616 if (!all_elements)
return score_ref;
617 score_counts[score_ref]++;
621 if (score_counts.empty())
return score_types_.end();
622 auto pos = max_element(score_counts.begin(), score_counts.end());
683 steps_and_scores)
const;
705 template <
typename ElementType>
715 element.addProcessingStep(step_ref);
726 template <
typename ElementType>
730 score_type_ref(score_type_ref), value(value)
736 if (element.steps_and_scores.empty())
738 element.addScore(score_type_ref, value);
742 element.addScore(score_type_ref, value,
743 element.steps_and_scores.back().processing_step_opt);
756 template <
typename ElementType>
766 removeFromSetIf_(element.parent_matches,
767 [&](
const ParentMatches::iterator it)
769 return !lookup.count(it->first);
778 template <
typename ContainerType,
typename ElementType>
780 ContainerType& container,
const ElementType& element)
782 checkAppliedProcessingSteps_(element.steps_and_scores);
784 auto result = container.insert(element);
787 container.modify(result.first, [&element](ElementType& existing)
789 existing.merge(element);
794 if (current_step_ref_ != processing_steps_.end())
797 modifier(current_step_ref_);
798 container.modify(result.first, modifier);
805 template <
typename ContainerType,
typename ElementType>
807 ContainerType& container,
const ElementType& element,
810 typename ContainerType::iterator ref =
811 insertIntoMultiIndex_(container, element);
812 lookup.insert(uintptr_t(&(*ref)));
817 template <
typename RefType,
typename ContainerType>
820 for (
auto it = container.begin(); it != container.end(); ++it)
822 if (ref == it)
return true;
828 template <
typename RefType>
832 return lookup.count(ref);
836 template <
typename ContainerType,
typename PredicateType>
839 for (
auto it = container.begin(); it != container.end(); )
843 it = container.erase(it);
853 template <
typename ContainerType>
857 removeFromSetIf_(container, [&lookup](
typename ContainerType::iterator it)
859 return !lookup.count(uintptr_t(&(*it)));
864 template <
typename ContainerType>
869 lookup.reserve(container.size());
870 for (
const auto& element : container)
872 lookup.insert(uintptr_t(&element));
877 template <
typename RefType,
typename ContainerType>
881 if (!no_checks_ && ((lookup.empty() && !isValidReference_(ref, container)) ||
882 (!lookup.empty() && !isValidHashedReference_(ref, lookup))))
884 String msg =
"invalid reference for the given container";
886 OPENMS_PRETTY_FUNCTION, msg);
888 container.modify(ref, [&key, &value](
typename ContainerType::value_type& element)
890 element.setMetaValue(key, value);
Definition: AdductInfo.h:43
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:59
A method or algorithm argument contains illegal values.
Definition: Exception.h:650
Invalid value exception.
Definition: Exception.h:329
Collection of functions for filtering peptide and protein identifications.
Definition: IDFilter.h:79
Representation of spectrum identification results and associated data.
Definition: IdentificationData.h:95
ObservationRef registerObservation(const Observation &obs)
Register an observation (e.g. MS2 spectrum or feature)
IdentificationDataInternal::PeakAnnotations PeakAnnotations
Definition: IdentificationData.h:164
DBSearchParams db_search_params_
Definition: IdentificationData.h:644
static bool isValidReference_(RefType ref, ContainerType &container)
Check whether a reference points to an element in a container.
Definition: IdentificationData.h:818
ParentGroupSets parent_groups_
Definition: IdentificationData.h:651
IdentificationDataInternal::ParentMatches ParentMatches
Definition: IdentificationData.h:146
void calculateCoverages(bool check_molecule_length=false)
Calculate sequence coverages of parent sequences.
ProcessingSoftwares processing_softwares_
Definition: IdentificationData.h:642
IdentificationData(const IdentificationData &other)
Copy constructor.
std::unordered_set< uintptr_t > AddressLookup
Definition: IdentificationData.h:189
ProcessingSteps processing_steps_
Definition: IdentificationData.h:643
const DBSearchParams & getDBSearchParams() const
Return the registered database search parameters (immutable)
Definition: IdentificationData.h:419
IdentificationData(IdentificationData &&other) noexcept
Move constructor.
Definition: IdentificationData.h:265
ObservationMatchGroups observation_match_groups_
Definition: IdentificationData.h:657
ObservationMatches observation_matches_
Definition: IdentificationData.h:656
ScoreTypeRef findScoreType(const String &score_name) const
Look up a score type by name.
IdentificationDataInternal::ScoreTypes ScoreTypes
Definition: IdentificationData.h:126
const ProcessingSoftwares & getProcessingSoftwares() const
Return the registered data processing software (immutable)
Definition: IdentificationData.h:407
AdductRef registerAdduct(const AdductInfo &adduct)
Register an adduct.
AddressLookup observation_match_lookup_
Definition: IdentificationData.h:676
IdentificationDataInternal::IdentifiedOligos IdentifiedOligos
Definition: IdentificationData.h:159
const InputFiles & getInputFiles() const
Return the registered input files (immutable)
Definition: IdentificationData.h:401
MatchGroupRef registerObservationMatchGroup(const ObservationMatchGroup &group)
Register a group of observation matches that belong together.
AddressLookup observation_lookup_
Definition: IdentificationData.h:670
ProcessingStepRef registerProcessingStep(const ProcessingStep &step, SearchParamRef search_ref)
Register a database search step with associated parameters.
AddressLookup identified_oligo_lookup_
Definition: IdentificationData.h:675
IdentifiedOligos identified_oligos_
Definition: IdentificationData.h:654
const ObservationMatchGroups & getObservationMatchGroups() const
Return the registered groups of observation matches (immutable)
Definition: IdentificationData.h:485
const ParentSequences & getParentSequences() const
Return the registered parent sequences (immutable)
Definition: IdentificationData.h:443
bool no_checks_
Suppress validity checks in register... calls?
Definition: IdentificationData.h:667
void setMetaValue(const ObservationRef ref, const String &key, const DataValue &value)
Set a meta value on a stored input item.
const IdentifiedCompounds & getIdentifiedCompounds() const
Return the registered compounds (immutable)
Definition: IdentificationData.h:461
void addScore(ObservationMatchRef match_ref, ScoreTypeRef score_ref, double value)
Add a score to an input match (e.g. PSM)
IdentifiedCompoundRef registerIdentifiedCompound(const IdentifiedCompound &compound)
Register an identified compound (small molecule)
ObservationMatchRef registerObservationMatch(const ObservationMatch &match)
Register an observation match (e.g. peptide-spectrum match)
IdentificationDataInternal::Adducts Adducts
Definition: IdentificationData.h:166
IdentifiedOligoRef registerIdentifiedOligo(const IdentifiedOligo &oligo)
Register an identified RNA oligonucleotide.
bool empty() const
Return whether the data structure is empty (no data)
Adducts adducts_
Definition: IdentificationData.h:655
void setCurrentProcessingStep(ProcessingStepRef step_ref)
Set a data processing step that will apply to all subsequent "register..." calls.
static void removeFromSetIf_(ContainerType &container, PredicateType predicate)
Remove elements from a set (or ordered multi_index_container) if they fulfill a predicate.
Definition: IdentificationData.h:837
IdentificationDataInternal::Observations Observations
Definition: IdentificationData.h:138
void swap(IdentificationData &other)
Swap contents with a second instance.
void setMetaValue(const ObservationMatchRef ref, const String &key, const DataValue &value)
Set a meta value on a stored input match.
IdentificationDataInternal::ParentSequences ParentSequences
Definition: IdentificationData.h:142
ScoreTypeRef registerScoreType(const ScoreType &score)
Register a score type.
IdentificationDataInternal::AppliedProcessingSteps AppliedProcessingSteps
Definition: IdentificationData.h:135
const ProcessingSteps & getProcessingSteps() const
Return the registered data processing steps (immutable)
Definition: IdentificationData.h:413
const ParentGroupSets & getParentGroupSets() const
Return the registered parent sequence groupings (immutable)
Definition: IdentificationData.h:449
IdentificationDataInternal::InputFiles InputFiles
Definition: IdentificationData.h:106
std::pair< ObservationMatchRef, ObservationMatchRef > getMatchesForObservation(ObservationRef obs_ref) const
Get range of matches (cf. equal_range) for a given observation.
ProcessingStepRef registerProcessingStep(const ProcessingStep &step)
Register a data processing step.
IdentificationDataInternal::DBSearchParams DBSearchParams
Definition: IdentificationData.h:121
const ScoreTypes & getScoreTypes() const
Return the registered score types (immutable)
Definition: IdentificationData.h:431
IdentificationData()
Default constructor.
Definition: IdentificationData.h:251
void setMetaValue_(const RefType ref, const String &key, const DataValue &value, ContainerType &container, const AddressLookup &lookup=AddressLookup())
Helper function to add a meta value to an element in a multi-index container.
Definition: IdentificationData.h:878
IdentifiedCompounds identified_compounds_
Definition: IdentificationData.h:653
const IdentifiedOligos & getIdentifiedOligos() const
Return the registered identified oligonucleotides (immutable)
Definition: IdentificationData.h:467
IdentificationDataInternal::IdentifiedPeptides IdentifiedPeptides
Definition: IdentificationData.h:149
DBSearchSteps db_search_steps_
Definition: IdentificationData.h:647
ProcessingStepRef getCurrentProcessingStep()
Return the current processing step (set via setCurrentProcessingStep()).
ProcessingSoftwareRef registerProcessingSoftware(const ProcessingSoftware &software)
Register data processing software.
void checkParentMatches_(const ParentMatches &matches, MoleculeType expected_type) const
Helper function to check if all parent matches are valid.
Observations observations_
Definition: IdentificationData.h:649
IdentificationDataInternal::ProcessingSteps ProcessingSteps
Definition: IdentificationData.h:117
IdentificationDataInternal::DBSearchSteps DBSearchSteps
Definition: IdentificationData.h:123
void setMetaValue(const IdentifiedMolecule &var, const String &key, const DataValue &value)
Set a meta value on a stored identified molecule (variant)
ParentSequenceRef registerParentSequence(const ParentSequence &parent)
Register a parent sequence (e.g. protein or intact RNA)
const DBSearchSteps & getDBSearchSteps() const
Return the registered database search steps (immutable)
Definition: IdentificationData.h:425
ScoreTypes score_types_
Definition: IdentificationData.h:648
InputFiles input_files_
Definition: IdentificationData.h:641
IdentificationDataInternal::AdductOpt AdductOpt
Definition: IdentificationData.h:168
const Adducts & getAdducts() const
Return the registered adducts (immutable)
Definition: IdentificationData.h:473
IdentificationDataInternal::ParentGroupSets ParentGroupSets
Definition: IdentificationData.h:187
void mergeScoredProcessingResults_(ScoredProcessingResult &result, const ScoredProcessingResult &other, const RefTranslator &trans)
Helper function to merge scored processing results while updating references (to processing steps and...
ContainerType::iterator insertIntoMultiIndex_(ContainerType &container, const ElementType &element)
Helper function for adding entries (derived from ScoredProcessingResult) to a boost::multi_index_cont...
Definition: IdentificationData.h:779
InputFileRef registerInputFile(const InputFile &file)
Register an input file.
IdentifiedPeptideRef registerIdentifiedPeptide(const IdentifiedPeptide &peptide)
Register an identified peptide.
AddressLookup identified_peptide_lookup_
Definition: IdentificationData.h:673
ContainerType::iterator insertIntoMultiIndex_(ContainerType &container, const ElementType &element, AddressLookup &lookup)
Variant of insertIntoMultiIndex_() that also updates a look-up table of valid references (addresses)
Definition: IdentificationData.h:806
ProcessingStepRef current_step_ref_
Reference to the current data processing step (see setCurrentProcessingStep())
Definition: IdentificationData.h:660
void clear()
Clear all contents.
const IdentifiedPeptides & getIdentifiedPeptides() const
Return the registered identified peptides (immutable)
Definition: IdentificationData.h:455
void clearCurrentProcessingStep()
Cancel the effect of setCurrentProcessingStep().
std::vector< ObservationMatchRef > getBestMatchPerObservation(ScoreTypeRef score_ref, bool require_score=false) const
Return the best match for each observation, according to a given score type.
void cleanup(bool require_observation_match=true, bool require_identified_sequence=true, bool require_parent_match=true, bool require_parent_group=false, bool require_match_group=false)
Clean up the data structure after filtering parts of it.
IdentificationDataInternal::ProcessingSoftwares ProcessingSoftwares
Definition: IdentificationData.h:112
static void removeFromSetIfNotHashed_(ContainerType &container, const AddressLookup &lookup)
Remove elements from a set (or ordered multi_index_container) if they don't occur in a look-up table.
Definition: IdentificationData.h:854
SearchParamRef registerDBSearchParam(const DBSearchParam ¶m)
Register database search parameters.
void checkScoreTypes_(const std::map< ScoreTypeRef, double > &scores) const
Helper function to check if all score types are valid.
const Observations & getObservations() const
Return the registered observations (immutable)
Definition: IdentificationData.h:437
static bool isValidHashedReference_(RefType ref, const AddressLookup &lookup)
Check validity of a reference based on a look-up table of addresses.
Definition: IdentificationData.h:829
AddressLookup parent_lookup_
Definition: IdentificationData.h:671
void checkAppliedProcessingSteps_(const AppliedProcessingSteps &steps_and_scores) const
Helper function to check if all applied processing steps are valid.
IdentificationDataInternal::ParentGroups ParentGroups
Definition: IdentificationData.h:182
AddressLookup identified_compound_lookup_
Definition: IdentificationData.h:674
RefTranslator merge(const IdentificationData &other)
Merge in data from another instance.
IdentificationDataInternal::ObservationMatchGroups ObservationMatchGroups
Definition: IdentificationData.h:177
const ObservationMatches & getObservationMatches() const
Return the registered observation matches (immutable)
Definition: IdentificationData.h:479
IdentificationDataInternal::IdentifiedCompounds IdentifiedCompounds
Definition: IdentificationData.h:154
IdentifiedPeptides identified_peptides_
Definition: IdentificationData.h:652
void registerParentGroupSet(const ParentGroupSet &groups)
Register a grouping of parent sequences (e.g. protein inference result)
ParentSequences parents_
Definition: IdentificationData.h:650
IdentificationDataInternal::ObservationMatches ObservationMatches
Definition: IdentificationData.h:171
static void updateAddressLookup_(const ContainerType &container, AddressLookup &lookup)
Recreate the address look-up table for a container.
Definition: IdentificationData.h:865
ScoreTypeRef pickScoreType(const ScoredProcessingResults &container, bool all_elements=false, bool any_score=false) const
Definition: IdentificationData.h:590
A more convenient string class.
Definition: String.h:60
std::map< ProcessingStepRef, SearchParamRef > DBSearchSteps
Definition: DBSearchParam.h:128
IteratorWrapper< ObservationMatchGroups::iterator > MatchGroupRef
Definition: ObservationMatchGroup.h:100
IteratorWrapper< IdentifiedCompounds::iterator > IdentifiedCompoundRef
Definition: IdentifiedCompound.h:81
IdentifiedSequence< NASequence > IdentifiedOligo
Definition: IdentifiedSequence.h:107
IteratorWrapper< IdentifiedOligos::iterator > IdentifiedOligoRef
Definition: IdentifiedSequence.h:125
boost::multi_index_container< Observation, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::composite_key< Observation, boost::multi_index::member< Observation, InputFileRef, &Observation::input_file >, boost::multi_index::member< Observation, String, &Observation::data_id > > > > > Observations
Definition: Observation.h:95
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
std::set< ScoreType > ScoreTypes
Definition: ScoreType.h:91
IteratorWrapper< IdentifiedPeptides::iterator > IdentifiedPeptideRef
Definition: IdentifiedSequence.h:116
IteratorWrapper< ScoreTypes::iterator > ScoreTypeRef
Definition: ScoreType.h:92
IteratorWrapper< Adducts::iterator > AdductRef
Definition: ObservationMatch.h:69
std::set< DBSearchParam > DBSearchParams
Definition: DBSearchParam.h:126
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
boost::multi_index_container< IdentifiedPeptide, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< IdentifiedPeptide, AASequence, &IdentifiedPeptide::sequence > > > > IdentifiedPeptides
Definition: IdentifiedSequence.h:115
IteratorWrapper< ProcessingSoftwares::iterator > ProcessingSoftwareRef
Definition: ProcessingSoftware.h:69
IteratorWrapper< DBSearchParams::iterator > SearchParamRef
Definition: DBSearchParam.h:127
std::vector< PeptideHit::PeakAnnotation > PeakAnnotations
Definition: ObservationMatch.h:52
MoleculeType
Definition: MetaData.h:66
@ COMPOUND
Definition: MetaData.h:68
@ PROTEIN
Definition: MetaData.h:67
@ RNA
Definition: MetaData.h:69
boost::multi_index_container< ParentSequence, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< ParentSequence, String, &ParentSequence::accession > > > > ParentSequences
Definition: ParentSequence.h:120
std::vector< ParentGroupSet > ParentGroupSets
Definition: ParentGroup.h:82
boost::multi_index_container< ParentGroup, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< ParentGroup, std::set< ParentSequenceRef >, &ParentGroup::parent_refs > > > > ParentGroups
Definition: ParentGroup.h:64
boost::multi_index_container< IdentifiedOligo, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< IdentifiedOligo, NASequence, &IdentifiedOligo::sequence > > > > IdentifiedOligos
Definition: IdentifiedSequence.h:124
boost::multi_index_container< IdentifiedCompound, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< IdentifiedCompound, String, &IdentifiedCompound::identifier > > > > IdentifiedCompounds
Definition: IdentifiedCompound.h:80
std::map< ParentSequenceRef, std::set< ParentMatch > > ParentMatches
mapping: parent sequence -> match information
Definition: ParentMatch.h:101
std::set< ProcessingStep > ProcessingSteps
Definition: ProcessingStep.h:88
std::set< ProcessingSoftware > ProcessingSoftwares
Definition: ProcessingSoftware.h:68
IteratorWrapper< ProcessingSteps::iterator > ProcessingStepRef
Definition: ProcessingStep.h:89
boost::multi_index_container< ObservationMatchGroup, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< ObservationMatchGroup, std::set< ObservationMatchRef >, &ObservationMatchGroup::observation_match_refs > > > > ObservationMatchGroups
Definition: ObservationMatchGroup.h:99
IdentifiedSequence< AASequence > IdentifiedPeptide
Definition: IdentifiedSequence.h:106
IteratorWrapper< InputFiles::iterator > InputFileRef
Definition: include/OpenMS/METADATA/ID/InputFile.h:95
MassType
Definition: MetaData.h:74
IteratorWrapper< ParentSequences::iterator > ParentSequenceRef
Definition: ParentSequence.h:121
IteratorWrapper< ParentGroups::iterator > ParentGroupRef
Definition: ParentGroup.h:65
boost::multi_index_container< InputFile, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< InputFile, String, &InputFile::name > > > > InputFiles
Definition: include/OpenMS/METADATA/ID/InputFile.h:94
std::set< AdductInfo, AdductCompare > Adducts
Definition: ObservationMatch.h:68
: Group of ambiguously identified parent sequences (e.g. protein group)
Definition: ParentGroup.h:51
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: AppliedProcessingStep.h:56
Parameters specific to a database search step.
Definition: DBSearchParam.h:48
Definition: IdentifiedCompound.h:49
Variant type holding Peptide/Compound/Oligo references and convenience functions.
Definition: IdentifiedMolecule.h:55
IdentifiedOligoRef getIdentifiedOligoRef() const
IdentifiedPeptideRef getIdentifiedPeptideRef() const
MoleculeType getMoleculeType() const
IdentifiedCompoundRef getIdentifiedCompoundRef() const
Representation of an identified sequence (peptide or oligonucleotide)
Definition: IdentifiedSequence.h:53
: Group of related (co-identified) input matches
Definition: ObservationMatchGroup.h:51
Representation of a search hit (e.g. peptide-spectrum match).
Definition: ObservationMatch.h:74
Representation of an observation, e.g. a spectrum or feature, in an input data file.
Definition: Observation.h:54
Set of groups of ambiguously identified parent sequences (e.g. results of running a protein inference...
Definition: ParentGroup.h:70
Meta data for the association between an identified molecule (e.g. peptide) and a parent sequence (e....
Definition: ParentMatch.h:46
Representation of a parent sequence that is identified only indirectly (e.g. a protein).
Definition: ParentSequence.h:50
Information about software used for data processing.
Definition: ProcessingSoftware.h:49
Data processing step that is applied to the data (e.g. database search, PEP calculation,...
Definition: ProcessingStep.h:48
Information about a score type.
Definition: ScoreType.h:46
Base class for ID data with scores and processing steps (and meta info)
Definition: ScoredProcessingResult.h:45
Helper functor for adding processing steps to elements in a @t boost::multi_index_container structure...
Definition: IdentificationData.h:707
void operator()(ElementType &element)
Definition: IdentificationData.h:713
ModifyMultiIndexAddProcessingStep(ProcessingStepRef step_ref)
Definition: IdentificationData.h:708
ProcessingStepRef step_ref
Definition: IdentificationData.h:718
Helper functor for adding scores to elements in a boost::multi_index_container structure.
Definition: IdentificationData.h:728
ModifyMultiIndexAddScore(ScoreTypeRef score_type_ref, double value)
Definition: IdentificationData.h:729
void operator()(ElementType &element)
Definition: IdentificationData.h:734
ScoreTypeRef score_type_ref
Definition: IdentificationData.h:747
double value
Definition: IdentificationData.h:748
Helper functor for removing invalid parent matches from elements in a boost::multi_index_container st...
Definition: IdentificationData.h:758
const AddressLookup & lookup
Definition: IdentificationData.h:773
ModifyMultiIndexRemoveParentMatches(const AddressLookup &lookup)
Definition: IdentificationData.h:759
void operator()(ElementType &element)
Definition: IdentificationData.h:764
structure that maps references of corresponding objects after copying
Definition: IdentificationData.h:192
std::map< ObservationMatchRef, ObservationMatchRef > observation_match_refs
Definition: IdentificationData.h:204
std::map< ProcessingSoftwareRef, ProcessingSoftwareRef > processing_software_refs
Definition: IdentificationData.h:195
std::map< IdentifiedPeptideRef, IdentifiedPeptideRef > identified_peptide_refs
Definition: IdentificationData.h:200
IdentifiedMolecule translate(IdentifiedMolecule old) const
Definition: IdentificationData.h:208
std::map< ParentSequenceRef, ParentSequenceRef > parent_sequence_refs
Definition: IdentificationData.h:199
ObservationMatchRef translate(ObservationMatchRef old) const
Definition: IdentificationData.h:240
std::map< SearchParamRef, SearchParamRef > search_param_refs
Definition: IdentificationData.h:196
std::map< ScoreTypeRef, ScoreTypeRef > score_type_refs
Definition: IdentificationData.h:194
std::map< IdentifiedCompoundRef, IdentifiedCompoundRef > identified_compound_refs
Definition: IdentificationData.h:202
std::map< ProcessingStepRef, ProcessingStepRef > processing_step_refs
Definition: IdentificationData.h:197
std::map< AdductRef, AdductRef > adduct_refs
Definition: IdentificationData.h:203
std::map< ObservationRef, ObservationRef > observation_refs
Definition: IdentificationData.h:198
std::map< IdentifiedOligoRef, IdentifiedOligoRef > identified_oligo_refs
Definition: IdentificationData.h:201
std::map< InputFileRef, InputFileRef > input_file_refs
Definition: IdentificationData.h:193