libsequence  1.9.5
RedundancyCom95.hpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2003-2009 Kevin Thornton, krthornt[]@[]uci.edu
4 
5 Remove the brackets to email me.
6 
7 This file is part of libsequence.
8 
9 libsequence is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 libsequence is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 long with libsequence. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef REDCOM95_H
25 #define REDCOM95_H
26 
47 #include <string>
48 #include <memory>
49 #include <Sequence/SeqEnums.hpp>
50 
52 
53 namespace Sequence
54 {
55  struct RedundancyCom95impl;
57  {
58  private:
59  std::unique_ptr<RedundancyCom95impl> impl;
60  public:
61  explicit RedundancyCom95 (Sequence::GeneticCodes genetic_code = GeneticCodes::UNIVERSAL);
62  RedundancyCom95(RedundancyCom95 &&)=default;
63  ~RedundancyCom95(void);
64  //counting routines, return values from private matrices of same name
65  double FirstNon (const std::string &codon) const;
66  double First2S (const std::string &codon) const;
67  double First2V (const std::string &codon) const;
68  double ThirdNon (const std::string &codon) const;
69  double ThirdFour (const std::string &codon) const;
70  double Third2S (const std::string &codon) const;
71  double Third2V (const std::string &codon) const;
72  double L0_vals (const std::string &codon) const;
73  double L2S_vals (const std::string &codon) const;
74  double L2V_vals (const std::string &codon) const;
75  double L4_vals (const std::string &codon) const;
76  GeneticCodes gencode()const;
77  };
78 }
79 
80 #endif
double L2S_vals(const std::string &codon) const
The namespace in which this library resides.
double First2V(const std::string &codon) const
double FirstNon(const std::string &codon) const
double ThirdFour(const std::string &codon) const
double L2V_vals(const std::string &codon) const
double ThirdNon(const std::string &codon) const
double Third2V(const std::string &codon) const
double L4_vals(const std::string &codon) const
double First2S(const std::string &codon) const
Calculate redundancy of a genetic code using Comeron&#39;s counting scheme.
double Third2S(const std::string &codon) const
Definition of enumeration types.
double L0_vals(const std::string &codon) const
RedundancyCom95(Sequence::GeneticCodes genetic_code=GeneticCodes::UNIVERSAL)