diff --git a/README.md b/README.md
index 768e4dd..9cf3592 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,10 @@
[ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb) on your local PC (or macOS)
+## New Updates
+
+- 04Dec2021, LocalColabFold is now compatible with the latest [pip installable ColabFold](https://github.com/sokrypton/ColabFold#running-locally). In this repository, I will provide a script to install ColabFold with some external parameter files to perform relaxation with AMBER. The weight parameters of AlphaFold and AlphaFold-Multimer will be downloaded automatically at your first run.
+
## Installation
### For Linux
@@ -14,10 +18,9 @@ Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
DO NOT use `nvidia-smi` for checking the version.
See [NVIDIA CUDA Installation Guide for Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html) if you haven't installed it.
-1. 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. -1. Type `cd colabfold` to enter the directory. -1. 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](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). -1. To run the prediction, type
$ colabfold-conda/bin/python3.7 runner.pyin the `colabfold` directory. The result files will be created in the `predition_
$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabbatch_linux.shand run it in the directory where you want to install:
$ bash install_colabbatch_linux.shAbout 5 minutes later, `colabfold_batch` directory will be created. Do not move this directory after the installation. +1. Add environment variable PATH:
# bash+2. To run the prediction, type
export PATH="/bin:\$PATH"
#i.e. export PATH="/home/moriwaki/Desktop/colabfold_batch/bin:\$PATH"
colabfold_batch --amber --templates --num-recycle 3 inputfile outputdir/The result files will be created in the `outputdir`. For more details, see `colabfold_batch --help`. ### For macOS @@ -36,54 +39,16 @@ Please use the correct installer for your Mac. #### For Mac with Intel CPU 1. Install [Homebrew](https://brew.sh/index_ja) if not present:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"-1. Install `wget` command using Homebrew:
$ brew install wget-1. 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. +1. Install `wget` command using Homebrew:
$ brew install wget gnu-sed+1. Download `install_colabbatch_intelmac.sh` from this repository:
\$ brew install brewsci/bio/hh-suite brewsci/bio/kalign
$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabbatch_intelmac.shand run it in the directory where you want to install:
$ bash install_colabbatch_intelmac.shAbout 5 minutes later, `colabfold_batch` directory will be created. Do not move this directory after the installation. 1. 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](https://brew.sh/index_ja) if not present:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"-1. Install `wget` and `cmake` commands using Homebrew:
$ brew install wget cmake-1. Install `miniforge` command using Homebrew:
$ brew install --cask miniforge-1. 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. -1. Type `cd colabfold` to enter the directory. -1. 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](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). -1. To run the prediction, type
$ colabfold-conda/bin/python3.8 runner.pyin the `colabfold` directory. The result files will be created in the `predition_
>6X9Z_1|Chain A|Transmembrane beta-barrels|synthetic construct (32630) -MEQKPGTLMVYVVVGYNTDNTVDVVGGAQYAVSPYLFLDVGYGWNNSSLNFLEVGGGVSYKVSPDLEPYVKAGFEYNTDNTIKPTAGAGALYRVSPNLALMVEYGWNNSSLQKVAIGIAYKVKD-2. Type `export PATH="/path/to/colabfold/bin:$PATH"` to add a path to the PATH environment variable. For example, `export PATH="/home/foo/bar/colabfold/bin:$PATH"` if you installed localcolabfold on `/home/foo/bar/colabfold`. -3. Run colabfold command with your FASTA file. For example,
$ colabfold --input 6x9z.fasta \\ - --output_dir 6x9z \\ - --max_recycle 18 \\ - --use_ptm \\ - --use_turbo \\ - --num_relax Top5This will predict a protein structure [6x9z](https://www.rcsb.org/structure/6x9z) with increasing the number of 'recycling' to 18. This may be effective for *de novo* structure prediction. For another example, [PDB: 3KUD](https://www.rcsb.org/structure/3KUD),
$ colabfold --input 3kud_complex.fasta \\ - --output_dir 3kud \\ - --homooligomer 1:1 \\ - --use_ptm \\ - --use_turbo \\ - --max_recycle 3 \\ - --num_relax Top5where the input sequence `3kud_complex.fasta` is
>3KUD_complex - MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSYRKQVVIDGETCLLDILDTAGQEEYSAMRDQYMRTGEGFLCVFAINNTKSFEDIHQYREQIKRVKDSDDVPMVLVGNKCDLAARTVESRQAQDLARSYGIPYIETSAKTRQGVEDAFYTLVREIRQH: - PSKTSNTIRVFLPNKQRTVVNVRNGMSLHDCLMKALKVRGLQPECCAVFRLLHEHKGKKARLDWNTDAASLIGEELQVDFLThis will predict a heterooligomer. For more information about the options, type `colabfold --help` or refer to the original [ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). +Currently not supported. ## 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** @@ -100,16 +65,15 @@ MEQKPGTLMVYVVVGYNTDNTVDVVGGAQYAVSPYLFLDVGYGWNNSSLNFLEVGGGVSYKVSPDLEPYVKAGFEYNTDN - Yes, the sequence input is the same as ColabFold. See [ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). - 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. - I want to use multiple GPUs to perform the prediction. - - You need to set the environment variables `TF_FORCE_UNIFIED_MEMORY`,`XLA_PYTHON_CLIENT_MEM_FRACTION` before execution. See [this discussion](https://github.com/YoshitakaMo/localcolabfold/issues/7#issuecomment-923027641). -- I want to solve the `ResourceExhausted` error when trying to predict for a sequence with > 1000 residues. - - See the same discussion as above. + - **AlphaFold and ColabFold does not support multiple GPUs**. Only One GPU can model your protein. - I got an error message `CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered`. - You may not have updated to CUDA 11.1 or later. Please check the version of Cuda compiler with `nvcc --version` command, not `nvidia-smi`. - Is this available on Windows 10? - You can run LocalColabFold on your Windows 10 with [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install-win10). +- I want to use a custom MSA file in the format of a3m. + - **ColabFold can accept various input files now**. See the help messsage. You can set your own A3M file, a fasta file that contains multiple sequences (in FASTA format), or a directory that contains multiple fasta files. + ## Tutorials & Presentations @@ -121,7 +85,16 @@ MEQKPGTLMVYVVVGYNTDNTVDVVGGAQYAVSPYLFLDVGYGWNNSSLNFLEVGGGVSYKVSPDLEPYVKAGFEYNTDN ## How do I reference this work? -- Mirdita M, Schuetze K, Moriwaki Y, Heo L, Ovchinnikov S and Steinegger M. ColabFold - Making protein folding accessible to all. *bioRxiv*, doi: [10.1101/2021.08.15.456425](https://www.biorxiv.org/content/10.1101/2021.08.15.456425v2) (2021) -- John Jumper, Richard Evans, Alexander Pritzel, et al. - Highly accurate protein structure prediction with AlphaFold. *Nature*, 1–11, doi: [10.1038/s41586-021-03819-2](https://www.nature.com/articles/s41586-021-03819-2) (2021) +- Mirdita M, Schütze K, Moriwaki Y, Heo L, Ovchinnikov S and Steinegger M. ColabFold - Making protein folding accessible to all.
$ nvcc --version +nvcc: NVIDIA (R) Cuda compiler driver +Copyright (c) 2005-2020 NVIDIA Corporation +Built on Mon_Oct_12_20:09:46_PDT_2020 +Cuda compilation tools, release 11.1, V11.1.105 +Build cuda_11.1.TC455_06.29190527_0 +DO NOT use `nvidia-smi` for checking the version.
$ 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. +1. Type `cd colabfold` to enter the directory. +1. 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](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). +1. To run the prediction, type
$ colabfold-conda/bin/python3.7 runner.pyin the `colabfold` directory. The result files will be created in the `predition_
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"+1. Install `wget` command using Homebrew:
$ brew install wget+1. 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. +1. 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](https://brew.sh/index_ja) if not present:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"+1. Install `wget` and `cmake` commands using Homebrew:
$ brew install wget cmake+1. Install `miniforge` command using Homebrew:
$ brew install --cask miniforge+1. 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. +1. Type `cd colabfold` to enter the directory. +1. 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](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). +1. To run the prediction, type
$ colabfold-conda/bin/python3.8 runner.pyin the `colabfold` directory. The result files will be created in the `predition_
>6X9Z_1|Chain A|Transmembrane beta-barrels|synthetic construct (32630) +MEQKPGTLMVYVVVGYNTDNTVDVVGGAQYAVSPYLFLDVGYGWNNSSLNFLEVGGGVSYKVSPDLEPYVKAGFEYNTDNTIKPTAGAGALYRVSPNLALMVEYGWNNSSLQKVAIGIAYKVKD+2. Type `export PATH="/path/to/colabfold/bin:$PATH"` to add a path to the PATH environment variable. For example, `export PATH="/home/foo/bar/colabfold/bin:$PATH"` if you installed localcolabfold on `/home/foo/bar/colabfold`. +3. Run colabfold command with your FASTA file. For example,
$ colabfold --input 6x9z.fasta \\ + --output_dir 6x9z \\ + --max_recycle 18 \\ + --use_ptm \\ + --use_turbo \\ + --num_relax Top5This will predict a protein structure [6x9z](https://www.rcsb.org/structure/6x9z) with increasing the number of 'recycling' to 18. This may be effective for *de novo* structure prediction. For another example, [PDB: 3KUD](https://www.rcsb.org/structure/3KUD),
$ colabfold --input 3kud_complex.fasta \\ + --output_dir 3kud \\ + --homooligomer 1:1 \\ + --use_ptm \\ + --use_turbo \\ + --max_recycle 3 \\ + --num_relax Top5where the input sequence `3kud_complex.fasta` is
>3KUD_complex + MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSYRKQVVIDGETCLLDILDTAGQEEYSAMRDQYMRTGEGFLCVFAINNTKSFEDIHQYREQIKRVKDSDDVPMVLVGNKCDLAARTVESRQAQDLARSYGIPYIETSAKTRQGVEDAFYTLVREIRQH: + PSKTSNTIRVFLPNKQRTVVNVRNGMSLHDCLMKALKVRGLQPECCAVFRLLHEHKGKKARLDWNTDAASLIGEELQVDFLThis will predict a heterooligomer. For more information about the options, type `colabfold --help` or refer to the original [ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). + +## 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** +- **NOT necessary to 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](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb). +- 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. +- I want to use multiple GPUs to perform the prediction. + - You need to set the environment variables `TF_FORCE_UNIFIED_MEMORY`,`XLA_PYTHON_CLIENT_MEM_FRACTION` before execution. See [this discussion](https://github.com/YoshitakaMo/localcolabfold/issues/7#issuecomment-923027641). +- I want to solve the `ResourceExhausted` error when trying to predict for a sequence with > 1000 residues. + - See the same discussion as above. +- I got an error message `CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered`. + - You may not have updated to CUDA 11.1 or later. Please check the version of Cuda compiler with `nvcc --version` command, not `nvidia-smi`. +- Is this available on Windows 10? + - You can run LocalColabFold on your Windows 10 with [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install-win10). + +## Tutorials & Presentations + +- ColabFold Tutorial presented at the Boston Protein Design and Modeling Club. [[video]](https://www.youtube.com/watch?v=Rfw7thgGTwI) [[slides]](https://docs.google.com/presentation/d/1mnffk23ev2QMDzGZ5w1skXEadTe54l8-Uei6ACce8eI). + +## Acknowledgments + +- The original colabfold was first created by Sergey Ovchinnikov ([@sokrypton](https://twitter.com/sokrypton)), Milot Mirdita ([@milot_mirdita](https://twitter.com/milot_mirdita)) and Martin Steinegger ([@thesteinegger](https://twitter.com/thesteinegger)). + +## How do I reference this work? + +- Mirdita M, Schuetze K, Moriwaki Y, Heo L, Ovchinnikov S and Steinegger M. ColabFold - Making protein folding accessible to all. *bioRxiv*, doi: [10.1101/2021.08.15.456425](https://www.biorxiv.org/content/10.1101/2021.08.15.456425v2) (2021) +- John Jumper, Richard Evans, Alexander Pritzel, et al. - Highly accurate protein structure prediction with AlphaFold. *Nature*, 1–11, doi: [10.1038/s41586-021-03819-2](https://www.nature.com/articles/s41586-021-03819-2) (2021) + +[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.5123296.svg)](https://doi.org/10.5281/zenodo.5123296) diff --git a/v1.0.0/README_ja.md b/v1.0.0/README_ja.md new file mode 100644 index 0000000..ae5b3e8 --- /dev/null +++ b/v1.0.0/README_ja.md @@ -0,0 +1,134 @@ +# LocalColabFold + +個人用パソコンのCPUとGPUで動かす[ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb)。 + +## インストール方法 + +### Linux+GPUの場合 + +1. ターミナル上で`curl`, `git`と`wget`コマンドがすでにインストールされていることを確認します。存在しない場合は先にこれらをインストールしてください。Ubuntuの場合はtype `sudo apt -y install curl git wget`でインストールできます。 +2. **Cuda compilerのバージョンが11.1以降であることを確認します。**
$ nvcc --version +nvcc: NVIDIA (R) Cuda compiler driver +Copyright (c) 2005-2020 NVIDIA Corporation +Built on Mon_Oct_12_20:09:46_PDT_2020 +Cuda compilation tools, release 11.1, V11.1.105 +Build cuda_11.1.TC455_06.29190527_0 +バージョンチェックの時に`nvidia-smi`コマンドを使わないでください。こちらでは不正確です。
$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_linux.shこれをインストールしたいディレクトリの上に置いた後、以下のコマンドを入力します:
$ bash install_colabfold_linux.shおよそ5分後に`colabfold`ディレクトリができます。インストール後はこのディレクトリを移動させないでください。 +4. `cd colabfold`を入力してこのディレクトリに入ります。 +5. `runner.py`ファイル中の`sequence = 'PIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASK'`や`jobname = "test"`などのパラメータを変更し、構造予測のために必要な情報を入力します。詳細な設定方法についてはオリジナルの[ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb)を参考にしてください。こちらで可能な設定はほとんど利用可能です(MSA_methods以外)。 +6. 予測を行うには、`colabfold`ディレクトリ内で以下のコマンドをターミナルで入力してください:
$ colabfold-conda/bin/python3.7 runner.py予測結果のファイルは`predition_
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"+2. Homebrewで`wget`コマンドをインストールします:
$ brew install wget+3. `install_colabfold_intelmac.sh`をこのリポジトリからダウンロードします:
$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_intelmac.shこれをインストールしたいディレクトリの上に置いた後、以下のコマンドを入力します:
$ bash install_colabfold_intelmac.shおよそ5分後に`colabfold`ディレクトリができます。インストール後はこのディレクトリを移動させないでください。 +4. 残りの手順は"Linux+GPUの場合"と同様です. + +#### Apple Silicon (M1 chip)のMacの場合 + +**Note: 依存するPythonパッケージのほとんどがまだApple Silicon Macで十分にテストされていないため、このインストーラーによる動作は試験的なものです。** + +1. [Homebrew](https://qiita.com/zaburo/items/29fe23c1ceb6056109fd)をインストールします:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"+1. Homebrweで`wget`と`cmake`コマンドをインストールします:
$ brew install wget cmake+1. `miniforge`をHomebrewでインストールします:
$ brew install --cask miniforge+1. インストーラー`install_colabfold_M1mac.sh`をこのリポジトリからダウンロードします:
$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_M1mac.shこれをインストールしたいディレクトリの上に置いた後、以下のコマンドを入力します:
$ bash install_colabfold_M1mac.shおよそ5分後に`colabfold`ディレクトリができます。途中色々WarningsやErrorが出るかもしれません。インストール後はこのディレクトリを移動させないでください。 +1. `cd colabfold`を入力してこのディレクトリに入ります。 +1. `runner.py`ファイル中の`sequence = 'PIAQIHILEGRSDEQKETLIREVSEAISRSLDAPLTSVRVIITEMAKGHFGIGGELASK'`や`jobname = "test"`などのパラメータを変更し、構造予測のために必要な情報を入力します。詳細な設定方法についてはオリジナルの[ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb)を参考にしてください。こちらで可能な設定はほとんど利用可能です(MSA_methods以外)。 +1. 予測を行うには、`colabfold`ディレクトリ内で以下のコマンドをターミナルで入力してください:
$ colabfold-conda/bin/python3.8 runner.py予測結果のファイルは`predition_
>6X9Z_1|Chain A|Transmembrane beta-barrels|synthetic construct (32630) +MEQKPGTLMVYVVVGYNTDNTVDVVGGAQYAVSPYLFLDVGYGWNNSSLNFLEVGGGVSYKVSPDLEPYVKAGFEYNTDNTIKPTAGAGALYRVSPNLALMVEYGWNNSSLQKVAIGIAYKVKD+1. `export PATH="/path/to/colabfold/bin:$PATH"`と打つことで環境変数PATHにこのcolabfoldシェルスクリプトのファイルパスを設定します。例えばLocalColabFoldを`/home/foo/bar/colabfold`にインストールした場合は、`export PATH="/home/foo/bar/colabfold/bin:$PATH"`と入力します。 +1. 入力のアミノ酸配列ファイルを`--input`の引数に指定し、`colabfold`コマンドを実行します。例えばこんな感じ
$ colabfold --input 6x9z.fasta \\ + --output_dir 6x9z \\ + --max_recycle 18 \\ + --use_ptm \\ + --use_turbo \\ + --num_relax Top5上記コマンドは*de novo*タンパク質構造[PDB: 6X9Z](https://www.rcsb.org/structure/6x9z)を予想するときに、'recycling'回数を最大18回まで引き上げています。この回数の引き上げは*de novo*タンパク質構造を予測する時には効果的であることが示されています(通常のタンパク質は3回で十分なことがほとんどです)。
$ colabfold --input 3kud_complex.fasta \\ + --output_dir 3kud \\ + --homooligomer 1:1 \\ + --use_ptm \\ + --use_turbo \\ + --max_recycle 3 \\ + --num_relax Top5ここで入力配列`3kud_complex.fasta`は以下の通りです。
>3KUD_complex + MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSYRKQVVIDGETCLLDILDTAGQEEYSAMRDQYMRTGEGFLCVFAINNTKSFEDIHQYREQIKRVKDSDDVPMVLVGNKCDLAARTVESRQAQDLARSYGIPYIETSAKTRQGVEDAFYTLVREIRQH: + PSKTSNTIRVFLPNKQRTVVNVRNGMSLHDCLMKALKVRGLQPECCAVFRLLHEHKGKKARLDWNTDAASLIGEELQVDFL +`:`記号でアミノ酸配列を隔てることで複合体予測をすることができます。この場合はヘテロ複合体予測になっています。ホモオリゴマー予測を行いたいときなど、他の設定については`colabfold --help`で設定方法を読むか、オリジナルの[ColabFold / AlphaFold2_advanced](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/beta/AlphaFold2_advanced.ipynb)にある説明を読んでください。 + +## LocalColabFoldを利用するメリット + +- **お使いのパソコンにNvidia GPUとCUDAドライバがあれば、AlphaFold2による構造推論(Structure inference)と構造最適化(relax)が高速になります。** +- **Google Colabは90分アイドルにしていたり、12時間以上の利用でタイムアウトしますが、その制限がありません。また、GPUの使用についても当然制限がありません。** +- **データベースをダウンロードしてくる必要がないです**。 + +## FAQ +- インストールの事前準備は? + - `curl`, `wget`コマンド以外は不要です +- BFD, Mgnify, PDB70, Uniclust30などの巨大なデータベースを用意する必要はありますか? + - **必要ないです**。 +- AlphaFold2の最初の動作に必要なMSA作成はどのように行っていますか? + - MSA作成はColabFoldと同様にMMseqs2のウェブサーバーによって行われています。 +- ColabFoldで表示されるようなpLDDTスコアやPAEの図も生成されますか? + - はい、生成されます。 +- ホモ多量体予測、複合体予測も可能ですか? + - はい、可能です。配列の入力方法はGoogle Colabのやり方と同じです。 +- jackhmmerによるMSA作成は可能ですか? + - **現在のところ対応していません**。 +- Google Colabのようにセルごとに実行したい。 + - VSCodeとPythonプラグインを使えば同様のことができます。See https://code.visualstudio.com/docs/python/jupyter-support-py . +- 複数のGPUを利用して計算を行いたい。 + - 実行前に環境変数`TF_FORCE_UNIFIED_MEMORY`,`XLA_PYTHON_CLIENT_MEM_FRACTION`を設定する必要があります。[こちらのissue](https://github.com/YoshitakaMo/localcolabfold/issues/7#issuecomment-923027641)を読んでください。 +- 長いアミノ酸を予測しようとしたときに`ResourceExhausted`というエラーが発生するのを解決したい。 + - 上と同じissueを読んでください。 +- `CUDA_ERROR_ILLEGAL_ADDRESS: an illegal memory access was encountered`というエラーメッセージが出る + - CUDA 11.1以降にアップデートされていない可能性があります。`nvcc --version`コマンドでCuda compilerのバージョンを確認してみてください。 +- Windows 10の上でも利用することはできますか? + - [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install-win10)を入れればWindows 10の上でも同様に動作させることができます。 + +## Tutorials & Presentations + +- ColabFold Tutorial presented at the Boston Protein Design and Modeling Club. [[video]](https://www.youtube.com/watch?v=Rfw7thgGTwI) [[slides]](https://docs.google.com/presentation/d/1mnffk23ev2QMDzGZ5w1skXEadTe54l8-Uei6ACce8eI). + +## Acknowledgments + +- The original colabfold was first created by Sergey Ovchinnikov ([@sokrypton](https://twitter.com/sokrypton)), Milot Mirdita ([@milot_mirdita](https://twitter.com/milot_mirdita)) and Martin Steinegger ([@thesteinegger](https://twitter.com/thesteinegger)). + +## How do I reference this work? + +- Mirdita M, Schuetze K, Moriwaki Y, Heo L, Ovchinnikov S and Steinegger M. ColabFold - Making protein folding accessible to all. *bioRxiv*, doi: [10.1101/2021.08.15.456425](https://www.biorxiv.org/content/10.1101/2021.08.15.456425v2) (2021) +- John Jumper, Richard Evans, Alexander Pritzel, et al. - Highly accurate protein structure prediction with AlphaFold. *Nature*, 1–11, doi: [10.1038/s41586-021-03819-2](https://www.nature.com/articles/s41586-021-03819-2) (2021) + + +[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.5123296.svg)](https://doi.org/10.5281/zenodo.5123296) diff --git a/colabfold_alphafold.patch b/v1.0.0/colabfold_alphafold.patch similarity index 100% rename from colabfold_alphafold.patch rename to v1.0.0/colabfold_alphafold.patch diff --git a/gpurelaxation.patch b/v1.0.0/gpurelaxation.patch similarity index 100% rename from gpurelaxation.patch rename to v1.0.0/gpurelaxation.patch diff --git a/install_colabfold_M1mac.sh b/v1.0.0/install_colabfold_M1mac.sh similarity index 100% rename from install_colabfold_M1mac.sh rename to v1.0.0/install_colabfold_M1mac.sh diff --git a/install_colabfold_intelmac.sh b/v1.0.0/install_colabfold_intelmac.sh similarity index 100% rename from install_colabfold_intelmac.sh rename to v1.0.0/install_colabfold_intelmac.sh diff --git a/install_colabfold_linux.sh b/v1.0.0/install_colabfold_linux.sh similarity index 100% rename from install_colabfold_linux.sh rename to v1.0.0/install_colabfold_linux.sh diff --git a/residue_constants.patch b/v1.0.0/residue_constants.patch similarity index 100% rename from residue_constants.patch rename to v1.0.0/residue_constants.patch diff --git a/runner.py b/v1.0.0/runner.py similarity index 100% rename from runner.py rename to v1.0.0/runner.py diff --git a/runner_af2advanced.py b/v1.0.0/runner_af2advanced.py similarity index 100% rename from runner_af2advanced.py rename to v1.0.0/runner_af2advanced.py diff --git a/runner_af2advanced_old.py b/v1.0.0/runner_af2advanced_old.py similarity index 100% rename from runner_af2advanced_old.py rename to v1.0.0/runner_af2advanced_old.py