This is the course material of the "First Steps with Python in Life Science" three-day course of SIB-training
The course is addressed to beginners wanting to become familiar with the Python syntax, environment, and the most common commands.
This course material provides an introduction to python and jupyter notebooks, a web based notebook system for creating and sharing computational documents in an interactive manner.
Please ensure you have installed all the required software as indicated in the environment setup section before the start of the course.
- Course material: the easiest way to get the course material is to
download the
.zip
file of the latest release that is available by clicking on this link. - Google doc: can be used to ask questions (especially for courses taught online) or otherwise provide a mean of communication between participants and trainers (e.g. to share code snippets).
The course revolves around a series of jupyter notebooks that take you on your first steps in you python journey.
Each jupyter notebook interleaves theory, code examples and exercises. We heartily recommend you execute and play around with these bits of code as you follow along: in programming, perhaps more than anywhere else, practice makes perfect.
Additionally, each notebook is associated with a number of exercises (generally in a separate notebook). Corrections are provided for all exercises.
If you are attending this course with a teacher (or if you are just curious), you can take a look at our schedule.
In short, lessons 0 to 4 deal with general aspect of the python language, while notebooks 5 to 8 present some of the most common modules used in data analysis and/or life sciences.
The notebooks/
directory contains each lesson:
- 00_jupyter_setup
- 01_python_basics
- 02_python_structures
- 03_reading_writing_files
- 04_modules
- 05_module_pandas: handle tabular data data-frames with pandas
- 06_module_matplotlib: create nice graphics and plots with matplotlib
- 07_module_biopython : do all kind of bioinformatics with [biopython]](https://biopython.org/)
- 08_module_numpy_and_scipy: fast numerical computations with numpy + a bit of statistics with scipy.stats.
Exercise notebooks:
- 01_python_basics_exercises
- 02_python_structures_exercises
- 03_reading_writing_files_exercises
- 04_modules_exercises
- 05_module_pandas_exercises
- 06_module_matplotlib_exercises
- 07_module_biopython_exercises
Data and solutions:
- The data used in the practicals can be found in the
notebooks/data
directory. - Solutions can be found in the
notebooks/solutions/
directory, but can also be loaded directly from the exercise notebooks.
If you use/reuse this material, please cite as:
Robin Engler, Wandrille Duchemin, & Topalov, O. (2023, September 25). Course material First steps with Python in Life Sciences. Zenodo. https://doi.org/10.5281/zenodo.8376825