Archive of AI

Source Snapshot / 2022-07-28-google-deepmind-alphafold-db-200m-3

google-deepmind/alphafold

Linked event: 2022-07-28 · Google DeepMind and EMBL-EBI Expand Free AlphaFold Protein Structure Database to Over 200 Million Structures

Publisher
GitHub
Archived
2026-11-23
Capture Method
Direct page capture
HTTP / SHA-256
200 / 93d2e9f2e6cdde0f
Original URL
Open source ↗
Wayback Backup
Not archived
This page preserves a plain-text static snapshot against link rot. When citing figures, tables, or full legal terms, verify against the original URL and Wayback Machine archive.

[来源关键摘录] AlphaFold 2 官方开源代码仓库,采用 Apache 2.0 协议开放推理代码并按 CC BY 4.0 提供参数权重。

[正文前段节选] Skip to content

Navigation Menu

Appearance settings

You signed in with another tab or window. Reload to refresh your session.

You signed out in another tab or window. Reload to refresh your session.

You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

Repository navigation

NotificationsYou must be signed in to change notification settings

Star14.9k (14.9k)You must be signed in to star a repository

Open source code for AlphaFold 2.

Apache-2.0 license

Contributing

Custom properties

241 watching

Report repository

BranchesTags

Open more actions menu

Latest commit

Folders and files

Last commit message

Last commit date

.dockerignore

CONTRIBUTING.md

pyproject.toml

requirements.txt

run_alphafold.py

run_alphafold_test.py

View all files

Repository files navigation

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:

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.

The technical note containing the models

and inference procedure for an updated AlphaFold v2.3.0.

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

alphafold@deepmind.com.

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:

Install Docker.

NVIDIA Container Toolkit

for GPU support.

Setup running

Docker as a non-root user.

Clone this repository and cd into it.

git clone https://github.com/deepmind/alphafold.git

cd ./alphafold

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:

scripts/download_all_data.sh <DOWNLOAD_DIR> > download.log 2> download_all.log &

Note: The download directory <DOWNLOAD_DIR> 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.

Check that AlphaFold will be able to use a GPU by running:

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 followed all steps correctly when setting up the

or take a look at the following

NVIDIA Docker issue.

If you wish to run AlphaFold using Singularity (a common containerization

platform on HPC systems) we recommend using some of the third party

Singularity setups as linked in

Build the Docker image:

docker build -f docker/Dockerfile -t alphafold .

If you encounter the following error:

W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC

E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is not signed.

use the workaround described in

#463 (comment).

Install the run_docker.py dependencies. Note: You may optionally wish to

Python Virtual Environment

to prevent conflicts with your system's Python environment.

pip3 install -r docker/requirements.txt

Make sure that the output directory exists (the default is /tmp/alphafold)

and that you have sufficient permissions to write into it.

Run run_docker.py pointing to a FASTA file containing the protein

sequence(s) for which you wish to predict the structure (--fasta_paths

parameter). AlphaFold will search for the available templates before the

date specified by the --max_template_date parameter; this could be used to

avoid certain templates during modeling. --data_dir is the directory with

downloaded genetic databases and --output_dir is the absolute path to the

output directory.

python3 docker/run_docker.py \

--fasta_paths=your_protein.fasta \

--max_template_date=2022-01-01 \

--data_dir=$DOWNLOAD_DIR \

--output_dir=/home/user/absolute_path_to_the_output_dir

Once the run is over, the output directory shall contain predicted

structures of the target protein. Please check the documentation below for

additional options and troubleshooting tips.

Genetic databases

This step requires aria2c to be installed on your machine.

AlphaFold needs multiple genetic (sequence) databases to run:

PDB (structures in the mmCIF format),

PDB seqres – only for AlphaFold-Multimer,

UniRef30 (FKA UniClust30),

UniProt – only for AlphaFold-Multimer,

We provide a script scripts/download_all_data.sh that can be used to download

and set up all of these databases:

Recommended default:

scripts/download_all_data.sh <DOWNLOAD_DIR>

will download the full databases.

With reduced_dbs parameter:

scripts/download_all_data.sh <DOWNLOAD_DIR> reduced_dbs

will download a reduced version of the databases to be used with the

reduced_dbs database preset. This shall be used with the corresponding

AlphaFold parameter --db_preset=reduced_dbs later during the AlphaFold run

(please see AlphaFold parameters section).

📒 Note: The download directory <DOWNLOAD_DIR> 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 during the image creation.

We don't provide exactly the database versions used in CASP14 – see the

note on reproducibility. Some of the

databases are mirrored for speed, see mirrored databases.

📒 Note: The total download size for the full databases is around 556 GB

and the total size when unzipped is 2.62 TB. Please make sure you have a large

enough hard drive space, bandwidth and time to download. We recommend using an

SSD for better genetic search performance.

📒 Note: If the download directory and datasets don't have full read and

write permissions, it can cause errors with the MSA tools, with opaque

(external) error messages. Please ensure the required permissions are applied,

e.g. with the sudo chmod 755 --recursive "$DOWNLOAD_DIR" command.

The download_all_data.sh script will also download the model parameter files.

Once the script has finished, you should have the following directory structure:

$DOWNLOAD_DIR/ # Total: ~ 2.62 TB (download: 556 GB)

bfd/ # ~ 1.8 TB (download: 271.6 GB)

mgnify/ # ~ 120 GB (download: 67 GB)

mgy_clusters_2022_05.fa

params/ # ~ 5.3 GB (download: 5.3 GB)

# 5 CASP14 models,

# 5 pTM models,

# 5 AlphaFold-Multimer models,

# = 16 files.

pdb70/ # ~ 56 GB (download: 19.5 GB)

pdb_mmcif/ # ~ 238 GB (download: 43 GB)

mmcif_files/

# About 199,000 .cif files.

obsolete.dat

[...内容已截断,完整版请查看原文或 Wayback 快照]