[Bio] / FigWebServices / align_and_tree.cgi Repository:
ViewVC logotype

Annotation of /FigWebServices/align_and_tree.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (view) (download)

1 : golsen 1.1 # -*- perl -*-
2 :     #
3 :     # Copyright (c) 2003-2011 University of Chicago and Fellowship
4 :     # for Interpretations of Genomes. All Rights Reserved.
5 :     #
6 :     # This file is part of the SEED Toolkit.
7 :     #
8 :     # The SEED Toolkit is free software. You can redistribute
9 :     # it and/or modify it under the terms of the SEED Toolkit
10 :     # Public License.
11 :     #
12 :     # You should have received a copy of the SEED Toolkit Public License
13 :     # along with this program; if not write to the University of Chicago
14 :     # at info@ci.uchicago.edu or the Fellowship for Interpretation of
15 :     # Genomes at veronika@thefig.info or download a copy from
16 :     # http://www.theseed.org/LICENSE.TXT.
17 :     #
18 :    
19 :     use strict;
20 : golsen 1.4 use FIG;
21 :     use CGI;
22 : golsen 1.1 use SAPserver;
23 : golsen 1.4 use CGIAlignTreeViewer;
24 : golsen 1.1
25 : golsen 1.4 my $fig = FIG->new();
26 :     my $cgi = CGI->new();
27 :     my $sapObject = SAPserver->new();
28 :    
29 :     my $user = $cgi->param( 'user' ) || '';
30 :     my $url = "align_and_tree.cgi";
31 :     my $hidden_form_var = $cgi->hidden( -name => 'user', -value => $user ) . "\n";
32 : golsen 1.3
33 :     print $cgi->header;
34 : golsen 1.4 my ( $html, $title ) = CGIAlignTreeViewer::run( $fig, $cgi, $sapObject, $user, $url, $hidden_form_var );
35 :     $title ||= "$url";
36 :     $html ||= $cgi->h2( 'No HTML returned by script.' ) . "\n";
37 : golsen 1.1
38 : golsen 1.4 print "<TITLE>$title</TITLE>\n";
39 :     print $html;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3