4 <& /page/page_title.mas, title => 'SecreTary: Computational prediction of secreted proteins' &>
6 <&| /page/info_section.mas, title => 'SecreTary Signal Peptide (SP) Predictions' &>
8 <% # put in the highlighting, etc. %>
10 my $show_max_length = 62;
11 my $result_string = '';
13 foreach (@$STresults){
14 my ($id, $prediction, $STscore, $sp_length, $sequence, $hstart, $cstart ) = @{$_};
15 my $orig_length = length $sequence;
16 while(length $sequence < $show_max_length){
18 }$sequence = substr($sequence, 0, $show_max_length);
20 if ( $prediction eq "YES" ) {
22 my $bg_color_nc = "#FFDD66";
23 my $bg_color_h = "#AAAAFF";
25 '<FONT style="BACKGROUND-COLOR: '
26 . "$bg_color_nc" . '">'
27 . substr( $sequence, 0, $hstart )
29 . '<FONT style="BACKGROUND-COLOR: '
30 . "$bg_color_h" . '">'
31 . substr( $sequence, $hstart, $cstart - $hstart )
33 . '<FONT style="BACKGROUND-COLOR: '
34 . "$bg_color_nc" . '">'
35 . substr( $sequence, $cstart, $sp_length - $cstart )
37 . substr( $sequence, $sp_length, $show_max_length - $sp_length );
39 else { # prediction is no signal peptide
40 $hl_sequence = $sequence;
43 # $STscore = substr($STscore . ' ', 0, 8);
44 $sp_length = substr($sp_length . ' ', 0, 3);
45 $hl_sequence .= ( $orig_length > length $sequence ) ? '...' : ' ';
47 "$id $prediction $STscore $sp_length $hl_sequence\n";
51 <pre class="secretary_results">
52 Identifier SP Score Length Sequence 10 20 30 40 50 60
56 <% $count_pass %> secreted sequences predicted out of <% scalar @$STresults %>.
59 <a href="/secretom/secretary">Return to SecreTary input page</a>