-
Notifications
You must be signed in to change notification settings - Fork 20
/
snp_sim.h
82 lines (69 loc) · 1 KB
/
snp_sim.h
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
72
73
74
75
76
77
78
79
80
#if !defined SNPSIM_H
#define SNPSIM_H
struct node {
int node_num;
double time;
struct node *d[2];
struct node *a[2];
int *asite;
double rlen;
int nuc;
};
struct results {
int nrun;
double nm;
double pwd;
double sn;
double nr;
double cf;
double cf2;
};
struct control{
int nsamp;
int len;
long int seed;
double *theta;
double *rmap;
double R;
int hyp;
double phm;
double rhm;
double a;
int mut;
int inf;
int nrun;
int print;
int fmin;
int cond;
int **slocs;
int growth;
double lambda;
int bneck;
double tb;
double strb;
double w0;
int rm;
double cl_fac;
char prefix[127];
};
#define BACC 1e-6
void snp_sim();
struct node ** make_tree();
void print_lin();
void count_rlen();
void print_nodes();
void tree_summary();
struct node ** add_tree();
double tree_time();
int add_mut();
int add_mut_f();
void seq_mut();
void print_seqs();
char num_to_nuc();
int count_desc();
void choose_time();
double bisect();
double tgrowth();
void recombine();
void coalesce();
#endif