Skip to content

Commit bb835b2

Browse files
Typo correction in submodule 3
1 parent 169b07d commit bb835b2

File tree

4 files changed

+27
-29
lines changed

4 files changed

+27
-29
lines changed

Submodule_3/Submodule_3_Overview.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"id": "71797b6e-6170-4f01-9578-0e16390e75c8",
66
"metadata": {},
77
"source": [
8-
"# Submodule 3 Overview: Python and Object-oriented programming\n",
9-
"---------------------------------------------------------------------------------"
8+
"# Submodule 3 Overview: Python and Object-oriented programming"
109
]
1110
},
1211
{
@@ -57,7 +56,7 @@
5756
"name": "python",
5857
"nbconvert_exporter": "python",
5958
"pygments_lexer": "ipython3",
60-
"version": "3.12.4"
59+
"version": "3.12.9"
6160
}
6261
},
6362
"nbformat": 4,

Submodule_3/Submodule_3_Tutorial_1_OOP.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"id": "81a299a1",
66
"metadata": {},
77
"source": [
8-
"# Submodule 3 Tutorial 1: Object-Oriented Programming in Python\n",
9-
"---------------------------------------------------------------"
8+
"# Submodule 3 Tutorial 1: Object-Oriented Programming in Python"
109
]
1110
},
1211
{
@@ -18,9 +17,9 @@
1817
"Objects in Python (and in Object-Oriented Programming) allow for modular, efficient, and scalable code by organizing data and functions into reusable units. This is especially useful in bioinformatics, where handling large datasets and complex analyses efficiently is critical.\n",
1918
"\n",
2019
"## Learning Outcomes\n",
21-
"*AFter this tutorial, you should be able to:*\n",
22-
"- Define class, object, methods, attributes, inheritance\n",
23-
"- Write or edit these elements of a Python class "
20+
"* After this tutorial, you should be able to:*\n",
21+
" - Define class, object, methods, attributes, inheritance\n",
22+
" - Write or edit these elements of a Python class "
2423
]
2524
},
2625
{
@@ -262,7 +261,7 @@
262261
"id": "4dc69382-963c-4c1f-b55f-5c741989bed2",
263262
"metadata": {},
264263
"source": [
265-
"---------------------------------------------------------------------------------\n",
264+
"\n",
266265
"<div class=\"alert alert-block alert-info\"> After the overview, now we delve deeper into the individual pieces.</a> </div>"
267266
]
268267
},
@@ -387,12 +386,12 @@
387386
"metadata": {},
388387
"source": [
389388
"<div class=\"alert alert-block alert-info\"> <b>Tip:</b> Try these in the above mutation class code block:\n",
390-
"<br>\n",
389+
"\n",
391390
" - make a second mutation object (mut2) \n",
392391
" - querry other pieces of mut1 and mut2 such as the position.\n",
393392
" - see what happens if you do NOT give all expected/required pieces of information. \n",
394393
" - add a new element of the variable (\"disease_associated\")</a> </div>\n",
395-
"<br>\n",
394+
"\n",
396395
"*You should be able to tell that Python is using known classes to deal with the values entered, such as integers or strings*\n"
397396
]
398397
},
@@ -640,15 +639,16 @@
640639
"source": [
641640
"## Conclusion\n",
642641
"\n",
643-
"In this tutorial, you have learned:\n",
644-
"- Some OOP vocabulary\n",
645-
"- Defined a new class\n",
646-
"- Written your own object\n",
642+
"In this tutorial, you have:\n",
643+
"- learned some OOP vocabulary.\n",
644+
"- defined a new class.\n",
645+
"- written your own object.\n",
647646
"\n",
648647
"You may be ready to try some advanced techniques in OOP in [Tutorial 2: OOP2](Submodule_3_Tutorial_2_OOP2.ipynb)\n",
649-
"<br>\n",
648+
"\n",
650649
"OR\n",
651-
"Work with [modules and packages](Submodule_3_Tutorial_3_Modules&Packages.ipynb)"
650+
"\n",
651+
"Work with [modules and packages](Submodule_3_Tutorial_3_Modules&Packages.ipynb)."
652652
]
653653
},
654654
{
@@ -677,7 +677,7 @@
677677
"name": "python",
678678
"nbconvert_exporter": "python",
679679
"pygments_lexer": "ipython3",
680-
"version": "3.12.4"
680+
"version": "3.12.9"
681681
}
682682
},
683683
"nbformat": 4,

Submodule_3/Submodule_3_Tutorial_2_OOP2.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,11 @@
433433
"We will examine two types of **error checking**: in the constructor and in a decorator.\n",
434434
"\n",
435435
"Error checking in the constructor (__init__) ensures that invalid data is caught immediately when an object is created. \n",
436-
"<br>\n",
436+
"\n",
437437
"Let's examine how to validate that the <u>diagnosis</u> is from an allowed list.\n",
438-
"<br>\n",
439-
"You can see that **before** we store the provided diagnosis value in self.diagnosis, we first eliminate issues with capitalization (the interpretation of strings is VERY literal, as you remember, such that diabetes is not Diabetes)\n",
440-
"<br>\n",
438+
"\n",
439+
"You can see that **before** we store the provided diagnosis value in self.diagnosis, we first eliminate issues with capitalization (the interpretation of strings is VERY literal, as you remember, such that diabetes is not Diabetes).\n",
440+
"\n",
441441
"We also check that the provided diagnosis is in our short list of options. **If** it is, then we can store it as self._diagnosis\n"
442442
]
443443
},
@@ -949,7 +949,7 @@
949949
"id": "b58d4914",
950950
"metadata": {},
951951
"source": [
952-
"Because functions are an object like any other variable, Python allows us to pass them just as we would any other varaible.\n",
952+
"Because functions are an object like any other variable, Python allows us to pass them just as we would any other variable.\n",
953953
"- We have already seen functions used as paramters in closures, but it is even simpler than that. You can just create functions and pass them to any other function:"
954954
]
955955
},
@@ -1058,7 +1058,7 @@
10581058
"name": "python",
10591059
"nbconvert_exporter": "python",
10601060
"pygments_lexer": "ipython3",
1061-
"version": "3.10.16"
1061+
"version": "3.12.9"
10621062
}
10631063
},
10641064
"nbformat": 4,

Submodule_3/Submodule_3_Tutorial_3_Project.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
"- Build scripts that load, filter, and summarize real-world datasets.\n",
1919
"\n",
2020
"## Prerequisites\n",
21-
"- Submodule 1\n",
22-
"- Submodule 2 (especially Pandas so you can import the dataset\n",
21+
"- Submodule 1 Tutorials\n",
22+
"- Submodule 2 Tutorials (especially Pandas so you can import the dataset)\n",
2323
"- Submodule 3 Tutorials\n",
2424
"\n",
2525
"## Getting Started\n",
2626
"\n",
2727
"Below, you will find a task prompt that will require you to define a new Class which can handle a dataset. You can attempt the task on your own, or use the guided prompts which are each followed by a \"fill-in-the-blank\" model. You can copy each of those sections, edit them, and use each to build a class then write a script. If you get stuck, the entire solution is in the next tutorial.\n",
28-
"\n",
29-
"-----------------------------------------"
28+
"\n"
3029
]
3130
},
3231
{
@@ -328,7 +327,7 @@
328327
"name": "python",
329328
"nbconvert_exporter": "python",
330329
"pygments_lexer": "ipython3",
331-
"version": "3.12.4"
330+
"version": "3.12.9"
332331
}
333332
},
334333
"nbformat": 4,

0 commit comments

Comments
 (0)