Commit ·
0f8bca2
0
Parent(s):
Add FEPPlus benchmark and all pocket pdbs
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +3 -0
- fep_benchmark_inputs/README.md +23 -0
- fep_benchmark_inputs/benchmark_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/README.md +42 -0
- fep_benchmark_inputs/fep_plus_inputs/apply_all_corrections.sh +192 -0
- fep_benchmark_inputs/fep_plus_inputs/bayer_macrocycles/setup_and_run.sh +12 -0
- fep_benchmark_inputs/fep_plus_inputs/bayer_macrocycles/subset_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/binding_mode_correction.py +242 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/cdk2_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/cdk2_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/dlk_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/dlk_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/egfr_epikpka.txt +7 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/egfr_pka.txt +7 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ephx2_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ephx2_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s2_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s2_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s3_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s3_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/itk_epikpka.txt +3 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/itk_pka.txt +3 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jak1_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jak1_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jnk1_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jnk1_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ptp1b_epikpka.txt +3 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ptp1b_pka.txt +3 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/run_all_corrections.sh +8 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/setup_and_run.sh +10 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/subset_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/tyk2_epikpka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/charge_annhil/tyk2_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/jak2_set1_pka.txt +4 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/run_all_corrections.sh +11 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/run_jak2_set1_corrs.sh +3 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/run_jak2_set2_corrs.sh +2 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/setup_and_run.sh +10 -0
- fep_benchmark_inputs/fep_plus_inputs/fragments/subset_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/a2a_epik_pka.txt +6 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/a2a_symbmcorr.py +99 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/run_a2a_corrs.sh +3 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/run_all_corrections.sh +3 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/setup_and_run.sh +15 -0
- fep_benchmark_inputs/fep_plus_inputs/gpcrs/subset_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/jacs_set/run_all_corrections.sh +2 -0
- fep_benchmark_inputs/fep_plus_inputs/jacs_set/setup_and_run.sh +9 -0
- fep_benchmark_inputs/fep_plus_inputs/jacs_set/subset_metadata.csv +3 -0
- fep_benchmark_inputs/fep_plus_inputs/janssen_bace/bace_ciordia_retro_symbmcorr.py +100 -0
- fep_benchmark_inputs/fep_plus_inputs/janssen_bace/bace_retrospective_pka.txt +4 -0
.gitattributes
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.pdb filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.sdf filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
fep_benchmark_inputs/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Inputs for running the binding free energy benchmark
|
| 2 |
+
The inputs for the free energy benchmark are divided into two sections:
|
| 3 |
+
* `fep_plus_inputs/` which contains the inputs for the FEP+ software (e.g. `fmp` files) and the scripts required to
|
| 4 |
+
run the benchmark.
|
| 5 |
+
* `structure_inputs/` which contain structural inputs in a format can be read by many computational chemistry platforms
|
| 6 |
+
(i.e. `PDB` and `sdf` files).
|
| 7 |
+
|
| 8 |
+
This benchmark data set was constructed and validated using FEP+ and the data in the `structure_inputs` was derived from
|
| 9 |
+
the FEP+ `fmp` graph files..
|
| 10 |
+
|
| 11 |
+
## Arrangment of the input files
|
| 12 |
+
The benchmark data set consists of a number of congeneric series that have been grouped based on the publication where
|
| 13 |
+
the inputs were based on. As documented in the supporting information of the [accompanying manuscript](https://doi.org/10.26434/chemrxiv-2022-p2vpg),
|
| 14 |
+
many systems were modified from their original source.
|
| 15 |
+
|
| 16 |
+
## Metadata
|
| 17 |
+
Details on the congeneric series subset, file naming scheme, protein name, original PDB reference, experimental binding
|
| 18 |
+
affinity dynamic range, number of input structures, and the DOI of the source on the source where the structures were
|
| 19 |
+
taken from, can be found in the file below:
|
| 20 |
+
* `benchmark_metadata.csv`
|
| 21 |
+
|
| 22 |
+
The `Number of nodes` column in `benchmark_metadata.csv` refers to the number of ligand structural inputs. Some ligands
|
| 23 |
+
had multiple structural inputs as they were represented by multiple rotamers or protomer/tautomers.
|
fep_benchmark_inputs/benchmark_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cdad4307424417583e8f1e27e195d56e8e5c88cae7354e52f713b16a1f07c07d
|
| 3 |
+
size 8065
|
fep_benchmark_inputs/fep_plus_inputs/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Benchmark inputs for FEP+
|
| 2 |
+
|
| 3 |
+
This directory contains the FEP+ input files (`.fmp`s) and submission scripts for running the extended benchmark data
|
| 4 |
+
set. There are 103 `fmp` files for a wide range of targets and congeneric series. The input
|
| 5 |
+
files are separated into 14 separate directories that reflect the origin of the data sets. Every `fmp` file in this
|
| 6 |
+
directory forms is part of the benchmark.
|
| 7 |
+
|
| 8 |
+
## Contents
|
| 9 |
+
* `apply_all_corrections.sh` Apply post simulation corrections to all output fmp files that require them. This
|
| 10 |
+
script also collects the names and locations of the output fmp files into text files which facilitate analysis.
|
| 11 |
+
* `post_simulation_corrections.md` A description of the post simulation corrections. These corrections are
|
| 12 |
+
applied with `apply_all_corrections.sh`.
|
| 13 |
+
* `binding_mode_correction.py` The script to automatically apply binding mode corrections. This is needed for some
|
| 14 |
+
systems.
|
| 15 |
+
* `README.md`. This file.
|
| 16 |
+
|
| 17 |
+
## Subset directories
|
| 18 |
+
The names of each directory and the corresponding subset title in the [accompanying manuscript](https://doi.org/10.26434/chemrxiv-2022-p2vpg).
|
| 19 |
+
* `bayer_macrocycles/`: Bayer Macrocycles
|
| 20 |
+
* `charge_annhil/`: FEP+ charge change set
|
| 21 |
+
* `fragments/`: FEP+ fragment data set
|
| 22 |
+
* `gpcrs/`: GPCRs
|
| 23 |
+
* `jacs_set/`: FEP+ R-group set
|
| 24 |
+
* `janssen_bace/`: Janssen BACE1 data sets
|
| 25 |
+
* `macrocycles/`: FEP+ macrocycles
|
| 26 |
+
* `mcs_docking/`: MCS docking sets
|
| 27 |
+
* `merck/`: The public Merck data set
|
| 28 |
+
* `misc/`: Miscellaneous data sets
|
| 29 |
+
* `opls_stress/`: OPLS stress set
|
| 30 |
+
* `opls_ddag`: OPLS private drug discovery data sets
|
| 31 |
+
* `scaffold_hoping/`: FEP+ scaffold hopping
|
| 32 |
+
* `waterset/`: FEP+ buried water set
|
| 33 |
+
|
| 34 |
+
### Subset directory contents
|
| 35 |
+
Each directory has the following files
|
| 36 |
+
* `subset_metadata.csv`. Metadata on each subsystem, the naming scheme and the PDB each model was based on.
|
| 37 |
+
* `*.fmp` files. These are FEP+ format maps/perturbation graphs
|
| 38 |
+
* `setup_and_run.sh`. A submission script for all FEP+ maps in the that uses the settings described in the accompanying paper.
|
| 39 |
+
* ` run_all_corrections.sh`. A script to run all corrections on the fmp files in that directory.
|
| 40 |
+
* Additional files related to post-processing corrections to the results.
|
| 41 |
+
|
| 42 |
+
|
fep_benchmark_inputs/fep_plus_inputs/apply_all_corrections.sh
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
###################
|
| 2 |
+
# Bayer macrocycles
|
| 3 |
+
###################
|
| 4 |
+
echo 'Collecting Bayer macrocycle data'
|
| 5 |
+
|
| 6 |
+
## Name the outfmp files
|
| 7 |
+
echo "bayer_macrocycles/ftase_extraligs_custcore_stereo/ftase_extraligs_custcore_stereo_out.fmp" > bayer_macrocycles_outs.txt
|
| 8 |
+
echo "bayer_macrocycles/wagner_brd4/wagner_brd4_out.fmp" >> bayer_macrocycles_outs.txt
|
| 9 |
+
|
| 10 |
+
#######################
|
| 11 |
+
#FEP+ charge change set
|
| 12 |
+
#######################
|
| 13 |
+
echo 'Collecting FEP+ charge set data'
|
| 14 |
+
|
| 15 |
+
## Apply the corrections
|
| 16 |
+
cd charge_annhil
|
| 17 |
+
./run_all_corrections.sh
|
| 18 |
+
cd ../
|
| 19 |
+
|
| 20 |
+
## Name the output fmp file locations
|
| 21 |
+
PROTEINS=(cdk2 dlk egfr ephx2 irak4_s2 irak4_s3 itk jak1 jnk1 ptp1b tyk2)
|
| 22 |
+
for P in ${PROTEINS[*]}
|
| 23 |
+
do
|
| 24 |
+
echo "charge_annhil/${P}/${P}_pkacorr_out.fmp" >> charge_annhil_outs.txt
|
| 25 |
+
done
|
| 26 |
+
echo "charge_annhil/thrombin_whole_map/thrombin_whole_map_out.fmp" >> charge_annhil_outs.txt
|
| 27 |
+
|
| 28 |
+
############
|
| 29 |
+
# Fragements
|
| 30 |
+
############
|
| 31 |
+
echo 'Collecting fragement set data'
|
| 32 |
+
|
| 33 |
+
cd fragments
|
| 34 |
+
./run_all_corrections.sh
|
| 35 |
+
cd ../
|
| 36 |
+
|
| 37 |
+
PROTEINS=(frag_liga_auto frag_mcl1_noweak frag_mup1 frag_p38 hsp90_frag_2rings hsp90_frag_single_ring t4lysozyme_uvt)
|
| 38 |
+
for P in ${PROTEINS[*]}
|
| 39 |
+
do
|
| 40 |
+
echo "fragments/${P}/${P}_out.fmp" >> fragments_outs.txt
|
| 41 |
+
done
|
| 42 |
+
|
| 43 |
+
echo "fragments/jak2_set1/jak2_set1_pkacorr_bmcorr_out.fmp" >> fragments_outs.txt
|
| 44 |
+
echo "fragments/jak2_set2_extra/jak2_set2_extra_bmcorr_out.fmp" >> fragments_outs.txt
|
| 45 |
+
|
| 46 |
+
#######
|
| 47 |
+
# GPCRs
|
| 48 |
+
#######
|
| 49 |
+
echo 'Collecting GPCR data'
|
| 50 |
+
# Apply the corrections
|
| 51 |
+
cd gpcrs
|
| 52 |
+
./run_all_corrections.sh
|
| 53 |
+
cd ../
|
| 54 |
+
|
| 55 |
+
## Name the files
|
| 56 |
+
echo "gpcrs/p2y1_merged_out.fmp" > gpcrs_outs.txt
|
| 57 |
+
echo "gpcrs/a2a_hip278/a2a_hip278_sbpkacorr_out.fmp" >> gpcrs_outs.txt
|
| 58 |
+
echo "gpcrs/ox2_hip_custcore/ox2_out.fmp" >> gpcrs_outs.txt
|
| 59 |
+
|
| 60 |
+
#####################################
|
| 61 |
+
# FEP+ R-group perutbation (JACS set)
|
| 62 |
+
#####################################
|
| 63 |
+
echo 'Collecting FEP+ R-group perutbation (JACS set) data'
|
| 64 |
+
cd jacs_set/
|
| 65 |
+
./run_all_corrections.sh
|
| 66 |
+
cd ../
|
| 67 |
+
|
| 68 |
+
echo "jacs_set/jnk1_manual_flips/jnk1_manual_flips_out_bmcorr_out.fmp" > jacs_set_outs.txt
|
| 69 |
+
echo "jacs_set/mcl1_extra_flips/mcl1_extra_flips_bmcorr_out.fmp" >> jacs_set_outs.txt
|
| 70 |
+
|
| 71 |
+
PROTEINS=(bace cdk2 jnk1_manual_flips mcl1_extra_flips p38 ptp1b thrombin_core tyk2)
|
| 72 |
+
for P in ${PROTEINS[*]}
|
| 73 |
+
do
|
| 74 |
+
echo "jacs_set/${P}/${P}_out.fmp" >> jacs_set_outs.txt
|
| 75 |
+
done
|
| 76 |
+
|
| 77 |
+
################
|
| 78 |
+
# Janssen BACE1
|
| 79 |
+
###############
|
| 80 |
+
echo 'Collecting the Jansseen BACE1 data'
|
| 81 |
+
|
| 82 |
+
cd janssen_bace
|
| 83 |
+
./run_all_corrections.sh
|
| 84 |
+
cd ../
|
| 85 |
+
|
| 86 |
+
echo "janssen_bace/bace_ciordia_retro/bace_ciordia_retro_pkacorr_out.fmp" > janssen_bace_outs.txt
|
| 87 |
+
echo "janssen_bace/bace_keranen_p2/bace_keranen_p2_bmcorr_out.fmp" >> janssen_bace_outs.txt
|
| 88 |
+
echo "janssen_bace/bace_ciordia_prospective/bace_ciordia_prospective_out.fmp" >> janssen_bace_outs.txt
|
| 89 |
+
echo "janssen_bace/bace_p3_arg368_in/bace_p3_arg368_in_out.fmp" >> janssen_bace_outs.txt
|
| 90 |
+
|
| 91 |
+
##################
|
| 92 |
+
# FEP+ Macrocycles
|
| 93 |
+
##################
|
| 94 |
+
echo 'Collecting FEP+ macrocycle data'
|
| 95 |
+
PROTEINS=(2B8V_lig24and25_alpha05 2E9P_lig4to7_alpha05 2Q15_lig17to21_alpha05 3RKZ_lig62to70_alpha05 MHT1_lig3_alpha05 ck2_custcore_hotlys hsp90_3hvd_custcore)
|
| 96 |
+
for P in ${PROTEINS[*]}
|
| 97 |
+
do
|
| 98 |
+
echo "macrocycles/${P}/${P}_out.fmp" >> macrocycle_outs.txt
|
| 99 |
+
done
|
| 100 |
+
|
| 101 |
+
#############
|
| 102 |
+
# MCS docking
|
| 103 |
+
#############
|
| 104 |
+
echo 'Collecting MCS docking data'
|
| 105 |
+
cd mcs_docking
|
| 106 |
+
./run_all_corrections.sh
|
| 107 |
+
cd ../
|
| 108 |
+
|
| 109 |
+
echo "mcs_docking/hne/hne_500mM_pkacorr_out.fmp" > mcs_docking_outs.txt
|
| 110 |
+
echo "mcs_docking/renin_customcore/renin_customcore_out.fmp" >> mcs_docking_outs.txt
|
| 111 |
+
|
| 112 |
+
#######
|
| 113 |
+
# Merck
|
| 114 |
+
######
|
| 115 |
+
echo 'Collecting Merck data'
|
| 116 |
+
cd merck
|
| 117 |
+
./run_all_corrections.sh
|
| 118 |
+
cd ../
|
| 119 |
+
|
| 120 |
+
echo 'merck/cdk8_5cei_new_helix_loop_extra/cdk8_symbmcorr_out.fmp' > merck_outs.txt
|
| 121 |
+
echo 'merck/cmet/cmet_out.fmp' >> merck_outs.txt
|
| 122 |
+
echo 'merck/eg5_extraprotomers/eg5_extraprotomers_pkacorr_out.fmp' >> merck_outs.txt
|
| 123 |
+
echo 'merck/hif2a_automap/hif2a_automap_symbmcorr_out.fmp' >> merck_outs.txt
|
| 124 |
+
#echo 'merck/pfkfb3_automap/pfkfb3_automap_symbmcorr_out_fmp' >> merck_outs.txt
|
| 125 |
+
echo 'merck/shp2/shp2_out.fmp' >> merck_outs.txt
|
| 126 |
+
echo 'merck/syk_4puz_fullmap/syk_pkacorr_out.fmp' >> merck_outs.txt
|
| 127 |
+
echo 'merck/tnks2_fullmap/tnks2_symcorr_pkacorr_out.fmp' >> merck_outs.txt
|
| 128 |
+
|
| 129 |
+
###############
|
| 130 |
+
# Miscellaneous
|
| 131 |
+
###############
|
| 132 |
+
echo 'Collecting the miscellaneous data sets'
|
| 133 |
+
cd misc
|
| 134 |
+
./run_all_corrections.sh
|
| 135 |
+
cd ../
|
| 136 |
+
|
| 137 |
+
PROTEINS=(cdk8_koehler galectin3_extra hfaah hiv_prot_ekegren)
|
| 138 |
+
for P in ${PROTEINS[*]}
|
| 139 |
+
do
|
| 140 |
+
echo "misc/${P}/${P}_out.fmp" >> misc_outs.txt
|
| 141 |
+
done
|
| 142 |
+
echo 'misc/btk_extra_flip/btk_extra_flip_bmcorr_out.fmp' >> misc_outs.txt
|
| 143 |
+
|
| 144 |
+
######################
|
| 145 |
+
# OPLS drug discovery
|
| 146 |
+
#####################
|
| 147 |
+
echo 'Collecting the OPLS drug discovery data sets'
|
| 148 |
+
PROTEINS=(bathonP_ethers bathonP_thq bathonP_thq_ring hero0 hero1 hero3 hero5 iris lak1 lak2 lak3 orion)
|
| 149 |
+
for P in ${PROTEINS[*]}
|
| 150 |
+
do
|
| 151 |
+
echo "opls_ddag/${P}/${P}_out.fmp" >> opls_ddag_outs.txt
|
| 152 |
+
done
|
| 153 |
+
|
| 154 |
+
#############
|
| 155 |
+
# OPLS Stress
|
| 156 |
+
#############
|
| 157 |
+
echo 'Collecting the OPLS stress set data'
|
| 158 |
+
|
| 159 |
+
PROTEINS=(chk1_set1 chk1_set2 chk1_set3 chk1_set4 chk1_set5 chk1_set6 chk1_set7 cr_bace1 cr_bace2 fxa_set3 fxa_set4 fxa_set5 fxa_set6 hc_bace1 hc_bace2 pb_bace3 fxa_yoshikawa_set)
|
| 160 |
+
for P in ${PROTEINS[*]}
|
| 161 |
+
do
|
| 162 |
+
echo "opls_stress/${P}/${P}_out.fmp" >> opls_stress_outs.txt
|
| 163 |
+
done
|
| 164 |
+
|
| 165 |
+
###################
|
| 166 |
+
# Scaffold hoppping
|
| 167 |
+
###################
|
| 168 |
+
echo 'Collecting the scaffold hopping data set'
|
| 169 |
+
|
| 170 |
+
PROTEINS=(Bace1_4zsp CHK1_3u9n_corehop Era_2q70 Fxa_2ei8 TPSB2_3v7t)
|
| 171 |
+
for P in ${PROTEINS[*]}
|
| 172 |
+
do
|
| 173 |
+
echo "scaffold_hopping/${P}/${P}_out.fmp" >> scaffold_hopping_outs.txt
|
| 174 |
+
done
|
| 175 |
+
|
| 176 |
+
##########
|
| 177 |
+
# Waterset
|
| 178 |
+
##########
|
| 179 |
+
echo 'Collecting the water displacement data set'
|
| 180 |
+
|
| 181 |
+
cd waterset
|
| 182 |
+
./run_all_corrections.sh
|
| 183 |
+
cd ../
|
| 184 |
+
|
| 185 |
+
PROTEINS=(hsp90_kung brd41_ASH106 taf12 urokinase hsp90_woodhead)
|
| 186 |
+
for P in ${PROTEINS[*]}
|
| 187 |
+
do
|
| 188 |
+
echo "waterset/${P}/${P}_out.fmp" >> waterset_outs.txt
|
| 189 |
+
done
|
| 190 |
+
echo 'waterset/scyt_dehyd/scyt_dehyd_pkacorr_out.fmp' >> waterset_outs.txt
|
| 191 |
+
echo 'waterset/throm_nozob_hip75/throm_nozob_hip75_bmcorr_out.fmp' >> waterset_outs.txt
|
| 192 |
+
|
fep_benchmark_inputs/fep_plus_inputs/bayer_macrocycles/setup_and_run.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mkdir wagner_brd4
|
| 2 |
+
cp wagner_brd4.fmp wagner_brd4
|
| 3 |
+
cd wagner_brd4
|
| 4 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -ensemble muVT -seed 1 -JOBNAME wagner_brd4 wagner_brd4.fmp -QARG "-P dev_GPU"
|
| 5 |
+
cd ../
|
| 6 |
+
|
| 7 |
+
mkdir ftase_extraligs_custcore_stereo
|
| 8 |
+
cp ftase_extraligs_custcore_stereo.fmp ftase_extraligs_custcore_stereo
|
| 9 |
+
cd ftase_extraligs_custcore_stereo
|
| 10 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 40000.0 -vacuum -ensemble muVT -core_hopping_lambda_windows 48 -seed 1 -JOBNAME ftase_extraligs_custcore_stereo ftase_extraligs_custcore_stereo.fmp -QARG "-P dev_GPU"
|
| 11 |
+
cd ../
|
| 12 |
+
|
fep_benchmark_inputs/fep_plus_inputs/bayer_macrocycles/subset_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c35be65c292d93a73caf0b697469c10be5ef8f49fa8f04bbc72701090ade620c
|
| 3 |
+
size 335
|
fep_benchmark_inputs/fep_plus_inputs/binding_mode_correction.py
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import argparse
|
| 2 |
+
import sys
|
| 3 |
+
from collections import defaultdict
|
| 4 |
+
from typing import List
|
| 5 |
+
|
| 6 |
+
import numpy as np
|
| 7 |
+
|
| 8 |
+
from schrodinger.application.desmond.constants import BOLTZMANN
|
| 9 |
+
from schrodinger.application.desmond.measurement import Measurement
|
| 10 |
+
from schrodinger.application.scisol.packages.fep import graph
|
| 11 |
+
from schrodinger.structutils import analyze
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def clean_bennett_from_map(g: graph.Graph):
|
| 15 |
+
"""
|
| 16 |
+
Removes the bennett complex and solvent free energy data and replace with the cycle closure correction DDG
|
| 17 |
+
predictions. This helps to simplify the application of the binding mode correction.
|
| 18 |
+
|
| 19 |
+
:param g: An FEP+ graph with output data.
|
| 20 |
+
|
| 21 |
+
Note
|
| 22 |
+
-----
|
| 23 |
+
The graph is modified in place.
|
| 24 |
+
"""
|
| 25 |
+
# TODO: As this creates an inconsistency between the DDGs in the graph and the SID, the SID data is removed.
|
| 26 |
+
# The Jira ticket DESMOND-10777 has been raised to discuss the possibility of updating the SID in the future.
|
| 27 |
+
for e in g.edges_iter():
|
| 28 |
+
e.complex_dg = e.ccc_ddg
|
| 29 |
+
e.solvent_dg = Measurement(0, 0)
|
| 30 |
+
e.vacuum_dg = None
|
| 31 |
+
e.complex_sid = None
|
| 32 |
+
e.solvent_sid = None
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def get_binding_mode_nodes(g: graph.Graph) -> List[List[graph.Node]]:
|
| 36 |
+
"""
|
| 37 |
+
Extract the nodes that represent different binding modes of the same
|
| 38 |
+
ligand. SMILES are used to identify which ligands are the same.
|
| 39 |
+
|
| 40 |
+
:param g: A graph that contains multiple binding modes of the ligands, with
|
| 41 |
+
each binding mode represented as a separate node.
|
| 42 |
+
|
| 43 |
+
:return: The nodes of the binding modes as a list of lists. Each entry in
|
| 44 |
+
the list contains all the nodes of the different binding modes of the
|
| 45 |
+
same ligand.
|
| 46 |
+
"""
|
| 47 |
+
# Extract the unique SMILES of each node in the graph and place matching SMILES into the same dict entry
|
| 48 |
+
mode_nodes_dict = defaultdict(list)
|
| 49 |
+
for n in g.nodes_iter():
|
| 50 |
+
smile = analyze.generate_smiles(n.struc, unique=True)
|
| 51 |
+
mode_nodes_dict[smile].append(n)
|
| 52 |
+
|
| 53 |
+
# Return the nodes whose SMILES appear multiple times
|
| 54 |
+
return [val for val in mode_nodes_dict.values() if len(val) > 1]
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
def calc_mode_corrections(mode_nodes: List[List[graph.Node]],
|
| 58 |
+
temperature: float = 300.) -> List[np.ndarray]:
|
| 59 |
+
"""
|
| 60 |
+
Calculate the binding mode correction for each mode and for each ligand.
|
| 61 |
+
The presence of other binding modes serves to increase the binding strength
|
| 62 |
+
of a ligands.
|
| 63 |
+
|
| 64 |
+
:param mode_nodes: A list of lists that contains the nodes of the different
|
| 65 |
+
binding modes of the same ligand.
|
| 66 |
+
:param temperature: The temperature of the simulation in Kelvin.
|
| 67 |
+
|
| 68 |
+
:returns: The binding mode corrections for each ligand. Each correction
|
| 69 |
+
accounts for the presence of the other nodes of the same ligand.
|
| 70 |
+
"""
|
| 71 |
+
kT = BOLTZMANN * temperature
|
| 72 |
+
corrections = []
|
| 73 |
+
for nodes in mode_nodes:
|
| 74 |
+
dgs = np.array([n.pred_dg.val for n in nodes])
|
| 75 |
+
corrs = np.zeros(len(dgs))
|
| 76 |
+
for i in range(len(dgs)):
|
| 77 |
+
corrs[i] = -kT * np.log(np.sum(np.exp(-(dgs - dgs[i]) / kT)))
|
| 78 |
+
corrections.append(corrs)
|
| 79 |
+
|
| 80 |
+
return corrections
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def apply_corrections(mode_nodes: List[List[graph.Node]],
|
| 84 |
+
corrections: List[np.ndarray]):
|
| 85 |
+
"""
|
| 86 |
+
Apply the binding mode correction to each edge that is connected to a node that represents one of at least two
|
| 87 |
+
binding modes of the same ligand. The edge data are modified in place. and nothing is returned.
|
| 88 |
+
|
| 89 |
+
:param mode_nodes: A list of lists that contains the nodes of the different binding modes of the same ligand.
|
| 90 |
+
:param corrections: The binding mode corrections for each ligand.
|
| 91 |
+
"""
|
| 92 |
+
for nodes, correction in zip(mode_nodes, corrections):
|
| 93 |
+
# There is a different correction for each binding mode of the same ligand.
|
| 94 |
+
for n, corr in zip(nodes, correction):
|
| 95 |
+
# Apply correction to every edge the node is part of.
|
| 96 |
+
for e in n.edges:
|
| 97 |
+
if n == e[0]:
|
| 98 |
+
# Deduct the binding mode correction
|
| 99 |
+
e.complex_dg -= Measurement(corr, 0)
|
| 100 |
+
else:
|
| 101 |
+
# Add the correction
|
| 102 |
+
e.complex_dg += Measurement(corr, 0)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def correct_multiple_binding_modes(
|
| 106 |
+
g: graph.Graph) -> (List[List[graph.Node]], List[np.ndarray]):
|
| 107 |
+
"""
|
| 108 |
+
Automatically detects different modes, calculates the free energy correction, and applies it to the map. The input
|
| 109 |
+
map is modified in place.
|
| 110 |
+
|
| 111 |
+
:param g: An FEP+ graph that contains multiple binding modes.
|
| 112 |
+
|
| 113 |
+
:returns mode_nodes: A list of lists that contains the nodes of the different binding modes of the same ligand.
|
| 114 |
+
:returns corrections: The binding mode corrections for each ligand.
|
| 115 |
+
"""
|
| 116 |
+
# Simplify the map by replacing all the bennett DG information with the cycle closure corrected DGs
|
| 117 |
+
clean_bennett_from_map(g)
|
| 118 |
+
# Find which ligands have multiple binding modes using canonicalized SMILES:
|
| 119 |
+
mode_nodes = get_binding_mode_nodes(g)
|
| 120 |
+
# Calculate the binding mode corrections and apply to the map:
|
| 121 |
+
corrections = calc_mode_corrections(mode_nodes)
|
| 122 |
+
apply_corrections(mode_nodes, corrections)
|
| 123 |
+
g.calc_cycle_closure()
|
| 124 |
+
|
| 125 |
+
return mode_nodes, corrections
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def merge_ligand_nodes(g: graph.Graph, mode_nodes: List[List[graph.Node]],
|
| 129 |
+
corrections: List[np.ndarray]):
|
| 130 |
+
"""
|
| 131 |
+
Merge all nodes of different binding modes into a single one. The most
|
| 132 |
+
favourable binding mode of each ligand is retained. The graph is modified
|
| 133 |
+
in place.
|
| 134 |
+
|
| 135 |
+
:param g: An FEP+ graph that contains multiple binding modes. Cycle closure
|
| 136 |
+
must have called for the map for this function to run.
|
| 137 |
+
:param mode_nodes: A list of lists that contains the nodes of the different
|
| 138 |
+
binding modes of the same ligand.
|
| 139 |
+
:param corrections: The binding mode corrections for each ligand.
|
| 140 |
+
"""
|
| 141 |
+
for n in g.nodes_iter():
|
| 142 |
+
if n.pred_dg is None:
|
| 143 |
+
raise ValueError('Cycle closure must be called for the input map.')
|
| 144 |
+
|
| 145 |
+
# Determine which nodes to keep and which nodes to discard.
|
| 146 |
+
# The mode that requires the least correction is the most favourable and it will be retained.
|
| 147 |
+
to_merge = []
|
| 148 |
+
to_keep = []
|
| 149 |
+
for c in corrections:
|
| 150 |
+
keep_ind = np.where(c == np.max(c))[0][0]
|
| 151 |
+
to_merge.append(np.where(c != c[keep_ind])[0])
|
| 152 |
+
to_keep.append(keep_ind)
|
| 153 |
+
|
| 154 |
+
# Add the edges of the binding modes into the one that will be retained.
|
| 155 |
+
nodes_to_delete = []
|
| 156 |
+
nodes_to_keep = []
|
| 157 |
+
for nodes, merge_inds, keep_inds in zip(mode_nodes, to_merge, to_keep):
|
| 158 |
+
for i in merge_inds:
|
| 159 |
+
# Add the neighbours of the other binding modes to the node that will be kept.
|
| 160 |
+
for n in nodes[i].neighbors:
|
| 161 |
+
g.add_edge(nodes[keep_inds], n)
|
| 162 |
+
nodes_to_delete.append(nodes[i])
|
| 163 |
+
nodes_to_keep.append(nodes[keep_inds])
|
| 164 |
+
|
| 165 |
+
# Looping through the nodes that will be kept, going through the edges, and adding the predicted binding data
|
| 166 |
+
for nodes in nodes_to_keep:
|
| 167 |
+
for e in nodes.edges:
|
| 168 |
+
n_initial, n_final = e.direction
|
| 169 |
+
e.complex_dg = n_final.pred_dg - n_initial.pred_dg
|
| 170 |
+
e.solvent_dg = Measurement(0, 0)
|
| 171 |
+
e.vacuum_dg = None
|
| 172 |
+
|
| 173 |
+
# Finally deleting the nodes of the duplicate binding modes.
|
| 174 |
+
g.remove_nodes_from(nodes_to_delete)
|
| 175 |
+
|
| 176 |
+
return nodes_to_keep
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def main(argv=None):
|
| 180 |
+
usage = """
|
| 181 |
+
Let map_out.fmp be an output from FEP+ that has different binding modes of some of the ligands. To
|
| 182 |
+
calculate the relative binding free between ligands in a way that accounts for the presence of multiple binding
|
| 183 |
+
modes, type
|
| 184 |
+
|
| 185 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py map_out.fmp -o map_bmcorr_out.fmp
|
| 186 |
+
|
| 187 |
+
By default, the output 'map_bmcorr_out.fmp' has nodes of the same ligand merged into one. Edges between merged nodes
|
| 188 |
+
do not have trajectory (fmpdb) information. To not merge the nodes, use the flag '-no-merge', like this
|
| 189 |
+
|
| 190 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py map_out.fmp -o map_bmcorr_out.fmp -no-merge
|
| 191 |
+
"""
|
| 192 |
+
description = """
|
| 193 |
+
In FEP+, one can run maps that have different binding modes of ligands in different nodes. This script automatically
|
| 194 |
+
detects multiple binding modes in an FEP+ map and applies the binding mode correction to the calculated relative free
|
| 195 |
+
energies. When using this script, there are no limitations to the number of ligands and poses, or on the geometry of the map.
|
| 196 |
+
|
| 197 |
+
To aid visualization and MUE and RMSE calculation, nodes of the same ligand are automatically merged into a node
|
| 198 |
+
that represents the most favorable binding mode, although this feature can be switched off.
|
| 199 |
+
|
| 200 |
+
When applying the corrections, the Bennett DDGs are replaced with cycle closure corrected DDGs. As this creates an
|
| 201 |
+
inconsistency between the Bennett DDGs in the map and SID data, the SID data is removed from the map.
|
| 202 |
+
"""
|
| 203 |
+
parser = argparse.ArgumentParser(usage=usage, description=description)
|
| 204 |
+
parser.add_argument(
|
| 205 |
+
'infile',
|
| 206 |
+
type=str,
|
| 207 |
+
help="The name of an out fmp file that contains multiple binding modes."
|
| 208 |
+
)
|
| 209 |
+
parser.add_argument(
|
| 210 |
+
'-o',
|
| 211 |
+
dest='outfile',
|
| 212 |
+
type=str,
|
| 213 |
+
help=
|
| 214 |
+
"The name of the output fmp file that has the binding mode correction for each edge, default='bmcorr_out.fmp'.",
|
| 215 |
+
default='bmcorr_out.fmp')
|
| 216 |
+
parser.add_argument(
|
| 217 |
+
'-no-merge',
|
| 218 |
+
action='store_true',
|
| 219 |
+
dest='no_merge',
|
| 220 |
+
help=
|
| 221 |
+
'Option to NOT merge nodes of the same binding mode into most favorable, default=False.',
|
| 222 |
+
default=False)
|
| 223 |
+
args = parser.parse_args(argv)
|
| 224 |
+
|
| 225 |
+
# Load the map that contains ligands with at least 2 binding modes:
|
| 226 |
+
g = graph.Graph.deserialize(args.infile)
|
| 227 |
+
|
| 228 |
+
if g.fep_type != graph.FEP_TYPES.SMALL_MOLECULE:
|
| 229 |
+
sys.exit("Only small molecule graphs are supported")
|
| 230 |
+
|
| 231 |
+
# Detect alternate binding modes and apply the correction:
|
| 232 |
+
mode_nodes, corrections = correct_multiple_binding_modes(g)
|
| 233 |
+
|
| 234 |
+
if not args.no_merge:
|
| 235 |
+
merge_ligand_nodes(g, mode_nodes, corrections)
|
| 236 |
+
g.calc_cycle_closure()
|
| 237 |
+
|
| 238 |
+
g.write(args.outfile)
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
if __name__ == '__main__':
|
| 242 |
+
main()
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/cdk2_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
|
| 3 |
+
# ligand ligand pka
|
| 4 |
+
39charg 39neu 4.60
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/cdk2_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
|
| 3 |
+
# ligand ligand pka
|
| 4 |
+
39charg 39neu 3.23
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/dlk_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
#Lig pKa
|
| 3 |
+
4neu 4charg 9.87
|
| 4 |
+
17neu 17charg 8.01
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/dlk_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
#Lig pKa
|
| 3 |
+
4neu 4charg 9.34
|
| 4 |
+
17neu 17charg 6.17
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/egfr_epikpka.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
#Lig pKa
|
| 3 |
+
27neu 27chargR 8.54
|
| 4 |
+
27neu 27chargS 8.54
|
| 5 |
+
28neu 28charg 7.7
|
| 6 |
+
29neu 29charg 9.15
|
| 7 |
+
30neu 30charg 8.74
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/egfr_pka.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
#Lig pKa
|
| 3 |
+
27neu 27chargR 8.25
|
| 4 |
+
27neu 27chargS 8.30
|
| 5 |
+
28neu 28charg 9.48
|
| 6 |
+
29neu 29charg 8.61
|
| 7 |
+
30neu 30charg 8.73
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ephx2_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19charg 19neu 4.43
|
| 4 |
+
47charg 47neu 4.6
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ephx2_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19charg 19neu 3.43
|
| 4 |
+
47charg 47neu 3.25
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s2_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
5neu 5charg 8.43
|
| 4 |
+
17neu 17charg 7.94
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s2_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
5neu 5charg 7.24
|
| 4 |
+
17neu 17charg 7.67
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s3_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19neu 19charg 10.33
|
| 4 |
+
28neu 28charg 11.14
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/irak4_s3_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19neu 19charg 8.65
|
| 4 |
+
28neu 28charg 8.5
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/itk_epikpka.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
1neu 1charg 9.01
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/itk_pka.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
1neu 1charg 8.91
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jak1_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
16neu 16charg 9.81
|
| 4 |
+
18neu 18charg 8.67
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jak1_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
16neu 16charg 8.83
|
| 4 |
+
18neu 18charg 6.25
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jnk1_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19a_neu 19a_charg 8.38
|
| 4 |
+
19b_charg 19b_neu 4.25
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/jnk1_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.2
|
| 2 |
+
#Lig pKa
|
| 3 |
+
19a_neu 19a_charg 9.46
|
| 4 |
+
19b_charg 19b_neu 2.13
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ptp1b_epikpka.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
26neu 26charg 11.23
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/ptp1b_pka.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
26neu 26charg 9.31
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/run_all_corrections.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PROTEINS=(cdk2 dlk egfr ephx2 irak4_s2 irak4_s3 itk jak1 jnk1 ptp1b tyk2)
|
| 2 |
+
for P in ${PROTEINS[*]}
|
| 3 |
+
do
|
| 4 |
+
cd "${P}"
|
| 5 |
+
$SCHRODINGER/run -FROM scisol pka_tautomer_correction.py "${P}"_out.fmp -pka-file ../"${P}"_pka.txt -o "${P}"_pkacorr_out.fmp
|
| 6 |
+
cd ../
|
| 7 |
+
done
|
| 8 |
+
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/setup_and_run.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PROTEINS=(cdk2 dlk egfr ephx2 irak4_s2 irak4_s3 itk jak1 jnk1 ptp1b thrombin_whole_map tyk2)
|
| 2 |
+
for P in ${PROTEINS[*]}
|
| 3 |
+
do
|
| 4 |
+
mkdir "${P}"
|
| 5 |
+
cp ${P}.fmp ${P}
|
| 6 |
+
cd "${P}"
|
| 7 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -ensemble muVT -seed 1 -JOBNAME ${P} ${P}.fmp -QARG "-P dev_GPU"
|
| 8 |
+
cd ../
|
| 9 |
+
done
|
| 10 |
+
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/subset_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:366d46ca0a92d6c91ca1182571cfe156d4c8c4a2024fb78f49fe7e2bbdf02442
|
| 3 |
+
size 1072
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/tyk2_epikpka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
jmc_3charg jmc_32neu 4.53
|
| 4 |
+
ejm_52neu ejm_52charg 8.80
|
fep_benchmark_inputs/fep_plus_inputs/charge_annhil/tyk2_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
#Lig pKa
|
| 3 |
+
jmc_3charg jmc_32neu 3.52
|
| 4 |
+
ejm_52neu ejm_52charg 9.36
|
fep_benchmark_inputs/fep_plus_inputs/fragments/jak2_set1_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.0
|
| 2 |
+
|
| 3 |
+
# ligand ligand percent percent
|
| 4 |
+
4a 4b 0.5 0.5
|
fep_benchmark_inputs/fep_plus_inputs/fragments/run_all_corrections.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cp jak2_set1_pka.txt run_jak2_set1_corrs.sh jak2_set1
|
| 2 |
+
cd jak2_set1
|
| 3 |
+
./run_jak2_set1_corrs.sh
|
| 4 |
+
cd ../
|
| 5 |
+
|
| 6 |
+
cd jak2_set2_extra
|
| 7 |
+
cp ../run_jak2_set2_corrs.sh .
|
| 8 |
+
./run_jak2_set2_corrs.sh
|
| 9 |
+
rm run_jak2_set2_corrs.sh
|
| 10 |
+
cd ../
|
| 11 |
+
|
fep_benchmark_inputs/fep_plus_inputs/fragments/run_jak2_set1_corrs.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$SCHRODINGER/run -FROM scisol pka_tautomer_correction.py jak2_set1_out.fmp -p jak2_set1_pka.txt -o jak2_set1_pkacorr_out.fmp
|
| 2 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py jak2_set1_pkacorr_out.fmp -o jak2_set1_pkacorr_bmcorr_out.fmp
|
| 3 |
+
|
fep_benchmark_inputs/fep_plus_inputs/fragments/run_jak2_set2_corrs.sh
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py jak2_set2_extra_out.fmp -o jak2_set2_extra_bmcorr_out.fmp
|
| 2 |
+
|
fep_benchmark_inputs/fep_plus_inputs/fragments/setup_and_run.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PROTEINS=(frag_liga_auto frag_mcl1_noweak frag_mup1 frag_p38 hsp90_frag_2rings hsp90_frag_single_ring jak2_set1 jak2_set2_extra t4lysozyme_uvt)
|
| 2 |
+
for P in ${PROTEINS[*]}
|
| 3 |
+
do
|
| 4 |
+
mkdir "${P}"
|
| 5 |
+
cp ${P}.fmp ${P}
|
| 6 |
+
cd "${P}"
|
| 7 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -ensemble muVT -seed 1 -JOBNAME ${P} ${P}.fmp -QARG "-P dev_GPU"
|
| 8 |
+
cd ../
|
| 9 |
+
done
|
| 10 |
+
|
fep_benchmark_inputs/fep_plus_inputs/fragments/subset_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53f0c1b87248e0a7896f0e6f79577f696d027fd186aab6eb5165cb638c329bd7
|
| 3 |
+
size 908
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/a2a_epik_pka.txt
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 7.5
|
| 2 |
+
|
| 3 |
+
4o_4o deprotonated_9.84
|
| 4 |
+
4e D_4eD deprotonated_8.43
|
| 5 |
+
4e U 4eu deprotonated_8.43
|
| 6 |
+
4f_4f deprotonated_10.72
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/a2a_symbmcorr.py
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from schrodinger.application.scisol.packages.fep import graph
|
| 2 |
+
import numpy as np
|
| 3 |
+
import argparse
|
| 4 |
+
|
| 5 |
+
import sys
|
| 6 |
+
sys.path.append('../')
|
| 7 |
+
import binding_mode_correction as bmc
|
| 8 |
+
|
| 9 |
+
# Add the symmetry corrections
|
| 10 |
+
degree_of_symm = {'4a':4, '4a flipped':4,
|
| 11 |
+
'4b D':2,
|
| 12 |
+
'4b U':2,
|
| 13 |
+
'4c':4,
|
| 14 |
+
'4d':4,
|
| 15 |
+
'4e D':2, '4eD deprotonated':2,
|
| 16 |
+
'4e U':2, '4eU deprotonated':2,
|
| 17 |
+
'4f':4, '4f deprotonated':4,
|
| 18 |
+
'4g':4,
|
| 19 |
+
'4h':4,
|
| 20 |
+
'4i':4,
|
| 21 |
+
'4jR':2,
|
| 22 |
+
'4jS':2,
|
| 23 |
+
'4kD':2,
|
| 24 |
+
'4kU':2,
|
| 25 |
+
'4lD':2,
|
| 26 |
+
'4lU':2,
|
| 27 |
+
'4m D':2,
|
| 28 |
+
'4m U':2,
|
| 29 |
+
'4n':4,
|
| 30 |
+
'4o':4, '4o deprotonated':4,
|
| 31 |
+
'4q':4,
|
| 32 |
+
'4r D':2,
|
| 33 |
+
'4r U':2}
|
| 34 |
+
|
| 35 |
+
def get_lignames(edge):
|
| 36 |
+
sep = edge.short_id_title.split('==>')
|
| 37 |
+
lig1 = sep[0].split(':')[1].strip()
|
| 38 |
+
lig2 = sep[1].split(':')[1].strip()
|
| 39 |
+
return lig1, lig2
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def main(argv=None):
|
| 44 |
+
usage="""
|
| 45 |
+
Apply the symmetry and binding mode correction to a particular map.
|
| 46 |
+
|
| 47 |
+
$SCHRODINGER/run symbmcorr.py map_out.fmp -o map_bmcorr_out.fmp
|
| 48 |
+
"""
|
| 49 |
+
parser = argparse.ArgumentParser(usage=usage)
|
| 50 |
+
parser.add_argument('infile',
|
| 51 |
+
type=str,
|
| 52 |
+
help="The name of an out fmp file that contains multiple binding modes.")
|
| 53 |
+
parser.add_argument('-o',
|
| 54 |
+
dest='outfile',
|
| 55 |
+
type=str,
|
| 56 |
+
help="If entered, the name of the corrected map, default=None.",
|
| 57 |
+
default=None)
|
| 58 |
+
args = parser.parse_args(argv)
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
g = graph.Graph.deserialize(args.infile)
|
| 62 |
+
|
| 63 |
+
# Remove edges if they don't have predictions:
|
| 64 |
+
remove_edges = []
|
| 65 |
+
for e in g.edges_iter():
|
| 66 |
+
if e.complex_dg is None or e.solvent_dg is None:
|
| 67 |
+
remove_edges.append(e)
|
| 68 |
+
|
| 69 |
+
if len(remove_edges) > 0:
|
| 70 |
+
print('Removing {} edges as they do not have results'.format(len(remove_edges)))
|
| 71 |
+
g.remove_edges_from(remove_edges)
|
| 72 |
+
|
| 73 |
+
remove_nodes = []
|
| 74 |
+
for n in g.nodes_iter():
|
| 75 |
+
if n.pred_dg is None:
|
| 76 |
+
remove_nodes.append(n)
|
| 77 |
+
|
| 78 |
+
if len(remove_nodes) > 0:
|
| 79 |
+
print('Removing {} nodes as they do not have results'.format(len(remove_nodes)))
|
| 80 |
+
g.remove_nodes_from(remove_nodes)
|
| 81 |
+
|
| 82 |
+
kT =0.596
|
| 83 |
+
for e in g.edges_iter():
|
| 84 |
+
l1, l2 = get_lignames(e)
|
| 85 |
+
total_corr = 0
|
| 86 |
+
# Symmetry correction
|
| 87 |
+
total_corr += kT * np.log(degree_of_symm[l1])
|
| 88 |
+
total_corr -= kT * np.log(degree_of_symm[l2])
|
| 89 |
+
e.complex_dg += total_corr
|
| 90 |
+
|
| 91 |
+
g.calc_cycle_closure()
|
| 92 |
+
|
| 93 |
+
mode_nodes, corrections = bmc.correct_multiple_binding_modes(g)
|
| 94 |
+
bmc.merge_ligand_nodes(g, mode_nodes, corrections)
|
| 95 |
+
g.calc_cycle_closure()
|
| 96 |
+
g.write(args.outfile)
|
| 97 |
+
|
| 98 |
+
if __name__ == '__main__':
|
| 99 |
+
main()
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/run_a2a_corrs.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$SCHRODINGER/run a2a_symbmcorr.py a2a_hip278/a2a_hip278_out.fmp -o a2a_hip278/a2a_hip278_symbmcorr_out.fmp
|
| 2 |
+
$SCHRODINGER/run -FROM scisol pka_tautomer_correction.py a2a_hip278/a2a_hip278_symbmcorr_out.fmp -o a2a_hip278/a2a_hip278_sbpkacorr_out.fmp -s_ -pka-file a2a_epik_pka.txt
|
| 3 |
+
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/run_all_corrections.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
./run_a2a_corrs.sh
|
| 2 |
+
$SCHRODINGER/run -FROM scisol merge_graph.py p2y1_meta_sub/p2y1_meta_sub_out.fmp p2y1_ortho_sub/p2y1_ortho_sub_out.fmp -o p2y1_merged_out.fmp -sc
|
| 3 |
+
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/setup_and_run.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PROTEINS=(a2a_hip278 p2y1_meta_sub p2y1_ortho_sub)
|
| 2 |
+
for P in ${PROTEINS[*]}
|
| 3 |
+
do
|
| 4 |
+
mkdir "${P}"
|
| 5 |
+
cp ${P}.fmp ${P}
|
| 6 |
+
cd "${P}"
|
| 7 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -ensemble muVT -seed 1 -JOBNAME ${P} ${P}.fmp -QARG "-P dev_GPU"
|
| 8 |
+
cd ../
|
| 9 |
+
done
|
| 10 |
+
|
| 11 |
+
mkdir ox2_hip_custcore
|
| 12 |
+
cp ox2_hip_custcore.fmp ox2_hip_custcore
|
| 13 |
+
cd ox2_hip_custcore
|
| 14 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -modify_dihe -ensemble muVT -seed 1 -JOBNAME ox2 ox2_hip_custcore.fmp -QARG "-P dev_GPU"
|
| 15 |
+
cd ../
|
fep_benchmark_inputs/fep_plus_inputs/gpcrs/subset_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9313a9f142f12eea9556462a94c83da9d1f9c7bc9f229471490419255f8ab5e5
|
| 3 |
+
size 419
|
fep_benchmark_inputs/fep_plus_inputs/jacs_set/run_all_corrections.sh
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py jnk1_manual_flips/jnk1_manual_flips_out.fmp -o jnk1_manual_flips/jnk1_manual_flips_out_bmcorr_out.fmp
|
| 2 |
+
$SCHRODINGER/run -FROM scisol binding_mode_correction.py mcl1_extra_flips/mcl1_extra_flips_out.fmp -o mcl1_extra_flips/mcl1_extra_flips_bmcorr_out.fmp
|
fep_benchmark_inputs/fep_plus_inputs/jacs_set/setup_and_run.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
PROTEINS=(bace cdk2 jnk1_manual_flips mcl1_extra_flips p38 ptp1b thrombin_core tyk2)
|
| 2 |
+
for P in ${PROTEINS[*]}
|
| 3 |
+
do
|
| 4 |
+
mkdir "${P}"
|
| 5 |
+
cp ${P}.fmp ${P}
|
| 6 |
+
cd "${P}"
|
| 7 |
+
"${SCHRODINGER}/fep_plus" -HOST bolt_cpu -SUBHOST bolt_gpu -ppj 2 -ffbuilder -ff-host bolt_cpu:50 -time 20000.0 -vacuum -ensemble muVT -seed 1 -JOBNAME ${P} ${P}.fmp -QARG "-P dev_GPU"
|
| 8 |
+
cd ../
|
| 9 |
+
done
|
fep_benchmark_inputs/fep_plus_inputs/jacs_set/subset_metadata.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:512de45d69255c67939d04439d00582c827e2d195a112abc52eb304ad29de8ed
|
| 3 |
+
size 731
|
fep_benchmark_inputs/fep_plus_inputs/janssen_bace/bace_ciordia_retro_symbmcorr.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from schrodinger.application.scisol.packages.fep import graph
|
| 2 |
+
import numpy as np
|
| 3 |
+
import argparse
|
| 4 |
+
from itertools import combinations
|
| 5 |
+
|
| 6 |
+
import sys
|
| 7 |
+
sys.path.append('/home/ross/Work/schrython/')
|
| 8 |
+
import fep_tools as ftools
|
| 9 |
+
import binding_mode_correction as bmc
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def get_lignames(edge):
|
| 13 |
+
sep = edge.short_id_title.split('==>')
|
| 14 |
+
lig1 = sep[0].split(':')[1].strip()
|
| 15 |
+
lig2 = sep[1].split(':')[1].strip()
|
| 16 |
+
return lig1, lig2
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
# Add the symmetry corrections. Specific to the map
|
| 20 |
+
degree_of_symm = {'17':2}
|
| 21 |
+
|
| 22 |
+
def get_error_before_corrs(g):
|
| 23 |
+
pred_dgs = []
|
| 24 |
+
exp_dgs = []
|
| 25 |
+
for n in g.nodes_iter():
|
| 26 |
+
ligname = n.short_id_title.split(":")[1].strip()
|
| 27 |
+
if 'flip' not in ligname:
|
| 28 |
+
pred_dgs.append(n.pred_dg.val)
|
| 29 |
+
exp_dgs.append(n.exp_dg.val)
|
| 30 |
+
|
| 31 |
+
pred_dgs = np.array(pred_dgs)
|
| 32 |
+
exp_dgs = np.array(exp_dgs)
|
| 33 |
+
|
| 34 |
+
pred_dgs += np.mean(exp_dgs) - np.mean(pred_dgs)
|
| 35 |
+
|
| 36 |
+
indices = np.arange(len(exp_dgs))
|
| 37 |
+
pred_pairwise = np.array([pred_dgs[i] - pred_dgs[j] for i, j in combinations(indices, 2)])
|
| 38 |
+
exp_pairwise = np.array([exp_dgs[i] - exp_dgs[j] for i, j in combinations(indices, 2)])
|
| 39 |
+
|
| 40 |
+
sq_diffs = (exp_pairwise - pred_pairwise)**2
|
| 41 |
+
boot_rmsds = np.zeros(10000)
|
| 42 |
+
for b in range(10000):
|
| 43 |
+
samp_inds = np.random.choice(len(sq_diffs), len(sq_diffs))
|
| 44 |
+
arr_boot = sq_diffs[samp_inds]
|
| 45 |
+
boot_rmsds[b] = np.sqrt(arr_boot.mean())
|
| 46 |
+
|
| 47 |
+
pair_rmsd = np.sqrt(np.mean((exp_pairwise - pred_pairwise)**2))
|
| 48 |
+
print('Pairwise RMSD without extra rotamers and symmetry correction = {:.2f} +/- {:.2f} kcal/mol'.format(pair_rmsd, np.std(boot_rmsds)))
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
def main(argv=None):
|
| 52 |
+
usage="""
|
| 53 |
+
Apply the symmetry and binding mode correction to a particular map.
|
| 54 |
+
|
| 55 |
+
$SCHRODINGER/run symbmcorr.py map_out.fmp -o map_bmcorr_out.fmp
|
| 56 |
+
"""
|
| 57 |
+
parser = argparse.ArgumentParser(usage=usage)
|
| 58 |
+
parser.add_argument('infile',
|
| 59 |
+
type=str,
|
| 60 |
+
help="The name of an out fmp file that contains multiple binding modes.")
|
| 61 |
+
parser.add_argument('-o',
|
| 62 |
+
dest='outfile',
|
| 63 |
+
type=str,
|
| 64 |
+
help="If entered, the name of the corrected map, default=None.",
|
| 65 |
+
default=None)
|
| 66 |
+
args = parser.parse_args(argv)
|
| 67 |
+
|
| 68 |
+
g = graph.Graph.deserialize(args.infile)
|
| 69 |
+
|
| 70 |
+
ftools.pretty_print_fmp(g)
|
| 71 |
+
print()
|
| 72 |
+
print(get_error_before_corrs(g))
|
| 73 |
+
print()
|
| 74 |
+
|
| 75 |
+
# SYMMETRY CORRECTION
|
| 76 |
+
kT =0.596
|
| 77 |
+
for e in g.edges_iter():
|
| 78 |
+
l1, l2 = get_lignames(e)
|
| 79 |
+
total_corr = 0
|
| 80 |
+
# Symmetry correction
|
| 81 |
+
if l1 in degree_of_symm:
|
| 82 |
+
total_corr += kT * np.log(degree_of_symm[l1])
|
| 83 |
+
if l2 in degree_of_symm:
|
| 84 |
+
total_corr -= kT * np.log(degree_of_symm[l2])
|
| 85 |
+
e.complex_dg += total_corr
|
| 86 |
+
|
| 87 |
+
g.calc_cycle_closure()
|
| 88 |
+
|
| 89 |
+
# BINDING MODE CORRECTION
|
| 90 |
+
mode_nodes, corrections = bmc.correct_multiple_binding_modes(g)
|
| 91 |
+
bmc.merge_ligand_nodes(g, mode_nodes, corrections)
|
| 92 |
+
g.calc_cycle_closure()
|
| 93 |
+
|
| 94 |
+
ftools.pretty_print_fmp(g)
|
| 95 |
+
|
| 96 |
+
if args.outfile is not None:
|
| 97 |
+
g.write(args.outfile)
|
| 98 |
+
|
| 99 |
+
if __name__ == '__main__':
|
| 100 |
+
main()
|
fep_benchmark_inputs/fep_plus_inputs/janssen_bace/bace_retrospective_pka.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pH 4.5
|
| 2 |
+
|
| 3 |
+
# ligand ligand pka
|
| 4 |
+
30 30_protonated 6.45
|