OpenMS
Loading...
Searching...
No Matches
PeptDeepRTInference.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Satyam Yadav $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
13#include <string>
14#include <vector>
15
16namespace OpenMS
17{
25 class OPENMS_DLLAPI PeptDeepRTInference
26 {
27 public:
34 explicit PeptDeepRTInference(const std::string& model_path, int intra_op_threads = 4, size_t batch_size = 500);
35
40
47 std::vector<float> predictRT(const std::vector<std::string>& peptides);
48
49 private:
52 };
53} // namespace OpenMS
Owns the ONNX Runtime session of one model file, for the predictors built on it.
Definition ONNXPredictorBase.h:36
Predicts peptide retention times with the PeptDeep RT model (peptdeep_rt_dynamic.onnx)
Definition PeptDeepRTInference.h:26
size_t batch_size_
Definition PeptDeepRTInference.h:51
PeptDeepRTInference(const std::string &model_path, int intra_op_threads=4, size_t batch_size=500)
Constructor initializes the ONNX environment and loads the model.
~PeptDeepRTInference()
Destructor.
ONNXPredictorBase model_
Definition PeptDeepRTInference.h:50
std::vector< float > predictRT(const std::vector< std::string > &peptides)
Predicts Retention Times for a list of peptide sequences.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19