-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathakt.hh
71 lines (55 loc) · 1.35 KB
/
akt.hh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef AKT_H
#define AKT_H
#define __STDC_LIMIT_MACROS
#include "version.hh"
#include <stdint.h>
#include <vector>
#include <string>
#include <getopt.h>
#include <math.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <limits>
#include <stdlib.h>
#include <stdio.h>
#include <iterator>
#include <map>
#include <list>
#include <algorithm>
#include <set>
#include <stdexcept>
#include <assert.h>
extern "C" {
#include "htslib/synced_bcf_reader.h"
#include "htslib/hts.h"
}
#include "samples.hh"
#include "utils.hh"
#ifdef _OPENMP
#include <omp.h>
#else
static int inline omp_get_thread_num() {
std::cerr<<"WARNING: threading is disabled"<<endl;
return(0);
}
static int inline omp_get_num_threads() {
std::cerr<<"WARNING: threading is disabled"<<endl;
return(0);
}
static void inline omp_set_num_threads(int nthreads) {}
#endif
template <typename T> string to_string( T x ){
return static_cast< std::ostringstream & >( ( std::ostringstream() << std::dec << x ) ).str();
}
using namespace std;
int pca_main(int argc,char **argv);
int kin_main(int argc,char **argv);
int relatives_main(int argc,char **argv);
int unrelated_main(int argc,char **argv);
int r2_main(int argc, char **argv);
int pedphase_main(int argc, char **argv);
int grm(bcf_srs_t *sr);
int prune_main(int argc,char **argv);
#endif //AKT_H