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

Method addScore

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

Source from the content-addressed store, hash-verified

565
566
567 void IdentificationData::addScore(ObservationMatchRef match_ref,
568 ScoreTypeRef score_ref, double value)
569 {
570 if (!no_checks_ && !isValidReference_(score_ref, score_types_))
571 {
572 String msg = "invalid reference to a score type - register that first";
573 throw Exception::IllegalArgument(__FILE__, __LINE__,
574 OPENMS_PRETTY_FUNCTION, msg);
575 }
576
577 ModifyMultiIndexAddScore<ObservationMatch> modifier(score_ref, value);
578 observation_matches_.modify(match_ref, modifier);
579 }
580
581
582 void IdentificationData::setCurrentProcessingStep(ProcessingStepRef step_ref)

Callers 1

operator()Method · 0.45

Calls 1

isValidReference_Function · 0.85

Tested by

no test coverage detected