OpenMS
Loading...
Searching...
No Matches
PeptDeepUtils.h File Reference
#include <OpenMS/CONCEPT/Types.h>
#include <OpenMS/CONCEPT/Exception.h>
#include <string>
#include <vector>
Include dependency graph for PeptDeepUtils.h:

Go to the source code of this file.

Namespaces

namespace  OpenMS
 Main OpenMS namespace.
 
namespace  OpenMS::ML
 

Functions

OpenMS::Int64 getAAIndex (char aa)
 Maps amino acid characters to 1-based token indices for PeptDeep models.
 
void validatePeptide (const std::string &peptide)
 Validates a peptide sequence for PeptDeep inference. Throws explicit OpenMS exceptions if the sequence is invalid, too long, or contains modifications.
 
std::vector< float > generateUnmodifiedModXTensor (size_t batch_size, size_t sequence_length)
 Generates an empty mod_x tensor for unmodified peptides. Resolves to a flat vector of zeros of size (batch_size * sequence_length * 109).
 

Variables

constexpr int64_t PEPTDEEP_MOD_ELEMENTS = 109
 
const std::string PEPTDEEP_VALID_AAS = "ACDEFGHIKLMNPQRSTVWY"