libsequence  1.9.5
PolySNPimpl.hpp
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 #include <Sequence/PolyTable.hpp>
26 #include <string>
27 #include <mutex>
28 namespace Sequence
29 {
30  struct _PolySNPImpl
37  {
38  const PolyTable* _data;
39  unsigned _nsites,_nsam,_outgroup;
40  bool _haveOutgroup, _totMuts;
41  unsigned _totsam;
42  unsigned _DVK;
43  double _DVH;
44  bool _counted_singletons;
45  bool _know_pi;
46  bool _CalculatedDandV;
47  double _pi;
48  unsigned _singletons;
49  unsigned _walls_Bprime,_NumPoly;
50  double _walls_B,_walls_Q;
51  bool _calculated_wall_stats;
52  std::vector< Sequence::stateCounter > _counts;
53  std::vector< std::pair< bool, Sequence::stateCounter > > _derivedCounts;
54  std::mutex instance_lock;
55  bool _preprocessed;
56  void preprocess(void);
57 
58  _PolySNPImpl (const Sequence::PolyTable * data, const bool & haveOutgroup ,
59  const unsigned & outgroup, const bool & totMuts);
60  };
61 }
The base class for polymorphism tables.
void preprocess(void)
Definition: PolySNP.cc:92
Sequence::PolyTable, a virtual base class for polymorphism tables.
The namespace in which this library resides.
declaration of Sequence::stateCounter, a class to keep track of nucleotide counts either at a site in...