bpp-seq3  3.0.0
AASEA1030Index.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_SEQ_ALPHABETINDEX_AASEA1030INDEX_H
6 #define BPP_SEQ_ALPHABETINDEX_AASEA1030INDEX_H
7 
8 
9 #include "AlphabetIndex1.h"
10 
11 namespace bpp
12 {
21 {
22 private:
23  std::vector<double> sea1030_;
24 
25 public:
27  sea1030_()
28  {
29  sea1030_.resize(20);
30  sea1030_[ 0] = 0.17; // A
31  sea1030_[ 1] = 0.11; // R
32  sea1030_[ 2] = 0.08; // N
33  sea1030_[ 3] = 0.10; // D
34  sea1030_[ 4] = 0.14; // C
35  sea1030_[ 5] = 0.09; // Q
36  sea1030_[ 6] = 0.03; // E
37  sea1030_[ 7] = 0.13; // G
38  sea1030_[ 8] = 0.15; // H
39  sea1030_[ 9] = 0.14; // I
40  sea1030_[10] = 0.10; // L
41  sea1030_[11] = 0.05; // K
42  sea1030_[12] = 0.36; // M
43  sea1030_[13] = 0.16; // F
44  sea1030_[14] = 0.09; // P
45  sea1030_[15] = 0.10; // S
46  sea1030_[16] = 0.13; // T
47  sea1030_[17] = 0.07; // W
48  sea1030_[18] = 0.13; // Y
49  sea1030_[19] = 0.10; // V
50  }
51 
52  virtual ~AASEA1030Index() {}
53 
54  AASEA1030Index* clone() const override { return new AASEA1030Index(); }
55 
56 public:
57  double getIndex(int state) const override
58  {
59  return sea1030_[getAlphabet()->getStateIndex(state) - 1];
60  }
61 
62  double getIndex(const std::string& state) const override
63  {
64  return sea1030_[getAlphabet()->getStateIndex(state) - 1];
65  }
66 
67  const std::vector<double>& indexVector() const override { return sea1030_; }
68 };
69 } // end of namespace bpp.
70 #endif // BPP_SEQ_ALPHABETINDEX_AASEA1030INDEX_H
Percentage of amino acids having a Solvent Exposed Area between 10 and 30 Angström^2 for each type o...
AASEA1030Index * clone() const override
double getIndex(const std::string &state) const override
Get the index associated to a state.
std::vector< double > sea1030_
const std::vector< double > & indexVector() const override
double getIndex(int state) const override
Get the index associated to a state.
virtual ~AASEA1030Index()
std::shared_ptr< const Alphabet > getAlphabet() const override
Get the alphabet associated to this index.
This alphabet is used to deal NumericAlphabet.