Building and Docking on CoreHPC: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 10: Line 10:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
python $DOCK_INSTALL_PATH/zinc22-3d/submit/submit_building_docker.py --output_folder output --bundle_size 5 --skip_name_check --schedule slurm --container_software apptainer --container_path_or_name $DOCK_INSTALL_PATH/building_pipeline_oss.sif [smiles].smi
python $DOCK_INSTALL_PATH/zinc22-3d/submit/submit_building_docker.py --output_folder [output_folder_name] --bundle_size [bundle_size] --scheduler slurm --container_software apptainer --container_path_or_name $DOCK_INSTALL_PATH/building_pipeline.sif [smiles].smi
</syntaxhighlight>
</syntaxhighlight>
NOTES:
* SLURM MaxArraySize on CoreHPC is set to 5000, so make sure the number of jobs in the array is lower than that.
* Default SLURM partition for jobs is cpu, and the job duration is limited to 4 h. If your job requires more than that, add <code>#SBATCH --partition=community</code> to the <code>building_array_job.sh</code>. The community partition allows jobs to run for 14 h.


Launch the array job:
Launch the array job:
Line 27: Line 31:
== Docking ==
== Docking ==


From a directory containing your dockfiles and the SDI file, set the environment variables:
Run this from your working directory, which must contain your dockfiles and a subdirectory named 'sdi' holding your SDI file:
 
<syntaxhighlight lang="bash">
export MOLECULES_DIR_TO_BIND=[outermost folder containing the molecules to dock]
export DOCKFILES=[path to your dockfiles]
export INPUT_FOLDER=[the folder containing your .sdi file(s)]
export OUTPUT_FOLDER=[where you want the output]
</syntaxhighlight>
 
Then run the docking script:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
bash /mnt/fac/CX900007_DS1/soft/super_dock3r.sh
bash /mnt/fac/CX900007_DS1/soft/super_dock3r.sh
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 19:48, 11 November 2026

3D Ligand Building

Source the DOCK environment:

source /mnt/fac/CX900007_DS1/soft/DOCK3.8/env.sh

Submit the building pipeline (Apptainer container, SLURM scheduler):

python $DOCK_INSTALL_PATH/zinc22-3d/submit/submit_building_docker.py --output_folder [output_folder_name] --bundle_size [bundle_size] --scheduler slurm --container_software apptainer --container_path_or_name $DOCK_INSTALL_PATH/building_pipeline.sif [smiles].smi

NOTES:

* SLURM MaxArraySize on CoreHPC is set to 5000, so make sure the number of jobs in the array is lower than that. 
* Default SLURM partition for jobs is cpu, and the job duration is limited to 4 h. If your job requires more than that, add #SBATCH --partition=community to the building_array_job.sh. The community partition allows jobs to run for 14 h.

Launch the array job:

sbatch building_array_job.sh

Collect the built bundles into an SDI file:

find /path/to/building/output -maxdepth 2 -name "bundle.db2.tgz" > [sdi_file_name].sdi

Docking

Run this from your working directory, which must contain your dockfiles and a subdirectory named 'sdi' holding your SDI file:

bash /mnt/fac/CX900007_DS1/soft/super_dock3r.sh