|
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", |
|
390 | 409 | }, |
391 | 410 | { |
392 | 411 | "cell_type": "markdown", |
393 | | - "id": "c1d2e3f4a5b60001", |
| 412 | + "id": "881aec55e73c19cd", |
394 | 413 | "metadata": {}, |
395 | 414 | "source": [ |
396 | 415 | "### Other protocols\n", |
|
402 | 421 | "\n", |
403 | 422 | "These protocols execute both the `complex` and `solvent` legs within a single transformation, the settings to control the production sampling are then prefixed with the leg name `complex_*` or `solvent_*`.\n", |
404 | 423 | "\n", |
405 | | - "In addition, each leg has a `*_equil_simulation_settings` object controlling an initial MD simulation used to determine the restraint atoms in the complex and to seed both legs production simulations.\n" |
| 424 | + "In addition, each leg has a `*_equil_simulation_settings` object controlling an initial MD simulation used to determine the restraint atoms in the complex and to seed both legs production simulations.\n", |
| 425 | + "\n", |
| 426 | + "<div alert class=\"alert alert-info\">\n", |
| 427 | + "\n", |
| 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", |
| 429 | + "\n", |
| 430 | + "</div>" |
406 | 431 | ] |
407 | 432 | }, |
408 | 433 | { |
409 | 434 | "cell_type": "code", |
410 | 435 | "execution_count": 8, |
411 | | - "id": "61192c7c", |
412 | | - "metadata": { |
413 | | - "nbsphinx": "hidden" |
414 | | - }, |
| 436 | + "id": "f6c511b6841b4135", |
| 437 | + "metadata": {}, |
415 | 438 | "outputs": [], |
416 | 439 | "source": [ |
417 | 440 | "import warnings\n", |
|
423 | 446 | { |
424 | 447 | "cell_type": "code", |
425 | 448 | "execution_count": 9, |
426 | | - "id": "other-protocol-imports", |
| 449 | + "id": "bb9691bd6e6cec83", |
427 | 450 | "metadata": {}, |
428 | 451 | "outputs": [], |
429 | 452 | "source": [ |
|
0 commit comments