#!/usr/bin/perl -w # Usage: add_jpeg_views_html YBL016W >> summary.html # # Adds YBL016W.view1_200.jpg, YBL016W.view2_200.jpg, YBL016W.view3_200.jpg # as front, top, and side views of the protein model. # Also adds links for YBL016W.view1_500.jpg, YBL016W.view2_500.jpg, YBL016W.view3_500.jpg # If the argument is omitted, use the name of the current directory. use Getopt::Long; my $dir = `pwd`; chomp($dir); $dir =~ /.*\/(.*?)$/; my $basename= $1; my $caption="Images of the first model, created by sidechain replacement\n" . "on the backbone of the template in the first alignment.\n"; my $color_script="the dssp rasmol script"; GetOptions( "basename=s" => \$basename , "caption=s" => \$caption , "color_script=s" => \$color_script ); if (scalar(@ARGV)>0) {$basename= $ARGV[0];} $color_script = "$basename.t2k.dssp-color.rasmol" if (!defined($color_script)); my $low_res=200; my $hi_res=500; print "

\n$caption\n"; print "

Coloring is defined by $color_script,\n"; print "to show predicted secondary structure (red for helix, yellow\n"; print "for strand, blue for turn, grey for other).\n"; print "

\n"; print "\n"; print "\n"; print " \n"; print " \n"; print "\n"; print "\n"; print " \n"; print " \n"; print "\n"; print "\n"; print " \n"; print " \n"; print "\n"; print "
FrontTopSide
500x500500x500500x500
\n";