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{
18 class OPENMS_DLLAPI PeptDeepRTInference
19 {
20 public:
27 explicit PeptDeepRTInference(const std::string& model_path, int intra_op_threads = 4, size_t batch_size = 500);
28
33
40 std::vector<float> predictRT(const std::vector<std::string>& peptides);
41
42 private:
45 };
46} // namespace OpenMS
Definition ONNXPredictorBase.h:28
Definition PeptDeepRTInference.h:19
size_t batch_size_
Definition PeptDeepRTInference.h:44
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:43
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