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

Method loadAdducts_

src/openms/source/FORMAT/OMSFileLoad.cpp:688–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686
687
688 void OMSFileLoad::loadAdducts_(IdentificationData& id_data)
689 {
690 if (!db_->tableExists("AdductInfo")) return;
691
692 SQLite::Statement query(*db_, "SELECT * FROM AdductInfo");
693 while (query.executeStep())
694 {
695 EmpiricalFormula formula(query.getColumn("formula").getString());
696 AdductInfo adduct(query.getColumn("name").getString(), formula,
697 query.getColumn("charge").getInt(),
698 query.getColumn("mol_multiplier").getInt());
699 ID::AdductRef ref = id_data.registerAdduct(adduct);
700 adduct_refs_[query.getColumn("id").getInt64()] = ref;
701 }
702 }
703
704
705 void OMSFileLoad::loadObservationMatches_(IdentificationData& id_data)

Callers

nothing calls this directly

Calls 3

tableExistsMethod · 0.80
getStringMethod · 0.80
registerAdductMethod · 0.80

Tested by

no test coverage detected