OpenMS
Loading...
Searching...
No Matches
PeptDeepLibraryPredictor.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Justin Sing $
6// $Authors: Justin Sing $
7// --------------------------------------------------------------------------
8
9#pragma once
10
17#include <OpenMS/config.h>
18
19#include <memory>
20#include <string>
21#include <vector>
22
23namespace OpenMS
24{
32 struct OPENMS_DLLAPI PeptDeepLibraryPrecursor
33 {
35 std::string id;
36 Int charge = 0;
37 float nce = 30.0f;
38 Int64 instrument_index = 0;
39 std::vector<std::string> protein_refs;
40 };
41
60 class OPENMS_DLLAPI PeptDeepLibraryPredictor
61 {
62 public:
63 struct OPENMS_DLLAPI Config
64 {
65 std::string rt_model_path;
66 std::string ccs_model_path;
67 std::string ms2_model_path;
68 int intra_op_threads = 4;
69 Size batch_size = 500;
70 bool predict_ccs = true;
71 };
72
75
77 explicit PeptDeepLibraryPredictor(const Config& config);
78
89 OpenSwath::LightTargetedExperiment predict(const std::vector<PeptDeepLibraryPrecursor>& precursors);
90
91 private:
93 std::unique_ptr<PeptDeepCCSInference> ccs_predictor_;
95 };
96} // namespace OpenMS
Definition AASequence.h:96
Convert peptide precursors into an OpenSWATH assay batch using native PeptDeep ONNX models.
Definition PeptDeepLibraryPredictor.h:61
PeptDeepRTInference rt_predictor_
Definition PeptDeepLibraryPredictor.h:92
std::string ms2_model_path
Definition PeptDeepLibraryPredictor.h:67
std::string ccs_model_path
Definition PeptDeepLibraryPredictor.h:66
OpenSwath::LightTargetedExperiment predict(const std::vector< PeptDeepLibraryPrecursor > &precursors)
Predict one batch of precursor assays.
PeptDeepMS2Inference ms2_predictor_
Definition PeptDeepLibraryPredictor.h:94
PeptDeepLibraryPredictor(const Config &config)
Construct with explicit inference/model configuration.
std::unique_ptr< PeptDeepCCSInference > ccs_predictor_
Definition PeptDeepLibraryPredictor.h:93
std::string rt_model_path
Definition PeptDeepLibraryPredictor.h:65
PeptDeepLibraryPredictor()
Construct with the installed OpenMS PeptDeep models and default inference settings.
Definition PeptDeepLibraryPredictor.h:64
Inference engine for PeptDeep MS2 Fragment Intensity prediction.
Definition PeptDeepMS2Inference.h:23
Predicts peptide retention times with the PeptDeep RT model (peptdeep_rt_dynamic.onnx)
Definition PeptDeepRTInference.h:26
int64_t Int64
Signed integer type (64bit)
Definition Types.h:40
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< std::string > protein_refs
Definition PeptDeepLibraryPredictor.h:39
AASequence peptide
Definition PeptDeepLibraryPredictor.h:34
std::string id
Definition PeptDeepLibraryPredictor.h:35
Input precursor for native PeptDeep spectral-library prediction.
Definition PeptDeepLibraryPredictor.h:33
Definition TransitionExperiment.h:369