LocalColabFold

ColabFold / AlphaFold2_advanced on your local PC (or macOS)

Installation

For Linux

  1. Make sure curl and wget commands are already installed on your PC. If not present, you need install them at first. For Ubuntu, type sudo apt -y install curl wget.
  2. Download install_colabfold_linux.sh from this repository:$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_linux.shand run it in the directory where you want to install:$ bash install_colabfold_linux.shAbout 5 minutes later, colabfold directory will be created. Do not move this directory after the installation.
  3. Type cd colabfold to enter the directory.
  4. Modify the variables such as sequence = 'PIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASK', jobname = "test", and etc. in runner.py for your prediction. For more information, please refer to the original ColabFold / AlphaFold2_advanced.
  5. To run the prediction, type$ colabfold-conda/bin/python3.7 runner.pyin the colabfold directory. The result files will be created in the predition_<jobname>_<hash> in the colabfold directory. After the prediction finished, you may move the results from the colabfold directory.

For macOS

Caution: Due to the lack of Nvidia GPU/CUDA driver, the structure prediction on macOS are 5-10 times slower than on Linux+GPU. For the test sequence (58 a.a.), it may take 30 minutes. However, it may be useful to play with it before preparing Linux+GPU environment.

You can check whether your Mac is Intel or Apple Silicon by typing uname -m on Terminal.

$ uname -m x86_64 # Intelarm64  # Apple Silicon

Please use the correct installer for your Mac.

For Mac with Intel CPU

  1. Install Homebrew if not present:$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install wget command using Homebrew:$ brew install wget
  3. Download install_colabfold_intelmac.sh from this repository:$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_intelmac.shand run it in the directory where you want to install:$ bash install_colabfold_intelmac.shAbout 5 minutes later, colabfold directory will be created. Do not move this directory after the installation.
  4. The rest procedure is the same as "For Linux".

For Mac with Apple Silicon (M1 chip)

Note: This installer is experimental because most of the dependent packages are not fully tested on Apple Silicon Mac.

  1. Install Homebrew if not present:$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install wget command using Homebrew:$ brew install wget
  3. Install miniforge command using Homebrew:$ brew install --cask miniforge
  4. Download install_colabfold_M1mac.sh from this repository:$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_M1mac.shand run it in the directory where you want to install:$ bash install_colabfold_M1mac.shAbout 5 minutes later, colabfold directory will be created. Do not move this directory after the installation.
  5. Type cd colabfold to enter the directory.
  6. Modify the variables such as sequence = 'PIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASK', jobname = "test", and etc. in runner.py for your prediction. For more information, please refer to the original ColabFold / AlphaFold2_advanced.
  7. To run the prediction, type$ colabfold-conda/bin/python3.8 runner.pyin the colabfold directory. The result files will be created in the predition_<jobname>_<hash> in the colabfold directory. After the prediction finished, you may move the results from the colabfold directory.

A Warning message appeared when you run the prediction:

You are using an experimental build of OpenMM v7.5.1.
This is NOT SUITABLE for production!
It has not been properly tested on this platform and we cannot guarantee it provides accurate results.

This message is due to Apple Silicon, but I think we can ignore it.

Advantages of LocalColabFold

  • Structure inference and relaxation will be accelerated if your PC has Nvidia GPU and CUDA drivers.
  • No Time out (90 minutes and 12 hours), No GPU limitations.
  • You don't need prepare the large database required for native AlphaFold2.

FAQ

  • What else do I need to do before installation? Do I need sudo privileges?
  • No, except for installation of curl and wget commands.
  • Do I need to prepare the large database such as PDB70, BFD, Uniclust30, MGnify...?
  • No. it is not necessary. Generation of MSA is performed by the MMseqs2 web server, just as implemented in ColabFold.
  • Are the pLDDT score and PAE figures available?
  • Yes, they will be generated just like the ColabFold.
  • Is it possible to predict homooligomers and complexes?
  • Yes, the sequence input is the same as ColabFold. See ColabFold / AlphaFold2_advanced.
  • Is it possible to create MSA by jackhmmer?
  • No, it is not currently supported.
  • I want to run the predictions step-by-step like Google Colab.
  • You can use VSCode and Python plugin to do the same. See https://code.visualstudio.com/docs/python/jupyter-support-py.
  • Is this available on Windows 10?
  • You can run LocalColabFold on your Windows 10 with WSL2.

Tutorials & Presentations

  • ColabFold Tutorial presented at the Boston Protein Design and Modeling Club. [video] [slides].

Acknowledgments

GitHub

GitHub - YoshitakaMo/localcolabfold: ColabFold on your local PC
ColabFold on your local PC. Contribute to YoshitakaMo/localcolabfold development by creating an account on GitHub.