-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypes.h
152 lines (134 loc) · 2.38 KB
/
types.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#include <list>
#include <vector>
using namespace std;
enum FILEIO_MODE
{
FILEIO_MODE_Undefined = 0,
FILEIO_MODE_ReadOnly,
FILEIO_MODE_ReadWrite,
FILEIO_MODE_WriteOnly
};
#if FILEIO_BINARY_MODE
#define FILIO_STRMODE_ReadOnly "rb"
#define FILIO_STRMODE_WriteOnly "wb"
#define FILIO_STRMODE_ReadWrite "w+b"
#else
#define FILIO_STRMODE_ReadOnly "r"
#define FILIO_STRMODE_WriteOnly "w"
#define FILIO_STRMODE_ReadWrite "w+"
#endif
struct HitData
{
int QueryFrom;
int QueryTo;
int TargetFrom;
int TargetTo;
bool Rev;
};
typedef int PILE_INDEX_TYPE;
const PILE_INDEX_TYPE MAX_STACK_INDEX = 0x7ffffff0;
struct PileImageData
{
// Hack to enforce structure packing
// in a compiler-independent way
PILE_INDEX_TYPE Data[3];
#define SILength Data[0]
#define SIPile Data[1]
#define SIRev Data[2]
};
struct EdgeData
{
int Node1;
int Node2;
bool Rev;
};
typedef list<EdgeData> EdgeList;
typedef EdgeList::iterator PtrEdgeList;
struct FamMemberData
{
int PileIndex;
bool Rev;
};
typedef list<FamMemberData> FamData;
typedef FamData::iterator PtrFamData;
typedef list<FamData *> FamList;
typedef FamList::iterator PtrFamList;
typedef list<int> IntList;
typedef IntList::iterator PtrIntList;
typedef list<IntList *> ListOfIntListPtrs;
typedef ListOfIntListPtrs::iterator PtrListOfIntListPtrs;
struct TRSData
{
char *ContigLabel;
int ContigFrom;
int ContigTo;
int FamIndex;
int SuperFamIndex;
bool Rev;
};
struct MotifData
{
char *ContigLabel;
int ContigFrom;
int ContigTo;
int FamIndex;
};
struct PileData
{
int From;
int To;
int ImageCount;
PileImageData *Images;
int SuperFamIndex;
int FamIndex;
int Rev;
};
struct ContigData
{
int From;
int Length;
char *Label;
ContigData *Next;
};
struct GFFRecord
{
char SeqName[MAX_GFF_FEATURE_LENGTH+1];
char Source[MAX_GFF_FEATURE_LENGTH+1];
char Feature[MAX_GFF_FEATURE_LENGTH+1];
int Start;
int End;
float Score;
char Strand;
int Frame;
char Attrs[MAX_GFF_FEATURE_LENGTH+1];
};
struct GFFRecord2
{
const char *SeqName;
const char *Source;
const char *Feature;
int Start;
int End;
float Score;
char Strand;
int Frame;
const char *Attrs;
};
struct RepData
{
char *ContigLabel;
int ContigFrom;
int ContigTo;
char *RepeatName;
char *RepeatClass;
int RepeatFrom;
int RepeatTo;
int RepeatLeft;
bool Rev;
};
class GFFSet;
class GLIX;
class IIX;
#include "gffset.h"
#include "glix.h"
#include "iix.h"