Skip to content

Commit 1059a6e

Browse files
committed
update installation scripts
1 parent aa3007b commit 1059a6e

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
**/__pychache__/**
22
**/*.pyc
3-
**.egg-info/
3+
**/*.egg-info/**
File renamed without changes.

CALVADOS3_Fv/CV3_Fv_pipeline/imgt2relax2calvados3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
from pdbtools import pdb_selchain,pdb_selres,pdb_tofasta,pdb_keepcoord,pdb_reres,pdb_merge,pdb_chain,pdb_reatom,pdb_delhetatm,pdb_tidy,pdb_delelem
1313

14-
# RELAX_path = os.path.abspath('/projects/prism/people/bqm193/software/CALVADOS/openmm_relax.py')
15-
RELAX_path = os.path.abspath('/vols/opig/projects/cagiada-CDRsimulations/analysis_files/CDRsimulations/CALVADOS/openmm_relax.py')
14+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
15+
RELAX_path = os.path.abspath(f'{SCRIPT_DIR}/openmm_relax.py')
1616

1717
def create_parser():
1818
def parse_tuple(value):
File renamed without changes.

CALVADOS3_Fv/convert_top.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import argparse
2-
import Bio.PDB as PDB
1+
import argparse
32
import os
43

54
from Bio.PDB import PDBParser, PDBIO, Select

CALVADOS3_Fv/prepare_ABrun.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
import subprocess
44
import argparse
55

6+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
7+
68
def create_parser():
79
parser = argparse.ArgumentParser(description='Prepare script for Calvados2COM AB simulation')
810
parser.add_argument('--temp', type=float, help='Temperature in K',default=293)
911
parser.add_argument('--ionic', type=float, help='Ionic strength in molar',default=0.15)
1012
parser.add_argument('--pH', type=float, help='pH',default=7.0)
1113
parser.add_argument('--k-harmonic', type=float, help='Restraint force constant',default=700)
12-
parser.add_argument('--fresidues-file', type=str, help='Residue definitions file',default='/projects/prism/people/bqm193/software/CALVADOS/residues_C3.csv')
14+
parser.add_argument('--fresidues-file', type=str, help='Residue definitions file',default=f'{SCRIPT_DIR}/residues_C3.csv')
1315
parser.add_argument('--wfreq', type=int, help='DCD writing frequency',default=5000)
1416
parser.add_argument('--steps', type=int, help='Number of simulation steps (total: wfreq*steps)',default=1010)
1517
parser.add_argument('--platform', type=str, help='Platform (CPU or CUDA)',default='CPU')

scripts/convert2all_atom.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import pandas as pd
21
import subprocess
32
import argparse
43
import os
54

65
argparser = argparse.ArgumentParser()
76
argparser.add_argument('--simulation_dir', type=str)
8-
argparser.add_argument('--pdb_id', type=int)
7+
argparser.add_argument('--pdb_id', type=str)
98
argparser.add_argument('--h_chain', type=str)
109
argparser.add_argument('--l_chain', type=str)
1110

scripts/run_sim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ echo "[INFO] Creating constraints for contacts"
5858
python CALVADOS3_Fv/CV3_Fv_pipeline/pdb2ij_energy_relaxed.py --pdb-file ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}.pdb --energy-HB-file ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}_ij_energy.csv --out-dir ${OUTDIR} --map-file ${OUTDIR}/${NAME}_dict_Fv_${CHAINH}${CHAINL}.txt --chains ${CHAINH}${CHAINL}
5959

6060
echo "[INFO] Preparing simulation"
61-
python CALVADOS3_Fv/prepare_ABrun.py --input-pdb ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}.pdb --fdomains-file ${OUTDIR}/constraints_folded/${NAME}_Fv_${CHAINH}${CHAINL}_constraints.yaml --custom-restraints-file ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}_ij_energy_contact.csv --out-dir $OUTDIR --fresidues-file /vols/opig/projects/cagiada-CDRsimulations/analysis_files/CDRsimulations/CALVADOS/residues_C3.csv #--steps 3010
61+
python CALVADOS3_Fv/prepare_ABrun.py --input-pdb ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}.pdb --fdomains-file ${OUTDIR}/constraints_folded/${NAME}_Fv_${CHAINH}${CHAINL}_constraints.yaml --custom-restraints-file ${OUTDIR}/${NAME}_Fv_${CHAINH}${CHAINL}_ij_energy_contact.csv --out-dir $OUTDIR
6262

6363
echo "[INFO] Running simulation"
6464
cd $OUTDIR

scripts/setup_envs.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/usr/bin/env bash
22

33
### script to install environments for simulation
4-
4+
eval "$(conda shell.bash hook)"
55

66
## prep environment
77
echo "[INFO] Setting up prep_env"
88
# For prep environment install openmm 8.2.0 (in yaml) from pip followed by openmm 7.7.0
99
# This is a hack for a current issue and will be fixed in future releases
1010
conda env create -f prep_env.yaml
1111
conda activate prep_env
12-
conda install openmm=7.7.0
12+
conda install -c conda-forge openmm=7.7.0
1313
conda deactivate
1414

1515

16-
## calvados environment
17-
echo "[INFO] Setting up calvados environment"
16+
# ## calvados environment
17+
# echo "[INFO] Setting up calvados environment"
1818
conda create -n calvados python=3.10 -y
1919
conda activate calvados
2020
cd CALVADOS3_Fv
@@ -28,10 +28,10 @@ echo "[INFO] Setting up cg2all environment"
2828
# This is an example with cudatoolkit=11.3.
2929
# Set a proper cudatoolkit version that is compatible with your CUDA driver and DGL library.
3030
# dgl>=1.1 occasionally raises some errors, so please use dgl<=1.0.
31-
conda create --name cg2all pip cudatoolkit=12.8 dgl=1.0 -c dglteam/label/cu128 python=3.10 -y
31+
conda create --name cg2all pip cudatoolkit=11.3 dgl=1.0 -c dglteam/label/cu113 -y
3232
conda activate cg2all
33-
pip install git+http://github.com/huhlim/cg2all
34-
pip install pandas
33+
pip install git+https://github.com/huhlim/cg2all.git@cuda-12
34+
conda install -c conda-forge biopython MDAnalysis -y
3535
conda deactivate
3636

3737
echo "Done"

0 commit comments

Comments
 (0)