A Python package for analysing microscopy data for FISH.
Instructions for installation in Linux or Linux environment in Windows (WSL)
Clone or download the code repository.
Next install bioformats tools:
bash install-bftools.sh
export PATH=$PATH:~/packages/bftools
bfconvert -versionThe last command checks that the install has worked by printing the bioformats version.
If there is a problem running this, you may need additional software. Try installing the additional needed software if missing:
sudo apt update
sudo apt upgrade
sudo apt install unzip
sudo apt install openjdk-11-jdk(sudo means you have to give the password) Now try the commands to install bioformats tools again.
Test you have working python
python --versionYou might need to write "python3" instead of "python". This should print out the python version. Make sure the python version was 3.
Create the Python virtual environment:
python -m venv venv
source venv/bin/activateIf this does not work, you may have to install some software:
sudo apt install python-venvInstall requirements:
pip install -r requirements.txtThis might take a while.
To test the image conversion, first create a folder called local-data. Then
copy some test .czi files into that folder. Then, to test the conversion:
mkdir scratch
python scripts/quick_convert_to_ids.py local-data scratch myidsFor Windows WSL In case you need to use a folder not in your home directory you need to mount it so that your computer recognises it. The first time you need to do this (e.g. for a hypothetical drive Z)
mkdir /mnt/zEach time you restart WSL you may have to do this:
sudo mount -t drvfs Z: /mnt/zTo go into this folder:
cd /mnt/z/