bpp-seq3  3.0.0
AASEAInf10Index.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_AASEAINF10INDEX_H
6 #define BPP_SEQ_ALPHABETINDEX_AASEAINF10INDEX_H
7 
8 
9 #include "AlphabetIndex1.h"
10 
11 namespace bpp
12 {
18 {
19 private:
20  std::vector<double> seaInf10_;
21 
22 public:
25  seaInf10_()
26  {
27  seaInf10_.resize(20);
28  seaInf10_[ 0] = 0.35; // A
29  seaInf10_[ 1] = 0.05; // R
30  seaInf10_[ 2] = 0.10; // N
31  seaInf10_[ 3] = 0.09; // D
32  seaInf10_[ 4] = 0.54; // C
33  seaInf10_[ 5] = 0.10; // Q
34  seaInf10_[ 6] = 0.04; // E
35  seaInf10_[ 7] = 0.36; // G
36  seaInf10_[ 8] = 0.19; // H
37  seaInf10_[ 9] = 0.47; // I
38  seaInf10_[10] = 0.49; // L
39  seaInf10_[11] = 0.02; // K
40  seaInf10_[12] = 0.20; // M
41  seaInf10_[13] = 0.42; // F
42  seaInf10_[14] = 0.13; // P
43  seaInf10_[15] = 0.20; // S
44  seaInf10_[16] = 0.16; // T
45  seaInf10_[17] = 0.44; // W
46  seaInf10_[18] = 0.20; // Y
47  seaInf10_[19] = 0.50; // V
48  }
49 
50  virtual ~AASEAInf10Index() {}
51 
52  AASEAInf10Index* clone() const override { return new AASEAInf10Index(); }
53 
54 public:
55  double getIndex(int state) const override
56  {
57  return seaInf10_[getAlphabet()->getStateIndex(state) - 1];
58  }
59 
60  double getIndex(const std::string& state) const override
61  {
62  return seaInf10_[getAlphabet()->getStateIndex(state) - 1];
63  }
64 
65  const std::vector<double>& indexVector() const override { return seaInf10_; }
66 };
67 } // end of namespace bpp.
68 #endif // BPP_SEQ_ALPHABETINDEX_AASEAINF10INDEX_H
Percentage of amino acids having a Solvent Exposed Area below 10 Angström^2 for each type of amino a...
const std::vector< double > & indexVector() const override
std::vector< double > seaInf10_
double getIndex(int state) const override
Get the index associated to a state.
double getIndex(const std::string &state) const override
Get the index associated to a state.
AASEAInf10Index * clone() const override
std::shared_ptr< const Alphabet > getAlphabet() const override
Get the alphabet associated to this index.
This alphabet is used to deal NumericAlphabet.