Skip to main content

Install PLEX

This tutorial will guide you through the steps required to set up PLEX, so you can easily run BioML tools from your computer's command line.

note

What is PLEX?

PLEX is a piece of software that will allow you to run tools, such as the small molecule binding tools, by using simple commands from your computer.

PLEX manages all the required dependencies and installations, to make the tools as easy to run as possible.

When you run a tool, PLEX requests compute-time from members of the LabDAO network, so you don’t have to worry about hardware requirements or setting up the neccesary compute infrastructure.

Let's get started!


Time needed:

  • 5 minutes

Requirements:

  • No previous technical experience - we’ll walk through each step.
  • An API token: Request an API token here. We'll email you one automatically, so you should get one in a few minutes.

If you haven’t used an API key before, don’t worry. It’s just a string of characters that acts like a password. Once you've obtained an API key, you can simply copy and paste it - the tutorial shows you how.


1. Install PLEX​

(i) Open your terminal​

To install PLEX, first open up the Terminal application. The Terminal is a text-based method of using your computer.

  • On Mac: Go to “Spotlight Search” in the top right hand corner of your screen (it’s the magnifying glass icon). Type “terminal” and select the first option.
  • On Windows: To use on Windows, please send us email and we'll get you set up.
info

If you want to learn more about the basics of using a terminal, check out these youtube tutorials.

You can also work through a complete introduction with these excellent resources from Software Carpentry.

(ii) Type in the installation commands​

Once you have your terminal open, you can download PLEX by copy (CMD+C) and pasting (CMD+V) this command into your terminal:

source <(curl -sSL https://raw.githubusercontent.com/labdao/PLEX/main/install.sh)

After you have pasted the command into the terminal, press Enter on your keyboard to download and install PLEX.

tip

A lot of information will print to the screen as the tool is installing. As a first time user, you can ignore this.

(iii) Enter your password during the installation​

During the installation, you will be asked for your password. This is the password you use to log in to your computer. Type your password and press Enter.

tip

When you type your password, you won't see any characters appear on the screen - but don't worry, the computer is still registering what you're typing.

If the installation is successful, you will see a large LabDAO logo appear on your screen, and a confirmation that the Installation is complete. It should look something like this:

successfulinstallation

(iv) Give PLEX the right permissions​

After the installation is complete, you need to give PLEX the permissions it needs to run. To do this, copy and paste the following command into your terminal and press Enter:

chmod +x ./PLEX

It is expected that after pressing Enter, there will NOT be a notification in your terminal (i.e. nothing will happen).

2. Add an API token​

Next, you need to add an API key to use PLEX. An API key is a special code that allows the tool to communicate with other programs on the internet.

(i) Get your API token​

Request an API token here. We'll email you one automatically, so you should get it in a few minutes.

(ii) Add your API token​

Once you have your API token, you need to add it to the tool. To do this, type the following command into your terminal and press Enter:

export WEB3STORAGE_TOKEN=<your token here>
tip

Make sure to replace <your token here> with the actual API token you received. There should be no <> symbols in the token - e.g.: export WEB3STORAGE_TOKEN=abcdefghijklmnopqrstuvwxyz123456789

It is expected that after pressing Enter, there will NOT be a notification in your terminal (i.e. nothing will happen).

You're now ready to run a tool!

Next steps: Run a tool to check PLEX is working as expected​