[go: up one dir, main page]

File: filter_seer.hpp

package info (click to toggle)
seer 1.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,644 kB
  • sloc: cpp: 2,944; perl: 596; python: 122; makefile: 87
file content (37 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Header file for filter_seer.cpp
 * Filters significant kmers from seer
 *
 */

// C++ stl includes
#include <iostream>
#include <fstream>
#include <algorithm>
#include <list>
#include <iterator>
#include <stdexcept>
#include <math.h>

// Library includes
#include <boost/program_options.hpp>

#include "significant_kmer.hpp"

// Constants
const std::string VERSION = "1.1.2";

// Structures
struct cmdOptions
{
   std::string input_file, output_file, sort_field;
   double maf_filter, chi_filter, p_filter, beta_filter;
   bool neg_beta, substr_kmers;
};

// Function prototypes
int parseCommandLine (int argc, char *argv[], boost::program_options::variables_map& vm);
cmdOptions processCmdLine(boost::program_options::variables_map& vm);
double fractionFilter(const std::string& filter_input);
void printHelp(boost::program_options::options_description& help);