Skip to content

Commit 7948d51

Browse files
Update pyproject.toml to add new dependencies including biopython, mdanalysis, pandas, polars, and scipy; enhance setup.sh to streamline environment setup with CUDA and AlphaFold installations, while removing redundant library installations.
1 parent 7e0187a commit 7948d51

2 files changed

Lines changed: 29 additions & 20 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ readme = "README.md"
1212
requires-python = ">=3.12"
1313

1414
dependencies = [
15+
"biopython",
1516
"biotite",
1617
"ipympl",
1718
"jupyter",
1819
"matplotlib",
20+
"mdanalysis",
1921
"mdtraj",
2022
"modelcif",
2123
"numpy",
24+
"pandas",
25+
"polars",
2226
"prody",
2327
"py3Dmol",
28+
"pyarrow",
2429
"rdkit",
2530
"scikit-learn",
31+
"scipy",
2632
"seaborn",
2733
"transformers",
2834
]

setup.sh

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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"
1616
export LIBRARY_PATH=$CONDA_PREFIX/lib:$LIBRARY_PATH
1717
export 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
2025
mv "$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
2331
pip 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
4350
uv pip install torch_geometric
4451
uv 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

@@ -54,9 +61,5 @@ EOF
5461
# Install OpenFold
5562
uv 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
6265
uv pip install -e .[dev,mypy]

0 commit comments

Comments
 (0)