14#include <OpenMS/config.h>
30 explicit PeptDeepMS2Inference(
const std::string& model_path,
int intra_op_threads = 4,
size_t batch_size = 500);
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);
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