|
281 | 281 | "metadata": {}, |
282 | 282 | "source": [ |
283 | 283 | "### Methods to extract and manipulate the ABFE results\n", |
284 | | - "The next four methods allow you to extract ABFE results (extract_results_dict) and then manipulate them to get different types of results.\n", |
| 284 | + "The next three methods allow you to extract ABFE results (extract_results_dict) and then manipulate them to get different types of results.\n", |
285 | 285 | "\n", |
286 | 286 | "These include:\n", |
287 | 287 | "\n", |
|
404 | 404 | " return df" |
405 | 405 | ] |
406 | 406 | }, |
407 | | - { |
408 | | - "cell_type": "code", |
409 | | - "execution_count": 11, |
410 | | - "id": "5e026eaf-2a95-4d4a-873d-b0d6e8d622c8", |
411 | | - "metadata": {}, |
412 | | - "outputs": [], |
413 | | - "source": [ |
414 | | - "def _generate_raw(legs:dict) -> None:\n", |
415 | | - " \"\"\"\n", |
416 | | - " Write out all legs found and their DG values, or indicate that they have failed.\n", |
417 | | - "\n", |
418 | | - " Parameters\n", |
419 | | - " ----------\n", |
420 | | - " legs : dict\n", |
421 | | - " Dict of legs to write out.\n", |
422 | | - " \"\"\"\n", |
423 | | - " data = []\n", |
424 | | - " for lig, results in sorted(legs.items()):\n", |
425 | | - " for simtype, repeats in sorted(results.items()):\n", |
426 | | - " if simtype != 'overall':\n", |
427 | | - " for repeat in repeats:\n", |
428 | | - " m, u = format_estimate_uncertainty(repeat[0].m, repeat[1].m, unc_prec=2)\n", |
429 | | - " data.append((simtype, lig, m, u))\n", |
430 | | - "\n", |
431 | | - " df = pd.DataFrame(\n", |
432 | | - " data,\n", |
433 | | - " columns=[\n", |
434 | | - " \"leg\",\n", |
435 | | - " \"ligand_i\",\n", |
436 | | - " \"DG(i->j) (kcal/mol)\",\n", |
437 | | - " \"uncertainty (kcal/mol)\",\n", |
438 | | - " ],\n", |
439 | | - " )\n", |
440 | | - " return df" |
441 | | - ] |
442 | | - }, |
443 | 407 | { |
444 | 408 | "cell_type": "markdown", |
445 | 409 | "id": "98a84e37-91c3-4f78-8a68-a54f8835f7d2", |
|
0 commit comments