source: tags/initial/TREEGEN/rns.h

Last change on this file was 2, checked in by oldcode, 24 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1#ifndef __RNS_H
2#define __RNS_H
3
4#ifndef __DEFINES_H
5    #include "defines.h"
6#endif
7#ifndef __BASE_H
8    #include "base.h"
9#endif
10#ifndef __SIMCFG_H
11    #include "simcfg.h"
12#endif
13#ifndef __FRAND_H
14    #include "frand.h"
15#endif
16
17typedef double SingleProb[BASETYPES];
18typedef double DoubleProb[BASETYPES][BASETYPES];
19
20/* /------------------------\ */
21/* |  Erzeugung der Ur-RNS  | */
22/* \------------------------/ */
23
24extern int        orgLen;
25extern double     orgHelixPart;
26
27/* /------------\ */
28/* |  Mutation  | */
29/* \------------/ */
30
31extern int    timeSteps;
32extern Frand  mrpb_Init,
33              l2hrpb_Init,
34              pairPart,
35              mutationRate,
36              splitRate,
37              helixGcDruck,
38              helixGcRate,
39              helixAtRate,
40              loopGcDruck,
41              loopGcRate,
42              loopAtRate;
43extern double transitionRate,
44              transversionRate;
45
46/* /----------------------\ */
47/* |  Ausgabefilepointer  | */
48/* \----------------------/ */
49
50extern FILE *topo,
51            *seq;
52
53/* /----------------\ */
54/* |  Eine Species  | */
55/* \----------------/ */
56
57extern int rnsCreated; /* Anzahl bisher erzeugter Species */
58
59typedef struct S_RNS
60{
61    char *base;    /* Array der Basen */
62    int   bases,   /* Anzahl Basen */
63          helix,   /* Anzahl Basenpaare in helikalen Bereichen */
64          pairing, /* Anzahl paarender Basenpaare (G-C und A-T) */
65          laufNr;  /* erh”ht sich mit jeder neuen RNS (fr Namensvergabe) */
66
67} *RNS;
68
69__PROTOTYPEN__
70
71    RNS  createOriginRNS (void);
72    void freeRNS         (RNS rns);
73    void splitRNS        (RNS origin, double age, int steps, int depth);
74
75    void dumpDepths      (void);
76
77__PROTOENDE__
78
79#endif
Note: See TracBrowser for help on using the repository browser.