google-deepmind /alphafold
Open source code for AlphaFold 2.
★ 14,941⑂ 2,960👁 241⑃ 149● 910▤ 13
More from this author
+2
Daily
+15
Weekly
+51
Monthly
14,941
stars
2,960
forks
241
watchers
149
prs
910
issues
13
releases
README
!header
AlphaFold
This package provides an implementation of the inference pipeline of AlphaFold
v2. For simplicity, we refer to this model as AlphaFold throughout the rest of
this document.
We also provide:
1. An implementation of AlphaFold-Multimer. This represents a work in progress
and AlphaFold-Multimer isn't expected to be as stable as our monomer
AlphaFold system. Read the guide for how
to upgrade and update code.
2. The technical note containing the models
and inference procedure for an updated AlphaFold v2.3.0.
3. A CASP15 baseline set of predictions along
with documentation of any manual interventions performed.
Any publication that discloses findings arising from using this source code or
the model parameters should cite the
AlphaFold paper and, if
applicable, the
AlphaFold-Multimer paper.
Please also refer to the
Supplementary Information
for a detailed description of the method.
You can use a slightly simplified version of AlphaFold with
community-supported versions (see below).
If you have any questions, please contact the AlphaFold team at
[email protected].
!CASP14 predictions
Installation and running your first prediction
You will need a machine running Linux, AlphaFold does not support other
operating systems. Full installation requires up to 3 TB of disk space to keep
genetic databases (SSD storage is recommended) and a modern NVIDIA GPU (GPUs
with more memory can predict larger protein structures).
Please follow these steps:
1. Install Docker.
Install
NVIDIA Container Toolkit
for GPU support.
Setup running
Docker as a non-root user.
1. Clone this repository and cd into it.
bash
git clone https://github.com/deepmind/alphafold.git
cd ./alphafold
1. Download genetic databases and model parameters:
Install aria2c. On most Linux distributions it is available via the
package manager as the aria2 package (on Debian-based distributions
this can be installed by running sudo apt install aria2).
Same for rsync.
Please use the script scripts/download_all_data.sh to download and set
up full databases. This may take substantial time (download size is 556
GB), so we recommend running this script in the background:
bash
scripts/download_all_data.sh download.log 2 download_all.log &
Note: The download directory should not be a
subdirectory in the AlphaFold repository directory. If it is, the
Docker build will be slow as the large databases will be copied into the
docker build context.
It is possible to run AlphaFold with reduced databases; please refer to
the complete documentation.
1. Check that AlphaFold will be able to use a GPU by running:
bash
docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
The output of this command should show a list of your GPUs. If it doesn't,
check if you folTop issues
#867docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'26 comments · 2023-11-30#485Tensor cores or cuda cores?21 comments · 2022-05-28#945InvalidSpec: The package "nvidia/linux-64::cuda-compiler==12.5.0=0" is not available for the specified platform14 comments · 2024-06-06#777How do i fix the "Unable to initialize backend 'tpu_driver': NOT_FOUND: Unable to find driver in registry given worker:" error14 comments · 2023-06-08#849jax._src.traceback_util.UnfilteredStackTrace: AttributeError: module 'jax.dtypes' has no attribute 'prng_key'13 comments · 2023-10-31#853"TypeError: HTTPConnection.request() got an unexpected keyword argument 'chunked'" error while running AlphaFold12 comments · 2023-11-07#764Cuda error appeared when I was running AlphaFold version >=2.2.411 comments · 2023-05-17#403On docker after some time: No compatible CUDA device is available11 comments · 2022-03-17
Latest release
Alphafold v2.3.2 v2.3.2 2023-04-05Change log - More robust download in Colab with shutil (thanks @gmihaila). - Added ability to only run relax for the best unrelaxed model in the run_alphafold.py. - Improved documentation for the ranked outputs (thanks @ulupo). - Removed jax dependency from results pkl. - Updated tensorflow to 2.11.0. - Improved documentation on how to install aria2c (thanks @janxkoci). - Made _chem_comp.type logic case-insensitive for mmCIF parsing. - Improved error messages when cells are submitted out of order in Colab (e.g. when the runtime restarts). - Fixed incorrect type annotations. - Bumpe