Skip to content

Commit 1f6be97

Browse files
Merge pull request #9 from prehensilecode/2.2.4
Update for AlphaFold 2.2.4
2 parents 2f810b9 + dc982ed commit 1f6be97

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This splits off my pull request https://github.com/deepmind/alphafold/pull/166
66
### Unfixed bug in Alphafold tagged release 2.2.2
77
N.B. https://github.com/deepmind/alphafold/issues/510#issuecomment-1159062272
88

9+
## Prebuilt Singularity image
10+
A prebuilt image is hosted on cloud.sylabs.io: [https://cloud.sylabs.io/library/prehensilecode/alphafold_singularity/alphafold](https://cloud.sylabs.io/library/prehensilecode/alphafold_singularity/alphafold)
11+
912
## What This Code Contains
1013
* `Singularity.def` which is the recipe to build the Singularity image. This is a port of the Dockerfile provided by AlphaFold.
1114
* `run_singularity.py` which is a port of the `run_docker.py` script provided by AlphaFold. It is a wrapper to provide a friendly interface for running the container.

Singularity.def

+14-10
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Stage: spython-base
2222
# FROM directive resets ARGS, so we specify again (the value is retained if
2323
# previously set).
2424

25-
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
25+
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
2626
build-essential \
2727
cmake \
2828
cuda-command-line-tools-11-1 \
@@ -31,7 +31,9 @@ hmmer \
3131
kalign \
3232
tzdata \
3333
wget \
34-
&& rm -rf /var/lib/apt/lists/*
34+
&& rm -rf /var/lib/apt/lists/* \
35+
&& apt-get autoremove -y \
36+
&& apt-get clean
3537

3638
# Compile HHsuite from source.
3739
/bin/rm -rf /tmp/hh-suite \
@@ -52,26 +54,28 @@ https://repo.anaconda.com/miniconda/Miniconda3-py37_4.12.0-Linux-x86_64.sh \
5254

5355
# Install conda packages.
5456
PATH="/opt/conda/bin:/usr/local/cuda-11.1/bin:$PATH"
55-
conda update -qy conda \
57+
conda install -qy conda==4.13.0 \
5658
&& conda install -y -c conda-forge \
5759
openmm=7.5.1 \
5860
cudatoolkit==11.1.1 \
5961
pdbfixer \
6062
pip \
61-
python=3.7
63+
python=3.7 \
64+
&& conda clean --all --force-pkgs-dirs --yes
6265

6366
### /bin/cp -r . /app/alphafold
6467

6568
wget -q -P /app/alphafold/alphafold/common/ \
6669
https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt
6770

6871
# Install pip packages.
69-
# N.B. The URL specifies the list of jaxlib releases. The URL in alphafold release 2.2.2 is incorrect
70-
# as it specifies the non-CUDA releases.
71-
pip3 install --upgrade pip \
72-
&& pip3 install -r /app/alphafold/requirements.txt \
73-
&& pip3 install --upgrade jax==0.2.14 jaxlib==0.1.69+cuda111 -f \
74-
https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
72+
# N.B. The URL specifies the list of jaxlib releases.
73+
pip3 install --upgrade pip --no-cache-dir \
74+
&& pip3 install -r /app/alphafold/requirements.txt --no-cache-dir \
75+
&& pip3 install --upgrade --no-cache-dir \
76+
jax==0.3.17 \
77+
jaxlib==0.3.15+cuda11.cudnn805 \
78+
-f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
7579

7680
# Apply OpenMM patch.
7781
cd /opt/conda/lib/python3.7/site-packages

0 commit comments

Comments
 (0)