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

Method registerAdduct

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

Source from the content-addressed store, hash-verified

474
475
476 IdentificationData::AdductRef
477 IdentificationData::registerAdduct(const AdductInfo& adduct)
478 {
479 // @TODO: require non-empty name? (auto-generate from formula?)
480 auto result = adducts_.insert(adduct);
481 if (!result.second && (result.first->getName() != adduct.getName()))
482 {
483 OPENMS_LOG_WARN << "Warning: adduct '" << adduct.getName()
484 << "' is already known under the name '"
485 << result.first->getName() << "'";
486 }
487 return result.first;
488 }
489
490
491 IdentificationData::ObservationMatchRef

Callers 5

main_Method · 0.80
addMatchesToID_Method · 0.80
loadAdducts_Method · 0.80
START_SECTIONFunction · 0.80

Calls 2

insertMethod · 0.45
getNameMethod · 0.45

Tested by 1

START_SECTIONFunction · 0.64