Allegra Via - allegra.via@uniroma1.it
- Shared notes from 20-11-2018: http://bit.ly/2qUJsNH
- Shared notes from 27-11-2018: http://bit.ly/2DIxXAJ
- Shared notes from 04-11-2018: http://bit.ly//2RDplj6
- Shared notes from 11-12-2018: http://bit.ly/2zUpJCS
- Shared notes from 18-12-2018: http://bit.ly/2GtwDEL
- This repository: https://github.com/allegravia/python-programming-bologna-master
- Python course materials: https://github.com/ELIXIR-IIB-training/python_course
- Python 3 - An Introductory Tutorial (by David Judge): https://rawgit.com/BioinformaticsTraining/Critical-Guides/gh-pages/HTML/Python_Bits.html
- Software Carpentry website: https://software-carpentry.org
- SWC The Unix Shell: http://swcarpentry.github.io/shell-novice/
- SWC Version Control with Git: http://swcarpentry.github.io/git-novice/
- GitHub Hello World guide: https://guides.github.com/activities/hello-world/
- Guide to create a GitHub account: https://lab.github.com
- Exercises from Giuseppe Profiti and Teresa Tavella: https://www.authorea.com/users/25740/articles/293018-python-programming-exercises?access_token=5POxcJpSU06MZ8k437cugQ
- Tue 20th Nov 2018: 10:00-13:00 & 14:00-17:00
- Tue 27th Nov 2018: 10:00-13:00 & 14:00-17:00
- Tue 04th Dec 2018: 10:00-13:00 & 14:00-17:00
- Tue 11th Dec 2018: 10:00-13:00 & 14:00-17:00
- Tue 18th Dec 2018: 10:00-13:00 & 14:00-17:00
By the end of module 2, learners will be able to:
- Write Python scripts
- Implement algorithms in Python
- Introduction to computational thinking (CT)
- Introduction to programming
- Introduction to Linux
Python programming
-
Python shell
-
Variables
-
Importing modules
-
Data types: integers, floating
-
math
-
Python language structure (components of Python)
-
Python programs
- Running a program
- Input & Output
-
Reading and writing files
- Reading input from a file
- Writing to files
-
Commenting your code
-
Data Type: strings
-
Manipulating strings
-
File formats in bioinformatics
-
if conditions
-
for loops
-
while loops
-
Data types: - Lists - Tuples - Dictionaries - Sets
-
Functions
- Built-ins
- Namespaces
- Functions
-
Variables and references
-
More on strings
- String concatenation
- String formatting
-
Debugging
- Exceptions
- Error handling
- try...except
-
Recursion
-
Python Libraries
- Regular expressions
-
Dynamic programming
- Implementation of algorithms
December 11th, 2018
Written exam:
Basic concepts of programming and Python syntax
It is worth up to 6 (out of 30) points of the final mark
If failed, it will be included in the Final Exam
First session in February 2019 (the week between 11 and 15)
Second session in March 2019
Written exam:
- Basic concepts of programming and Python syntax (If failed in the midterm exam) --> 6 points
- Implementation of an algorithm for alignment or HMM in Python --> 14 points
- Scripting --> 10 points