Installation and use

The ASaiM framework is using the Galaxy Docker to ease the deployment and customization of the Galaxy instance.

If you do not want to use Docker, we also provide documentation to setup and run the framework without using Docker.

Installation with Docker


To use the ASaiM framework, Docker is required.

For Linux users and people familiar with the command line, please follow the very good instructions from the Docker project. Non-Linux users are encouraged to use Kitematic, a graphical User-Interface for managing Docker containers.

Launching ASaiM

Starting the ASaiM Docker container is analogous to starting the generic Galaxy Docker image:

$ docker run -d -p 8080:80

Nevertheless, here is a quick rundown:

  • docker run starts the Image/Container

    In case the Container is not already stored locally, Docker downloads it automatically

  • The argument -p 8080:80 makes the port 80 (inside of the container) available on port 8080 on your host

    Inside the container a Apache web server is running on port 80 and that port can be bound to a local port on your host computer. With this parameter you can access your Galaxy instance via http://localhost:8080 immediately after executing the command above

  • is the Image/Container name, that directs Docker to the correct path in the Docker index

  • -d will start the Docker container in Daemon mode.

> A detailed discussion of Docker’s parameters is given in the Docker manual. It is really worth reading.

For an interactive session, you can execute:

$ docker run -i -t -p 8080:80 bebatut/asaim-framework /bin/bash

and manually invokes the startup script to start PostgreSQL, Apache and Galaxy.

For a more specific configuration, you can have a look at the documentation of the Galaxy Docker Image.


Docker images are “read-only”. All changes during one session are lost after restart. This mode is useful to present ASaiM to your colleagues or to run workshops with it.

To install Tool Shed repositories or to save your data, you need to export the computed data to the host computer. Fortunately, this is as easy as:

$ docker run -d -p 8080:80 -v /home/user/galaxy_storage/:/export/ bebatut/asaim-framework

Given the additional -v /home/user/galaxy_storage/:/export/ parameter, Docker will mount the folder /home/user/galaxy_storage into the Container under /export/. A script, that is usually starting Apache, PostgreSQL and Galaxy, will recognize the export directory with one of the following outcomes:

  • In case of an empty /export/ directory, it will move the PostgreSQL <>_ database, the Galaxy database directory, Shed Tools and Tool Dependencies and various configure scripts to /export/ and symlink back to the original location.
  • In case of a non-empty /export/, for example if you continue a previous session within the same folder, nothing will be moved, but the symlinks will be created.

This enables you to have different export folders for different sessions - meaning real separation of your different projects.

Usage of ASaiM

The previous commands will start the ASaiM framework with the configuration and launch of a Galaxy instance and its population with the needed tools, workflows and databases. The instance will be accessible at http://localhost:8080.

Users & Passwords

The Galaxy Admin User has the username and the password admin.

The PostgreSQL username is galaxy, the password galaxy and the database name galaxy. If you want to create new users, please make sure to use the /export/ volume. Otherwise your user will be removed after your Docker session is finished.

Installation from source

Before deploying the custom Galaxy instance, the environment must be configure for Galaxy. And, after deployment, the custom Galaxy instance will run as background task and need a manual intervention to stop it and clean Galaxy.


Virtual circle to get ASaiM framework correctly running

Selected tools are automatically installed in Galaxy instance using an Ansible playbook. If you want to add more, checkout how to add tools and workflows from ToolShed.

Download code sources

Source code of ASaiM framework are available on a GitHub repository.


To get ASaiM framework, git clone the project:

$ git clone


All releases of ASaiM framework can be found at


Some tools must be installed:

  • git
  • python
  • pip
  • perl
  • scons
  • mercurial
  • openssl
  • java
  • wget
  • openssl
  • proftpd
  • postgresql

It can be automatically done by running:

$ ./src/


apt-get is required for Debian, yum for RHEL and homebrew for MacOSX.

Configure Galaxy environment

PostgreSQL is used to manage databases in Galaxy. It must be launched as a background task and setup for Galaxy (new database and user creation).

On the other hand, a FTP server with proftpd has to be configured and launched.

All the configuration tasks (postgresql and proftpd) can be done by running:

$ ./src/

Launch ASaiM framework

To launch the custom Galaxy instance and populate it with dedicated tools and databases :

$ ./src/

This task, particularly tool population, can take several hours.

However, once tool population starts, the Galaxy instance can be then browse on And after registration with admin account (email:, you can follow tool installation in Admin -> Manage installed tools.

After installation of the tools, HUMAnN2 databases have to be downloaded (once). It can be done using the dedicated tool available in STRUCTURAL AND FUNCTIONAL ANALYSIS TOOLS -> Analyze metabolism -> Download HUMAnN2 databases. This tool have to be executed twice: once for nucleotide (ChocoPhlAn) database and once for protein (UniRef50) database.

Add workflows

Workflows are not automatically added to the Galaxy instance.

To add them (after tool population):

Add tools from ToolShed to the custom Galaxy instance

To add tools from ToolShed, you can also add reference to this tool in files in data/chosen_tools and then launch:

$ ./src/prepare_asaim/

Alternatively, you can use the web interface and add other tools via ToolShed. Once register, you go in Admin (tool panel) and then Search Tool Shed (left panel). You choose which ToolShed to browse, search the wanted tool on the ToolShed, click on it to get Preview and install and then on Install to Galaxy (on top), choose in which tool section adding it and then click on Install.

Stop ASaiM framework

The custom Galaxy instance runs as a background task. Stopping it needs a manual intervention:

$ ./src/

Clean Galaxy environment

When Galaxy instance is configure and launched, a database and several directories are created. They can be cleared after usage with:

$ ./src/