CELL0014: An Introduction to Maths and Python for Modelling

In CELL0014: Dynamic Biological Systems we will be using techniques from maths, computing and engineering to build models of biological systems.

The Introduction to Maths and Python materials below are provided so that you will quickly be able to work with the Python code needed to model systems. It also includes materials revisiting some useful A-Level Maths skills and concepts. Details of the topics covered can be found here.

If you taking the module in Term 2 (2018-19) you should ensure you schedule some time in Term 1 to study these materials. These should take about 30 hours in total depending on your existing experience.

1 : Getting Started

In this session we will:

  1. Install Anaconda so that you can work with Python on your computer (or check you can find it on the UCL machines)
  2. Work through some Getting Started with Python activities.

Tutorials to work through can be found on the following page:

    Getting Started with Python

2 : (Maths I) Working with Equations and Measurements

The materials for this section can be found here: 

     Folder : Session 2 Maths I 

Work through the materials in the two documents testing your skills by completing the exercises.

For your convenience the exercises and answers for this session are available as separate PDFs. 

1 - Working with Equations Exercises Answers
2 - Working with Measurements Exercises Answers

3 : (Python I) The Fibonnacci Sequence and Seed Patterns

The materials for this session can be found here:

Folder : Session 3 Python I

Work through the material, taking note in particular how to:

 work with lists 

4 : (Maths II) Investigating Functions

The materials for this section can be found here: 

    Folder : Session 4 Maths II 

Please work through the materials in the two documents. Each topic has some exercises (with answers) for you to work though in the separate documents above.

Documents    
1 - Working with Functions and Graphs   Exercises   Answers
2 - Behaviour of Common Functions Exercises Answers

5 : (Python II) A program to read and translate DNA sequences

The materials for this session can be found here:

Folder : Session 5 Python II

This works through a series of Python exercises using the example of reading DNA strings. In reality Python has libraries of functions for loading standardised sequence data, but as we are trying to learn the basics of Python we will do things by scratch. The task has been borrowed from some activities targeted at non-biologists so expect the biology to be somewhat basic!

Work through the materials, taking note in particular how to:

6 : Maths (III) Introduction to Calculus

The materials for this section can be found here: 

    Folder : Session 6 Maths III 

Please work through the materials in the two documents

1 - (More) Function Plotting with Python Code
2 - Introduction to Calculus Exercises Answers

Each topic has some exercises (with answers) for you to work though in the separate documents above.

7 : Python (III) Working with Files

The materials for this session can be found here:

        Folder : Session 7 Python III

The first activity runs through the basics of how to open a file and use it to retrieve or store information.

The second activity builds on our DNA processing code from the previous Python session, and uses the functions we developed to translate DNA on a real DNA sequence loaded from a file, to search for protein candidates.

The resources for the activites are in the subfolder here:

         Resources and Code files 

Work through the materials, taking note in particular how to: 

8 : Python (IV) Working with Objects

The materials for this session can be found here:

        Folder : Session 8 Python IV

The activities work through how to define and work with custom Object types in Python.

Work through the materials, taking note in particular: