![]() |
OpenMS
|
Shared featurization for PeptDeep RT, CCS, and MS2 ONNX predictors. More...
#include <OpenMS/ML/PEPTDEEP/PeptDeepInput.h>
Static Public Member Functions | |
| static PeptDeepInputBatch | buildPeptideBatch (const std::vector< OpenMS::AASequence > &parsed_peptides, const PeptDeepInputConfig &config=PeptDeepInputConfig()) |
| Builds a baseline tensor batch containing amino acid indices and modification features. | |
| static PeptDeepInputBatch | buildPrecursorBatch (const std::vector< OpenMS::AASequence > &parsed_peptides, const std::vector< float > &charges, const PeptDeepInputConfig &config=PeptDeepInputConfig()) |
| Builds a tensor batch incorporating precursor charge states (primarily for CCS). | |
| static PeptDeepInputBatch | buildProductMetaBatch (const std::vector< OpenMS::AASequence > &parsed_peptides, const std::vector< float > &charges, const std::vector< float > &nces, const std::vector< int64_t > &instrument_indices, const PeptDeepInputConfig &config=PeptDeepInputConfig()) |
| Builds a full tensor batch including Normalized Collision Energies and instrument details (for MS2). | |
Shared featurization for PeptDeep RT, CCS, and MS2 ONNX predictors.
Dynamically handles both unmodified and modified peptides, parsing modifications natively into a 109-element elemental feature tensor using empirical formulas.
|
static |
Builds a baseline tensor batch containing amino acid indices and modification features.
| [in] | parsed_peptides | A vector of pre-parsed AASequence objects. |
| [in] | config | Configuration dictating padding and terminal token policies. |
| Exception::IllegalArgument | If the batch is empty, any peptide sequence is empty, or an encoded peptide exceeds fixed sequence length. |
|
static |
Builds a tensor batch incorporating precursor charge states (primarily for CCS).
| [in] | parsed_peptides | A vector of pre-parsed AASequence objects. |
| [in] | charges | A vector of precursor charges corresponding to the peptides. |
| [in] | config | Configuration dictating padding and terminal token policies. |
| Exception::IllegalArgument | If the size of the vectors do not match, the batch is empty, any peptide sequence is empty, or an encoded peptide exceeds fixed sequence length. |
|
static |
Builds a full tensor batch including Normalized Collision Energies and instrument details (for MS2).
| [in] | parsed_peptides | A vector of pre-parsed AASequence objects. |
| [in] | charges | A vector of precursor charges corresponding to the peptides. |
| [in] | nces | A vector of Normalized Collision Energies (NCE). |
| [in] | instrument_indices | A vector of instrument identifier indices. |
| [in] | config | Configuration dictating padding and terminal token policies. |
| Exception::IllegalArgument | If the size of the vectors do not match, the batch is empty, any peptide sequence is empty, or an encoded peptide exceeds fixed sequence length. |