[Bio] / Sprout / SapServerTest4.pl Repository:
ViewVC logotype

Annotation of /Sprout/SapServerTest4.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (view) (download) (as text)

1 : parrello 1.1 ### Test program for Ross's project.
2 :    
3 :     use strict;
4 :     use SeedEnv;
5 :     use Tracer;
6 : parrello 1.2 use Sapling;
7 :     use ALITREserver;
8 : parrello 1.1
9 : parrello 1.2 my ($sap, $sapObject, $altObject);
10 :     if ($ENV{SAS_SERVER} eq 'localhost') {
11 :     $sap = Sapling->new(dbName => 'pubseed_sapling_07', dbhost => 'localhost', port => 3399);
12 :     # $sap = Sapling->new(dbName => 'pseed_sapling_07', dbhost => 'localhost', port => 3333);
13 :     $sapObject = SAPserver->new(sapDB => $sap, url => 'localhost');
14 :     $altObject = ALITREserver->new(sapDB => $sap, url => 'localhost');
15 :     } else {
16 :     $sapObject = SAPserver->new();
17 :     $altObject = ALITREserver->new();
18 :     }
19 :     my @roles = ('Acetate kinase (EC 2.7.2.1)', 'D-glucarate permease');
20 :     my $roleHash = $sapObject->role_reactions(-ids => \@roles, -formulas => 1);
21 :     my $roleHash2 = $sapObject->roles_to_complexes(-ids => \@roles);
22 :     print "All done.\n";
23 : parrello 1.1
24 :     1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3