Skip to content

Latest commit

 

History

History
118 lines (88 loc) · 3.13 KB

File metadata and controls

118 lines (88 loc) · 3.13 KB

Programming for Bioinformatics

Module 2: Programming. Python Language

Useful links

Timetable

  • 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

Learning objectives

By the end of module 2, learners will be able to:

  • Write Python scripts
  • Implement algorithms in Python

Programme

  • 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

Exam

Midterm exam

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

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