⚑Run Boltz-2 in a Workspace

Boltz-2 is an open-source tool used to model and predict biomolecular interactions. This tutorial will use example data to show you how to install and run Boltz-2 to generate complex structural models and binding affinities.


1. Install Boltz-2 & Dependencies

Navigate to the Workspaces tab and select an appropriate Workspace to run Boltz-2.

Your Workspace's hardware requirements must include at least 1 GPU. We also recommend using a Workspace with the Conda base image, which will already have Python 3 installed.

Once the Workspace is running, find it in the Workspace list and click Open to launch your development environment.

Once your Workspace is open, open a terminal window in your development environment. You can do this either with the keyboard shortcut Control ` (control + backtick) or through the hamburger menu (three horizontal lines icon).

Once the terminal is open, we'll update packages and install Boltz-2 using the following commands. You should be able to copy and paste the following commands directly into the terminal and hit enter to run them.

sudo apt update
sudo apt install python3-pip
pip install boltz[cuda] -U

While Boltz-2 is downloading, click on the extensions icon (looks like a Tetris block) to open the extensions menu.

From the extensions menu, search for and install β€œProtein Viewer” by Arian Jamasb.

After we run Boltz-2, this will allow you to view the protein structure visualizations in the development environment.


2. Add and Prepare Example Files

Next we need the Boltz-2 sample file to run a test. Open the affinity.yaml file from the Boltz-2 GitHub repository, then select and copy the entire contents to the clipboard.

affinity.yaml

Once you have this copied, return to your development environment and create a new file in the base directory by clicking the New File button and typing the name affinity.yaml. This should automatically save and open your new file.

Now paste the saved text from the original file that you copied earlier into your new affinity.yaml file.

To run this test, we don't want to use the the MSA server for authentication, so we will add the text msa: empty on line 6. The file should look about like this (note that the sequence string is cut off in this screenshot).



Run Boltz-2 & View Results

Copy and paste this command into your terminal window to run Boltz-2 on the sample file we just added.

boltz predict affinity.yaml --out_dir ./results --num_workers 0

When Boltz-2 has finished running, you should have a new directory in your Workspace called results/boltz_results_affinity with a nested directory called predictions/affinity that will contain your results.

To view a protein model in 3D, right click on one of the files like affinity_model_0.cif and select launch protein viewer from file(s)

And you're done! πŸŽ‰

Last updated