Skip to content

Commit dd5694e

Browse files
authored
Merge pull request #148 from jyaacoub/final-paper
2 parents 519d057 + 57f95f5 commit dd5694e

File tree

96 files changed

+148497
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+148497
-256
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,6 @@ results/*/model_media/*/train_log/*.json
229229
results/model_checkpoints.tar.gz
230230
*.out
231231
DDP_outs
232+
SBATCH/outs/*
233+
SBATCH/samples/*
234+
downloaded_ligands/

SBATCH/DDP_train_folds.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#SBATCH -c 4
1010
#SBATCH --mem=4G
1111

12-
#SBATCH --output=./outs/%x.out
12+
#SBATCH --output=/home/jyaacoub/projects/def-sushant/jyaacoub/MutDTA/SBATCH/outs/%x.out
1313
##SBATCH --array=0-4 # WARNING: Doesnt work with submitit
1414

1515
module load StdEnv/2020 && module load gcc/9.3.0 && module load arrow/12.0.1

SBATCH/download.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
cd ~/projects/def-sushant/jyaacoub/MutDTA/
3+
source .venv/bin/activate
4+
5+
python -u << EOF
6+
7+
from src.data_prep import Downloader
8+
9+
Downloader.download_SDFs(
10+
ligand_ids=
11+
[
12+
'CHEMBL1200978',
13+
'CHEMBL1201182',
14+
'CHEMBL1201438',
15+
'CHEMBL1201561',
16+
'CHEMBL1201576',
17+
'CHEMBL1201827',
18+
'CHEMBL159',
19+
'CHEMBL1908360',
20+
'CHEMBL2105741',
21+
'CHEMBL2360464',
22+
'CHEMBL3137309',
23+
'CHEMBL359744',
24+
'CHEMBL3989514',
25+
'CHEMBL413',
26+
'CHEMBL428647',
27+
'CHEMBL90555',
28+
'CHEMBL92'
29+
],
30+
save_dir= './downloaded_ligands',
31+
max_workers=5
32+
)
33+
34+
EOF

SBATCH/plot_mutagenesis.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
cd /lustre06/project/6069023/jyaacoub/MutDTA/
3+
source .venv/bin/activate
4+
5+
numpy_matrix_fp="/lustre06/project/6069023/jyaacoub/MutDTA/SBATCH/outs/mutagenesis_tests/1a30_ligand/davis_DG/0_5.npy"
6+
pdb_file="/lustre06/project/6069023/jyaacoub/MutDTA/SBATCH/samples/input/mutagenesis/P67870.pdb"
7+
output_image="out.png"
8+
res_start=0
9+
res_end=1000
10+
11+
12+
python -u << EOF
13+
from matplotlib import pyplot as plt
14+
import numpy as np
15+
from src.analysis.mutagenesis_plot import plot_sequence
16+
from src.utils.residue import Chain
17+
18+
muta = np.load('${numpy_matrix_fp}')
19+
pdb_file = '${pdb_file}'
20+
21+
# Plots the full sequence:
22+
# plot_sequence(muta, pro_seq=Chain(pdb_file).sequence)
23+
24+
25+
# Plot a specific residue range (e.g.: a pocket)
26+
res_range = (${res_start}, ${res_end})
27+
plot_sequence(muta[:,res_range[0]:res_range[1]], pro_seq=Chain(pdb_file).sequence[res_range[0]:res_range[1]])
28+
29+
plt.savefig('${output_image}')
30+
EOF

SBATCH/run_mutagenesis.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
#SBATCH -t 30:00
3-
#SBATCH --job-name=run_mutagenesis_davis_DG_custom
2+
#SBATCH -t 5:00
3+
#SBATCH --job-name=run_mutagenesis_davis_DG_test
44
#SBATCH --mem=10G
55

66
#SBATCH --gpus-per-node=a100:1
@@ -38,7 +38,6 @@ python -u run_mutagenesis.py \
3838
--ligand_id "1a30_ligand" \
3939
--pdb_file "${proj_dir}/SBATCH/samples/input/mutagenesis/P67870.pdb" \
4040
--out_path "${OUT_DIR}/" \
41-
--res_start 0 \
42-
--res_end 5 \
41+
--mutations E5A E6A V7A \
4342
--model_opt davis_DG \
44-
--fold ${SLURM_ARRAY_TASK_ID}
43+
--fold ${SLURM_ARRAY_TASK_ID}

0 commit comments

Comments
 (0)