taps.apps.docking.app¶
DockingApp
¶
DockingApp(
smi_file_name_ligand_path: Path,
receptor_path: Path,
tcl_path: Path,
initial_simulations: int = 8,
num_iterations: int = 3,
batch_size: int = 8,
seed: int = 0,
)
Protein docking application.
Based on the Parsl Docking Tutorial.
Parameters:
-
smi_file_name_ligand_path
(Path
) –Path to ligand SMILES string.
-
receptor_path
(Path
) –Path to target receptor PDBQT file.
-
tcl_path
(Path
) –Path to TCL script.
-
initial_simulations
(int
, default:8
) –Initial number of simulations to perform.
-
num_iterations
(int
, default:3
) –Number of infer-simulate-train loops to perform.
-
batch_size
(int
, default:8
) –Number of simulations per iteration.
-
seed
(int
, default:0
) –Random seed for sampling.
Source code in taps/apps/docking/app.py
close
¶
run
¶
Run the application.
Parameters:
Source code in taps/apps/docking/app.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
|
smi_to_pdb
¶
Convert SMILES string to PDB representation.
The conversion to PDB file will contain atomic coordinates that will be used for docking.
Parameters:
-
smiles
(str
) –Molecule representation in SMILES format.
-
pdb_file
(Path
) –Path of the PDB file to create.
Returns:
-
Path
–The created PDB file.
Source code in taps/apps/docking/app.py
set_element
¶
Add coordinated to the PDB file using VMD.
Parameters:
-
input_pdb
(Path
) –Path of input PDB file.
-
output_pdb
(Path
) –Path to PDB file with atomic coordinates.
-
tcl_path
(Path
) –Path to TCL script.
Returns:
-
Path
–The newly created PDB file path.
Source code in taps/apps/docking/app.py
pdb_to_pdbqt
¶
Convert PDB file to PDBQT format.
PDBQT files are similar to the PDB format, but also includes connectivity information.
Parameters:
-
pdb_file
(Path
) –input PDB file to convert.
-
pdbqt_file
(Path
) –output converted PDBQT file.
-
ligand
(bool
, default:True
) –If the molecule is a ligand or not.
Returns:
-
Path
–The path to the created PDBQT file.
Raises:
-
RuntimeError
–If
MGLTOOLS_HOME
is not set.
Source code in taps/apps/docking/app.py
make_autodock_config
¶
make_autodock_config(
input_receptor_pdbqt_file: Path,
input_ligand_pdbqt_file: Path,
output_conf_file: Path,
output_ligand_pdbqt_file: Path,
center: tuple[float, float, float] = (
15.614,
53.38,
15.455,
),
size: tuple[int, int, int] = (20, 20, 20),
exhaustiveness: int = 20,
num_modes: int = 20,
energy_range: int = 10,
) -> Path
Create configuration for AutoDock Vina.
Create a configuration file for AutoDock Vina by describing the target receptor and setting coordinate bounds for the docking experiment.
Parameters:
-
input_receptor_pdbqt_file
(Path
) –Target receptor PDBQT file.
-
input_ligand_pdbqt_file
(Path
) –Target ligand PDBQT file.
-
output_conf_file
(Path
) –The generated Vina conf file.
-
output_ligand_pdbqt_file
(Path
) –Output ligand PDBQT file path.
-
center
(tuple[float, float, float]
, default:(15.614, 53.38, 15.455)
) –Center coordinates.
-
size
(tuple[int, int, int]
, default:(20, 20, 20)
) –Size of the search space.
-
exhaustiveness
(int
, default:20
) –Number of monte carlo simulations.
-
num_modes
(int
, default:20
) –Number of binding modes.
-
energy_range
(int
, default:10
) –Maximum energy difference between the best binding mode and the worst one displayed (kcal/mol).
Returns:
-
Path
–Path of created output configuration file
Source code in taps/apps/docking/app.py
autodock_vina
¶
Compute the docking score.
The docking score captures the potential energy change when the protein and ligand are docked. A strong binding is represented by a negative score, weaker (or no) binders are represented by positive scores.
Parameters:
-
config_file
(Path
) –Vina configuration file.
-
smiles
(str
) –The SMILES string of molecule.
-
num_cpu
(int
, default:1
) –Number of CPUs to use.
Returns: