OpenMS
Loading...
Searching...
No Matches
HydrophobicityProfile.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: $
6// $Authors: Markus Apel, Nora Heese $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14#include <functional>
15#include <sstream>
16
17namespace OpenMS
18{
44 class OPENMS_DLLAPI HydrophobicityProfile
45 {
46
47public:
48
53 double computeGRAVY(const AASequence& seq) const;
54
60 std::vector<double> computeProfile(
61 const AASequence& seq,
62 const HydrophobicityScaleMethod scale = HydrophobicityScaleMethod::KYTE_DOOLITTLE
63 ) const;
64
73 std::vector<double> computeWindowedProfile(
74 const AASequence& seq,
75 const Size window_size = 7,
76 const HydrophobicityScaleMethod scale = HydrophobicityScaleMethod::KYTE_DOOLITTLE
77 ) const;
78
87 std::vector<double> computeHydrophobicMoment(
88 const AASequence& seq,
89 const Size window_size = 11,
90 const double angle = 100.0 // degrees; 100 = alpha-helix, 160 = beta-sheet
91 ) const;
92 };
93} // namespace OpenMS
Representation of a peptide/protein sequence.
Definition AASequence.h:88
This class is used for hydrophobicity profiling of peptides.
Definition HydrophobicityProfile.h:45
double computeGRAVY(const AASequence &seq) const
Calculates the GRAVY score.
std::vector< double > computeHydrophobicMoment(const AASequence &seq, const Size window_size=11, const double angle=100.0) const
Calculates hydrophobic moments.
std::vector< double > computeWindowedProfile(const AASequence &seq, const Size window_size=7, const HydrophobicityScaleMethod scale=HydrophobicityScaleMethod::KYTE_DOOLITTLE) const
Calculates windowed hydrophobicity profile.
std::vector< double > computeProfile(const AASequence &seq, const HydrophobicityScaleMethod scale=HydrophobicityScaleMethod::KYTE_DOOLITTLE) const
Calculates hydrophobicity profile per residue.
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
HydrophobicityScaleMethod
Enum for different hydrophobicity scales.
Definition CommonEnums.h:50