-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructure.yml
261 lines (261 loc) · 5.31 KB
/
structure.yml
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
---
- name: source
type: t_trim
- name: name
- name: id_number
- name: family_drawn_by
- name: number_of_members
type: s_short
- name: # last_internal_id
size: 2
- name: disease_loci
for: 7
structure:
- name: name
- name: colour
type: t_colour
- name:
- name: pattern
type: t_pattern
- name: comments
type: t_comment
- name: creation_date
type: t_date
- name: last_updated
type: t_date
- name:
size: 1
- name: highest_marker_chromosome
type: s_char
- name: number_of_family_marker_lists
type: s_char
- name: family_marker_lists
for: number_of_family_marker_lists
structure:
# The value of highest_marker_chromosome is used if the following condition
# is false.
- name: marker_chromosome
type: s_char
if:
operands:
- number_of_family_marker_lists
- 1
operator: gt
- name: number_of_family_markers
type: s_char
- name: family_markers
for: number_of_family_markers
structure:
- name:
size: 2
- name: name
- name: show
type: bool
- name:
size: 1
- name: marker_type
type: t_marker_type
- name: colour
type: t_colour
- name:
size: 1
- name:
size: 8
- name: selected_id
type: s_short
- name:
size: 8
- name: markers
while:
operands:
- marker_delimiter
- separator
operator: ne
term: marker_term
structure:
- name: separator
type: u_char
- name:
size: 439
- name:
size: 9
- name: members
for: number_of_members
structure:
- name: surname
- name: other_surnames
- name: forenames
- name: known_as
- name: maiden_name
- name: origins # Ethnicity, origins.
for: 2
structure:
- name: self
- name: m_g_mother
- name: m_g_father
- name: p_g_mother
- name: p_g_father
- name: address
type: t_comment
- name: additional_information
type: t_comment
- name: date_of_birth
type: t_date
- name: date_of_death
type: t_date
- name: sex
type: t_sex
- name: id
type: s_short
- name: pedigree_number
type: s_short
- name: mother_id
type: s_short
- name: father_id
type: s_short
- name: internal_id # Remove?
type: s_short
- name: number_of_individuals
type: s_short
- name: age_gestation
- name: individual_id
- name: number_of_spouses
type: s_short
- name: spouses
for: number_of_spouses
structure:
- name: id
type: s_short
- name: flags
type: t_relationship
- name: name
- name: twin_id
type: s_short
- name: comment
type: t_comment
- name: adoption_type
type: t_adoption_type
- name: genetic_symbols
type: t_genetic_symbol
- name:
- name: flags
type: t_individual
- name: proband
type: t_proband
- name: x_coordinate
type: s_short
- name: y_coordinate
type: s_short
- name: annotation_1
type: t_annotation_1
- name: multiple_pregnancies
type: t_multiple_pregnancies
- name:
- name: crossover
for: 2
structure:
- name:
size: 2
- name: allele
while:
operands:
- crossover_delimiter
- separator
operator: ne
term: crossover_term
structure:
- name: separator
type: u_char
- name:
size: 11
- name:
size: 9
- name:
size: 12
- name: unknown_list
for: 7
structure:
- name:
size: 24
- name: annotation_2
type: t_annotation_2
- name: additional_symbols
type: u_char
# NOTE: DNA and BLOOD fields are switched in Cyrillic. i.e., if DNA is
# selected, the BLOOD_LOCATION field is stored and if BLOOD is
# selected, the DNA_LOCATION field is stored. This is probably a bug.
- name: dna_location
if:
operands:
- dna
- name: blood_location
if:
operands:
- blood
- name: cells_location
if:
operands:
- cells
- name: sample
type: t_sample
- name: sample_number
- name: # colour
size: 3
- name:
size: 17
- name: # pattern
size: 2
- name: number_of_unknown_data
type: s_short
- name:
- name: unknown_data
for: number_of_unknown_data
structure:
- name:
size: 12
- name: number_of_custom_descriptions
type: s_short
- name: genetic_symbols
for: 19
structure:
- name: value
- name: additional_symbols
for: 4
structure:
- name: value
- name: custom_symbols
for: number_of_custom_descriptions
structure:
- name: name
- name: value
- name:
size: 14
- name: zoom
type: s_short
- name: unknown_1 # Zoom.
type: raw
size: 4
- name: unknown_2 # Zoom.
type: raw
size: 4
- name:
size: 20
- name: number_of_text_fields
type: s_short
# TODO: x and y coordinates have more digits.
- name: text
for: number_of_text_fields
structure:
- name: comment
- name:
size: 54
- name: x_coordinate
type: u_char
- name:
size: 3
- name: y_coordinate
type: u_char
- name:
size: 7
- name: eof_marker
type: t_trim