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

Method handleQueryParentMatch_

src/openms/source/FORMAT/OMSFileLoad.cpp:569–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567
568
569 void OMSFileLoad::handleQueryParentMatch_(SQLite::Statement& query,
570 IdentificationData::ParentMatches& parent_matches,
571 Key molecule_id)
572 {
573 query.bind(":id", molecule_id);
574 while (query.executeStep())
575 {
576 ID::ParentSequenceRef ref = parent_sequence_refs_[query.getColumn("parent_id").getInt64()];
577 ID::ParentMatch match;
578 auto start_pos = query.getColumn("start_pos");
579 auto end_pos = query.getColumn("end_pos");
580 if (!start_pos.isNull()) match.start_pos = start_pos.getInt();
581 if (!end_pos.isNull()) match.end_pos = end_pos.getInt();
582 match.left_neighbor = query.getColumn("left_neighbor").getString();
583 match.right_neighbor = query.getColumn("right_neighbor").getString();
584 parent_matches[ref].insert(match);
585 }
586 query.reset(); // get ready for new executeStep()
587 }
588
589
590 void OMSFileLoad::loadIdentifiedSequences_(IdentificationData& id_data)

Callers

nothing calls this directly

Calls 4

getStringMethod · 0.80
isNullMethod · 0.45
insertMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected