libsequence  1.9.5
Recombination.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 RECOMBINATION_H
25 #define RECOMBINATION_H
26 
49 #include <vector>
50 #include <limits>
51 
52 namespace Sequence
53 {
58  {
60  double i;
62  double j;
64  double rsq;
66  double D;
68  double Dprime;
70  bool skipped;
72  };
73 
74  class PolyTable;
75  namespace Recombination
76  {
77  double HudsonsC(const Sequence::PolyTable *data,
78  const bool &haveOutgroup, const unsigned &outgroup)__attribute__ ((deprecated));
96  std::vector<PairwiseLDstats> Disequilibrium(
97  const Sequence::PolyTable *data, const bool &haveOutgroup = false,
98  const unsigned &outgroup = 0, const unsigned &mincount = 1,
99  const double max_distance = std::numeric_limits<double>::max())__attribute__ ((deprecated));
100 
115  PairwiseLDstats PairwiseLD(const Sequence::PolyTable *data, unsigned i,
116  unsigned j,
117  const bool &haveOutgroup = false,
118  const unsigned &outgroup = 0,
119  const unsigned &mincount = 1,
120  const double max_distance
121  = std::numeric_limits<double>::max())__attribute__ ((deprecated));
122  }
123 }
124 #endif
The base class for polymorphism tables.
double i
Position of site i.
STL namespace.
double j
Position of site j.
The namespace in which this library resides.
double rsq
$r^2$ between sites i and j
std::vector< PairwiseLDstats > Disequilibrium(const Sequence::PolyTable *data, const bool &haveOutgroup=false, const unsigned &outgroup=0, const unsigned &mincount=1, const double max_distance=std::numeric_limits< double >::max()) __attribute__((deprecated))
Calculate pairwise LD for a Sequence::PolyTable.
class __attribute__((deprecated)) FST
Functor to count the number of states, excluding gaps and missing data, in a range of characters...
Definition: FST.hpp:41
Pairwise linkage disequilibrium (LD) stats .
double HudsonsC(const Sequence::PolyTable *data, const bool &haveOutgroup, const unsigned &outgroup) __attribute__((deprecated))
double D
The D statistics.
PairwiseLDstats PairwiseLD(const Sequence::PolyTable *data, unsigned i, unsigned j, const bool &haveOutgroup=false, const unsigned &outgroup=0, const unsigned &mincount=1, const double max_distance=std::numeric_limits< double >::max()) __attribute__((deprecated))
bool skipped
If the site fails and filters, this is true.