source: branches/stable/lib/import/older/fasta_contextual_data_1_03.ift

Last change on this file was 11965, checked in by westram, 11 years ago
  • move old import filters into '$ARBHOME/lib/import/older'
File size: 4.5 KB
Line 
1# written by Renzo Kottmann rkottman@mpi-bremen.de 2008-08
2# modified by Joerg Peplies, Frank Oliver Gloeckner
3# start field is instantly set to 1
4# Version 1.03 last modified 2008-11-01
5# work out solution for PCR_primers
6# fasta identifier (">*") goes now to field "fasta_id" (new!)
7# content of contextual data field "organism" goes to ARB field "full_name"
8
9#AUTODETECT "*[*"
10KEYWIDTH 1
11
12BEGIN   ">??*"
13
14MATCH   ">*"
15        SRT "* *=*1:*\t*=*1"
16        WRITE "name"
17        SRT "*=1"
18        WRITE_INT "start"
19
20MATCH   ">*"
21        SRT "* *=*1"
22        WRITE "fasta_id"
23
24MATCH   "*altitude=*"
25        SRT "*altitude\=*] *=*2"
26        WRITE "altitude_slv"
27
28MATCH   "*bio-material=*"
29        SRT "*bio-material\=*] *=*2"
30        WRITE "bio_material"
31
32MATCH   "*clone-lib=*"
33        SRT "*clone-lib\=*] *=*2"
34        WRITE "clone_lib"
35
36MATCH   "*strain=*"
37        SRT "*strain\=*] *=*2"
38        WRITE "strain"
39
40MATCH   "*fingerprint_lib=*"
41        SRT "*fingerprint_lib\=*] *=*2"
42        WRITE "fingerprint_lib"
43
44MATCH   "*chlorophyll=*"
45        SRT "*chlorophyll\=*] *=*2"
46        WRITE "chlorophyll_slv"
47
48MATCH   "*collected-by=*"
49        SRT "*collected-by\=*] *=*2"
50        WRITE "collected_by"
51
52MATCH   "*collection-date=*"
53        SRT "*collection-date\=*] *=*2"
54        WRITE "collection_date"
55
56MATCH   "*collection_time=*"
57        SRT "*collection_time\=*] *=*2"
58        WRITE "collection_time_slv"
59
60MATCH   "*country=*"
61        SRT "*country\=*] *=*2"
62        WRITE "country"
63
64MATCH   "*culture-collection=*"
65        SRT "*culture-collection\=*] *=*2"
66        WRITE "culture_collection"
67
68MATCH   "*depth=*"
69        SRT "*depth\=*] *=*2"
70        WRITE "depth_slv"
71
72MATCH   "*dissolved_oxygen=*"
73        SRT "*dissolved_oxygen\=*] *=*2"
74        WRITE "dissolved_oxygen_slv"
75
76MATCH   "*DOC=*"
77        SRT "*DOC\=*] *=*2"
78        WRITE "DOC_slv"
79
80MATCH   "*environmental-sample=*"
81        SRT "*environmental-sample\=*] *=*2"
82        WRITE "environmental_sample"
83
84MATCH   "*fwd-pcr-primer-seq=*"
85        SRT "*fwd-pcr-primer-seq\=*] *=*2"
86        WRITE "fwd_pcr_primer_seq"
87
88MATCH   "*geodetic_datum=*"
89        SRT "*geodetic_datum\=*] *=*2"
90        WRITE "geodetic_datum_slv"
91
92MATCH   "*habitat=*"
93        SRT "*habitat\=*] *=*2"
94        WRITE "habitat_slv"
95
96MATCH   "*haplotype=*"
97        SRT "*haplotype\=*] *=*2"
98        WRITE "haplotype"
99
100MATCH   "*identified-by=*"
101        SRT "*identified-by\=*] *=*2"
102        WRITE "identified_by"
103
104MATCH   "*isolation-source=*"
105        SRT "*isolation-source\=*] *=*2"
106        WRITE "isolation_source"
107
108MATCH   "*lab-host=*"
109        SRT "*lab-host\=*] *=*2"
110        WRITE "lab_host"
111
112MATCH   "*lat_lon_details=*"
113        SRT "*lat_lon_details\=*] *=*2"
114        WRITE "lat_lon_details_slv"
115
116MATCH   "*lat-lon=*"
117        SRT "*lat-lon\=*] *=*2"
118        WRITE "lat_lon"
119
120MATCH   "*metagenomic=*"
121        SRT "*metagenomic\=*] *=*2"
122        WRITE "metagenomic"
123
124MATCH   "*nitrate=*"
125        SRT "*nitrate\=*] *=*2"
126        WRITE "nitrate_slv"
127
128MATCH   "*pH=*"
129        SRT "*pH\=*] *=*2"
130        WRITE "pH_slv"
131
132MATCH   "*phosphate=*"
133        SRT "*phosphate\=*] *=*2"
134        WRITE "phosphate_slv"
135
136MATCH   "*plasmid-name=*"
137        SRT "*plasmid-name\=*] *=*2"
138        WRITE "plasmid_name"
139
140MATCH   "*project_name=*"
141        SRT "*project_name\=*] *=*2"
142        WRITE "project_name_slv"
143
144MATCH   "*POC=*"
145        SRT "*POC\=*] *=*2"
146        WRITE "POC_slv"
147
148MATCH   "*rev-pcr-primer-seq=*"
149        SRT "*rev-pcr-primer-seq\=*] *=*2"
150        WRITE "rev_pcr_primer_seq"
151
152MATCH   "*salinity=*"
153        SRT "*salinity\=*] *=*2"
154        WRITE "salinity_slv"
155
156MATCH   "*sample_identifier=*"
157        SRT "*sample_identifier\=*] *=*2"
158        WRITE "sample_identifier_slv"
159
160MATCH   "*sample_material=*"
161        SRT "*sample_material\=*] *=*2"
162        WRITE "sample_material_slv"
163
164MATCH   "*sample_volume=*"
165        SRT "*sample_volume\=*] *=*2"
166        WRITE "sample_volume_slv"
167
168MATCH   "*silicate=*"
169        SRT "*silicate\=*] *=*2"
170        WRITE "silicate_slv"
171
172MATCH   "*specific-host=*"
173        SRT "*specific-host\=*] *=*2"
174        WRITE "specific_host"
175
176MATCH   "*specimen-voucher=*"
177        SRT "*specimen-voucher\=*] *=*2"
178        WRITE "specimen_voucher"
179
180MATCH   "*sub-species=*"
181        SRT "*sub-species\=*] *=*2"
182        WRITE "sub_species"
183
184MATCH   "*temperature=*"
185        SRT "*temperature\=*] *=*2"
186        WRITE "temperature_slv"
187
188MATCH   "*organism=*"
189        SRT "*organism\=*] *=*2"
190        WRITE "full_name"
191
192SEQUENCEAFTER   "*"
193SEQUENCESRT     ""
194SEQUENCEACI     "remove(".-0123456789 /")"
195SEQUENCECOLUMN   0
196SEQUENCEEND     ">*"
197
198# DONT_GEN_NAMES
199CREATE_ACC_FROM_SEQUENCE
200
201END     "//"
Note: See TracBrowser for help on using the repository browser.