£199.99 £139.99 for one year of Unlimited learning. Offer ends on 28 February 2023 at 23:59 (UTC). T&Cs apply

# Building a workflow on Galaxy

A tutorial for making workflows on the galaxy bioinformatics platform.

By now, you are becoming familiar with the concepts of loading up an input file into Galaxy, performing a task with that file, and saving the output of this task. You will generally use one input file when learning about input file types and expected outputs. Once you are familiar with the flow of your system, you will need to introduce techniques to increase the “throughput” of your activities.

Throughput is a measurement of how many units of information a system can process in a given amount of time. A person selecting each subsequent step or operation will always have limited throughput. Computers, however, are excellent at repeating steps once these are configured. It is possible to scale up to massive computer clusters and data centres that can process terabytes of information in minutes.

Many data science tasks require the same processing or operations to happen to different input files. We will explore the “workflow” technique to explore the path of input and outputs of a series of tasks.

Galaxy has a workflow tutorial for building a workflow on the platform, and this was used to formulate the basis of this article. For more information, please explore the following resources:

To create a workflow, click on “Workflow” on the top panel in the Galaxy homepage, then see the “Create and Import” buttons on the top right, and click “Create”. Give your workflow a name – something memorable related to the task you wish to perform is best.

In this example, we’ll make a workflow to flip a “digital burger”

BreadOnionsCheeseBurger PattyBread

After creating your workflow, you will see a blank canvas

You can add some annotations on the right-hand side panel to describe
what this workflow does

On the left-hand side panel, click “Input Dataset”, and you will see a marker for
some annotation data on the right-hand side panel

Then add the tool “tac reverse a file” by searching for it on the left
hand side panel

You can add annotations for this too. Now link the two steps by dragging
the small arrow “>” on the load burger step onto the arrow on the tac
step (labelled flip burger).

Now click on the triangle in the top right corner to “run workflow”. You
the “burger data” Click the vertical arrow on the right-hand side to initiate a

Select “Paste/fetch data”, then fill in the details – see examples below.
You must add the name of the file, and the type (text file is format
txt), then paste the lines of the “digital burger” as shown above. Once
filled, click “Start”.

You can then hit, “Start workflow”, and make sure the input file specified is
the burger file you made (select it from the dropdown menu). Once the job is complete, you will see the
output available via the history panel on the right.

Our burger has been flipped! So now the order is:

BreadBurger PattyCheeseOnionsBread

Congratulations on making your first workflow! Now try to expand that workflow by trying to restore the order of the “burger”, add some ingredients into your input file, or try another tool to disassemble it! Share what you try out in the comments below.

Be sure to try the Galaxy tutorial too to learn a few more ways to use or embed workflows.