Galaxy ========= :URL: http://wiki.galaxyproject.org/FrontPage :Date: Aug 2013 Galaxy is an open, web-based platform for accessible, reproducible, and transparent computational biomedical research. It provides worflows and plugins to many web resources. This tutorial shows how to link bioservices and galaxy. Our tutorial will provide a plugin to Galaxy so that a user can retrieve a FASTA file via BioServices and the wrapping of UniProt Web Services. We assume that you installed Galaxy on your system via the source code:: git clone https://github.com/galaxyproject/galaxy.git cd galaxy The tree directory should therefore contain a directory called **tools/** and in the config directory, an XML file called **tool_conf.xml** We will first create a plugin for bioservices. This is done by adding a directory called bioservices in ./tools:: mkdir tools/bioservices In this directory, we will create two files called **uniprot.py** that will contain the actual code that calls bioservices and a second XML file that will allows us to design the plugin layout. Let us start with the plugin. It is very simple since only the UniProt Entry is required. The output will simply be the FASTA file that would have been fetched. The XML file is: .. literalinclude:: galaxy/uniprot.xml :language: xml The python code will take as an input the UniProt ID and create a file that contains the FASTA data: .. literalinclude:: galaxy/uniprot.py :language: python :lines: 16-36 Finally, you need to make Galaxy aware of this new plugin. This is done in ``config/tool_conf.xml``. Add the bioservices plugin entry. The beginning of the file should look like::
... Once done. start you galaxy server. The following image show the outcome: in the left hand side, you can select the bioservices plugin. Then, in the center, you can enter a uniprot entry. Press the execute button and the new file should appear in the right hand side. From there you can use Galaxy other tools to analyse the file. .. image:: galaxy/galaxy.png :width: 50% This example shows that it is possible to link Galaxy and BioServices to access to various Web Services that are available through Bioservices.