| 661 | |
| 662 | |
| 663 | void OMSFileLoad::handleQueryPeakAnnotation_(SQLite::Statement& query, |
| 664 | ID::ObservationMatch& match, |
| 665 | Key parent_id) |
| 666 | { |
| 667 | query.bind(":id", parent_id); |
| 668 | while (query.executeStep()) |
| 669 | { |
| 670 | auto processing_step_id = query.getColumn("processing_step_id"); |
| 671 | std::optional<ID::ProcessingStepRef> processing_step_opt = std::nullopt; |
| 672 | if (!processing_step_id.isNull()) |
| 673 | { |
| 674 | processing_step_opt = |
| 675 | processing_step_refs_[processing_step_id.getInt64()]; |
| 676 | } |
| 677 | PeptideHit::PeakAnnotation ann; |
| 678 | ann.annotation = query.getColumn("peak_annotation").getString(); |
| 679 | ann.charge = query.getColumn("peak_charge").getInt(); |
| 680 | ann.mz = query.getColumn("peak_mz").getDouble(); |
| 681 | ann.intensity = query.getColumn("peak_intensity").getDouble(); |
| 682 | match.peak_annotations[processing_step_opt].push_back(ann); |
| 683 | } |
| 684 | query.reset(); // get ready for new executeStep() |
| 685 | } |
| 686 | |
| 687 | |
| 688 | void OMSFileLoad::loadAdducts_(IdentificationData& id_data) |