ARB
base.h
Go to the documentation of this file.
1 #ifndef BASE_H
2 #define BASE_H
3 
4 #ifndef DEFINES_H
5 #include "defines.h"
6 #endif
7 
8 enum BaseType {
14 
15 };
16 
17 #define BASETYPES 4
18 #define BASECHARS (BASETYPES+1)
19 #define BASEQUAD (BASETYPES*BASETYPES)
20 
21 #define MAXBASECHAR ((int)'t') // vom ASCII-Wert her groesstes Zeichen
22 #define PROB_NOT_DEF (-1.0)
23 
24 #define isDeleted(b) (charIsDelete[(int)(b)])
25 #define isHelical(b) (charIsHelical[(int)(b)])
26 #define isPairing(b1, b2) (basesArePairing[(int)(b1)][(int)(b2)])
27 
28 extern char helixBaseChar[BASECHARS],
30 extern int basesArePairing[BASECHARS][BASECHARS], // Kombination paarend?
31  baseCharType[],
32  charIsDelete[],
33  charIsHelical[];
34 
35 #define char2BaseType(c) ((enum BaseType)baseCharType[(int)c])
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
41  void initBaseLookups ();
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif
Definition: base.h:9
Definition: base.h:10
void initBaseLookups()
Definition: base.c:20
int charIsDelete[]
Definition: base.c:16
int baseCharType[]
Definition: base.c:16
BaseType
Definition: base.h:8
Definition: base.h:12
char helixBaseChar[BASECHARS]
Definition: base.c:4
Definition: base.h:11
int basesArePairing[BASECHARS][BASECHARS]
Definition: base.c:7
int charIsHelical[]
Definition: base.c:16
#define BASECHARS
Definition: base.h:18
Definition: base.h:13
char loopBaseChar[BASECHARS]
Definition: base.c:5