![]() |
OpenMS
|
Inference engine for PeptDeep collisional cross section prediction. More...
#include <OpenMS/ML/PEPTDEEP/PeptDeepCCSInference.h>
Public Member Functions | |
| PeptDeepCCSInference (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. | |
| ~PeptDeepCCSInference () | |
| Destructor. | |
| std::vector< float > | predictCCS (const std::vector< std::string > &peptides, const std::vector< float > &charges) |
| Predicts CCS values for a batch of unmodified peptide sequences. | |
Private Attributes | |
| ONNXPredictorBase | model_ |
| size_t | batch_size_ |
Inference engine for PeptDeep collisional cross section prediction.
|
explicit |
Constructor initializes the ONNX session with the specified model graph.
| model_path | Absolute or relative path to the PeptDeep CCS ONNX model file. |
| intra_op_threads | Number of ONNX execution threads (default 4). |
| batch_size | Maximum number of peptides to process in a single ONNX run (default 500). |
| ~PeptDeepCCSInference | ( | ) |
Destructor.
| std::vector< float > predictCCS | ( | const std::vector< std::string > & | peptides, |
| const std::vector< float > & | charges | ||
| ) |
Predicts CCS values for a batch of unmodified peptide sequences.
| peptides | A vector of raw uppercase peptide strings. |
| charges | A vector of precursor charge states. Must match peptides size. |
| Exception::IllegalArgument | if peptides is empty, charges.size() != peptides.size(), or a sequence is invalid/modified. |
|
private |
|
private |