Matching Sphere Scan

From DISI
Revision as of 11:19, 21 May 2020 by Rstein (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This script generates some number of directories with perturbed matching spheres. This will randomly perturb non-crystallographic spheres generated by SPHGEN during blastermaster.

The original script was written by Trent Balius. Wrapper script is written by Reed Stein.

Usage:

   python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR}

By default, it will create 10 directories with perturbed matching spheres (randomly differing from the original matching spheres by at maximum 0.5 Å)

If you want to change the number of directories or distance from the original matching spheres, use the -n and -d flags:

   python ~rstein/zzz.scripts/sphere_sets_scripts/generate_non_xtal_spheres_dirs.py -p {YOUR_DOCK_DIR} -n 100 -d 0.3

Trent's original script, which makes use of his "sph_lib.py" is located here, and can be run on a single set of matching spheres:

   python ~tbalius/zzz.scripts/make_random_sph_non_ligand.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}

Note that the non-crystallographic spheres in the original matching_spheres.sph file have a "0.000" in the fifth column. This is changed to "0.500" after perturbing the matching spheres. If you would like to perturb the matching spheres again after you have already run it, the fifth column with "0.500" needs to be changed back to "0.000"


If you would like to perturb all matching spheres, and not just the non-crystallographic spheres generated from SPHGEN, run the following command:

   python ~tbalius/zzz.scripts/make_random_sph.py {INPUT_SPHERE_FILE} {MAX_DISTANCE_TO_PERTURB} {OUTPUT_SPHERE_NAME}