1 | # Modified by FOG 27.06.2009 |
---|
2 | # start, stop added |
---|
3 | # type INT for start, stop added |
---|
4 | # acc parsing changed |
---|
5 | # a lot of stuff removed |
---|
6 | # IFNOTSET added |
---|
7 | |
---|
8 | AUTODETECT "LOCUS s*\nORIGIN*" |
---|
9 | |
---|
10 | DESCRIPTION "This is a well designed reader for files from RDP." |
---|
11 | DESCRIPTION "It reads a lot of additional information." |
---|
12 | DESCRIPTION "Destination fields are tagged with '[RDP]'" |
---|
13 | |
---|
14 | KEYWIDTH 12 |
---|
15 | FILETAG RDP |
---|
16 | |
---|
17 | BEGIN "LOCUS*" |
---|
18 | |
---|
19 | MATCH "LOCUS *" |
---|
20 | SRT "* *=*1" |
---|
21 | WRITE "name" |
---|
22 | |
---|
23 | MATCH "LOCUS *" |
---|
24 | SRT "* *=*1" |
---|
25 | TAG "RDP" |
---|
26 | WRITE "id" |
---|
27 | |
---|
28 | #MATCH "LOCUS *" |
---|
29 | # SRT " = : = : = : = :* * *=*2" |
---|
30 | # TAG "RDP" |
---|
31 | # WRITE "db_nuc" |
---|
32 | |
---|
33 | MATCH "LOCUS *" |
---|
34 | SRT " = : = : = : = :* * * * * * *=*7" |
---|
35 | TAG "RDP" |
---|
36 | WRITE "date" |
---|
37 | |
---|
38 | MATCH "DEFINITION *" |
---|
39 | TAG "RDP" |
---|
40 | WRITE "description" |
---|
41 | |
---|
42 | MATCH "COMMENT*Genbank*" |
---|
43 | SRT "*Genbank\: *=*2:|*=:(*=:;=:not submitted=" |
---|
44 | ACI "extract_words("0123456789",4.0)" |
---|
45 | WRITE "acc" |
---|
46 | |
---|
47 | #MATCH "COMMENT*Genbank*" |
---|
48 | # SRT "*Genbank\: *=*2:|*=:(*=:;=:not submitted=" |
---|
49 | # ACI "extract_words("0123456789",4.0)" |
---|
50 | # WRITE "db_acc" |
---|
51 | |
---|
52 | #MATCH "VERSION *" |
---|
53 | # TAG "RDP" |
---|
54 | # WRITE "version" |
---|
55 | |
---|
56 | MATCH "KEYWORDS" |
---|
57 | # TAG "RDP" |
---|
58 | WRITE "keywd_RDP" |
---|
59 | |
---|
60 | #MATCH "SOURCE *" |
---|
61 | # TAG "RDP" |
---|
62 | # WRITE "source" |
---|
63 | |
---|
64 | MATCH " ORGANISM *" |
---|
65 | # TAG "RDP" |
---|
66 | SRT "*|*=*1" |
---|
67 | WRITE "tax_rdp_name" |
---|
68 | |
---|
69 | MATCH " ORGANISM *" |
---|
70 | # TAG "RDP" |
---|
71 | SRT "*|*=*2" |
---|
72 | WRITE "tax_rdp" |
---|
73 | |
---|
74 | MATCH " ORGANISM *" |
---|
75 | SRT "* * *=*1 *2:*|*=*1" |
---|
76 | WRITE "full_name" |
---|
77 | |
---|
78 | MATCH "REFERENCE *" |
---|
79 | SRT "* *=*1" |
---|
80 | SETVAR x |
---|
81 | IFNOTSET x "No REFERENCE entry seen" |
---|
82 | # TAG "RDP" |
---|
83 | # APPEND "num_bib" |
---|
84 | |
---|
85 | MATCH "REFERENCE *" |
---|
86 | SRT "(=:)=:?*=(?)*" |
---|
87 | # TAG "RDP" |
---|
88 | APPEND "nuc_rp" |
---|
89 | |
---|
90 | MATCH " AUTHORS *" |
---|
91 | SRT "*=($x)\: *" |
---|
92 | # TAG "RDP" |
---|
93 | APPEND "author" |
---|
94 | |
---|
95 | MATCH " TITLE *" |
---|
96 | SRT "*=($x)\: *" |
---|
97 | # TAG "RDP" |
---|
98 | APPEND "title" |
---|
99 | |
---|
100 | MATCH " JOURNAL *" |
---|
101 | SRT "*=($x)\: *" |
---|
102 | # TAG "RDP" |
---|
103 | APPEND "journal" |
---|
104 | |
---|
105 | #MATCH " MEDLINE *" |
---|
106 | # SRT "*=($x)\: *" |
---|
107 | # TAG "RDP" |
---|
108 | # APPEND "medline_id" |
---|
109 | |
---|
110 | MATCH " source*cell_line*" |
---|
111 | SRT "*/cell_line\=\"*\"*=*2" |
---|
112 | TAG "RDP" |
---|
113 | WRITE "cell_line" |
---|
114 | |
---|
115 | MATCH " source*cell_type*" |
---|
116 | SRT "*/cell_type\=\"*\"*=*2" |
---|
117 | TAG "RDP" |
---|
118 | WRITE "cell_type |
---|
119 | |
---|
120 | MATCH " source*cultivar*" |
---|
121 | SRT "*/cultivar\=\"*\"*=*2" |
---|
122 | TAG "RDP" |
---|
123 | WRITE "cultivar" |
---|
124 | |
---|
125 | MATCH " source*db_xref*" |
---|
126 | SRT "*/db_xref\=\"*\"*=*2" |
---|
127 | TAG "RDP" |
---|
128 | WRITE "tax_xref_embl" |
---|
129 | |
---|
130 | MATCH " source*isolate*" |
---|
131 | SRT "*/isolate\=\"*\"*=*2" |
---|
132 | TAG "RDP" |
---|
133 | WRITE "isolate" |
---|
134 | |
---|
135 | MATCH " source*isolation_source*" |
---|
136 | SRT "*/isolation_source\=\"*\"*=*2" |
---|
137 | TAG "RDP" |
---|
138 | WRITE "isolation_source" |
---|
139 | |
---|
140 | MATCH " source*clone*" |
---|
141 | SRT "*/clone\=\"*\"*=*2" |
---|
142 | TAG "RDP" |
---|
143 | WRITE "clone" |
---|
144 | |
---|
145 | MATCH " source*map*" |
---|
146 | SRT "*/map\=\"*\"*=*2" |
---|
147 | TAG "RDP" |
---|
148 | WRITE "map" |
---|
149 | |
---|
150 | MATCH " source*organelle*" |
---|
151 | SRT "*/organelle\=\"*\"*=*2" |
---|
152 | TAG "RDP" |
---|
153 | WRITE "organelle" |
---|
154 | |
---|
155 | MATCH " source*plasmid*" |
---|
156 | SRT "*/plasmid\=\"*\"*=*2" |
---|
157 | TAG "RDP" |
---|
158 | WRITE "plasmid" |
---|
159 | |
---|
160 | MATCH " source*sero_type*" |
---|
161 | SRT "*/sero_type\=\"*\"*=*2" |
---|
162 | TAG "RDP" |
---|
163 | WRITE "serotype" |
---|
164 | |
---|
165 | MATCH " source*sero_var*" |
---|
166 | SRT "*/sero_var\=\"*\"*=*2" |
---|
167 | TAG "RDP" |
---|
168 | WRITE "serovar" |
---|
169 | |
---|
170 | MATCH " source*specimen_voucher*" |
---|
171 | SRT "*/specimen_voucher\=\"*\"*=*2" |
---|
172 | TAG "RDP" |
---|
173 | WRITE "voucher" |
---|
174 | |
---|
175 | MATCH " source*specific_host*" |
---|
176 | SRT "*/specific_host\=\"*\"*=*2" |
---|
177 | TAG "RDP" |
---|
178 | WRITE "host" |
---|
179 | |
---|
180 | MATCH " source*strain=*" |
---|
181 | # TAG "RDP" |
---|
182 | SRT "*strain\=\"*\"*=*2" |
---|
183 | WRITE "strain" |
---|
184 | |
---|
185 | MATCH " source*sub_species=*" |
---|
186 | TAG "RDP" |
---|
187 | SRT "*sub_species\=\"*\"*=*2" |
---|
188 | WRITE "subspec" |
---|
189 | |
---|
190 | MATCH " source*sub_strain=*" |
---|
191 | TAG "RDP" |
---|
192 | SRT "*sub_strain\=\"*\"*=*2" |
---|
193 | WRITE "substrain" |
---|
194 | |
---|
195 | MATCH " source*tissue_type=*" |
---|
196 | TAG "RDP" |
---|
197 | SRT "*tissue_type\=\"*\"*=*2" |
---|
198 | WRITE "tissue" |
---|
199 | |
---|
200 | MATCH " source*note*" |
---|
201 | SRT "*/note\=\"*\"*=*2" |
---|
202 | TAG "RDP" |
---|
203 | WRITE "note" |
---|
204 | |
---|
205 | MATCH " rRNA*db_xref*" |
---|
206 | SRT "*/db_xref\=\"*\"*=*2" |
---|
207 | TAG "RDP" |
---|
208 | APPEND "tax_xref_embl" |
---|
209 | |
---|
210 | MATCH " rRNA*evidence*" |
---|
211 | SRT "*/evidence\=\"*\"*=*2" |
---|
212 | TAG "RDP" |
---|
213 | APPEND "evidence" |
---|
214 | |
---|
215 | MATCH " rRNA*allele*" |
---|
216 | SRT "*/allele\=\"*\"*=*2" |
---|
217 | TAG "RDP" |
---|
218 | APPEND "allele" |
---|
219 | |
---|
220 | MATCH " rRNA*function*" |
---|
221 | SRT "*/function\=\"*\"*=*2" |
---|
222 | TAG "RDP" |
---|
223 | APPEND "function" |
---|
224 | |
---|
225 | MATCH " rRNA*citation*" |
---|
226 | SRT "*/citation\=\"*\"*=*2" |
---|
227 | TAG "RDP" |
---|
228 | APPEND "citation" |
---|
229 | |
---|
230 | MATCH " rRNA*gene*" |
---|
231 | SRT "*/gene\=\"*\"*=*2" |
---|
232 | TAG "RDP" |
---|
233 | APPEND "gene" |
---|
234 | |
---|
235 | MATCH " rRNA*map*" |
---|
236 | SRT "*/map\=\"*\"*=*2" |
---|
237 | TAG "RDP" |
---|
238 | APPEND "map" |
---|
239 | |
---|
240 | MATCH " rRNA*note*" |
---|
241 | SRT "*/note\=\"*\"*=*2" |
---|
242 | TAG "RDP" |
---|
243 | APPEND "note" |
---|
244 | |
---|
245 | MATCH " rRNA*operon*" |
---|
246 | SRT "*/operon\=\"*\"*=*2" |
---|
247 | TAG "RDP" |
---|
248 | APPEND "operon" |
---|
249 | |
---|
250 | MATCH " rRNA*product*" |
---|
251 | SRT "*/product\=\"*\"*=*2" |
---|
252 | TAG "RDP" |
---|
253 | APPEND "product" |
---|
254 | |
---|
255 | MATCH " rRNA*" |
---|
256 | SRT "*..*=*1:<=:>=" |
---|
257 | WRITE_INT "start" |
---|
258 | |
---|
259 | MATCH " rRNA *" |
---|
260 | SRT "*..*=*2:<=:>=:*|*=*1" |
---|
261 | WRITE_INT "stop" |
---|
262 | |
---|
263 | SEQUENCEAFTER "ORIGIN*" |
---|
264 | SEQUENCESRT " =:~=.:*Check*..=" |
---|
265 | SEQUENCEACI "remove("0123456789 /")" |
---|
266 | SEQUENCECOLUMN 0 |
---|
267 | SEQUENCEEND "//" |
---|
268 | CREATE_ACC_FROM_SEQUENCE |
---|
269 | |
---|
270 | END "//" |
---|