Skip to content

Commit 7ec6636

Browse files
committed
Update for MSc course
1 parent 04c076d commit 7ec6636

File tree

9 files changed

+515
-1064
lines changed

9 files changed

+515
-1064
lines changed

Files/humchrx.txt

Lines changed: 32 additions & 23 deletions
Large diffs are not rendered by default.

Intro-to-Python/00.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@
108108
"* [01](Intro-to-Python/01.ipynb) Basic data types and operations (numbers, strings) \n",
109109
"\n",
110110
"### Session 2\n",
111-
"* [02](Intro-to-Python/02.ipynb) String manipulation \n",
111+
"* [02](02.ipynb) String manipulation \n",
112112
"* [03](Intro-to-Python/03.ipynb) Data structures: Lists and Tuples\n",
113113
"* [04](Intro-to-Python/04.ipynb) Data structures (continued): dictionaries\n",
114114
"\n",
115115
"### Session 3\n",
116116
"* [05](Intro-to-Python/05.ipynb) Control statements: if, for, while, try statements\n",
117117
"* [06](Intro-to-Python/06.ipynb) Functions\n",
118-
"* [07](Intro-to-Python/07.ipynb) Scripting with python\n",
118+
"* [07](Intro-to-Python/07.ipynb) Files, Scripting and Modules\n",
119119
"* [08](Intro-to-Python/08.ipynb) Data Analysis and plotting with Pandas\n",
120120
"* [09](Intro-to-Python/09.ipynb) Reproducible Bioinformatics Research\n",
121121
"\n",
@@ -171,7 +171,7 @@
171171
"name": "python",
172172
"nbconvert_exporter": "python",
173173
"pygments_lexer": "ipython3",
174-
"version": "3.6.5"
174+
"version": "3.6.4"
175175
}
176176
},
177177
"nbformat": 4,

Intro-to-Python/01.ipynb

Lines changed: 115 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,17 @@
179179
"execution_count": 7,
180180
"metadata": {},
181181
"outputs": [
182+
{
183+
"name": "stdout",
184+
"output_type": "stream",
185+
"text": [
186+
"What is your name?\n"
187+
]
188+
},
182189
{
183190
"data": {
184191
"text/plain": [
185-
"'Caleb'"
192+
"''"
186193
]
187194
},
188195
"execution_count": 7,
@@ -210,7 +217,8 @@
210217
"name": "stdout",
211218
"output_type": "stream",
212219
"text": [
213-
"ACGTATAGCA\n"
220+
"Please Enter a DNA sequence: \n",
221+
"\n"
214222
]
215223
}
216224
],
@@ -227,7 +235,8 @@
227235
"name": "stdout",
228236
"output_type": "stream",
229237
"text": [
230-
"wxtylkas\n"
238+
"Please Enter aa sequence: \n",
239+
"\n"
231240
]
232241
}
233242
],
@@ -263,7 +272,7 @@
263272
"Welcome to Python 3.6's help utility!\n",
264273
"\n",
265274
"If this is your first time using Python, you should definitely check out\n",
266-
"the tutorial on the Internet at https://docs.python.org/3.6/tutorial/.\n",
275+
"the tutorial on the Internet at http://docs.python.org/3.6/tutorial/.\n",
267276
"\n",
268277
"Enter the name of any module, keyword, or topic to get help on writing\n",
269278
"Python programs and using Python modules. To quit this help utility and\n",
@@ -274,18 +283,7 @@
274283
"with a one-line summary of what it does; to list the modules whose name\n",
275284
"or summary contain a given string such as \"spam\", type \"modules spam\".\n",
276285
"\n",
277-
"Help on built-in function print in module builtins:\n",
278-
"\n",
279-
"print(...)\n",
280-
" print(value, ..., sep=' ', end='\\n', file=sys.stdout, flush=False)\n",
281-
" \n",
282-
" Prints the values to a stream, or to sys.stdout by default.\n",
283-
" Optional keyword arguments:\n",
284-
" file: a file-like object (stream); defaults to the current sys.stdout.\n",
285-
" sep: string inserted between values, default a space.\n",
286-
" end: string appended after the last value, default a newline.\n",
287-
" flush: whether to forcibly flush the stream.\n",
288-
"\n",
286+
"help> \n",
289287
"\n",
290288
"You are now leaving help and returning to the Python interpreter.\n",
291289
"If you want to ask for help on a particular object directly from the\n",
@@ -310,10 +308,17 @@
310308
"execution_count": 11,
311309
"metadata": {},
312310
"outputs": [
311+
{
312+
"name": "stdout",
313+
"output_type": "stream",
314+
"text": [
315+
"Enter your name: \n"
316+
]
317+
},
313318
{
314319
"data": {
315320
"text/plain": [
316-
"'Caleb'"
321+
"''"
317322
]
318323
},
319324
"execution_count": 11,
@@ -957,19 +962,41 @@
957962
},
958963
{
959964
"cell_type": "code",
960-
"execution_count": null,
965+
"execution_count": 35,
961966
"metadata": {},
962-
"outputs": [],
967+
"outputs": [
968+
{
969+
"data": {
970+
"text/plain": [
971+
"True"
972+
]
973+
},
974+
"execution_count": 35,
975+
"metadata": {},
976+
"output_type": "execute_result"
977+
}
978+
],
963979
"source": [
964980
"z = 2\n",
965981
"z == 2"
966982
]
967983
},
968984
{
969985
"cell_type": "code",
970-
"execution_count": null,
986+
"execution_count": 36,
971987
"metadata": {},
972-
"outputs": [],
988+
"outputs": [
989+
{
990+
"data": {
991+
"text/plain": [
992+
"False"
993+
]
994+
},
995+
"execution_count": 36,
996+
"metadata": {},
997+
"output_type": "execute_result"
998+
}
999+
],
9731000
"source": [
9741001
"z > 2"
9751002
]
@@ -983,9 +1010,20 @@
9831010
},
9841011
{
9851012
"cell_type": "code",
986-
"execution_count": null,
1013+
"execution_count": 37,
9871014
"metadata": {},
988-
"outputs": [],
1015+
"outputs": [
1016+
{
1017+
"data": {
1018+
"text/plain": [
1019+
"False"
1020+
]
1021+
},
1022+
"execution_count": 37,
1023+
"metadata": {},
1024+
"output_type": "execute_result"
1025+
}
1026+
],
9891027
"source": [
9901028
"0.5 < z <= 1"
9911029
]
@@ -1003,7 +1041,7 @@
10031041
},
10041042
{
10051043
"cell_type": "code",
1006-
"execution_count": null,
1044+
"execution_count": 38,
10071045
"metadata": {},
10081046
"outputs": [],
10091047
"source": [
@@ -1012,9 +1050,20 @@
10121050
},
10131051
{
10141052
"cell_type": "code",
1015-
"execution_count": null,
1053+
"execution_count": 39,
10161054
"metadata": {},
1017-
"outputs": [],
1055+
"outputs": [
1056+
{
1057+
"data": {
1058+
"text/plain": [
1059+
"True"
1060+
]
1061+
},
1062+
"execution_count": 39,
1063+
"metadata": {},
1064+
"output_type": "execute_result"
1065+
}
1066+
],
10181067
"source": [
10191068
"# we can check if a given motif is in sequence\n",
10201069
"\n",
@@ -1023,9 +1072,20 @@
10231072
},
10241073
{
10251074
"cell_type": "code",
1026-
"execution_count": null,
1075+
"execution_count": 40,
10271076
"metadata": {},
1028-
"outputs": [],
1077+
"outputs": [
1078+
{
1079+
"data": {
1080+
"text/plain": [
1081+
"True"
1082+
]
1083+
},
1084+
"execution_count": 40,
1085+
"metadata": {},
1086+
"output_type": "execute_result"
1087+
}
1088+
],
10291089
"source": [
10301090
"# We can also check if a given motif is absent\n",
10311091
"\n",
@@ -1034,9 +1094,20 @@
10341094
},
10351095
{
10361096
"cell_type": "code",
1037-
"execution_count": null,
1097+
"execution_count": 41,
10381098
"metadata": {},
1039-
"outputs": [],
1099+
"outputs": [
1100+
{
1101+
"data": {
1102+
"text/plain": [
1103+
"'ATTAAGGCTGTT'"
1104+
]
1105+
},
1106+
"execution_count": 41,
1107+
"metadata": {},
1108+
"output_type": "execute_result"
1109+
}
1110+
],
10401111
"source": [
10411112
"#we can concatentate two strings\n",
10421113
"\n",
@@ -1045,9 +1116,20 @@
10451116
},
10461117
{
10471118
"cell_type": "code",
1048-
"execution_count": null,
1119+
"execution_count": 42,
10491120
"metadata": {},
1050-
"outputs": [],
1121+
"outputs": [
1122+
{
1123+
"data": {
1124+
"text/plain": [
1125+
"'GGCTGTTGGCTGTTGGCTGTTGGCTGTT'"
1126+
]
1127+
},
1128+
"execution_count": 42,
1129+
"metadata": {},
1130+
"output_type": "execute_result"
1131+
}
1132+
],
10511133
"source": [
10521134
"# Create a long string from a substring by multiplying with an integer\n",
10531135
"'GGCTGTT' * 4"
@@ -1059,20 +1141,6 @@
10591141
"source": [
10601142
"We'll continue with string formatting in the next lecture. "
10611143
]
1062-
},
1063-
{
1064-
"cell_type": "code",
1065-
"execution_count": null,
1066-
"metadata": {},
1067-
"outputs": [],
1068-
"source": []
1069-
},
1070-
{
1071-
"cell_type": "code",
1072-
"execution_count": null,
1073-
"metadata": {},
1074-
"outputs": [],
1075-
"source": []
10761144
}
10771145
],
10781146
"metadata": {
@@ -1091,7 +1159,7 @@
10911159
"name": "python",
10921160
"nbconvert_exporter": "python",
10931161
"pygments_lexer": "ipython3",
1094-
"version": "3.6.5"
1162+
"version": "3.6.4"
10951163
}
10961164
},
10971165
"nbformat": 4,

Intro-to-Python/02.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@
10601060
"name": "python",
10611061
"nbconvert_exporter": "python",
10621062
"pygments_lexer": "ipython3",
1063-
"version": "3.6.5"
1063+
"version": "3.6.4"
10641064
}
10651065
},
10661066
"nbformat": 4,

0 commit comments

Comments
 (0)