Skip to content

Commit 980188e

Browse files
committed
Adjusted for editing on ACC computer
Tried to define dependencies for an env, called moda_env. The dabest version is outdated. Checked that the code worked with the listed environment.yml dependencies list. Added UNIX to the suggested reading.
1 parent 66c5690 commit 980188e

File tree

8 files changed

+3076
-3018
lines changed

8 files changed

+3076
-3018
lines changed

environment.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: moda_env
2+
channels:
3+
- defaults
4+
dependencies:
5+
- python=3.10
6+
- pip
7+
- pip:
8+
- fastcore
9+
- pandas>=1.5.0,<2.0.0
10+
- numpy>=1.22.3,<1.23.0
11+
- matplotlib~=3.5.1 # Adjusted to match dabest's requirement
12+
- seaborn==0.11.2 # Pin seaborn to a version compatible with dabest
13+
- scipy>=1.9.3,<2.0.0
14+
- dabest>=2023.2.14,<2024.0.0
15+
- scikit-learn
16+
- statsmodels
17+
- palmerpenguins
18+
- jupyter

nbs/01_Introduction.ipynb

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,34 @@
2929
"session, we offer a basic orientation on these topics."
3030
]
3131
},
32+
{
33+
"cell_type": "code",
34+
"execution_count": 7,
35+
"id": "19964860-2836-43b1-963e-063dfe336287",
36+
"metadata": {},
37+
"outputs": [
38+
{
39+
"data": {
40+
"text/html": [
41+
"<iframe width=\"600\" height=\"400\"\n",
42+
"src=\"https://www.youtube.com/embed/kgicuytCkoY\">\n",
43+
"</iframe>\n"
44+
],
45+
"text/plain": [
46+
"<IPython.core.display.HTML object>"
47+
]
48+
},
49+
"metadata": {},
50+
"output_type": "display_data"
51+
}
52+
],
53+
"source": [
54+
"%%HTML\n",
55+
"<iframe width=\"600\" height=\"400\"\n",
56+
"src=\"https://www.youtube.com/embed/kgicuytCkoY\">\n",
57+
"</iframe>"
58+
]
59+
},
3260
{
3361
"cell_type": "markdown",
3462
"id": "b4903f41-5aff-4df6-a0cc-afc821d8869a",
@@ -119,9 +147,21 @@
119147
],
120148
"metadata": {
121149
"kernelspec": {
122-
"display_name": "python3",
150+
"display_name": "Python 3 (ipykernel)",
123151
"language": "python",
124152
"name": "python3"
153+
},
154+
"language_info": {
155+
"codemirror_mode": {
156+
"name": "ipython",
157+
"version": 3
158+
},
159+
"file_extension": ".py",
160+
"mimetype": "text/x-python",
161+
"name": "python",
162+
"nbconvert_exporter": "python",
163+
"pygments_lexer": "ipython3",
164+
"version": "3.10.16"
125165
}
126166
},
127167
"nbformat": 4,

nbs/03_Data_Analysis_with_Jupyter_and_Python.ipynb

Lines changed: 88 additions & 84 deletions
Large diffs are not rendered by default.

nbs/05_Additional_resources.ipynb

Lines changed: 39 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,20 @@
1919
"id": "4dc195ef",
2020
"metadata": {},
2121
"source": [
22-
"## Additional resources and building your skills\n",
22+
"## Key resources: A self-guided course in data science\n",
2323
"\n",
24-
"Try using the [estimationstats.com](https://www.estimationstats.com/#/) web app to analyze your own grouped data.\n",
25-
"\n",
26-
"Open and have a look at the sample multivariate\n",
27-
"[data](https://docs.google.com/spreadsheets/d/1F0c5I_S9_NnLKPMQxJkEfzGfhzQeR26SgkiHSTFwKDE/edit?usp=sharing).\n",
28-
"Go through the [introductory\n",
29-
"notebook](https://drive.google.com/file/d/1m_l4k5ZaUc03hpvcfBd_Riy2nXYDpFXg/view?usp=sharing)\n",
30-
"that demonstrates data analysis.\n",
24+
"- Coding: There are many online resources to learn coding. Published\n",
25+
" in 2021, [A Data-Centric Introduction to\n",
26+
" Computing](https://dcic-world.org/) uses a Python-like teaching\n",
27+
" language ([Pyret](https://www.pyret.org/)) to introduce key concepts\n",
28+
" in computer science.\n",
3129
"\n",
32-
"We recommend the following texts to strengthen your data-analysis and\n",
33-
"presentation skills. They can be dipped into over the coming months or\n",
34-
"years, and used as references. Being familiar with some or all of this\n",
35-
"material will help you write your first-author paper/s and doctoral\n",
36-
"thesis.\n",
30+
"- The command-line interface: You will want to learn the command line interface, we recommend [The basics of working on the UNIX command line](https://computing.stat.berkeley.edu/tutorial-unix-basics/index.html) to start. Continue with the [Bash shell tutorial](https://computing.stat.berkeley.edu/tutorial-using-bash/index#1-this-tutorial).\n",
3731
"\n",
38-
"### *Key resources*\n",
32+
"- A text on data visualization: Claus Wilke’s free online\n",
33+
" [book](https://clauswilke.com/dataviz/index.html) is a great\n",
34+
" introduction to data visualization, and a style guide. It is written\n",
35+
" in R, which is the best language for statistics.\n",
3936
"\n",
4037
"- Estimation: Our\n",
4138
" [estimationstats.com](https://www.estimationstats.com/#/background)\n",
@@ -45,20 +42,23 @@
4542
" and [effect\n",
4643
" sizes](https://www.estimationstats.com/#/about-effect-sizes).\n",
4744
"\n",
48-
"- Datavis: Claus Wilke’s free online\n",
49-
" [book](https://clauswilke.com/dataviz/index.html) is a great\n",
50-
" introduction to data visualization, and a style guide. It is written\n",
51-
" in R, which is the best language for statistics.\n",
45+
"### Additional resources\n",
5246
"\n",
53-
"- Coding: There are many online resources to learn coding. Published\n",
54-
" in 2021, [A Data-Centric Introduction to\n",
55-
" Computing](https://dcic-world.org/) uses a Python-like teaching\n",
56-
" language ([Pyret](https://www.pyret.org/)) to introduce key concepts\n",
57-
" in computer science.\n",
47+
"Try using the [estimationstats.com](https://www.estimationstats.com/#/) web app to analyze your own grouped data.\n",
48+
"\n",
49+
"Open and have a look at the sample multivariate\n",
50+
"[data](https://docs.google.com/spreadsheets/d/1F0c5I_S9_NnLKPMQxJkEfzGfhzQeR26SgkiHSTFwKDE/edit?usp=sharing).\n",
51+
"Go through the [introductory\n",
52+
"notebook](https://drive.google.com/file/d/1m_l4k5ZaUc03hpvcfBd_Riy2nXYDpFXg/view?usp=sharing)\n",
53+
"that demonstrates data analysis.\n",
5854
"\n",
59-
"### *Additional resources*\n",
55+
"We recommend the following texts to strengthen your data-analysis and\n",
56+
"presentation skills. They can be dipped into over the coming months or\n",
57+
"years, and used as references. Being familiar with some or all of this\n",
58+
"material will help you write your first-author paper/s and doctoral\n",
59+
"thesis.\n",
6060
"\n",
61-
"#### *Some are free, some you will need to buy or borrow from the library.*\n",
61+
"#### Further reading: Some are free, some you will need to buy or borrow from the library.\n",
6262
"\n",
6363
"- Estimation: If you want to learn about estimation statistics in\n",
6464
" greater depth, there is Calin-Jageman and Cumming’s\n",
@@ -117,45 +117,29 @@
117117
{
118118
"cell_type": "code",
119119
"execution_count": null,
120-
"id": "acd30338-0dd6-4949-87cf-57d0844c239f",
121-
"metadata": {},
122-
"outputs": [
123-
{
124-
"data": {
125-
"text/html": [
126-
"<iframe width=\"600\" height=\"400\"\n",
127-
"src=\"https://www.youtube.com/embed/kgicuytCkoY\">\n",
128-
"</iframe>\n"
129-
],
130-
"text/plain": [
131-
"<IPython.core.display.HTML object>"
132-
]
133-
},
134-
"metadata": {},
135-
"output_type": "display_data"
136-
}
137-
],
138-
"source": [
139-
"%%HTML\n",
140-
"<iframe width=\"600\" height=\"400\"\n",
141-
"src=\"https://www.youtube.com/embed/kgicuytCkoY\">\n",
142-
"</iframe>"
143-
]
144-
},
145-
{
146-
"cell_type": "code",
147-
"execution_count": null,
148-
"id": "cef28733",
120+
"id": "aa3d047d-9cda-4120-a959-f141ed0b80f7",
149121
"metadata": {},
150122
"outputs": [],
151123
"source": []
152124
}
153125
],
154126
"metadata": {
155127
"kernelspec": {
156-
"display_name": "python3",
128+
"display_name": "Python 3 (ipykernel)",
157129
"language": "python",
158130
"name": "python3"
131+
},
132+
"language_info": {
133+
"codemirror_mode": {
134+
"name": "ipython",
135+
"version": 3
136+
},
137+
"file_extension": ".py",
138+
"mimetype": "text/x-python",
139+
"name": "python",
140+
"nbconvert_exporter": "python",
141+
"pygments_lexer": "ipython3",
142+
"version": "3.10.16"
159143
}
160144
},
161145
"nbformat": 4,

nbs/index.ipynb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"source": [
2929
"**This material is used in Duke-NUS Medical School classes:**\n",
3030
"* GMS6812: Foundations of Precision Medicine hands-on workshops for the PhD programme in Clinical and Translational Sciences.\n",
31-
"* IBM Ethics and Personal and Professional Development Session"
31+
"* Duke-NUS PhD programme in Integrated Biology and Medicine. Ethics and Personal and Professional Development Sessions"
3232
]
3333
},
3434
{
@@ -43,7 +43,7 @@
4343
"\n",
4444
"If we have more time in class, you will also be introduced to our estimation statistics package [DABEST Introduction](dabest_introduction.html).\n",
4545
"\n",
46-
"If you have any questions about these materials, please contact `xusangyu at gmail.com`\n"
46+
"If you have any questions about these materials, please contact your course coordinator.\n"
4747
]
4848
},
4949
{
@@ -54,9 +54,21 @@
5454
],
5555
"metadata": {
5656
"kernelspec": {
57-
"display_name": "python3",
57+
"display_name": "Python 3 (ipykernel)",
5858
"language": "python",
5959
"name": "python3"
60+
},
61+
"language_info": {
62+
"codemirror_mode": {
63+
"name": "ipython",
64+
"version": 3
65+
},
66+
"file_extension": ".py",
67+
"mimetype": "text/x-python",
68+
"name": "python",
69+
"nbconvert_exporter": "python",
70+
"pygments_lexer": "ipython3",
71+
"version": "3.10.16"
6072
}
6173
},
6274
"nbformat": 4,

nbs/myplot.png

-24.1 KB
Loading

0 commit comments

Comments
 (0)