Presentation is loading. Please wait.

Presentation is loading. Please wait.

An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.

Similar presentations


Presentation on theme: "An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester."— Presentation transcript:

1 An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester

2  This tutorial will give you a basic introduction to designing, and reusing workflows in Taverna and some of its main features.  Workflows in this practical use small data-sets and are designed to run in a few minutes. In the real world, you would be using larger data sets and workflows would typically run for longer

3  Taverna can be downloaded from http://www.taverna.org.uk/  Go to the page and find the latest version and install it  Follow the instructions on the website to install Taverna for your operating system (this is a simple one-click install for windows and Mac. For Linux, you may also need the GraphViz program. Follow the link on the Taverna download page if so) The following page shows a screenshot of Taverna and the different panels that make up the workbench

4 Taverna Workbench Workflow Diagram Services Panel Workflow Explorer

5 The workflow diagram is the visual representation of the workflow, it:  Shows inputs, outputs, services and data flows  Allows editing of the workflow by dragging and dropping and connecting services together  Enables saving of workflow diagrams for publishing and sharing

6

7  The Workflow Explorer shows the detailed view of your workflow. It shows default values and descriptions for service inputs and outputs and it shows where remote services are located. It also shows configuration details, such as iteration and looping  Workflow validation details can also be found here. Before a workflow is run, Taverna checks to see if it is connected correctly and if its services are available.

8  Taverna updates are issued on the regular basis  There is also a number of plugins which are developed for Taverna  To get the updates and plugins select “Advanced -> Updates and plugins”

9 Lists services available by default in Taverna  Local java services  WSDL Web Service – secure and public  RESTful Services  R Processor services (for statistical analyses)  Beanshell scripts  Xpath scripts  Spreadsheet import service The services panel also allows you to add new services or workflows from the web or from file systems – there are loads more available!

10 We will start with something easy - retrieving a protein sequence from a remote database and identifying functional motifs Go to the Services Panel  Type ‘Fasta’ into the ‘search’ box at the top of the panel  You will see several services in the search results Select ‘Get Protein FASTA’ and drag-and-drop it into the workflow diagram panel.

11  In a blank space in the workflow diagram, right-click and select “Workflow input port” from the “Insert” section  Type in a name for this input (e.g. ID) and click “ok”  Do the same to create a new workflow output. Call this output “sequence”

12  You now have 3 boxes in the diagram and we need to connect them up  Click on the input box and drag towards “Get Protein Fasta” and let go. An arrow will connect the two boxes

13  Click on the output box, drag towards “Get protein fasta”, and let go. An arrow will connect the two boxes  You have now built your first workflow!  It should look something like this

14  Run the workflow by selecting “file -> run workflow”, or by clicking on the play button at the top of the workbench

15 An input window will appear. As you can see, we have not yet added a description of the workflow or of the input Click on ‘Set Value’ in the input window and add a Uniprot protein identifier (e.g. P15409) where it says “some input data goes here”

16  Click “run workflow”  In the bottom left of the results window, click on the results. You will now see a protein sequence from Uniprot Now we will find out what functional motifs the protein contains, but first we have to tell Taverna about some new services

17  Taverna can check to see that everything is connected properly and that all the services in your workflow are available  Go to the workflow explorer and click on ‘validation report’  See if Taverna has found any problems with the workflow. Errors will be displayed in red, warnings in yellow. Workflows with warnings often still run.  If there are problems, follow the instructions to resolve them by clicking on the ‘Solution’ tab

18  We can connect the two services together in the same way as before  At the top of the workflow diagram panel, change the view to show all ports by clicking on the icon shown below  This view allows you to see any data input/output or parameter value options for your chosen service Show all ports icon

19  Most of the time, you don’t need to connect all ports. Some are optional and some already have default values set.  Service documentation should tell you this. You can use the BioCatalogue to find documentation and user descriptions  Change the orientation of the port names to fit them on the screen more easily by clicking on the icon shown below change orientation

20  Right-click on a blank part of the workflow diagram and select “Annotate”  Add some details about the workflow e.g. who is the author, what does it do  You can also add examples and descriptions for the workflow inputs by selecting them and selecting “Annotate”  Add an example for the protein ID (e.g. P15409)  Save the workflow by going to “File -> save workflow”  Run the workflow again and look at the results

21  Taverna can also run WSDL and RESTful services  Go to the Service Catalogue tab of Taverna and search for dbfetch  From the REST Service results, select GET /dbfetch/{db}/{id}  Right-click on the service and select “Add to Service Panel”

22  Searching the service catalogue

23  In the services search panel in Taverna, search for dbfetch  Right-click on the service and choose “Add to workflow with name…”  Enter a name such as “dbfetch” and click OK

24  As you can see, the items from the dbfetch template become inputs in Taverna.

25  You can also enter the template directly  Right-click on an empty area of the workflow and select “REST” from the “Insert” section  Enter the template and click OK

26  For this service, we need to supply a database name and a protein ID.  Connect the protein ID input to the REST service ID input port  Right-click on the ‘db’ input port on the REST service and select ‘constant value’.  Add the constant value ‘uniprotkb’ and click “OK”  Add a workflow output port and connect it to the REST ‘response body’ output port  Your workflow should look something like the one on the next slide  Save and run your workflow  Now your results will include the uniprot entry for your protein

27


Download ppt "An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester."

Similar presentations


Ads by Google