WebService::Cath::FuncNet - Interface to the CATH FuncNet webservice
This document describes WebService::Cath::FuncNet version 0.11
*** Final release: this code has now been incorporated into WebService::FuncNet::Predictor ***
use WebService::Cath::FuncNet; $ws = WebService::Cath::FuncNet->new(); @proteins1 = qw( A3EXL0 Q8NFN7 O75865 ); @proteins2 = qw( Q5SR05 Q9H8H3 P22676 ); $response = $ws->score_pairwise_relations( \@proteins1, \@protein2 ); foreach $result ( @{ $response->results } ) { print join( ", ", $result->protein_1, # Q9H8H3 $result->protein_2, # O75865 $result->p_value, # 0.445814 $result->raw_score # 0 ), "\n"; }
This module provides a simple API to the CATH FuncNet WebService and the documentation provided here refers to the usage and implementation of the API rather than the details of the actual FuncNet WebServices. For more information on FuncNet, it is best to visit the project homepage at:
http://funcnet.eu
Provides access to the underlying XML::Compile::WSDL11 object used to communicate with the CATH FuncNet WebService. This can be coerced from the URI of a WSDL either as 'uri' or URI->new( 'uri' ).
By default this is created from the URL:
http://funcnet.eu/soap/Geco.wsdl
Coercions:
$self->wsdl( 'uri' ) $self->wsdl( URI->('uri') ) $self->wsdl( XML::Compile::WSDL11->new() )
Read-only access to the namespace string, e.g.
http://funcnet.eu/FuncNet_1_0/
Provides a pairwise comparison of the relationships between two sets of proteins.
$response = $ws->score_pairwise_relations( [ 'A3EXL0', 'Q8NFN7' ], [ 'Q5SR05', 'Q9H8H3' ] )
See WebService::Cath::FuncNet::Operation::ScorePairwiseRelations
ARRAY ref containing list of protein identifiers
These are used to help create the object and aren't really intended for public consumption. I'm including them in the docs but I'm not exporting them or promising that they won't change in the future.
Class method that downloads a WSDL from a remote URI then creates and returns a XML::Compile::WSDL11 object
String or URI object pointing to the location of the external FuncNet WSDL
Class method that creates and returns a XML::Compile::WSDL11 object from a local file
Filename of the WSDL
Class method that downloads an external WSDL and saves the content in a temporary file.
temporary file containing the WSDL content
The XML::Compile::WSDL11 object requires a copy of the WSDL on the local filesystem. If the object is initialised as
WebServices::Cath::FuncNet->new( wsdl => "uri" ) # default WebServices::Cath::FuncNet->new( wsdl => URI->new( "uri" ) )
then the process of coercing the string or URI to XML::Compile::WSDL11 object will involve downloading the WSDL to a temporary file. It would be nice it this had the option of being cached.
- Manage local cache of WSDL to avoid unneccessary downloading at startup
- Add more tests (especially failing test)
- Wrap around LWP and XML::Compile exceptions
Moose, XML::Compile::WSDL11, URI, LWP, File::Temp, Readonly
No bugs have been reported.
Please report any bugs or feature requests to bug-webservice-cath-funcnet@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-webservice-cath-funcnet@rt.cpan.org
Ian Sillitoe <sillitoe@biochem.ucl.ac.uk>
<sillitoe@biochem.ucl.ac.uk>
Copyright (c) 2008, Ian Sillitoe <sillitoe@biochem.ucl.ac.uk>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install WebService::Cath::FuncNet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Cath::FuncNet
CPAN shell
perl -MCPAN -e shell install WebService::Cath::FuncNet
For more information on module installation, please visit the detailed CPAN module installation guide.