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

Diff of /FigWebServices/array2sub.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7, Tue Jul 26 04:51:52 2005 UTC revision 1.8, Wed Jul 27 02:23:02 2005 UTC
# Line 5  Line 5 
5    
6  my $cgi = new CGI;  my $cgi = new CGI;
7  my $html = [];  my $html = [];
8    my @pegs_with_no_ss = ();
9    
10  if($cgi->param('genome') && $cgi->param('attribute') && $cgi->param('value'))  if($cgi->param('genome') && $cgi->param('attribute') && $cgi->param('value'))
11  {  {
12    
13          push (@$html, "<TITLE>Connect Pegs with Attributes to Subsystems</TITLE>");          push (@$html, "<TITLE>Connect Differentially Expressed Pegs to Subsystems</TITLE>");
14            push(@$html, $cgi->br,$cgi->hr);
15            push(@$html,$cgi->h3("Subsytems"));
16          my $genome_string = $cgi->param('genome');          my $genome_string = $cgi->param('genome');
17          my @string_parts = split(", ",$genome_string);          my @string_parts = split(", ",$genome_string);
18          my $genome = $string_parts[1];          my $genome = $string_parts[1];
# Line 27  Line 29 
29                          next unless ($tag eq $att_param);                          next unless ($tag eq $att_param);
30                          next unless($val eq $value_param);                          next unless($val eq $value_param);
31                          my @subsystems = $fig->subsystems_for_peg($peg);                          my @subsystems = $fig->subsystems_for_peg($peg);
32                            my $no_ss = 1;
33                          foreach my $ss (@subsystems)                          foreach my $ss (@subsystems)
34                          {                          {
35                                  my $ss_name = $ss->[0];                                  my $ss_name = $ss->[0];
36                                  $list_of_ss{$ss_name} = "1";                                  $list_of_ss{$ss_name} = "1";
37                                    $ss = 0;
38                          }                          }
39                            if($no_ss){push(@pegs_with_no_ss,$peg)}
40                   }                   }
41          }          }
42          my @list = keys(%list_of_ss);          my @list = keys(%list_of_ss);
# Line 46  Line 50 
50             push(@$html,"<TR><TD>$url</TD></TR>");             push(@$html,"<TR><TD>$url</TD></TR>");
51    
52           }           }
53             push(@$html,"</TABLE>",$cgi->hr);
54    
55             push(@$html,$cgi->h3("Pegs Not in Subsytem"));
56             push(@$html,"<TABLE>");
57    
58             foreach my $p (@pegs_with_no_ss)
59             {
60                    my $url ="<a href="."$FIG_Config::cgi_url"."/protein.cgi?prot=$p&user=".">$p</a>";
61                    push(@$html,"<TR><TD>$url</TD></TR>");
62             }
63           push(@$html,"</TABLE>");           push(@$html,"</TABLE>");
64    
65           &HTML::show_page($cgi,$html);           &HTML::show_page($cgi,$html);
66  }  }
67    
68  else{  else{
69    
70          $html = [];          $html = [];
71          push @$html, "<TITLE>Connect Pegs with Attributes to Subsystems</TITLE>";          push @$html, "<TITLE>Connect Differentially Expressed Pegs to Subsystems</TITLE>";
72    
73          push(@$html,$cgi->start_form(-action => "array2sub.cgi",  -method => 'post'));          push(@$html,$cgi->start_form(-action => "array2sub.cgi",  -method => 'post'));
74    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3