Size of SARS-Cov2 virions

© 2021 Tom Röschinger. This work is licensed under a Creative Commons Attribution License CC-BY 4.0. All code contained herein is licensed under an MIT license

This notebook is heavily inspired by this lesson by Justin Bois.


In this notebook we will take a look at images obtained with electron microscopy of SARS-Cov2 virions outside a cell. This images were sent to us by Elizabeth Fischer. We will try to identify the virion particles in the image and then obtain their diameter.

Image analysis is far from trivial, and often there are many different ways one can take to come to a conclusion, and rarely there is one optimal way. So here we explore two different ways of identifying virions, but there are many more ways to get equivalent or even better results.

Load images

Here we define the path to the location where the images are stored. Change this accordingly. We use skimage to read the image.

Here we can see that this image is simply a two dimensional array of integers. From this matrix of integers we are going to identify virions and determine their size.

We write a short function to plot images, since we will be doing this task quite a lot.