File tree Expand file tree Collapse file tree 3 files changed +32
-13
lines changed Expand file tree Collapse file tree 3 files changed +32
-13
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ def _():
34
34
@app .cell
35
35
def _ ():
36
36
sim = Complex .from_dir (EXAMPLE_DATA_DIR )
37
- sim .connect ()
38
37
return (sim ,)
39
38
40
39
@@ -44,6 +43,26 @@ def _(sim):
44
43
return
45
44
46
45
46
+ @app .cell (hide_code = True )
47
+ def _ ():
48
+ mo .md (
49
+ r"""
50
+ ## System preparation
51
+
52
+ Before we start a ABFE run, we can prepare the system using `sim.prepare`. Doing so shows a preview of the prepared system.
53
+
54
+
55
+ """
56
+ )
57
+ return
58
+
59
+
60
+ @app .cell
61
+ def _ (sim ):
62
+ sim .prepare (ligand = sim .ligands [0 ])
63
+ return
64
+
65
+
47
66
@app .cell (hide_code = True )
48
67
def _ ():
49
68
mo .md (
@@ -64,9 +83,11 @@ def _():
64
83
65
84
66
85
@app .cell
67
- def _ ():
68
- # sim.abfe.run_end_to_end(ligand_ids=["Ligands-1"])
69
- return
86
+ def _ (sim ):
87
+ sim .abfe .set_test_run ()
88
+ jobs = sim .abfe .run_end_to_end (ligands = [sim .ligands [0 ]])
89
+ this_job = jobs [0 ]
90
+ return (this_job ,)
70
91
71
92
72
93
@app .cell (hide_code = True )
@@ -82,9 +103,8 @@ def _():
82
103
83
104
84
105
@app .cell
85
- def _ (sim ):
86
- job = sim .abfe .jobs [0 ]
87
- job
106
+ def _ (this_job ):
107
+ this_job
88
108
return
89
109
90
110
@@ -101,8 +121,8 @@ def _():
101
121
102
122
103
123
@app .cell
104
- def _ ():
105
- # job .cancel()
124
+ def _ (this_job ):
125
+ this_job .cancel ()
106
126
return
107
127
108
128
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ABFE(WorkflowStep):
28
28
Objects instantiated here are meant to be used within the Complex class."""
29
29
30
30
"""tool version to use for ABFE"""
31
- tool_version = "0.2.6 "
31
+ tool_version = "0.2.7 "
32
32
_tool_key = "deeporigin.abfe-end-to-end" # Tool key for ABFE jobs
33
33
34
34
_max_atom_count : int = 100_000
Original file line number Diff line number Diff line change 53
53
ligand.visualize()
54
54
"""
55
55
56
- # from deeporigin.drug_discovery.utilities.props import predict_properties, protonate
57
56
from dataclasses import dataclass , field
58
57
import os
59
58
from pathlib import Path
@@ -979,9 +978,9 @@ def show_ligands(ligands: list[Ligand]):
979
978
# re‑index your DataFrame
980
979
df = df [new_order ]
981
980
982
- from deeporigin .utils .notebook import _in_marimo
981
+ from deeporigin .utils .notebook import get_notebook_environment
983
982
984
- if _in_marimo () :
983
+ if get_notebook_environment () == "marimo" :
985
984
import marimo as mo
986
985
987
986
return mo .plain (df )
You can’t perform that action at this time.
0 commit comments