35 #ifndef OPENMS_CHEMISTRY_ENZYMATICDIGESTION_H 36 #define OPENMS_CHEMISTRY_ENZYMATICDIGESTION_H 73 static const std::string NamesOfSpecificity[SIZE_OF_SPECIFICITY];
88 Size getMissedCleavages()
const;
91 void setMissedCleavages(
Size missed_cleavages);
94 String getEnzymeName()
const;
97 void setEnzyme(
const String name);
110 void digest(
const AASequence& protein, std::vector<AASequence>& output)
const;
113 void digestUnmodifiedString(
const StringView sequence, std::vector<StringView>& output,
Size min_length = 1,
Size max_length = 0)
const;
119 bool isValidProduct(
const AASequence& protein,
Size pep_pos,
Size pep_length,
bool methionine_cleavage =
false,
bool ignore_missed_cleavages =
true)
const;
123 bool isValidProduct(
const String& protein,
Size pep_pos,
Size pep_length,
bool methionine_cleavage =
false,
bool ignore_missed_cleavages =
true)
const;
127 std::vector<Size> tokenize_(
const String& protein)
const;
135 inline Size countMissedCleavages_(
const std::vector<Size>& cleavage_positions,
Size pep_start,
Size pep_end)
const;
149 #endif // OPENMS_CHEMISTRY_ENZYMATICDIGESTION_H
A more convenient string class.
Definition: String.h:57
Definition: EnzymaticDigestion.h:69
Class for the enzymatic digestion of proteins.
Definition: EnzymaticDigestion.h:61
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Specificity
when querying for valid digestion products, this determines if the specificity of the two peptide end...
Definition: EnzymaticDigestion.h:65
Definition: EnzymaticDigestion.h:67
Definition: EnzymaticDigestion.h:68
Enzyme enzyme_
Used enzyme.
Definition: EnzymaticDigestion.h:141
Specificity specificity_
specificity of enzyme
Definition: EnzymaticDigestion.h:144
Size missed_cleavages_
Number of missed cleavages.
Definition: EnzymaticDigestion.h:138
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
static const std::string UnspecificCleavage
Name for unspecific cleavage.
Definition: EnzymaticDigestion.h:76
Representation of an enzyme.
Definition: Enzyme.h:56
StringView provides a non-owning view on an existing string.
Definition: String.h:480