OpenMS
Loading...
Searching...
No Matches
PeptDeepMS2Inference.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 <string>
12#include <vector>
13#include <cstdint>
14#include <OpenMS/config.h>
16
17namespace OpenMS {
18
23class OPENMS_DLLAPI PeptDeepMS2Inference {
24public:
30 explicit PeptDeepMS2Inference(const std::string& model_path, int intra_op_threads = 4, size_t batch_size = 500);
31
34
43 std::vector<std::vector<float>> predictMS2(
44 const std::vector<std::string>& peptides,
45 const std::vector<float>& charges,
46 const std::vector<float>& nces,
47 const std::vector<int64_t>& instrument_indices);
48
49private:
52};
53
54} // namespace OpenMS
Definition ONNXPredictorBase.h:28
Inference engine for PeptDeep MS2 Fragment Intensity prediction.
Definition PeptDeepMS2Inference.h:23
size_t batch_size_
Definition PeptDeepMS2Inference.h:51
PeptDeepMS2Inference(const std::string &model_path, int intra_op_threads=4, size_t batch_size=500)
Constructor initializes the ONNX session with the specified model graph.
~PeptDeepMS2Inference()
Destructor.
std::vector< std::vector< float > > predictMS2(const std::vector< std::string > &peptides, const std::vector< float > &charges, const std::vector< float > &nces, const std::vector< int64_t > &instrument_indices)
Predicts MS2 fragment intensities for a batch of peptide sequences.
ONNXPredictorBase model_
Definition PeptDeepMS2Inference.h:50
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19