Skip to content

Instantly share code, notes, and snippets.

@alexkalderimis
Created June 27, 2014 18:35
Show Gist options
  • Save alexkalderimis/202a8f50a47f75995ea8 to your computer and use it in GitHub Desktop.
Save alexkalderimis/202a8f50a47f75995ea8 to your computer and use it in GitHub Desktop.
Minimal generic data source
<?xml version="1.0"?>
<!--
If the value of 'URL_method' is 'get', the request will consist of the value of 'URL' coming back in
the initial response. If value of 'URL_method' is 'post', any additional params coming back in the
initial response ( in addition to 'URL' ) will be encoded and appended to URL and a post will be performed.
-->
<tool name="Generic Data Source" id="data_source" tool_type="data_source" >
<description>generic data source</description>
<command interpreter="python">data_source.py $output $__app__.config.output_size_limit</command>
<inputs check_values="false" >
</inputs>
<request_param_translation>
<request_param galaxy_name="URL_method" remote_name="URL_method" missing="post" />
<request_param galaxy_name="URL" remote_name="URL" missing="" />
<request_param galaxy_name="dbkey" remote_name="db" missing="?" />
<request_param galaxy_name="organism" remote_name="organism" missing="" />
<request_param galaxy_name="table" remote_name="table" missing="" />
<request_param galaxy_name="description" remote_name="description" missing="" />
<request_param galaxy_name="name" remote_name="name" missing="" />
<request_param galaxy_name="info" remote_name="info" missing="" />
<request_param galaxy_name="data_type" remote_name="data_type" missing="auto" >
<value_translation>
<value galaxy_value="auto" remote_value="txt" /> <!-- auto-detect if the service provides 'txt' -->
</value_translation>
</request_param>
</request_param_translation>
<outputs>
<data name="output" format="txt" />
</outputs>
<options sanitize="False" refresh="True" no_ui="True"/>
</tool>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment