| 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) |