17 |
# http://www.theseed.org/LICENSE.TXT. |
# http://www.theseed.org/LICENSE.TXT. |
18 |
# |
# |
19 |
|
|
20 |
|
eval { |
21 |
|
require FIG_Config; |
22 |
|
}; |
23 |
|
|
24 |
use URI::Escape; # uri_escape |
use URI::Escape; # uri_escape |
25 |
use gjoseqlib; |
use gjoseqlib; |
26 |
use HTML; |
use HTML; |
52 |
my $keywords = $cgi->param('keywords'); |
my $keywords = $cgi->param('keywords'); |
53 |
my $function = $cgi->param('function'); |
my $function = $cgi->param('function'); |
54 |
my $dataD = $cgi->param('dataD'); |
my $dataD = $cgi->param('dataD'); |
55 |
|
|
56 |
|
# |
57 |
|
# If we are operating in RAST, the csD sits within the |
58 |
|
# RAST job directory and the dataD setting is the |
59 |
|
# RAST job number. |
60 |
|
# |
61 |
|
|
62 |
my $csD = "/homes/overbeek/Ross/MakeCS.Kbase/Data/CS"; |
my $csD = "/homes/overbeek/Ross/MakeCS.Kbase/Data/CS"; |
63 |
|
|
64 |
|
if ($FIG_Config::rast_jobs) |
65 |
|
{ |
66 |
|
$csD = "$FIG_Config::rast_jobs/$dataD/CloseStrains"; |
67 |
|
} |
68 |
my $dataDF = "$csD/$dataD"; |
my $dataDF = "$csD/$dataD"; |
69 |
|
|
70 |
my $parms = {}; |
my $parms = {}; |
186 |
print "<h2>Genera Available</h2>\n"; |
print "<h2>Genera Available</h2>\n"; |
187 |
foreach my $g (sort @genera) |
foreach my $g (sort @genera) |
188 |
{ |
{ |
189 |
print "<h3><a target=_blank href=http://bioseed.mcs.anl.gov/ross/FIG/wc.cgi?request=show_options_for_otu&dataD=$g>$g</a>\n"; |
print "<h3><a target=_blank href=wc.cgi?request=show_options_for_otu&dataD=$g>$g</a>\n"; |
190 |
} |
} |
191 |
} |
} |
192 |
else |
else |
201 |
if ((-s "$dataDF/virulence.functions") && ($dataDF =~ /([^\/]+)$/)) |
if ((-s "$dataDF/virulence.functions") && ($dataDF =~ /([^\/]+)$/)) |
202 |
{ |
{ |
203 |
my $dataDQ = uri_escape($1); |
my $dataDQ = uri_escape($1); |
204 |
return "<a target=_blank href=http://bioseed.mcs.anl.gov/ross/FIG/wc.cgi?request=show_virulence_functions&dataD=$dataDQ>Some Posssible Functions Associated with Virulence</a>"; |
return "<a target=_blank href=wc.cgi?request=show_virulence_functions&dataD=$dataDQ>Some Posssible Functions Associated with Virulence</a>"; |
205 |
} |
} |
206 |
return ''; |
return ''; |
207 |
} |
} |