Skip to content
This repository was archived by the owner on Jun 25, 2018. It is now read-only.

Commit 84159fb

Browse files
authored
Merge pull request #21 from CristianRiccio/master
Finished correcting typos from Jupyter notebooks
2 parents c57a8a7 + 55bf99b commit 84159fb

5 files changed

+36
-36
lines changed

Introduction_to_python_day_2_introduction.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,21 +421,21 @@
421421
"metadata": {
422422
"celltoolbar": "Slideshow",
423423
"kernelspec": {
424-
"display_name": "Python 3",
424+
"display_name": "Python 2",
425425
"language": "python",
426-
"name": "python3"
426+
"name": "python2"
427427
},
428428
"language_info": {
429429
"codemirror_mode": {
430430
"name": "ipython",
431-
"version": 3
431+
"version": 2
432432
},
433433
"file_extension": ".py",
434434
"mimetype": "text/x-python",
435435
"name": "python",
436436
"nbconvert_exporter": "python",
437-
"pygments_lexer": "ipython3",
438-
"version": "3.5.2"
437+
"pygments_lexer": "ipython2",
438+
"version": "2.7.12"
439439
}
440440
},
441441
"nbformat": 4,

Introduction_to_python_day_2_session_1.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@
828828
"cell_type": "markdown",
829829
"metadata": {},
830830
"source": [
831-
"If you really want to do this, there is a way round this using the `global` statement. Any variable which is changed or created inside of a function is local, if it hasn't been declared as a global variable. To tell Python, that we want to use the global variable, we have to explicitly state this by using the keyword `global`."
831+
"If you really want to do this, there is a way round this using the `global` statement. Any variable which is changed or created inside of a function is local, if it hasn't been declared as a global variable. To tell Python that we want to use the global variable, we have to explicitly state this by using the keyword `global`."
832832
]
833833
},
834834
{
@@ -884,21 +884,21 @@
884884
],
885885
"metadata": {
886886
"kernelspec": {
887-
"display_name": "Python 3",
887+
"display_name": "Python 2",
888888
"language": "python",
889-
"name": "python3"
889+
"name": "python2"
890890
},
891891
"language_info": {
892892
"codemirror_mode": {
893893
"name": "ipython",
894-
"version": 3
894+
"version": 2
895895
},
896896
"file_extension": ".py",
897897
"mimetype": "text/x-python",
898898
"name": "python",
899899
"nbconvert_exporter": "python",
900-
"pygments_lexer": "ipython3",
901-
"version": "3.5.2"
900+
"pygments_lexer": "ipython2",
901+
"version": "2.7.12"
902902
}
903903
},
904904
"nbformat": 4,

Introduction_to_python_day_2_session_2.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"\n",
3030
"First, loop over the sequence to extract every three basees until the end or until a stop codon either by using a `for` loop or a `while` one. \n",
3131
"\n",
32-
"Then convert the DNA into an RNA sequence, by replacing all T bases by U. Make sure that the codon corresponds to an amino accid. Concert the RNA codon into an amino acid using the dictionary provided and return the protein sequence as a list of amino acids."
32+
"Then convert the DNA into an RNA sequence, by replacing all T bases by U. Make sure that the codon corresponds to an amino accid. Convert the RNA codon into an amino acid using the dictionary provided and return the protein sequence as a list of amino acids."
3333
]
3434
},
3535
{
@@ -67,7 +67,7 @@
6767
"\n",
6868
"### Calculate the GC content of a DNA sequence\n",
6969
"\n",
70-
"Write a function that calculates the GC content of a DNA sequence by re-using the code writen for the [Exercises 1.4.2](Introduction_to_python_day_1_session_4.ipynb#Exercises-1.4.2) yesterday."
70+
"Write a function that calculates the GC content of a DNA sequence by re-using the code written for the [Exercises 1.4.2](Introduction_to_python_day_1_session_4.ipynb#Exercises-1.4.2) yesterday."
7171
]
7272
},
7373
{
@@ -77,7 +77,7 @@
7777
"## Excercises 2.2.3\n",
7878
"\n",
7979
"### Extract the list of all overlaping sub-sequences\n",
80-
"Write a function that extracts a list of overlaping sub-sequences for a given window size from a given sequence. Do not forget to test it on a given DNA sequence."
80+
"Write a function that extracts a list of overlapping sub-sequences for a given window size from a given sequence. Do not forget to test it on a given DNA sequence."
8181
]
8282
},
8383
{
@@ -158,10 +158,10 @@
158158
"source": [
159159
"## Excercises 2.2.4\n",
160160
"### Calculate GC content along the DNA sequence\n",
161-
"Combine the two methods written above to calculates the GC content of each overlapping sliding windows along a DNA sequence from start to end. \n",
161+
"Combine the two methods written above to calculates the GC content of each overlapping sliding window along a DNA sequence from start to end. \n",
162162
"\n",
163163
"From the two files you wrote, import the methods written at exercices 2.2.2 and 2.2.3.\n",
164-
"The new function should take two arguments, the DNA sequence and the size of the sliding window, and re-use the previous methods written to calculate the GC content of a DNA sequence and to extract the list of all overlaping sub-sequences. It returns a list of GC% along the DNA sequence."
164+
"The new function should take two arguments, the DNA sequence and the size of the sliding window, and re-use the previous methods written to calculate the GC content of a DNA sequence and to extract the list of all overlapping sub-sequences. It returns a list of GC% along the DNA sequence."
165165
]
166166
},
167167
{
@@ -176,21 +176,21 @@
176176
],
177177
"metadata": {
178178
"kernelspec": {
179-
"display_name": "Python 3",
179+
"display_name": "Python 2",
180180
"language": "python",
181-
"name": "python3"
181+
"name": "python2"
182182
},
183183
"language_info": {
184184
"codemirror_mode": {
185185
"name": "ipython",
186-
"version": 3
186+
"version": 2
187187
},
188188
"file_extension": ".py",
189189
"mimetype": "text/x-python",
190190
"name": "python",
191191
"nbconvert_exporter": "python",
192-
"pygments_lexer": "ipython3",
193-
"version": "3.5.2"
192+
"pygments_lexer": "ipython2",
193+
"version": "2.7.12"
194194
}
195195
},
196196
"nbformat": 4,

Introduction_to_python_day_2_session_3.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@
197197
"cell_type": "markdown",
198198
"metadata": {},
199199
"source": [
200-
"Note that if this means the entire file will be read into memory, if you are operating on a large file and don't actually need all the data at the same time this is rather inefficient.\n",
200+
"Note that this means the entire file will be read into memory. If you are operating on a large file and don't actually need all the data at the same time this is rather inefficient.\n",
201201
"\n",
202-
"Frequently, we just need to operate on individuals lines of the file, and you can use the `.readline` method to read a line from a file and return it as a python string.\n",
202+
"Frequently, we just need to operate on individual lines of the file, and you can use the `.readline` method to read a line from a file and return it as a python string.\n",
203203
"\n",
204204
"File objects internally keep track of your current location in a file, so to get following lines from the file you can call this method multiple times.\n",
205205
"\n",
@@ -730,7 +730,7 @@
730730
" - [The Python Tutorial](https://docs.python.org/3/tutorial/index.html)\n",
731731
" - [Modules](https://docs.python.org/3/tutorial/modules.html)\n",
732732
" - [Brief Tour of the Standard Library: Mathematics](https://docs.python.org/3/tutorial/stdlib.html#mathematics)\n",
733-
" - [The Python Standard Library Reference](https://docs.python.org/3/library/index.html) is the documentation of all libraries included within Python as well as build-in functions and data types like:\n",
733+
" - [The Python Standard Library Reference](https://docs.python.org/3/library/index.html) is the documentation of all libraries included within Python as well as built-in functions and data types like:\n",
734734
" - [Text Sequence Type — `str`](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)\n",
735735
" - [`math` — Mathematical functions](https://docs.python.org/3/library/math.html)\n",
736736
" - [`csv` — CSV File Reading and Writing](https://docs.python.org/3/library/csv.html)\n",
@@ -748,7 +748,7 @@
748748
"\n",
749749
"The csv module’s `reader()` and `writer()` methods read and write CSV files. You can also read and write data into dictionary form using the `DictReader()` and `DictWriter()` methods.\n",
750750
"\n",
751-
"For more information about this build-in Python library about [CSV File Reading and Writing documentation](https://docs.python.org/3/library/csv.html).\n",
751+
"For more information about this built-in Python library about [CSV File Reading and Writing documentation](https://docs.python.org/3/library/csv.html).\n",
752752
"\n",
753753
"Let's now read our `data/mydata.txt` file using the `csv` module."
754754
]
@@ -950,21 +950,21 @@
950950
],
951951
"metadata": {
952952
"kernelspec": {
953-
"display_name": "Python 3",
953+
"display_name": "Python 2",
954954
"language": "python",
955-
"name": "python3"
955+
"name": "python2"
956956
},
957957
"language_info": {
958958
"codemirror_mode": {
959959
"name": "ipython",
960-
"version": 3
960+
"version": 2
961961
},
962962
"file_extension": ".py",
963963
"mimetype": "text/x-python",
964964
"name": "python",
965965
"nbconvert_exporter": "python",
966-
"pygments_lexer": "ipython3",
967-
"version": "3.5.2"
966+
"pygments_lexer": "ipython2",
967+
"version": "2.7.12"
968968
}
969969
},
970970
"nbformat": 4,

Introduction_to_python_day_2_session_4.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,27 +314,27 @@
314314
"cell_type": "markdown",
315315
"metadata": {},
316316
"source": [
317-
"## Congratulation! You reach the end of day 2! "
317+
"## Congratulation! You reached the end of day 2! "
318318
]
319319
}
320320
],
321321
"metadata": {
322322
"kernelspec": {
323-
"display_name": "Python 3",
323+
"display_name": "Python 2",
324324
"language": "python",
325-
"name": "python3"
325+
"name": "python2"
326326
},
327327
"language_info": {
328328
"codemirror_mode": {
329329
"name": "ipython",
330-
"version": 3
330+
"version": 2
331331
},
332332
"file_extension": ".py",
333333
"mimetype": "text/x-python",
334334
"name": "python",
335335
"nbconvert_exporter": "python",
336-
"pygments_lexer": "ipython3",
337-
"version": "3.5.2"
336+
"pygments_lexer": "ipython2",
337+
"version": "2.7.12"
338338
}
339339
},
340340
"nbformat": 4,

0 commit comments

Comments
 (0)