|
OpenMS
2.5.0
|
Go to the documentation of this file.
40 #include <boost/regex.hpp>
74 static const std::string NamesOfSpecificity[SIZE_OF_SPECIFICITY];
89 Size getMissedCleavages()
const;
92 void setMissedCleavages(
Size missed_cleavages);
95 String getEnzymeName()
const;
121 Size digestUnmodified(
const StringView& sequence, std::vector<StringView>& output,
Size min_length = 1,
Size max_length = 0)
const;
136 Size digestUnmodified(
const StringView& sequence, std::vector<std::pair<Size,Size>>& output,
Size min_length = 1,
Size max_length = 0)
const;
149 bool isValidProduct(
const String& sequence,
int pos,
int length,
bool ignore_missed_cleavages =
true)
const;
158 bool filterByMissedCleavages(
const String& sequence, std::function<
bool(
const Int)> filter)
const;
168 bool isValidProduct_(
const String& sequence,
171 bool ignore_missed_cleavages,
172 bool allow_nterm_protein_cleavage,
173 bool allow_random_asp_pro_cleavage)
const;
189 std::vector<int> tokenize_(
const String& sequence,
int start = 0,
int end = -1)
const;
199 Size digestAfterTokenize_(
const std::vector<int>& fragment_positions,
const StringView& sequence, std::vector<StringView>& output,
Size min_length = 0,
Size max_length = -1)
const;
200 Size digestAfterTokenize_(
const std::vector<int>& fragment_positions,
const StringView& sequence, std::vector<std::pair<Size,Size>>& output,
Size min_length = 0,
Size max_length = -1)
const;
210 Size countMissedCleavages_(
const std::vector<int>& cleavage_positions,
Size seq_start,
Size seq_end)
const;
Specificity
when querying for valid digestion products, this determines if the specificity of the two peptide end...
Definition: EnzymaticDigestion.h:66
Specificity specificity_
specificity of enzyme
Definition: EnzymaticDigestion.h:221
Size missed_cleavages_
Number of missed cleavages.
Definition: EnzymaticDigestion.h:213
A more convenient string class.
Definition: String.h:58
Class for the enzymatic digestion of sequences.
Definition: EnzymaticDigestion.h:62
static const std::string UnspecificCleavage
Name for unspecific cleavage.
Definition: EnzymaticDigestion.h:80
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
fully enzyme specific, e.g., tryptic (ends with KR, AA-before is KR), or peptide is at protein termin...
Definition: EnzymaticDigestion.h:68
no requirements on start / end
Definition: EnzymaticDigestion.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
semi specific, i.e., one of the two cleavage sites must fulfill requirements
Definition: EnzymaticDigestion.h:69
boost::regex re_
Regex for tokenizing (huge speedup by making this a member instead of stack object in tokenize_())
Definition: EnzymaticDigestion.h:218
StringView provides a non-owning view on an existing string.
Definition: String.h:488
Abstract base class for digestion enzymes.
Definition: DigestionEnzyme.h:52
static const std::string NoCleavage
Name for no cleavage.
Definition: EnzymaticDigestion.h:77
const DigestionEnzyme * enzyme_
Used enzyme.
Definition: EnzymaticDigestion.h:216