blib/conf/MobyServices/GbrowseServices.pm untested

filter: Statementstmt 0.0% 0 / 384 Branchbran 0.0% 0 / 120 Conditioncond 0.0% 0 / 81 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 19 Podpod 0.0% 0 / 11 totaltotal 0.0% 0 / 615 CC 61 SCAR 38.8
CC
61
Cov
0%
GbrowseGetFeatureGFF2
72.0
GbrowseGetFeatureGFF3
72.0
GbrowseGetFeatureSequenceObject
72.0
CRAP 48.4
1 #!/usr/bin/perl -w
2 package MobyServices::GbrowseServices;
3  
4 ###################################################################
5 # Non-modperl users should change this variable if needed to point
6 # to the directory in which the configuration files are stored.
7 #
8 $CONF_DIR = '/usr/local/apache/conf/gbrowse.conf';
9 #
10 ###################################################################
11  
12  
13  
14  
15  
16  
17  
18 #====================================================================
19 #$Id: GbrowseServices.pm,v 1.7 2008-10-03 19:35:27 lstein Exp $
20  
21 use strict;
22 use Text::Shellwords;
23 use Bio::DB::GFF;
24 use SOAP::Lite;
25 use MOBY::CommonSubs qw{:all};
26 use Bio::Graphics::Browser;
27 use Bio::Graphics::Browser::Util;
28 use vars qw(%dbh $CONFIG $authURI $CONF_DIR);
29  
30 sub _settings {
31 $CONF_DIR = conf_dir($CONF_DIR); # conf_dir() is exported from Util.pm
32  
33 ## CONFIGURATION & INITIALIZATION ################################
34 # preliminaries -- read and/or refresh the configuration directory
35 $CONFIG = open_config($CONF_DIR); # open_config() is exported from Util.pm
36 my @sources = $CONFIG->sources; # get all data sources
37  
38 foreach (@sources){ # grab the database handle for each source
39 $CONFIG->source($_);
40 my $db = open_database($CONFIG);
41 $dbh{$_}=$db;
42 }
43
44 open (IN, "$CONF_DIR/MobyServices/moby.conf") || die "\n**** GbrowseServices.pm couldn't open configuration file $CONF_DIR/MobyServices/moby.conf: $!\n";
45 while (<IN>){
46 chomp; next unless $_; # filter out blank lines
47 next if m/^#/; # filter out comment lines
48 last if $_ =~ /\[Namespace_Class_Mappings\]/;
49 my @res = shellwords($_); # parse the tokens key = value1 value2 value3
50 $CONFIG->{MOBY}->{$res[0]} = [@res[2..scalar(@res)]]; # add them to the existing config with a new tag MOBY in key = \@values format
51 }
52 while (<IN>){ # now process the namespace mappings
53 chomp; next unless $_; # filter out blank lines
54 next if m/^#/; # filter out comment lines
55 my @res = shellwords($_); # parse the tokens key = value1 value2 value3
56 $CONFIG->{'MOBY'}->{'NAMESPACE'}->{$res[0]} = [$res[2]]; # add them to the existing config with a new tag MOBY in key = \@values format
57 }
58 }
59  
60 sub _doValidationStuff {
61 my $authURI = $CONFIG->{'MOBY'}->{'authURI'};
62 $authURI = shift(@$authURI); $authURI ||='unknown.org';
63  
64 my $reference = $CONFIG->{'MOBY'}->{'Reference'};
65 $reference = shift(@$reference); $reference ||='';
66 unless ($reference){
67 print STDERR "\n\nMobyServices::GbrowseServices - you have not set a reference class in your moby.conf file\n\n";
68 return SOAP::Data->type('base64' => responseHeader($authURI) . responseFooter());
69 }
70  
71 my (@feat_namespaces) = keys %{$CONFIG->{MOBY}->{NAMESPACE}};
72 my @validNS = validateNamespaces($reference,@feat_namespaces); # ONLY do this if you are intending to be namespace aware!
73 unless (scalar(@validNS)){
74 print STDERR "\n\nMobyServices::GbrowseServices - namespace $reference does not exist in the MOBY Namespace ontology\n\n";
75 return SOAP::Data->type('base64' => responseHeader($authURI) . responseFooter());
76 }
77
78 return ($authURI, \@validNS);
79 }
80  
81 sub GbrowseGetFeatureGFF2 {
82 my ($caller, $data) = @_;
83 _settings();
84 my ($authURI, $validNSs) = _doValidationStuff();
85  
86 my $MOBY_RESPONSE = "";
87 foreach my $source($CONFIG->sources){
88 $CONFIG->source($source); # set the current source
89 next unless (my $db = $dbh{$source}); # get the database object
90 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
91 next unless (scalar(@inputs));
92 foreach (@inputs){
93 my ($articleType, $qID, $input) = @{$_};
94 unless (($articleType == SIMPLE) && ($input)){
95 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
96 next;
97 } else {
98 my $namespace = getSimpleArticleNamespaceURI($input);
99 $namespace ||="";
100 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
101 my ($identifier) = getSimpleArticleIDs($input); # note array output!
102 # okay, we need to map the MOBY namespace back into our namespace system
103 my $Groupname = $CONFIG->{MOBY}->{NAMESPACE}->{$namespace};
104 unless ($Groupname){
105 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
106 print STDERR "** MOBY Services error - Trying to map apparently valid namespace: '$namespace' but not found\n";
107 next;
108 }
109 my @features = $db->get_feature_by_name(-class => $Groupname, -name => $identifier);
110 my $gff = "";
111 foreach my $feat(@features){
112 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $feat;
113 $gff .= $feat->gff_string."\n";
114 foreach my $sub($feat->sub_SeqFeature){
115 next unless $sub;
116 $gff .= $sub->gff_string."\n";
117 }
118 }
119 $MOBY_RESPONSE .= simpleResponse("<moby:GFF2 moby:namespace='$namespace' moby:id='$identifier'>\n$gff\n</moby:GFF2>", "", $qID);
120 }
121 }
122 }
123 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
124 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
125 }
126  
127 sub GbrowseGetFeatureGFF3 {
128 my ($caller, $data) = @_;
129 _settings();
130 my ($authURI, $validNSs) = _doValidationStuff();
131  
132 my $MOBY_RESPONSE = "";
133 foreach my $source($CONFIG->sources){
134 $CONFIG->source($source); # set the current source
135 next unless (my $db = $dbh{$source}); # get the database object
136 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
137 next unless (scalar(@inputs));
138 foreach (@inputs){
139 my ($articleType, $qID, $input) = @{$_};
140 unless (($articleType == SIMPLE) && ($input)){
141 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
142 next;
143 } else {
144 my $namespace = getSimpleArticleNamespaceURI($input);
145 $namespace ||="";
146 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
147 my ($identifier) = getSimpleArticleIDs($input); # note array output!
148 # okay, we need to map the MOBY namespace back into our namespace system
149 my $Groupname = $CONFIG->{MOBY}->{NAMESPACE}->{$namespace};
150 unless ($Groupname){
151 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
152 print STDERR "** MOBY Services error - Trying to map apparently valid namespace: '$namespace' but not found\n";
153 next;
154 }
155 my @features = $db->get_feature_by_name(-class => $Groupname, -name => $identifier);
156 my $gff = "";
157 foreach my $feat(@features){
158 $feat->version(3); # set to GFF3
159 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $feat;
160 $gff .= $feat->gff_string."\n";
161 foreach my $sub($feat->sub_SeqFeature){
162 next unless $sub;
163 $sub->version(3);
164 $gff .= $sub->gff_string."\n";
165 }
166 }
167 $MOBY_RESPONSE .= simpleResponse("<moby:GFF2 moby:namespace='$namespace' moby:id='$identifier'>\n$gff\n</moby:GFF2>", "", $qID);
168 }
169 }
170 }
171 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
172 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
173 }
174  
175 sub GbrowseGetFeatureSequenceObject {
176 my ($caller, $data) = @_;
177 _settings();
178 my ($authURI, $validNSs) = _doValidationStuff();
179 my %types = ('dna', 'DNASequence', 'rna', 'RNASequence', 'protein', 'AminoAcidSequence');
180  
181 my $MOBY_RESPONSE = "";
182 foreach my $source($CONFIG->sources){
183 $CONFIG->source($source); # set the current source
184 next unless (my $db = $dbh{$source}); # get the database object
185 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
186 next unless (scalar(@inputs));
187 foreach (@inputs){
188 my ($articleType, $qID, $input) = @{$_};
189 unless (($articleType == SIMPLE) && ($input)){
190 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ; # send empty response for empty input
191 next;
192 } else {
193 my $namespace = getSimpleArticleNamespaceURI($input); # get the namespace
194 $namespace ||="";
195 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs}); #invalid namespace treated as empty query
196 my ($identifier) = getSimpleArticleIDs($input); # note array output!
197 # okay, we need to map the MOBY namespace back into our namespace system
198 my $Groupname = $CONFIG->{MOBY}->{NAMESPACE}->{$namespace}; # map the namespace to our database group name
199 unless ($Groupname){
200 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ; # if it is invlid, send empty respnse and tell the maintainer that something is goofy!
201 print STDERR "** MOBY Services error - Trying to map apparently valid namespace: '$namespace' but not found\n";
202 next;
203 }
204 my @features = $db->get_feature_by_name(-class => $Groupname, -name => $identifier); # get feature from DB
205 my $gff = "";
206 foreach my $feat(@features){
207 $feat->version(3); # set to GFF3
208 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $feat;
209  
210 my $seq = $feat->seq;
211 $seq =~ s/\s//g;
212 my $length = $feat->length;
213 my $objtype = $types{$feat->alphabet};
214 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $objtype;
215 $MOBY_RESPONSE .= simpleResponse("<moby:$objtype moby:namespace='$namespace' moby:id='$identifier'>
216 <moby:String namespace='' id=''>$seq</moby:String>
217 <moby:Integer namespace='' id=''>$length</moby:Integer>
218 </moby:$objtype>", "", $qID);
219 }
220 }
221 }
222 }
223 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
224 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
225 }
226  
227 sub GbrowseGetReferenceGFF2 { # DO THIS ONE!!
228 my ($caller, $data) = @_;
229 _settings();
230 my ($authURI, $validNSs) = _doValidationStuff();
231  
232 my $MOBY_RESPONSE = "";
233 foreach my $source($CONFIG->sources){
234 $CONFIG->source($source); # set the current source
235 next unless (my $db = $dbh{$source}); # get the database object
236 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
237 next unless (scalar(@inputs));
238 foreach (@inputs){
239 my ($articleType, $qID, $input) = @{$_};
240 unless (($articleType == SIMPLE) && ($input)){
241 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
242 next;
243 } else {
244 my $namespace = getSimpleArticleNamespaceURI($input);
245 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
246 my ($identifier) = getSimpleArticleIDs($input); # note array output!
247 my $seg = $db->segment(-name => $identifier);
248 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
249 my $gff = join "\n", map {$_->gff_string} ($seg->get_SeqFeatures);
250 $MOBY_RESPONSE .= simpleResponse("<moby:GFF2 moby:namespace='$namespace' moby:id='$identifier'>\n$gff\n</moby:GFF2>", "", $qID);
251 }
252 }
253 }
254 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
255 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
256 }
257  
258 sub GbrowseGetReferenceDNASequenceWithFeatures {
259 my ($caller, $data) = @_;
260 _settings();
261 my ($authURI, $validNSs) = _doValidationStuff();
262  
263 my $MOBY_RESPONSE = "";
264 foreach my $source($CONFIG->sources){
265 $CONFIG->source($source); # set the current source
266 next unless (my $db = $dbh{$source}); # get the database object
267 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
268 next unless (scalar(@inputs));
269 foreach (@inputs){
270 my ($articleType, $qID, $input) = @{$_};
271 unless (($articleType == SIMPLE) && ($input)){
272 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
273 next;
274 } else {
275 my $namespace = getSimpleArticleNamespaceURI($input);
276 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
277 my ($identifier) = getSimpleArticleIDs($input); # note array output!
278 my $seg = $db->segment(-name => $identifier);
279 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
280 my $seq = $seg->seq; $seq =~ s/\S//g;
281 my $length = $seg->length; # DNASequenceWithGFFFeatures
282 my $mobyresp = "<moby:DNASequenceWithGFFFeatures moby:namespace='$namespace' moby:id='$identifier'>
283 <moby:String moby:namespace='' moby:id=''>$seq</moby:String>
284 <moby:Integer moby:namespace='' moby:id=''>$length</moby:Integer>
285 ";
286 foreach my $feat($seg->get_SeqFeatures){$mobyresp .="
287 <moby:BasicGFFSequenceFeature namespace='' id=''>
288 <String namespace='' id='' articleName='reference'></String>
289 <String namespace='' id='' articleName='source'></String>
290 <String namespace='' id='' articleName='method'></String>
291 <Integer namespace='' id='' articleName='start'></Integer>
292 <Integer namespace='' id='' articleName='stop'></Integer>
293 <Float namespace='' id='' articleName='score'></Float>
294 <String namespace='' id='' articleName='strand'></String>
295 <String namespace='' id='' articleName='frame'></String>
296 <String namespace='' id='' articleName='phase'></String>"
297
298 }
299 my $gff = join "\n", map {$_->gff_string} ($seg->get_SeqFeatures);
300 $MOBY_RESPONSE .= simpleResponse("<moby:GFF2 moby:namespace='$namespace' moby:id='$identifier'>\n$gff\n</moby:GFF2>", "", $qID);
301 }
302 }
303 }
304 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
305 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
306 }
307  
308 sub GbrowseGetReferenceGFF3 {
309 my ($caller, $data) = @_;
310 _settings();
311 my ($authURI, $validNSs) = _doValidationStuff();
312  
313 my $MOBY_RESPONSE = "";
314 foreach my $source($CONFIG->sources){
315 $CONFIG->source($source); # set the current source
316 next unless (my $db = $dbh{$source}); # get the database object
317 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
318 next unless (scalar(@inputs));
319 foreach (@inputs){
320 my ($articleType, $qID, $input) = @{$_};
321 unless (($articleType == SIMPLE) && ($input)){
322 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
323 next;
324 } else {
325 my $namespace = getSimpleArticleNamespaceURI($input);
326 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
327 my ($identifier) = getSimpleArticleIDs($input); # note array output!
328 my $seg = $db->segment(-name => $identifier);
329 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
330 my $gff = join "\n", map {$_->version(3); $_->gff_string} ($seg->get_SeqFeatures);
331 my $seq = $seg->seq;
332 $seq =~ s/\s//g;
333 $seq =~ s/(\S{70})/$1\n/g;
334 my $fasta = ">$identifier\n$seq\n";
335 $MOBY_RESPONSE .= simpleResponse("<moby:GFF3 moby:namespace='$namespace' moby:id='$identifier'>\n$gff\n###FASTA\n$fasta\n</moby:GFF3>", "", $qID);
336 }
337 }
338 }
339 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
340 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
341 }
342  
343  
344 sub GbrowseGetReferenceFasta {
345 my ($caller, $data) = @_;
346 _settings();
347 my ($authURI, $validNSs) = _doValidationStuff();
348  
349 my $MOBY_RESPONSE;
350 foreach my $source($CONFIG->sources){
351 $CONFIG->source($source); # set the current source
352 next unless (my $db = $dbh{$source}); # get the database object
353 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
354 next unless (scalar(@inputs));
355 foreach (@inputs){
356 my ($articleType, $qID, $input) = @{$_};
357 unless (($articleType == SIMPLE) && ($input)){
358 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
359 next;
360 } else {
361 my $namespace = getSimpleArticleNamespaceURI($input);
362 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
363 my ($identifier) = getSimpleArticleIDs($input); # note array output!
364 my $seg = $db->segment(-name => $identifier);
365 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
366 my $seq = $seg->seq;
367 $seq =~ s/\s//g;
368 $seq =~ s/(\S{70})/$1\n/g;
369 my $fasta = ">$identifier\n$seq\n";
370 $MOBY_RESPONSE .= simpleResponse("<moby:FASTA moby:namespace='$namespace' moby:id='$identifier'>\n$fasta\n</moby:FASTA>", "", $qID);
371 }
372 }
373 }
374 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
375 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
376 }
377  
378  
379 sub GbrowseGetReferenceSeqObj {
380 my ($caller, $data) = @_;
381 _settings();
382 my ($authURI, $validNSs) = _doValidationStuff();
383 my %types = ('dna', 'DNASequence', 'rna', 'RNASequence', 'protein', 'AminoAcidSequence');
384  
385 my $MOBY_RESPONSE = "";
386 foreach my $source($CONFIG->sources){
387 $CONFIG->source($source); # set the current source
388 next unless (my $db = $dbh{$source}); # get the database object
389 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
390 next unless (scalar(@inputs));
391  
392 foreach (@inputs){
393 my ($articleType, $qID, $input) = @{$_};
394 unless (($articleType == SIMPLE) && ($input)){
395 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
396 next;
397 } else {
398 my $namespace = getSimpleArticleNamespaceURI($input);
399 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
400 my ($identifier) = getSimpleArticleIDs($input); # note array output!
401 my $seg = $db->segment(-name => $identifier);
402 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
403 my $seq = $seg->seq;
404 $seq =~ s/\s//g;
405 my $length = $seg->length;
406 my $objtype = $types{$seg->alphabet};
407 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $objtype;
408 $MOBY_RESPONSE .= simpleResponse("<moby:$objtype moby:namespace='$namespace' moby:id='$identifier'>
409 <moby:String namespace='' id=''>$seq</moby:String>
410 <moby:Integer namespace='' id=''>$length</moby:Integer>
411 </moby:$objtype>", "", $qID);
412 }
413 }
414 }
415 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
416 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
417 }
418  
419  
420 sub GbrowseGetSomeFeatureSequence {
421 my ($caller, $data) = @_;
422 _settings();
423 my ($authURI, $validNSs) = _doValidationStuff();
424 my %types = ('dna', 'DNASequence', 'rna', 'RNASequence', 'protein', 'AminoAcidSequence');
425  
426 my $MOBY_RESPONSE = "";
427 foreach my $source($CONFIG->sources){
428 $CONFIG->source($source); # set the current source
429 next unless (my $db = $dbh{$source}); # get the database object
430 my (@inputs)= genericServiceInputParser($data); # ([SIMPLE, $queryID, $simple],...)
431 next unless (scalar(@inputs));
432  
433 foreach (@inputs){
434 my ($articleType, $qID, $input) = @{$_};
435 unless (($articleType == SIMPLE) && ($input)){
436 $MOBY_RESPONSE .= simpleResponse("", "", $qID) ;
437 next;
438 } else {
439 my $namespace = getSimpleArticleNamespaceURI($input);
440 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless validateThisNamespace($namespace, @{$validNSs});
441 my ($identifier) = getSimpleArticleIDs($input); # note array output!
442 my $seg = $db->segment(-name => $identifier);
443 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $seg;
444 my $seq = $seg->seq;
445 $seq =~ s/\s//g;
446 my $length = $seg->length;
447 my $objtype = $types{$seg->alphabet};
448 (($MOBY_RESPONSE .= simpleResponse("", "", $qID)) && next) unless $objtype;
449 $MOBY_RESPONSE .= simpleResponse("<moby:$objtype moby:namespace='$namespace' moby:id='$identifier'>
450 <moby:String namespace='' id=''>$seq</moby:String>
451 <moby:Integer namespace='' id=''>$length</moby:Integer>
452 </moby:$objtype>", "", $qID);
453 }
454 }
455 }
456 #print STDERR (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter);
457 return SOAP::Data->type('base64' => (responseHeader($authURI) . $MOBY_RESPONSE . responseFooter));
458 }
459  
460  
461 1;
462  
463 #===========================================
464  
465  
466