33# This script sets up the environment for `pdmodels`
44
55# Create a conda environment for `pdmodels`
6- # conda create -n pdmodels python=3.12 --yes
6+ # conda create -n pdmodels python=3.12 -y
77# conda activate pdmodels
88
99# Enable AlphaFold for WSL2
@@ -16,30 +16,37 @@ export TF_FORCE_GPU_ALLOW_GROWTH="true"
1616export LIBRARY_PATH=$CONDA_PREFIX /lib:$LIBRARY_PATH
1717export LD_LIBRARY_PATH=$CONDA_PREFIX /lib:$LD_LIBRARY_PATH
1818
19+ # Set up CUDA environment variables
20+ export CUDA_HOME=$CONDA_PREFIX
21+ export CUDACXX=$CUDA_HOME /bin/nvcc
22+ export PATH=$CUDA_HOME /bin:$PATH
23+
1924# Set up conda environment variables for AlphaFold3
2025mv " $CONDA_PREFIX " /compiler_compat/ld{,.bak}
2126
27+ # Install CUDA toolkit matching PyTorch (cu128)
28+ conda install -c nvidia cuda-toolkit=12.8 -y
29+
2230# Install uv and set up Python 3.12
2331pip install uv
2432
2533# Install PyMOL
26- conda install -c schrodinger -c conda-forge pymol --yes
27- # Update SQLite to fix issue with Jupyter after installing PyMOL
28- conda update -c conda-forge sqlite --yes
29-
30- # Install AlphaFold and AlphaFold3
31- uv pip install git+https://github.com/google-deepmind/alphafold.git
32- uv pip install git+https://github.com/google-deepmind/alphafold3.git
33-
34- # Update jax and related libraries
35- uv pip install jax[cuda12] --upgrade
36- uv pip install dm-haiku --upgrade
37- uv pip install triton --upgrade
38- uv pip install jax-triton --upgrade
39- uv pip install flax --upgrade
40- uv pip install deepspeed --upgrade
34+ conda install -c conda-forge glew=2.1.0 -y
35+ conda install -c schrodinger vtk-m=1.8.0 -y
36+ conda install -c conda-forge -c schrodinger pymol-bundle -y
37+
38+ # Install multiple sequence alignment tools
39+ conda install -c conda-forge -c bioconda kalign hhsuite hmmer blast mmseqs2 -y
40+
41+ # Install AlphaFold
42+ uv pip install git+https://github.com/FridrichMethod/alphafold.git@dev
43+
44+ # Install AlphaFold3
45+ conda install -c conda-forge pdbfixer -y
46+ uv pip install git+https://github.com/FridrichMethod/alphafold3.git@dev
4147
4248# Install PyTorch Geometric and its dependencies
49+ pip install torch==2.8.0 --index-url https://download.pytorch.org/whl/cu128
4350uv pip install torch_geometric
4451uv pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.8.0+cu128.html
4552
5461# Install OpenFold
5562uv pip install git+https://github.com/aqlaboratory/openfold.git --no-build-isolation
5663
57- # Update all CUDA libraries
58- uv pip install torch --upgrade
59- uv pip install nvidia-cudnn-cu12 --upgrade
60-
6164# Install the pdmodels package
6265uv pip install -e .[dev,mypy]
0 commit comments