|
6 | 6 | "source": [ |
7 | 7 | "<p><font size=\"6\"><b>CASE - Bacterial resistance experiment</b></font></p>\n", |
8 | 8 | "\n", |
9 | | - "> *© 2021, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n", |
| 9 | + "> *© 2022, Joris Van den Bossche and Stijn Van Hoey (<mailto:jorisvandenbossche@gmail.com>, <mailto:stijnvanhoey@gmail.com>). Licensed under [CC BY 4.0 Creative Commons](http://creativecommons.org/licenses/by/4.0/)*\n", |
10 | 10 | "\n", |
11 | 11 | "---" |
12 | 12 | ] |
|
525 | 525 | "- Make sure the `WT(2)` and `MUT(2)` categories are used as respectively `WT` and `MUT` by adjusting them with Pandas first.\n", |
526 | 526 | "- Use the __falcor__ data and the Seaborn package. The 'log10 mutation rate' on the figure corresponds to the `log10 Mc` column.\n", |
527 | 527 | "\n", |
528 | | - "\n", |
529 | 528 | "<details><summary>Hints</summary>\n", |
530 | 529 | "\n", |
531 | 530 | "- To replace values using a mapping (dictionary with the keys the current values and the values the new values), use the Pandas `replace` method.\n", |
532 | 531 | "- This is another example of a `catplot`, using `point`s to represent the data.\n", |
533 | 532 | "- The `join` argument defines if individual points need to be connected or not.\n", |
534 | | - "- One combination appears multiple times, so make sure to not yet use confidence intervals by setting `ci` to `Null`.\n", |
535 | | - "\n", |
| 533 | + "- Seaborn provides the `row_order` and `order` options to provide a custom order of respectively the subplots and categories.\n", |
| 534 | + "- One combination appears multiple times, so make sure to not yet use confidence intervals by setting `errorbar` to `None`.\n", |
536 | 535 | "</details>" |
537 | 536 | ] |
538 | 537 | }, |
|
568 | 567 | " x='Bacterial_genotype',\n", |
569 | 568 | " y='log10 Mc',\n", |
570 | 569 | " row=\"Phage\",\n", |
571 | | - " join=False, ci=None,\n", |
| 570 | + " join=False, \n", |
| 571 | + " errorbar=None,\n", |
| 572 | + " row_order=[\"Lambda\", \"T4\", \"T7\"],\n", |
| 573 | + " order=['WT', 'MUT', 'D87G', 'S83L', 'D516G', 'S512F', 'K43N', 'K88R', 'RSF1010', 'RP4'],\n", |
572 | 574 | " aspect=3, height=3,\n", |
573 | 575 | " color=\"black\")" |
574 | 576 | ] |
|
679 | 681 | "name": "python", |
680 | 682 | "nbconvert_exporter": "python", |
681 | 683 | "pygments_lexer": "ipython3", |
682 | | - "version": "3.10.2" |
| 684 | + "version": "3.10.4" |
683 | 685 | }, |
684 | 686 | "widgets": { |
685 | 687 | "application/vnd.jupyter.widget-state+json": { |
|
0 commit comments