forked from yehlincho/BoltzDesign1
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·67 lines (56 loc) · 2 KB
/
setup.sh
File metadata and controls
executable file
·67 lines (56 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
set -e
echo "🚀 Setting up Boltz Design Environment..."
# Check if conda is installed
if ! command -v conda &> /dev/null; then
echo "❌ Conda not found. Please install Miniconda/Anaconda first."
exit 1
fi
# Create and activate environment
echo "📦 Creating conda environment..."
conda create -n boltz_design python=3.10 -y
source $(conda info --base)/etc/profile.d/conda.sh
conda activate boltz_design
# Install boltz
if [ -d "boltz" ]; then
echo "📂 Installing Boltz..."
cd boltz
pip install -e .
cd ..
else
echo "❌ boltz directory not found. Please run this script from the project root."
exit 1
fi
# Install conda dependencies
echo "🔧 Installing conda dependencies..."
conda install -c anaconda ipykernel -y
# Install Python dependencies
echo "🔧 Installing Python dependencies..."
pip install matplotlib seaborn prody tqdm PyYAML requests pypdb py3Dmol logmd==0.1.45
# Install PyRosetta
echo "⏳ Installing PyRosetta (this may take a while)..."
pip install pyrosettacolabsetup pyrosetta-installer
python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta()'
# Download Boltz weights and dependencies
echo "⬇️ Downloading Boltz weights and dependencies..."
python -c "
from boltz.main import download
from pathlib import Path
cache = Path('~/.boltz').expanduser()
cache.mkdir(parents=True, exist_ok=True)
download(cache)
print('✅ Boltz weights downloaded successfully!')
"
# Setup LigandMPNN if directory exists
if [ -d "LigandMPNN" ]; then
echo "🧬 Setting up LigandMPNN..."
cd LigandMPNN
bash get_model_params.sh "./model_params"
cd ..
fi
# Make DAlphaBall.gcc executable
chmod +x "boltzdesign/DAlphaBall.gcc" || { echo -e "Error: Failed to chmod DAlphaBall.gcc"; exit 1; }
# Setup Jupyter kernel for the environment
echo "📓 Setting up Jupyter kernel..."
python -m ipykernel install --user --name=boltz_design --display-name="Boltz Design"
echo "🎉 Installation complete! Activate environment with: conda activate boltz_design"