-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutation.h
85 lines (58 loc) · 2.77 KB
/
mutation.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
81
82
83
84
/*
* Authors: Joanna Masel, Alex Lancaster, Kun Xiong
* Copyright (c) 2018 Arizona Board of Regents on behalf of the University of Arizona
* This file is part of network-evolution-simulator.
* network-evolution-simulator is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* network-evolution-simulator is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with network-evolution-simulator. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MUTATION_H
#define MUTATION_H
#include "RngStream.h"
#include "netsim.h"
#define SIMPLE_SUBSTITUTION 1
/*mutation rate*/
extern float DUPLICATION;
extern float SILENCING;
/*mutation effect*/
extern float miu_ACT_TO_INT_RATE;
extern float miu_protein_syn_rate;
extern float miu_Kd;
/*Wrapper of mutation functions*/
void mutate(Genotype *, RngStream, Mutation *);
/*Calculate mutation flux for each type of mutation, and pick one based the flux*/
void draw_mutation(Genotype *, char *, RngStream);
/*single nucleotide mutation in cisreg-sequence*/
void mut_substitution(Genotype *, Mutation *, RngStream);
/*delete a gene and its cisreg_sequence*/
void mut_whole_gene_deletion(Genotype *,Mutation *, RngStream);
/*duplicate a gene and its cisreg_sequence*/
void mut_duplication(Genotype *,Mutation *, RngStream);
/*mutate the concensus binding sequence of a TF*/
void mut_binding_sequence(Genotype *,Mutation *, RngStream);
/*mutate r_mRNA_deg, r_protein_deg, r_transl, r_ACT_to_INT, min_N_activator_to_transc*/
void mut_kinetic_constant(Genotype *, Mutation *, RngStream);
/*mutate locus_length*/
void mut_locus_length(Genotype *, Mutation *, RngStream);
/*mutate Kd of a TF*/
void mut_Kd(Genotype *, Mutation *, RngStream);
/*activator to repressor or the reverse*/
void mut_identity(Genotype *, Mutation *, RngStream);
/* Below are functions used to replay mutations*/
void reproduce_mutate(Genotype *, Mutation *);
void reproduce_substitution(Genotype *, Mutation *);
void reproduce_whole_gene_deletion(Genotype *,Mutation *);
void reproduce_gene_duplication(Genotype *,Mutation *);
void reproduce_mut_binding_sequence(Genotype *,Mutation *);
void reproduce_mut_kinetic_constant(Genotype *, Mutation *);
void reproduce_mut_identity(Genotype *, Mutation *);
void reproduce_mut_Kd(Genotype *, Mutation *);
void reproduce_mut_locus_length(Genotype *, Mutation *);
#endif /* MUTATION_H */