Skip to content

Commit

Permalink
cli: use yaml specified Protocol in plan-rbfe-network
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjgowers committed Mar 8, 2024
1 parent 28d3ec3 commit ea4f593
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions openfecli/commands/plan_rbfe_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def plan_rbfe_network_main(
solvent,
protein,
cofactors,
protocol=None,
):
"""Utility method to plan a relative binding free energy network.
Expand All @@ -37,6 +38,8 @@ def plan_rbfe_network_main(
protein component for complex simulations, to which the ligands are bound
cofactors : Iterable[SmallMoleculeComponent]
any cofactors alongisde the protein, can be empty list
protocol: Optional[Protocol]
fully set up Protocol to use
Returns
-------
Expand All @@ -53,6 +56,7 @@ def plan_rbfe_network_main(
mappers=mapper,
mapping_scorer=mapping_scorer,
ligand_network_planner=ligand_network_planner,
protocol=protocol,
)
alchemical_network = network_planner(
ligands=small_molecules, solvent=solvent, protein=protein,
Expand Down Expand Up @@ -145,6 +149,7 @@ def plan_rbfe_network(
mapping_scorer = yaml_options.scorer
ligand_network_planner = yaml_options.ligand_network_planner
solvent = yaml_options.solvent
protocol = yaml_options.protocol

write("\t\tSolvent: " + str(solvent))
write("")
Expand All @@ -169,6 +174,7 @@ def plan_rbfe_network(
solvent=solvent,
protein=protein,
cofactors=cofactors,
protocol=protocol,
)
write("\tDone")
write("")
Expand Down

0 comments on commit ea4f593

Please sign in to comment.