|
25 | 25 | ] |
26 | 26 | }, |
27 | 27 | { |
28 | | - "metadata": {}, |
29 | 28 | "cell_type": "markdown", |
| 29 | + "id": "84d716d6bc428c83", |
| 30 | + "metadata": {}, |
30 | 31 | "source": [ |
31 | 32 | "## Sampling and performance settings\n", |
32 | 33 | "\n", |
|
52 | 53 | "| **Protocol repeats** | The number of independent executions of the protocol. | `protocol_repeats` | `int` |\n", |
53 | 54 | "\n", |
54 | 55 | "The appropriate changes to these settings are transformation dependent with no single setting guaranteeing sufficient convergence or accuracy in general. These settings provide a good starting point to investigate the affect of additional sampling. The following example retrieves them from the default settings:" |
55 | | - ], |
56 | | - "id": "84d716d6bc428c83" |
| 56 | + ] |
57 | 57 | }, |
58 | 58 | { |
59 | | - "metadata": {}, |
60 | 59 | "cell_type": "code", |
61 | | - "outputs": [], |
62 | | - "execution_count": null, |
| 60 | + "execution_count": 2, |
| 61 | + "id": "921c307e3d1f19b8", |
| 62 | + "metadata": {}, |
| 63 | + "outputs": [ |
| 64 | + { |
| 65 | + "name": "stdout", |
| 66 | + "output_type": "stream", |
| 67 | + "text": [ |
| 68 | + "Lambda windows: 11\n", |
| 69 | + "Production length per state: 5.0 nanosecond\n", |
| 70 | + "Equilibration length per state: 1.0 nanosecond\n", |
| 71 | + "Independent repeats: 3\n" |
| 72 | + ] |
| 73 | + } |
| 74 | + ], |
63 | 75 | "source": [ |
64 | 76 | "n_repeats = settings.protocol_repeats\n", |
65 | 77 | "n_windows = settings.lambda_settings.lambda_windows\n", |
|
70 | 82 | "print(f\"Production length per state: {production_length}\")\n", |
71 | 83 | "print(f\"Equilibration length per state: {equilibration_length}\")\n", |
72 | 84 | "print(f\"Independent repeats: {n_repeats}\")" |
73 | | - ], |
74 | | - "id": "921c307e3d1f19b8" |
| 85 | + ] |
75 | 86 | }, |
76 | 87 | { |
77 | | - "metadata": {}, |
78 | 88 | "cell_type": "markdown", |
| 89 | + "id": "22b1aa1dd390fd73", |
| 90 | + "metadata": {}, |
79 | 91 | "source": [ |
80 | 92 | "### Estimating the computational cost of a protocol\n", |
81 | 93 | "\n", |
|
97 | 109 | "</div>\n", |
98 | 110 | "\n", |
99 | 111 | "So for the default settings the total simulation time is:" |
100 | | - ], |
101 | | - "id": "22b1aa1dd390fd73" |
| 112 | + ] |
102 | 113 | }, |
103 | 114 | { |
104 | | - "metadata": {}, |
105 | 115 | "cell_type": "code", |
106 | | - "outputs": [], |
107 | | - "execution_count": null, |
| 116 | + "execution_count": 3, |
| 117 | + "id": "c8b951b79fd1c4bb", |
| 118 | + "metadata": {}, |
| 119 | + "outputs": [ |
| 120 | + { |
| 121 | + "name": "stdout", |
| 122 | + "output_type": "stream", |
| 123 | + "text": [ |
| 124 | + "Total simulation time: 198.0 nanosecond\n" |
| 125 | + ] |
| 126 | + } |
| 127 | + ], |
108 | 128 | "source": [ |
109 | 129 | "def estimate_rbfe_cost(settings):\n", |
110 | 130 | " n_repeats = settings.protocol_repeats\n", |
|
117 | 137 | "\n", |
118 | 138 | "total_sim_time_per_leg = estimate_rbfe_cost(settings)\n", |
119 | 139 | "print(f\"Total simulation time: {total_sim_time_per_leg}\")" |
120 | | - ], |
121 | | - "id": "c8b951b79fd1c4bb" |
| 140 | + ] |
122 | 141 | }, |
123 | 142 | { |
124 | 143 | "cell_type": "markdown", |
|
389 | 408 | ] |
390 | 409 | }, |
391 | 410 | { |
392 | | - "metadata": {}, |
393 | 411 | "cell_type": "markdown", |
| 412 | + "id": "881aec55e73c19cd", |
| 413 | + "metadata": {}, |
394 | 414 | "source": [ |
395 | 415 | "### Other protocols\n", |
396 | 416 | "\n", |
|
408 | 428 | "**Note:** The **AbsoluteSolvationProtocol** follows the same per-leg settings pattern, but uses the prefixes **vacuum_*** and **solvent_*** rather than **complex_*** and **solvent_*** and the following examples also apply to that protocol.\n", |
409 | 429 | "\n", |
410 | 430 | "</div>" |
411 | | - ], |
412 | | - "id": "881aec55e73c19cd" |
| 431 | + ] |
413 | 432 | }, |
414 | 433 | { |
415 | | - "metadata": {}, |
416 | 434 | "cell_type": "code", |
| 435 | + "execution_count": 8, |
| 436 | + "id": "f6c511b6841b4135", |
| 437 | + "metadata": {}, |
417 | 438 | "outputs": [], |
418 | | - "execution_count": null, |
419 | 439 | "source": [ |
420 | 440 | "import warnings\n", |
421 | 441 | "\n", |
422 | 442 | "# Silence a third-party Biopython deprecation warning raised on import\n", |
423 | 443 | "warnings.filterwarnings(\"ignore\", message=\"The Bio.Application modules\")" |
424 | | - ], |
425 | | - "id": "f6c511b6841b4135" |
| 444 | + ] |
426 | 445 | }, |
427 | 446 | { |
428 | | - "metadata": {}, |
429 | 447 | "cell_type": "code", |
| 448 | + "execution_count": 9, |
| 449 | + "id": "bb9691bd6e6cec83", |
| 450 | + "metadata": {}, |
430 | 451 | "outputs": [], |
431 | | - "execution_count": null, |
432 | 452 | "source": [ |
433 | 453 | "from openfe.protocols.openmm_afe import AbsoluteBindingProtocol\n", |
434 | 454 | "from openfe.protocols.openmm_septop import SepTopProtocol\n" |
435 | | - ], |
436 | | - "id": "bb9691bd6e6cec83" |
| 455 | + ] |
437 | 456 | }, |
438 | 457 | { |
439 | 458 | "cell_type": "markdown", |
|
0 commit comments