Instructions for installing python and the single-cell data analysis kit scanpy to your laptop (local installation)

Step 1 - install miniforge3

We will first install miniforge which is itself an installer for mamba which is an installer for python packages (kind of like a kinase kinase kinase).

To verify miniforge is installed correctly:

Step 2 - create an environment for your data analysis

The package installers mamba and conda allow you to create separate analysis environments into which you can install required software for data analysis. The advantage of this approach is that different projects, which might require different versions of the same software package, are kept separate and cannot interfere negatively with one another. Here, we use mamba for package installation, because it is faster.

Not all packages are available via conda/mamba, so sometimes we need to use the more general python package manager pip. Here, we use it to install decoupler, which comes with many useful functions for single cell analysis, and PyDESeq2 for differential expression testing. Please run the following commands inside your scrnaseq environment:

pip install decoupler
pip install pydeseq2

Step 3 - open a jupyter notebook and start coding

We will use jupyter notebooks as our code editor for this course. The notebook is served in a web browser after a call from the terminal.