| The ProBiS-Web Server features RESTful (REpresentational State Transfer) Web Services to make the binding site similarities and local pairwise alignments for any PDB protein structure easily accessible from your scripts. Full set of commands and useful examples are listed below. | |
Pairwise Alignment of PDB StructuresExamples:
Specification:
|
|
Detect Similar Proteins or Binding Sites in the Non-redundant PDBCaution: Examples in this section require all CPUs of the ProBiS-web server, and can load several minutes depending on the server work load.Examples:
Specification:
|
|
Perl Example Script
use strict;
use LWP::Simple qw( $ua ); # Make a request command (uncomment lines below if you want something else) my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/align?structure_id1=1all.A&structure_id2=3dbj.C'); #my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/align?structure_id1=1all.A&bsite1=CYC.175.A.7&structure_id2=3dbj.C&bsite2=CYC.201.C.7'); #my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/align?structure_id1=1all.A&structure_id2=3dbj.C&return=pdb'); #my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/scan?structure_id=5cyt.R'); #my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/scan?structure_id=5cyt.R&bsite=HEM.105.R.5'); #my $request = HTTP::Request->new( GET => 'http://probis.cmm.ki.si/rest/scan?structure_id=5cyt.R&z_score=2.0&return=json'); # Decide about the content type you want to get in return (default is XML) (applies to get_alignments and get_representative; other two commands return "text/plain") $request->header(Accept => "application/json"); #$request->content_type( 'application/xml' ); # Send the HTTP request my $response = $ua->request( $request ); # Check to see if there is an error unless( $response->is_success ) { print "\n Error: ", $response->status_line, "\n"; } # Output response print "ProBiS returned:\n", $response->content; |