libsequence  1.9.5
PolyTableFunctions.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 __POLYTABLE_FUNCTIONS_HPP__
25 #define __POLYTABLE_FUNCTIONS_HPP__
26 
27 #include <Sequence/PolyTable.hpp>
28 
38 namespace Sequence
39 {
41  bool containsCharacter(const PolyTable * t,const char ch)__attribute__ ((deprecated));
42 
55  bool polyTableValid(const PolyTable * t)__attribute__ ((deprecated));
56 
57  template<typename T> T copyPolyTable(const T & t)
58  {
59  return T(std::vector<double>(t.pbegin(),t.pend()),
60  std::vector<std::string>(t.begin(),t.end()));
61  }
62 
63  template<typename T,typename F> T removeColumns( const T & t, const F & f, const bool skipAnc = false, const unsigned anc = 0,const char gapchar = '-' )__attribute__ ((deprecated));
64  template<typename T> T removeGaps( const T & t, const bool skipAnc = false, const unsigned anc = 0,const char gapchar = '-' )__attribute__ ((deprecated));
65  template<typename T> T removeInvariantPos(const T & t, const bool skipAnc = false, const unsigned anc = 0,
66  const char gapchar = '-')__attribute__ ((deprecated));
67  template<typename T> T removeAmbiguous(const T & t, const bool skipAnc = false, const unsigned anc = 0,
68  const char gapchar = '-')__attribute__ ((deprecated));
69  template<typename T> T removeMissing(const T & t, const bool skipAnc = false, const unsigned anc = 0,
70  const char gapchar = '-')__attribute__ ((deprecated));
71  template<typename T> T removeMultiHits(const T & t, const bool skipAnc = false, const unsigned anc = 0,
72  const char gapchar = '-')__attribute__ ((deprecated));
73  template<typename T> T polyTableToBinary(const T & t, const unsigned ref = 0, const char gapchar = '-')__attribute__ ((deprecated));
74  template<typename T> T polyTableFreqFilter(const T & t, const unsigned mincount,const bool skipAnc = false, const unsigned anc = 0 , const char gapchar = '-')__attribute__ ((deprecated));
75 }
76 #include <Sequence/bits/PolyTableFunctions.tcc>
77 #endif
bool polyTableValid(const PolyTable *t) __attribute__((deprecated))
Sequence::PolyTable, a virtual base class for polymorphism tables.
The namespace in which this library resides.
bool containsCharacter(const PolyTable *t, const char ch) __attribute__((deprecated))
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