yat  0.12.3pre
BamReadFilter.h
1 #ifndef theplu_yat_omic_bam_read_filter
2 #define theplu_yat_omic_bam_read_filter
3 
4 // $Id: BamReadFilter.h 3081 2013-09-18 07:48:08Z peter $
5 
6 /*
7  Copyright (C) 2013 Peter Johansson
8 
9  This file is part of the yat library, http://dev.thep.lu.se/yat
10 
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 3 of the
14  License, or (at your option) any later version.
15 
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with this program. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 #include "config_bam.h"
26 #include YAT_BAM_HEADER
27 
28 #include <functional>
29 
30 namespace theplu {
31 namespace yat {
32 namespace omic {
33 
34  class BamRead;
35 
53  class BamReadFilter : public std::unary_function<const BamRead&, bool>
54  {
55  public:
62  BamReadFilter(unsigned char mapQ, unsigned int filtered_flags=BAM_DEF_MASK,
63  unsigned int required_flags=0);
64 
70  bool operator()(const yat::omic::BamRead& bam) const;
71  private:
72  unsigned char mapQ_;
73  unsigned int filtered_;
74  unsigned int required_;
75  };
76 
77 }}}
78 #endif
bool operator()(const yat::omic::BamRead &bam) const
Class holding a bam query.
Definition: BamRead.h:53
Filter bam reads.
Definition: BamReadFilter.h:53
BamReadFilter(unsigned char mapQ, unsigned int filtered_flags=BAM_DEF_MASK, unsigned int required_flags=0)

Generated on Mon Jun 1 2015 12:29:51 for yat by  doxygen 1.8.5