39 #include <boost/regex_fwd.hpp> 75 SIZE_OF_SPECIFICITY = 10
78 static const std::string NamesOfSpecificity[SIZE_OF_SPECIFICITY];
99 Size getMissedCleavages()
const;
102 void setMissedCleavages(
Size missed_cleavages);
105 String getEnzymeName()
const;
131 Size digestUnmodified(
const StringView& sequence, std::vector<StringView>& output,
Size min_length = 1,
Size max_length = 0)
const;
146 Size digestUnmodified(
const StringView& sequence, std::vector<std::pair<Size, Size>>& output,
Size min_length = 1,
Size max_length = 0)
const;
159 bool isValidProduct(
const String& protein,
int pep_pos,
int pep_length,
bool ignore_missed_cleavages =
true)
const;
166 Size countInternalCleavageSites(
const String& sequence)
const;
175 bool filterByMissedCleavages(
const String& sequence,
const std::function<
bool(
const Int)>& filter)
const;
185 bool isValidProduct_(
const String& sequence,
188 bool ignore_missed_cleavages,
189 bool allow_nterm_protein_cleavage,
190 bool allow_random_asp_pro_cleavage)
const;
206 std::vector<int> tokenize_(
const String& sequence,
int start = 0,
int end = -1)
const;
216 Size digestAfterTokenize_(
const std::vector<int>& fragment_positions,
const StringView& sequence, std::vector<StringView>& output,
Size min_length = 0,
Size max_length = -1)
const;
217 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;
227 Size countMissedCleavages_(
const std::vector<int>& cleavage_positions,
Size seq_start,
Size seq_end)
const;
235 std::unique_ptr<boost::regex>
re_;
A more convenient string class.
Definition: String.h:58
Base class for digestion enzymes.
Definition: DigestionEnzyme.h:52
static const std::string NoCleavage
Name for no cleavage.
Definition: EnzymaticDigestion.h:81
const DigestionEnzyme * enzyme_
Used enzyme.
Definition: EnzymaticDigestion.h:233
Class for the enzymatic digestion of sequences.
Definition: EnzymaticDigestion.h:63
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:67
Specificity specificity_
specificity of enzyme
Definition: EnzymaticDigestion.h:238
Size missed_cleavages_
Number of missed cleavages.
Definition: EnzymaticDigestion.h:230
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static const std::string UnspecificCleavage
Name for unspecific cleavage.
Definition: EnzymaticDigestion.h:84
int Int
Signed integer type.
Definition: Types.h:102
StringView provides a non-owning view on an existing string.
Definition: StringView.h:55
std::unique_ptr< boost::regex > re_
Regex for tokenizing (huge speedup by making this a member instead of stack object in tokenize_()) ...
Definition: EnzymaticDigestion.h:235