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

Method updateIDReferences

src/openms/source/KERNEL/BaseFeature.cpp:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245 }
246
247 void BaseFeature::updateIDReferences(const IdentificationData::RefTranslator& trans)
248 {
249 if (primary_id_ != nullopt) // is feature annotated with a "primary ID"?
250 {
251 primary_id_ = trans.translate(*primary_id_);
252 }
253 set<IdentificationData::ObservationMatchRef> matches; // refs. to e.g. PSMs
254 matches.swap(id_matches_);
255 for (const auto& item : matches)
256 {
257 id_matches_.insert(trans.translate(item));
258 }
259 }
260
261} // namespace OpenMS

Callers 2

ConsensusMapMethod · 0.80
ConsensusMap.cppFile · 0.80

Calls 3

translateMethod · 0.80
swapMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected