libsequence  1.9.5
Comeron95.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 COMERON95_H
25 #define COMERON95_H
26 
117 #include <Sequence/SeqEnums.hpp>
118 #include <Sequence/Seq.hpp>
119 #include <array>
120 #include <memory>
121 
122 namespace Sequence
123  {
124  using Com95_t = std::array<double,19>;
125  class Comeron95
126  {
127  private:
128  struct Com95impl;
129  std::unique_ptr<Com95impl> impl;
130  public:
131  explicit Comeron95( GeneticCodes code = GeneticCodes::UNIVERSAL );
132  Comeron95( const Comeron95 & ) = delete;
133  Comeron95 & operator=(const Comeron95 & ) = delete;
134  ~Comeron95();
135  Com95_t operator()(const Sequence::Seq & seqa,
136  const Sequence::Seq & seqb,
137  int maxdiffs = 3);
138  Com95_t operator()(const Sequence::Seq & seqa,
139  const Sequence::Seq & seqb,
140  const WeightingScheme2 *weights2,
141  const WeightingScheme3 *weights3,
142  int maxdiffs = 3);
143  };
144 }
145 
146 #endif
abstract interface to weighting schemes when codons differ at 2 positions
class Sequence::Seq, an abstract base class for Sequences
Abstract interface to sequence objects.
Definition: Seq.hpp:46
Com95_t operator()(const Sequence::Seq &seqa, const Sequence::Seq &seqb, int maxdiffs=3)
Definition: Comeron95.cc:157
The namespace in which this library resides.
abstract interface to weighting schemes when codons differ at 3 positions
abstract interface to weighting schemes when codons differ at 2 positions
Ka and Ks by Comeron&#39;s (1995) method.
Definition: Comeron95.hpp:125
Definition of enumeration types.