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

Annotation of /FigWebServices/scopmap_service.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download)

1 : mkubal 1.1 use FIG;
2 :     use CGI;
3 :     use Net::SMTP;
4 :     use File::Temp;
5 :     my $cgi = new CGI;
6 :    
7 :     $ENV{PGPORT} = "10000";
8 :     $ENV{BLASTMAT} ="/disks/space0/fig/FIGdisk.Nov20/BLASTMAT";
9 :     $ENV{PATH}="/disks/space0/fig/FIGdisk.Nov20/env/linux-postgres/bin:/disks/space0/fig/FIGdisk.Nov20/FIG/bin:/disks/space0/fig/FIGdisk.Nov20/bin:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i386-pc-linux-gnu/gcc-bin/3.3.5:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/kde/3.2/bin:/home.old/yqi/prog/ncbi/build:/home.old/yqi/prj_scopmap/bin:/home.old/yqi/prj_scopmap/db/fasta:/home.old/yqi/prj_scopmap/prog/ncbi/data:/disks/space0/fig/FIGdisk.Nov20/BLASTMAT:$ENV{PATH}";
10 :    
11 :     print "Content-type: text/html\r\n\r\n";
12 :     print "<HTML>\n";
13 :     print "<HEAD><TITLE>Structural Classification Tool!</TITLE></HEAD>\n";
14 :     print "<BODY>\n";
15 :     print "<H2>SCOPmap Service</H2>\n";
16 :     print "<H5><a href='http://www.biomedcentral.com/1471-2105/5/197'>research article on SCOPmap</a></H5>\n";
17 :     print "<H5>special thanks to Yuan Qi, Sara Cheek and Nick Grishin for the SCOPmap program and their support</H5>\n";
18 :     my @params = $cgi-> param();
19 :     if($cgi->param('seq') && $cgi->param('email')){
20 :     my $seq = $cgi->param('seq');
21 :     my $email = $cgi->param('email');
22 :     my $subject = $cgi->param('subject');
23 :     ($fh, $filename) = mkstemp("/disks/space0/fig/Tmp/tmpfileXXXXX");
24 :     #my $seq = "MKITVLGCGALGQLWLTALCKQGHEVQGWLRVPQPYCSVNLVETDGSIFNESLTANDPDFLATSDLLLVTLKAWQVSDAVKSLASTLPVTTPILLIHNGMGTIEELQNIQQPLLMGTTTHAARRDGNVIIHVANGITHIGPARQQDGDYSYLADILQTVLPDVAWHNNIRAELWRKLAVNCVINPLTAIWNCPNGELRHHPQEIMQICEEVAAVIEREGHHTSAEDLRDYVMQVIDATAENISSMLQDIRALRHTEIDYINGFLLRRARAHGIAVPENTRLFEMVKRKESEYERIGTGLPRPW";
25 :     if (-e "1234_A.fa"){ system "rm 1234_A.fa";}
26 :     system "python /disks/space0/fig/Tmp/seq2pdb.py $seq $filename";
27 :     system "perl /disks/space0/fig/Tmp/launcher.pl $filename $email $subject";
28 :     print "The results will be sent to $email\n";
29 :    
30 :     } else {
31 :     print "<FORM method='POST' action='scopmap_service4.cgi'>
32 :     <h3>Enter email address:</h3>
33 :     <p><INPUT type='text' name='email'></p>
34 :     <h3>Enter sequence identifier (protein name, id, etc ...):</h3>
35 :     <p><INPUT type='text' name='subject'></p>
36 :     <h3>Enter protein sequence:</h3>
37 :     <p><INPUT name='seq' size='1000' wrap='virtual'> </INPUT></p>
38 :     <p><INPUT type='submit' value='Launch SCOPmap'></p>
39 :     <h3>Reset this Form</h3>
40 :     <p><INPUT type='reset' value='Clear all my input now'></p>
41 :     </FORM>\n";
42 :     }
43 :    
44 :     print "</BODY>\n";
45 :     print "</HTML>\n";
46 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3