Bio::Das::ProServer::SourceAdaptor::Transport::martservice - BioMart MartService Transport


Back to Top


NAME

Bio::Das::ProServer::SourceAdaptor::Transport::martservice - BioMart MartService Transport

Back to Top


VERSION

$Revision: 687 $

Back to Top


SYNOPSIS

Back to Top


DESCRIPTION

This module provides a transport to retrieve data from a BioMart MartService.

Back to Top


SUBROUTINES/METHODS

init

Initializes this object using values taken from the configuration.

timeout

Get/set the timeout for requests POSTed via LWP::UserAgent.

martservice

Get/set the MartService URL.

dataset

Get/set the MartService dataset name.

attributes

Get/set the list of attributes to be retrieved from the MartService. This may be specified as an arrayref or a comma-delimited list.

ua

Return a cached LWP::UserAgent object or instantiate a new one.

build_query_xml

Takes a hashref of name/value pairs and returns an XML query string to be POSTed to the MartService.

query

Passed a list of name/value pairs, performs a query against the MartService and returns an arrayref of returned results. Each result is a hashref with keys named after this object's attributes.

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

The following values may be specified in the main configuration file:

martservice

The URL for the BioMart MartService.

dataset

The name of the MartService dataset.

attributes

A comma-separated list of attributes to be retrieved from the BioMart MartService.

timeout

How long (in seconds) to wait for a response from the BioMart MartService.

Back to Top


DEPENDENCIES

List::MoreUtils
LWP::UserAgent
XML::Writer

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


AUTHOR

Ray Miller <rm7@sanger.ac.uk>

Back to Top


LICENSE AND COPYRIGHT

Copyright (c) 2009 Wellcome Trust Sanger Institute

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.

Back to Top

 Bio::Das::ProServer::SourceAdaptor::Transport::martservice - BioMart MartService Transport