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

View of /Sprout/SapServerTest4.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (download) (as text) (annotate)
Sat Oct 1 10:35:02 2011 UTC (8 years ago) by parrello
Branch: MAIN
Changes since 1.2: +4 -3 lines
Conversion to support Postgres for ERDB.

### Test program for Ross's project.

use strict;
use SeedEnv;
use Tracer;
use Sapling;
use ALITREserver;

    my ($sap, $sapObject, $altObject);
    if ($ENV{SAS_SERVER} eq 'localhost') {
        $sap = Sapling->new(dbName => 'pubseed_sapling_07', dbhost => 'localhost', port => 3399);
#        $sap = Sapling->new(dbName => 'pseed_sapling_07', dbhost => 'localhost', port => 3333);
        $sapObject = SAPserver->new(sapDB => $sap, url => 'localhost');
        $altObject = ALITREserver->new(sapDB => $sap, url => 'localhost');
        $FIG_Config::orgCache = "P:/vol/public-pseed/SharedData/OrgCache";
    } else {
        $sapObject = SAPserver->new();
        $altObject = ALITREserver->new();
    }
    my @complexes = qw(cpx00078 cpx00084 cpx00069);
    my $retVal = $sapObject->complex_data(-ids => \@complexes,
        -data => ['name', 'reactions', 'roles']);
    print "All done.\n";

1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3