This course material is part of the "First Steps with Python in Life Science" three-day course of SIB-training and 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.
You can find tips and instructions to ensure you have installed all the required software before starting the course.
The course revolves around a sery of jupyter notebooks which take you on your first steps in you python journey.
Each jupyter notebook interleaves theory and examples of codes. We heartily recommend you execute and play around with these bits of code as you follow along : in programming, perhaps even more than anywhere else, practice makes perfect.
Additionally, each notebook is associated with a number of exercises (often in a separate notebook) of varying difficulty, with associated corrections.
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 00 to 04 deals with generalistic aspect of the python language, while notebooks 05 or 08 present some of the most common modules used in data analysis and/or life sciences.
The notebooks/
folder 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
The data used in the practicals can be found in the data notebooks/data
folder, and
solutions codes can be found in the notebooks/solutions/
folder (NB: micro-exercises do not have a correction).
If you use/reuse this material, please cite as:
Wandrille Duchemin, Robin Engler, Orlin Topalov, & Sina Majidian. (2022, October 12). Course material First steps with Python in Life Sciences. Zenodo. https://doi.org/10.5281/zenodo.7188453