ARB
rns.h
Go to the documentation of this file.
1 #ifndef RNS_H
2 #define RNS_H
3 
4 #ifndef BASE_H
5 #include "base.h"
6 #endif
7 #ifndef SIMCFG_H
8 #include "simcfg.h"
9 #endif
10 #ifndef FRAND_H
11 #include "frand.h"
12 #endif
13 
14 typedef double SingleProb[BASETYPES];
15 typedef double DoubleProb[BASETYPES][BASETYPES];
16 
17 // -----------------------------
18 // Erzeugung der Ur-RNS
19 
20 extern int orgLen;
21 extern double orgHelixPart;
22 
23 // -----------------
24 // Mutation
25 
26 extern int timeSteps;
27 extern Frand mrpb_Init,
29  pairPart,
31  splitRate,
36  loopGcRate,
37  loopAtRate;
38 extern double transitionRate,
40 
41 // ---------------------------
42 // Ausgabefilepointer
43 
44 extern FILE *topo,
45  *seq;
46 
47 // ---------------------
48 // Eine Species
49 
50 typedef struct S_RNS {
51  char *base; // Array der Basen
52  int bases, // Anzahl Basen
53  helix, // Anzahl Basenpaare in helikalen Bereichen
54  pairing, // Anzahl paarender Basenpaare (G-C und A-T)
55  laufNr; // erhoeht sich mit jeder neuen RNS (fuer Namensvergabe)
56 
57 } *RNS;
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 
64  void freeRNS (RNS rns);
65  void splitRNS (int no_of_father, RNS origin, double age, int steps, int depth);
66 
67  void dumpDepths ();
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif
Definition: frand.h:8
int laufNr
Definition: rns.h:52
Frand loopGcRate
Definition: rns.c:20
Frand mrpb_Init
Definition: rns.c:20
FILE * seq
Definition: rns.c:46
double SingleProb[BASETYPES]
Definition: rns.h:14
void freeRNS(RNS rns)
Definition: rns.c:278
int orgLen
Definition: rns.c:12
Frand splitRate
Definition: rns.c:20
Frand loopAtRate
Definition: rns.c:20
Definition: rns.h:50
double DoubleProb[BASETYPES][BASETYPES]
Definition: rns.h:15
int helix
Definition: rns.h:52
int timeSteps
Definition: rns.c:19
Frand helixGcRate
Definition: rns.c:20
Frand mutationRate
Definition: rns.c:20
Frand pairPart
Definition: rns.c:20
char * base
Definition: rns.h:51
RNS createOriginRNS()
Definition: rns.c:157
#define BASETYPES
Definition: base.h:17
double orgHelixPart
Definition: rns.c:13
Frand helixGcDruck
Definition: rns.c:20
struct S_RNS * RNS
void splitRNS(int no_of_father, RNS origin, double age, int steps, int depth)
Definition: rns.c:493
double transversionRate
Definition: rns.c:31
int bases
Definition: rns.h:52
void dumpDepths()
Definition: rns.c:55
Frand helixAtRate
Definition: rns.c:20
FILE * topo
Definition: rns.c:46
double transitionRate
Definition: rns.c:31
Frand loopGcDruck
Definition: rns.c:20
int pairing
Definition: rns.h:52
Frand l2hrpb_Init
Definition: rns.c:20