Simple example of how to set up virtual screening using rDock. This mainpurpose of this example is to illustrate how to set up rDock for virtual screening for a particular target so that the prepared components (receptor and active site definition) can be used in virtual screening workflows in Squonk. Use a project like this to setup the docking experiment, and once you are happy with the results use the items generated in Squonk. This allows an expert to set up the experiment, but for the non-expert to easily run docking in Squonk.
DHFR and the bound ligand from the DEKOIS dataset is used for receptor and the DHFR Sutherland dataset is used for the ligands to screen. All of these are present in the datasets present in this repository.
Copy the relevant files from /datasets/DEKOIS_2.0 and /datasets/sutherland
./1_copy_files.sh
The results are the files ligands.sdf.gz receptor.pdb and xtal-lig.mol2
Use OpenBabel to convert the receptor to MOL2 format and the bound ligand to SDF format.
./2_prepare_inputs.sh
The results are the files receptor.mol2 and ligand.sdf
rDock needs a cavity defintion. In this case we use the rbcavity program that uses a cound ligand to define the cavity.
./3_create_cavity.sh
The results are the receptor_cav1.grd and receptor.as files.
This runs the rbcavity in the informaticsmatters/rdock/ Docker image.
This runs the docking using Nextflow which executes each of the stages, parallelising the computationally demanding process of doing the actual dockings according to the number of cores on the machine. See the rdock.nf file for details.
./4_run_rdock.sh
The result is the rdock_results.sdf.gz file.
This uses the informaticsmatters/rdkit_pipelines and informaticsmatters/rdock-mini/ Docker images.
Note this will take some time depending on the power of your computer.
To view the results do something like this:
zcat rdock_results.sdf.gz | docker run -i --rm -v $PWD:$PWD:Z -w $PWD -u $(id -u):$(id -g) informaticsmatters/rdock-mini:latest sdreport -tSCORE,SCORE.norm | more
Information on using the Squonk rDock Docking cell can be found here.
You need to prepare a zip file containing:
- receptor.mol2 - the receptor definintion in Tripos MOL2 format
- receptor.prm - the rDock parameters file
- receptor.as - The rDock active site definition for the receptor
After running the steps above (and convincing yourself that you are happy with the results) you will have these 3 files in this directory. Just zip them up into a zip file and you can use that in Squonk for the rDock configuration.
zip dhrf_rdock_config.zip receptor.mol2 receptor.prm receptor.as
The name of the zip file is not important, just its contents.