High-Throughput Simulator
Create High-Throughput Simulator project
Let’s walk through how to create a High-Throughput Simulator (HTS) project. You will need a completed source project — typically a Ligand Docker project with docking results (Peptide Designer and Ligand Modeler source projects are also supported).
First, find a Ligand Docker project that has results:
from molcube.high_throughput_simulator.enum import (
HTSBuilderType,
HTSourceProjectType,
)
projects = molcube.search_projects(perPage=9999999)["projects"]
ld_project = next(
p for p in projects if p.get("projectType") == "Ligand Docker"
)
project = molcube.create_high_throughput_simulator_project()
results = project.get_source_project_results(ld_project["pk"])
pose_path = results[0]["path"] # e.g. "/data/.../rank1.sdf"
Create the HTS project from the source project. Select a small number of
source_results — each result runs through force field generation and
system building:
project.create_project(
title="my_hts",
source_project_type=HTSourceProjectType.LIGAND_DOCKER,
source_project_pk=ld_project["pk"],
source_results=[pose_path],
)
Use a Ligand Modeler source project
For a Ligand Modeler source project, search for projects with completed
force-field generation and retrieve the generated ligand SDF entries with
get_source_project_ligands:
ligand_projects = project.search_ligand_modeler_projects(
ligand_force_field_types=["openff"],
)
ligand_project = ligand_projects[0]
ligands = project.get_source_project_ligands(ligand_project["pk"])
ligand_path = ligands[0]["path"]
ligand_sdf = ligands[0]["fileContent"]
Each ligand entry includes its file name, path, and SDF content. Pass the
Ligand Modeler project PK as source_project_pk when creating or submitting
the HTS project.
Submit the pipeline
If builder_type is omitted, the API selects the reference-system builder.
Set it explicitly to HTSBuilderType
when a specific builder is required.
Once the project is created, submit the pipeline with
submit_pipeline().
It builds a reference system (Solution/Membrane Builder) and embeds the
selected source results into it. The call blocks until the Celery
pipeline completes:
project.submit_pipeline(
md_inputs={
"amber": True,
"gromacs": False,
"openmm": False,
"desmond": False,
"genesis": False,
},
use_hmr=False,
source_project_pk=ld_project["pk"],
source_project_type=HTSourceProjectType.LIGAND_DOCKER,
source_results=[pose_path],
builder_type=HTSBuilderType.SOLUTION_BUILDER,
ligand_force_fields={
"openff": True,
"openffFast": False,
"gaff": False,
"gaffFast": False,
"xff": False,
"xffFast": False,
},
)
Retrieve results
After the pipeline completes, inspect the reference system and download the results:
md_engines = project.get_md_engines()
reference_pdb = project.download_hts_reference_pdb()
project.download_project("my-hts-result.tar.gz")
Run HTS MD simulations
A completed High-Throughput project at step 3 can be used as the reference
for an HTS MD Simulator project. Pass project.projectId to
SimulatorProject.create_project(), then select MD engines, ligands, and
ligand force fields with run_hts_md().
See Run HTS MD for submission, validation, and status examples.