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

Method getDatabaseKey_

src/openms/source/FORMAT/OMSFileStore.cpp:993–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991
992
993 OMSFileStore::Key OMSFileStore::getDatabaseKey_(const ID::IdentifiedMolecule& molecule_var)
994 {
995 switch (molecule_var.getMoleculeType())
996 {
997 case ID::MoleculeType::PROTEIN:
998 return identified_peptide_keys_[&(*molecule_var.getIdentifiedPeptideRef())];
999 case ID::MoleculeType::COMPOUND:
1000 return identified_compound_keys_[&(*molecule_var.getIdentifiedCompoundRef())];
1001 case ID::MoleculeType::RNA:
1002 return identified_oligo_keys_[&(*molecule_var.getIdentifiedOligoRef())];
1003 default:
1004 throw Exception::NotImplemented(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
1005 }
1006 }
1007
1008
1009 void OMSFileStore::storeObservationMatches_(const IdentificationData& id_data)

Callers

nothing calls this directly

Calls 4

getMoleculeTypeMethod · 0.80
getIdentifiedOligoRefMethod · 0.80

Tested by

no test coverage detected