Pathway extraction test

This is a test of the pathwayinference service.
Test filesDownload the files for this test
Test runRun test now
Support reference#2812-2813
This test extracts a sub-network from the weighted MetaCyc network given 5 seed groups.
Show/hide recent test logs
view log 1 week agoPASSED

Test began: 2012-05-09 17:50:15 Test ended: 2012-05-09 17:50:43 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 weeks agoPASSED

Test began: 2012-05-08 15:41:42 Test ended: 2012-05-08 15:42:09 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 weeks agoPASSED

Test began: 2012-05-05 12:18:22 Test ended: 2012-05-05 12:18:49 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 4 weeks agoPASSED

Test began: 2012-04-21 18:58:00 Test ended: 2012-04-21 18:58:26 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-15 06:58:54 Test ended: 2012-04-15 06:59:22 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-11 00:44:26 Test ended: 2012-04-11 00:44:53 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 1 month agoPASSED

Test began: 2012-04-10 09:53:24 Test ended: 2012-04-10 09:53:49 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-23 02:34:41 Test ended: 2012-03-23 02:35:08 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-22 14:25:56 Test ended: 2012-03-22 14:26:22 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
view log 2 months agoPASSED

Test began: 2012-03-22 08:44:52 Test ended: 2012-03-22 08:45:16 Result : Test passed ------ stderr and stdout follow ------ PassedDownload this log...
This test consists of the following files:
pathwayinference_test.pl
#!/usr/bin/perl
# the first line of the script must tell us which language interpreter to use,
# in this case its perl
use strict;
# import the modules we need for this test; XML::Compile is included on the server
# by default.
use XML::Compile::SOAP11;
use XML::Compile::WSDL11;
use XML::Compile::Transport::SOAPHTTP;
eval
{
# Retrieving and processing the WSDL
my $wsdl = XML::LibXML->new->parse_file('http://wwwsup.scmbb.ulb.ac.be/be.ac.ulb.bigre.graphtools.server/wsdl/GraphAlgorithmsNeAT.wsdl');
my $proxy = XML::Compile::WSDL11->new($wsdl);
# Generating a request message based on the WSDL
my $pathwayinference = $proxy->compileClient('pathwayinference');
# Calling the service and getting the response
my $seeds = "HISTIDPHOS-RXN>/HISTIDPHOS-RXN<#IMIDPHOSDEHYD-RXN>/IMIDPHOSDEHYD-RXN<#ATPPHOSPHORIBOSYLTRANS-RXN>/ATPPHOSPHORIBOSYLTRANS-RXN<#HISTAMINOTRANS-RXN>/HISTAMINOTRANS-RXN<#HISTALDEHYD-RXN>/HISTALDEHYD-RXN</HISTOLDEHYD-RXN>/HISTOLDEHYD-RXN<";
my $graphId = "Pathwayinference_tmpGraph_e2063b35-8dcf-468b-9e16-178fb30ed19c.tab";
my $exclusionAttr = "ExclusionAttribute";
my $answer = $pathwayinference->( request => {seeds => $seeds, batch => "", graphString => $graphId, tmpInGraphFile => "", inFormat => "tab", outFormat => "tab", directed => 1, keepIrreversible => 0, asymmetric => 0, metabolic => 1, exclusionAttr => $exclusionAttr, weight => "con", algorithm => "takahashi", preproc => 0, postproc => 0, prune => 0, reuseWeights => 0, iter => 1, percentage => 0.05, attribs => "", outputType => "pathsGraphs", storeInputGraph => 0, returnType => "client" });
my $expected = "L-HISTIDINOL-P #FFD700 gold";
# If the response arrived, look for a specific sequence
# If the sequence is correct, return 0 because the test passed.
# If the result is something else, return 2 to indicate a warning.
# If no answer has arrived, return 1 to indicate the test failed.
if ( defined $answer ) {
# print "Result : ".$answer->{output}->{response}->{client}."\n";
if ($answer->{output}->{response}->{client} =~ m/$expected/){
print "Passed\n";
exit 0;
} else {
print "Unexpected data\n";
exit 2;
}
} else {
print "Failed\n";
exit 1;
}
};
if ($@)
{
print "Caught an exception\n";
print $@."\n";
exit 1;
}