MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / registerParentGroupSet

Method registerParentGroupSet

src/openms/source/METADATA/ID/IdentificationData.cpp:441–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439
440
441 void IdentificationData::registerParentGroupSet(const ParentGroupSet& groups)
442 {
443 if (!no_checks_)
444 {
445 checkAppliedProcessingSteps_(groups.steps_and_scores);
446
447 for (const auto& group : groups.groups)
448 {
449 checkScoreTypes_(group.scores); // are the score types registered?
450
451 for (const auto& ref : group.parent_refs)
452 {
453 if (!isValidHashedReference_(ref, parent_lookup_))
454 {
455 String msg = "invalid reference to a parent sequence - register that first";
456 throw Exception::IllegalArgument(__FILE__, __LINE__,
457 OPENMS_PRETTY_FUNCTION, msg);
458 }
459 }
460 }
461 }
462
463 parent_groups_.push_back(groups);
464
465 // add the current processing step?
466 if ((current_step_ref_ != processing_steps_.end()) &&
467 (groups.steps_and_scores.get<1>().find(current_step_ref_) ==
468 groups.steps_and_scores.get<1>().end()))
469 {
470 parent_groups_.back().steps_and_scores.push_back(
471 IdentificationDataInternal::AppliedProcessingStep(current_step_ref_));
472 }
473 }
474
475
476 IdentificationData::AdductRef

Callers 3

loadParentGroupSets_Method · 0.80
importIDsMethod · 0.80

Calls 6

isValidHashedReference_Function · 0.85
backMethod · 0.80
push_backMethod · 0.45
endMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected