Skip to content

Commit f3bf1ce

Browse files
committed
📝 add links to used data for examples (download link on website)
1 parent 91ede5d commit f3bf1ce

File tree

6 files changed

+47
-26
lines changed

6 files changed

+47
-26
lines changed

1_3_seaborn.ipynb

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,18 @@
1010
"- [website](https://seaborn.pydata.org/)"
1111
]
1212
},
13-
{
14-
"cell_type": "markdown",
15-
"metadata": {
16-
"lines_to_next_cell": 2
17-
},
18-
"source": [
19-
"## Recreating the Figure from the sulforaphane Paper"
20-
]
21-
},
2213
{
2314
"cell_type": "markdown",
2415
"metadata": {},
2516
"source": [
17+
"## Recreating the Figure from the sulforaphane Paper\n",
2618
"Uses the data from [PXD04621](data/README.md) - using simulated data which looks\n",
2719
"similar to the original data\n",
2820
"([Marshall et. al. 2023)](https://www.sciencedirect.com/science/article/pii/S1756464623002451)).\n",
29-
"![figure_2](https://ars.els-cdn.com/content/image/1-s2.0-S1756464623002451-gr2.jpg)"
30-
]
31-
},
32-
{
33-
"cell_type": "markdown",
34-
"metadata": {},
35-
"source": [
21+
"- [fake_growth_data.csv](data/growth/fake_growth_data.csv)\n",
22+
"\n",
23+
"![figure_2](https://ars.els-cdn.com/content/image/1-s2.0-S1756464623002451-gr2.jpg)\n",
24+
"\n",
3625
"Take a look at this picture - do you think it is simple or complicated?\n",
3726
"It is not trivial to recreate it in Python - but don't worry, we will guide through all steps and tricks on making an (almost) exact copy of that picture in this notebook (at least from our knowledge). Let's get started."
3827
]
@@ -63,7 +52,6 @@
6352
"import matplotlib as mpl\n",
6453
"import matplotlib.lines as mlines\n",
6554
"import matplotlib.pyplot as plt\n",
66-
"import numpy as np\n",
6755
"import pandas as pd\n",
6856
"import seaborn as sns\n",
6957
"from matplotlib.ticker import MultipleLocator\n",

1_3_seaborn.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@
2020

2121
# %% [markdown]
2222
# ## Recreating the Figure from the sulforaphane Paper
23-
24-
25-
# %% [markdown]
2623
# Uses the data from [PXD04621](data/README.md) - using simulated data which looks
2724
# similar to the original data
2825
# ([Marshall et. al. 2023)](https://www.sciencedirect.com/science/article/pii/S1756464623002451)).
26+
# - [fake_growth_data.csv](data/growth/fake_growth_data.csv)
27+
#
2928
# ![figure_2](https://ars.els-cdn.com/content/image/1-s2.0-S1756464623002451-gr2.jpg)
30-
31-
# %% [markdown]
29+
#
3230
# Take a look at this picture - do you think it is simple or complicated?
3331
# It is not trivial to recreate it in Python - but don't worry, we will guide through all steps and tricks on making an (almost) exact copy of that picture in this notebook (at least from our knowledge). Let's get started.
3432

@@ -45,7 +43,6 @@
4543
import matplotlib as mpl
4644
import matplotlib.lines as mlines
4745
import matplotlib.pyplot as plt
48-
import numpy as np
4946
import pandas as pd
5047
import seaborn as sns
5148
from matplotlib.ticker import MultipleLocator

data/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ to Caroline Jachmann for the great work assembling a peptide atlas with post tra
2525
modifications for ecoli:
2626

2727
- [E. coli peptide atlas with phosphosites](https://www.uniprot.org/proteomes/UP000000625)
28+
29+
## Files used in notebooks
30+
31+
and hosted in the repository of the course.
32+
33+
- [data/proteins/proteins.csv](proteins/proteins.csv)

exercises/CRISPRi/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ Nat Commun 15, 8985 (2024). [https://doi.org/10.1038/s41467-024-53381-4](https:/
99

1010
Direct data link:
1111
[Source data](https://static-content.springer.com/esm/art%3A10.1038%2Fs41467-024-53381-4/MediaObjects/41467_2024_53381_MOESM6_ESM.xlsx)
12+
13+
## Files used in notebooks
14+
15+
- [figure_2a.csv](figure_2a.csv)
16+
- [figure_2b.csv](figure_2b.csv)
17+
- [figure_2c.csv](figure_2c.csv)
18+
- [figure_2d.csv](figure_2d.csv)

exercises/CRISPRi/figure_2.ipynb

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
{
1818
"cell_type": "code",
1919
"execution_count": null,
20-
"metadata": {
21-
"lines_to_next_cell": 2
22-
},
20+
"metadata": {},
2321
"outputs": [],
2422
"source": [
2523
"import os\n",
@@ -41,6 +39,22 @@
4139
"IN_COLAB = \"COLAB_GPU\" in os.environ"
4240
]
4341
},
42+
{
43+
"cell_type": "markdown",
44+
"id": "d848d620",
45+
"metadata": {
46+
"lines_to_next_cell": 2
47+
},
48+
"source": [
49+
"## Setup\n",
50+
"Let's make use of the files\n",
51+
"\n",
52+
"- [figure_2a.csv](figure_2a.csv)\n",
53+
"- [figure_2b.csv](figure_2b.csv)\n",
54+
"- [figure_2c.csv](figure_2c.csv)\n",
55+
"- [figure_2d.csv](figure_2d.csv)"
56+
]
57+
},
4458
{
4559
"cell_type": "code",
4660
"execution_count": null,

exercises/CRISPRi/figure_2.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@
4141

4242
IN_COLAB = "COLAB_GPU" in os.environ
4343

44+
# %% [markdown]
45+
# ## Setup
46+
# Let's make use of the files
47+
#
48+
# - [figure_2a.csv](figure_2a.csv)
49+
# - [figure_2b.csv](figure_2b.csv)
50+
# - [figure_2c.csv](figure_2c.csv)
51+
# - [figure_2d.csv](figure_2d.csv)
52+
4453

4554
# %%
4655
A_DATA_FILE = "figure_2a.csv"

0 commit comments

Comments
 (0)