|
5 | 5 | "id": "81a299a1",
|
6 | 6 | "metadata": {},
|
7 | 7 | "source": [
|
8 |
| - "# Submodule 3 Tutorial 1: Object-Oriented Programming in Python\n", |
9 |
| - "---------------------------------------------------------------" |
| 8 | + "# Submodule 3 Tutorial 1: Object-Oriented Programming in Python" |
10 | 9 | ]
|
11 | 10 | },
|
12 | 11 | {
|
|
18 | 17 | "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",
|
19 | 18 | "\n",
|
20 | 19 | "## 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 " |
24 | 23 | ]
|
25 | 24 | },
|
26 | 25 | {
|
|
262 | 261 | "id": "4dc69382-963c-4c1f-b55f-5c741989bed2",
|
263 | 262 | "metadata": {},
|
264 | 263 | "source": [
|
265 |
| - "---------------------------------------------------------------------------------\n", |
| 264 | + "\n", |
266 | 265 | "<div class=\"alert alert-block alert-info\"> After the overview, now we delve deeper into the individual pieces.</a> </div>"
|
267 | 266 | ]
|
268 | 267 | },
|
|
387 | 386 | "metadata": {},
|
388 | 387 | "source": [
|
389 | 388 | "<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", |
391 | 390 | " - make a second mutation object (mut2) \n",
|
392 | 391 | " - querry other pieces of mut1 and mut2 such as the position.\n",
|
393 | 392 | " - see what happens if you do NOT give all expected/required pieces of information. \n",
|
394 | 393 | " - add a new element of the variable (\"disease_associated\")</a> </div>\n",
|
395 |
| - "<br>\n", |
| 394 | + "\n", |
396 | 395 | "*You should be able to tell that Python is using known classes to deal with the values entered, such as integers or strings*\n"
|
397 | 396 | ]
|
398 | 397 | },
|
|
640 | 639 | "source": [
|
641 | 640 | "## Conclusion\n",
|
642 | 641 | "\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", |
647 | 646 | "\n",
|
648 | 647 | "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", |
650 | 649 | "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)." |
652 | 652 | ]
|
653 | 653 | },
|
654 | 654 | {
|
|
677 | 677 | "name": "python",
|
678 | 678 | "nbconvert_exporter": "python",
|
679 | 679 | "pygments_lexer": "ipython3",
|
680 |
| - "version": "3.12.4" |
| 680 | + "version": "3.12.9" |
681 | 681 | }
|
682 | 682 | },
|
683 | 683 | "nbformat": 4,
|
|
0 commit comments