OpenMS
Loading...
Searching...
No Matches
ProteaseDigestion.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Chris Bielow, Xiao Liang $
6// $Authors: Marc Sturm, Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15#include <vector>
16
17namespace OpenMS
18{
31 class OPENMS_DLLAPI ProteaseDigestion: public EnzymaticDigestion
32 {
33 public:
34 using EnzymaticDigestion::setEnzyme;
35
37 void setEnzyme(const String& name);
38
50 Size digest(const AASequence& protein, std::vector<AASequence>& output, Size min_length = 1, Size max_length = 0) const;
51
69 Size digest(const AASequence& protein, std::vector<std::pair<size_t,size_t>>& output, Size min_length = 1, Size max_length = 0) const;
70
72 Size peptideCount(const AASequence& protein);
73
88 bool isValidProduct(const String& protein, int pep_pos, int pep_length, bool ignore_missed_cleavages = true, bool allow_nterm_protein_cleavage = false, bool allow_random_asp_pro_cleavage = false) const;
89
91 bool isValidProduct(const AASequence& protein, int pep_pos, int pep_length, bool ignore_missed_cleavages = true, bool allow_nterm_protein_cleavage = false, bool allow_random_asp_pro_cleavage = false) const;
92
93 };
94
95} // namespace OpenMS
96
Representation of a peptide/protein sequence.
Definition AASequence.h:88
Class for the enzymatic digestion of sequences.
Definition EnzymaticDigestion.h:38
Class for the enzymatic digestion of proteins represented as AASequence or String.
Definition ProteaseDigestion.h:32
bool isValidProduct(const AASequence &protein, int pep_pos, int pep_length, bool ignore_missed_cleavages=true, bool allow_nterm_protein_cleavage=false, bool allow_random_asp_pro_cleavage=false) const
forwards to isValidProduct using protein.toUnmodifiedString()
bool isValidProduct(const String &protein, int pep_pos, int pep_length, bool ignore_missed_cleavages=true, bool allow_nterm_protein_cleavage=false, bool allow_random_asp_pro_cleavage=false) const
Variant of EnzymaticDigestion::isValidProduct() with support for n-term protein cleavage and random D...
Size digest(const AASequence &protein, std::vector< std::pair< size_t, size_t > > &output, Size min_length=1, Size max_length=0) const
Performs the enzymatic digestion of a protein represented as AASequence. Digestion takes into account...
Size peptideCount(const AASequence &protein)
Returns the number of peptides a digestion of protein would yield under the current enzyme and missed...
void setEnzyme(const String &name)
Sets the enzyme for the digestion (by name)
Size digest(const AASequence &protein, std::vector< AASequence > &output, Size min_length=1, Size max_length=0) const
Performs the enzymatic digestion of a protein represented as AASequence. Digestion logic is implement...
A more convenient string class.
Definition String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19