96 position(), AAname() {}
99 position(p), AAname(name) {}
120 p_cleave(0), p_miss(0) {}
122 p_cleave(p_c), p_miss(p_m) {}
ConstIterator for AASequence.
Definition: AASequence.h:122
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
Base class for digestion enzymes.
Definition: DigestionEnzyme.h:53
Class for the Log L model of enzymatic digestion of proteins.
Definition: EnzymaticDigestionLogModel.h:58
void setLogThreshold(double threshold)
double getLogThreshold() const
Returns the threshold which needs to be exceeded to call a cleavage (only for the trained cleavage mo...
EnzymaticDigestionLogModel()
Default constructor.
void digest(const AASequence &protein, std::vector< AASequence > &output) const
Performs the enzymatic digestion of a protein.
EnzymaticDigestionLogModel(const EnzymaticDigestionLogModel &rhs)
Copy constructor.
void nextCleavageSite_(const AASequence &sequence, AASequence::ConstIterator &p) const
Moves the iterator p behind (i.e., C-term) the next cleavage site of the sequence.
bool isCleavageSite_(const AASequence &sequence, const AASequence::ConstIterator &p) const
Tests if position pointed to by p (N-term side) is a valid cleavage site.
double log_model_threshold_
Threshold to decide if position is cleaved or missed (only for the model)
Definition: EnzymaticDigestionLogModel.h:135
String getEnzymeName() const
Returns the enzyme for the digestion.
void setEnzyme(const String name)
Sets the enzyme for the digestion.
const DigestionEnzyme * enzyme_
Used enzyme.
Definition: EnzymaticDigestionLogModel.h:132
EnzymaticDigestionLogModel & operator=(const EnzymaticDigestionLogModel &rhs)
Assignment operator.
Map< BindingSite_, CleavageModel_ > model_data_
Holds the cleavage model.
Definition: EnzymaticDigestionLogModel.h:137
Size peptideCount(const AASequence &protein)
Returns the number of peptides a digestion of protein would yield under the current enzyme and missed...
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:52
A more convenient string class.
Definition: String.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: EnzymaticDigestionLogModel.h:91
BindingSite_(const Size &p, const String &name)
Definition: EnzymaticDigestionLogModel.h:98
bool operator==(const BindingSite_ &rhs) const
Definition: EnzymaticDigestionLogModel.h:106
BindingSite_()
Definition: EnzymaticDigestionLogModel.h:95
String AAname
Definition: EnzymaticDigestionLogModel.h:93
bool operator<(const BindingSite_ &rhs) const
Definition: EnzymaticDigestionLogModel.h:101
Size position
Definition: EnzymaticDigestionLogModel.h:92
Definition: EnzymaticDigestionLogModel.h:115
double p_cleave
Definition: EnzymaticDigestionLogModel.h:116
CleavageModel_()
Definition: EnzymaticDigestionLogModel.h:119
double p_miss
Definition: EnzymaticDigestionLogModel.h:117
CleavageModel_(const double &p_c, const double &p_m)
Definition: EnzymaticDigestionLogModel.h:121