Skip to content

Commit

Permalink
Update alphafold dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseEspinosa committed Mar 20, 2024
1 parent def38fd commit 400ce19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
12 changes: 5 additions & 7 deletions dockerfiles/Dockerfile_nfcore-proteinfold_alphafold2_msa
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM nvidia/cuda:11.4.2-cudnn8-runtime-ubuntu18.04
LABEL authors="Luisa Santus, Athanasios Baltzis, Leila Mansouri" \
FROM nvidia/cuda:11.4.3-cudnn8-runtime-ubuntu18.04

LABEL authors="Luisa Santus, Athanasios Baltzis, Jose Espinosa-Carrasco, Leila Mansouri" \
title="nfcore/proteinfold_alphafold2_msa" \
Version="1.1.0" \
description="Docker image containing all software requirements to run the RUN_ALPHAFOLD2_MSA module using the nf-core/proteinfold pipeline"


# Use bash to support string substitution.
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand All @@ -29,7 +29,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
# Clone AlphaFold2
RUN git clone https://github.com/cbcrg/alphafold.git /app/alphafold && \
cd /app/alphafold && \
git checkout b35b26e0ef88cc00498a73a8dffe429a119c6ee4 && \
git checkout 1b3170e9409472ec8ad044f9935c92bedd7b4674 && \
cd -

# Compile HHsuite from source
Expand All @@ -48,13 +48,11 @@ RUN wget -q -P /tmp \
&& rm /tmp/Miniconda3-latest-Linux-x86_64.sh

# Install conda packages
RUN /conda/bin/conda install -qy conda=4.13.0 \
&& /conda/bin/conda install -y -c conda-forge \
RUN /conda/bin/conda install -y -c conda-forge \
pip \
python=3.10 \
&& conda clean --all --force-pkgs-dirs --yes

# Install pip packages
RUN pip3 install --upgrade pip --no-cache-dir \
&& pip3 install -r /app/alphafold/requirements_msa.txt --no-cache-dir

13 changes: 5 additions & 8 deletions dockerfiles/Dockerfile_nfcore-proteinfold_alphafold2_split
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM nvidia/cuda:11.4.2-cudnn8-runtime-ubuntu18.04
LABEL authors="Athanasios Baltzis, Leila Mansouri" \
FROM nvidia/cuda:11.4.3-cudnn8-runtime-ubuntu18.04

LABEL authors="Athanasios Baltzis, Jose Espinosa-Carrasco, Leila Mansouri" \
title="nfcore/proteinfold_alphafold2_split" \
Version="1.1.0" \
description="Docker image containing all software requirements to run the RUN_ALPHAFOLD2_PRED module using the nf-core/proteinfold pipeline"


# Use bash to support string substitution.
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand All @@ -29,7 +29,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
# Clone AlphaFold2
RUN git clone https://github.com/cbcrg/alphafold.git /app/alphafold && \
cd /app/alphafold && \
git checkout b35b26e0ef88cc00498a73a8dffe429a119c6ee4 && \
git checkout 1b3170e9409472ec8ad044f9935c92bedd7b4674 && \
cd -

# Compile HHsuite from source
Expand All @@ -48,8 +48,7 @@ RUN wget -q -P /tmp \
&& rm /tmp/Miniconda3-latest-Linux-x86_64.sh

# Install conda packages
RUN /conda/bin/conda install -qy conda=4.13.0 \
&& /conda/bin/conda install -y -c conda-forge \
RUN /conda/bin/conda install -y -c conda-forge \
openmm=7.7.0 \
cudatoolkit==11.1.1 \
pdbfixer \
Expand All @@ -60,7 +59,6 @@ RUN /conda/bin/conda install -qy conda=4.13.0 \
RUN wget -q -P /app/alphafold/alphafold/common/ \
https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt


# Install pip packages.
RUN pip3 install --upgrade pip --no-cache-dir \
&& pip3 install -r /app/alphafold/requirements.txt --no-cache-dir \
Expand All @@ -79,4 +77,3 @@ RUN chmod u+s /sbin/ldconfig.real
# details.
RUN cd /app/alphafold
RUN ldconfig

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal
# Clone AlphaFold2
RUN git clone https://github.com/deepmind/alphafold.git /app/alphafold && \
cd /app/alphafold && \
git checkout 6a3af1adb3bbbc53562da100e3819b2fc882f915 && \
git checkout 7c9114c8423ac9db981d8365168464bab09b3e54 && \
cd -

# Compile HHsuite from source
Expand Down Expand Up @@ -77,4 +77,3 @@ RUN chmod u+s /sbin/ldconfig.real
# details.
RUN cd /app/alphafold
RUN ldconfig

0 comments on commit 400ce19

Please sign in to comment.