Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.

To open in Jupyter: Binder

To open in Google Colab: Open In Colab

To open in RStudio: Binder

Imaging statistics

This is the repository containing the material for the Imaging statistics course given at Bern University in the frame of the Microscopy Imaging Center trainings. Material has been created by Guillaume Witz (Bern University, MIC-ScITS) and Maciej Dobrzynski (Bern University, Cellular Dynamics Lab).

The course illustrates an image processing pipeline from data download to statistical analysis realized in Python and R. Notebooks can be run interactively either via the mybinder service or via Google Colab using the badges at the top of this Readme.

Image processing

The image processing part of the course is done in Python. The image_processing.ipynb notebook presents a classical thresholding-based segmentation, and also highlights the "data science" aspects of an analysis pipeline like file parsing or extraction and organisation of extracted data into tables.

The advanced_processing.ipynb presents an alternative segmentation strategy and in particular shows how easy it can be to deploy Deep Learning based solutions in Python as done here with the segmentation algorithm cellpose.

Both notebooks can be run on Binder and Google Colab. In particular the second one benefits from using the free GPU from Colab to run cellpose (cellpose might not work properly on Binder because of the limited RAM).

Finally the image_processing.ipynb notebook can also be run as a slide presentation via the RISE package in Jupyter (e.g on binder) or directly in the browser at this link.

Statistical analysis


The presentation on basics statistics can be found as HTML file or R markdown file in this repository. You can also directly access the presentation using this link.


The statistical analysis of the data extracted in the image processing part are visible in multiple files names R_analysis. The R_analysis.Rmd can be executed directly in RStudio by using the appropriate binder badge (top of this document). The R_analysis.ipynb notebook can be run either in Jupyter on Binder or directly in Colab. The possibility to run R on Colab is still experimental and a few bugs or package incompatibilities might remain.

Useful links

  • Using R in Colab is still experimental, so you cannot change the language directly from the notebook. You instead have to create the notebook in R language using this link.
  • You can browse through the course content at this link.


Course on image analysis pipeline including acquisition, processing and statistical analysis with Python and R






No releases published


No packages published