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

Commit

Permalink
Merge pull request #21 from CristianRiccio/master
Browse files Browse the repository at this point in the history
Finished correcting typos from Jupyter notebooks
  • Loading branch information
pajanne committed Dec 5, 2016
2 parents c57a8a7 + 55bf99b commit 84159fb
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions Introduction_to_python_day_2_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -421,21 +421,21 @@
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
Expand Down
12 changes: 6 additions & 6 deletions Introduction_to_python_day_2_session_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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`."
"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`."
]
},
{
Expand Down Expand Up @@ -884,21 +884,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
Expand Down
20 changes: 10 additions & 10 deletions Introduction_to_python_day_2_session_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"\n",
"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",
"\n",
"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."
"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."
]
},
{
Expand Down Expand Up @@ -67,7 +67,7 @@
"\n",
"### Calculate the GC content of a DNA sequence\n",
"\n",
"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."
"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."
]
},
{
Expand All @@ -77,7 +77,7 @@
"## Excercises 2.2.3\n",
"\n",
"### Extract the list of all overlaping sub-sequences\n",
"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."
"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."
]
},
{
Expand Down Expand Up @@ -158,10 +158,10 @@
"source": [
"## Excercises 2.2.4\n",
"### Calculate GC content along the DNA sequence\n",
"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",
"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",
"\n",
"From the two files you wrote, import the methods written at exercices 2.2.2 and 2.2.3.\n",
"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."
"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."
]
},
{
Expand All @@ -176,21 +176,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
Expand Down
18 changes: 9 additions & 9 deletions Introduction_to_python_day_2_session_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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",
"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",
"\n",
"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",
"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",
"\n",
"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",
"\n",
Expand Down Expand Up @@ -730,7 +730,7 @@
" - [The Python Tutorial](https://docs.python.org/3/tutorial/index.html)\n",
" - [Modules](https://docs.python.org/3/tutorial/modules.html)\n",
" - [Brief Tour of the Standard Library: Mathematics](https://docs.python.org/3/tutorial/stdlib.html#mathematics)\n",
" - [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",
" - [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",
" - [Text Sequence Type — `str`](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)\n",
" - [`math` — Mathematical functions](https://docs.python.org/3/library/math.html)\n",
" - [`csv` — CSV File Reading and Writing](https://docs.python.org/3/library/csv.html)\n",
Expand All @@ -748,7 +748,7 @@
"\n",
"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",
"\n",
"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",
"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",
"\n",
"Let's now read our `data/mydata.txt` file using the `csv` module."
]
Expand Down Expand Up @@ -950,21 +950,21 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
Expand Down
12 changes: 6 additions & 6 deletions Introduction_to_python_day_2_session_4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -314,27 +314,27 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Congratulation! You reach the end of day 2! "
"## Congratulation! You reached the end of day 2! "
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 2",
"language": "python",
"name": "python3"
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 84159fb

Please sign in to comment.