Spectre is available as a Docker container, thanks to the efforts of Givanna Putri. Docker is a cloud service that allows anyone to deliver software packages as a "complete unit" in a form of container. What this means is that the software package is released as a standalone computing environment, pre-installed with necessary pre-requisite libraries required by the software, and pre-configured for user convenience.

Spectre's Docker image will match the most recent versions of Spectre (denoted as 'master', referring to the master branch in Github). To download this version, simply follow the instructions below. If you wish to load a specific version of Spectre, you can specify a version (e.g. v0.5.3, v0.5.4. etc) instead of using 'master'. You can see a list of versions available via docker on this page.

On this page:

First time using Docker? Download and set up 'Docker Desktop'

Download Docker desktop app

Go to the following address:

Download the correct version of Docker Desktop.

Go to your downloads folder and open the '.dmg' file.

When the following window opens, drag and drop the '' icon into the 'Applications' shortcut.

You should now be able to find 'Docker' in your applications folder.


Set some preferences (optional)

Open Docker app from the applications folder or bar at the bottom of the screen. 

Once you turn it on, you should see the following icon in the bar at the top of the screen.

Additionally the program itself should open. Wait a few moments while the 'Docker Engine' starts.

The icon in the lower left will turn green when ready.

Click the gears icon to open 'preferences'. Make sure you untick the options in General to mimic the screenshot below. This is to ensure Docker doesn't start when you boot your computer, and it doesn't share your usage data to Docker by default. Leave the automatic update checked if you prefer it to check for updates regularly.

Press 'Apply & Restart' when done.

Close app until you would like to use it.

Running Spectre using Docker

Open Docker app

Wait a few moments while the 'Docker Engine' starts.

The icon in the lower left will turn green when ready.


Open 'Terminal' (on Mac) and run the following code

Can be found in the applications folder, or the bar at the bottom of your screen.

Copy the following code into the terminal and press ENTER.

docker run --rm -e PASSWORD=spectre -p 8787:8787 -v ~:/home/rstudio/spectre_dir --name=spectre immunedynamics/spectre:master



By default, the RStudio session that Docker will launch will be able to see everything in your Home directory and below. This is achieved in the code above using the '~' symbol. If you have data elsewhere (on a server etc) you can navigate to that location using Finger and drag + drop the target directory/folder into terminal:

In terminal, add the following segments, and then hit ENTER:

  • docker run --rm -e PASSWORD=spectre -p 8787:8787 -v 
  • DRAG+DROP the target folder from finder
  • :/home/rstudio/spectre_dir --name=spectre immunedynamics/spectre:master


Open your preferred web browser (chrome, safari, etc) and go to the following address 

Sign in

Name: rstudio

Password: spectre

Open desired analysis script

Perform analysis

Close when finished

  • No labels