Installation

Requirements

theatRICS requires:

  • Python 3.10 or newer

  • a working Tkinter installation for the GUI

  • standard scientific Python packages

  • support for reading CZI files

Depending on your operating system, some dependencies may require system libraries.


Install from PyPI

If the package is available on PyPI, install it with:

pip install theatrics

Then start the GUI with:

theatrics

Install from source

Clone the repository and install locally:

git clone https://github.com/yusuf-qutbuddin/theatRICS.git
cd theatRICS
pip install -e .

Then run:

theatrics

Core Python dependencies

The project uses the following scientific and GUI-related Python packages.

Core analysis packages

  • numpy

  • scipy

  • matplotlib

  • pandas

  • tifffile

  • scikit-image

  • lmfit

GUI / usability

  • sv-ttk

Correlation and statistics

  • multipletau

  • statsmodels

File I/O

  • pylibCZIrw

  • openpyxl

These are needed across the different workflows:

  • RICS

  • SFCS

  • FCS fitting

  • FRAP


Example dependency installation

If you need to install dependencies manually in an existing environment:

pip install numpy scipy matplotlib pandas tifffile scikit-image lmfit multipletau statsmodels openpyxl sv-ttk pylibCZIrw


Tkinter notes

The GUI uses Tkinter. On many systems this is already included with Python, but on some Linux installations it may need to be installed separately.

For example, on Debian/Ubuntu systems:

sudo apt install python3-tk

If Tkinter is missing, the GUI may fail to start even if the package installation succeeds.


CZI support

theatRICS uses:

  • pylibCZIrw

to read Zeiss CZI files.

If CZI support is not available:

  • RICS workflows on TIFF files may still work

  • CZI-based workflows such as FRAP and some export pipelines may fail

If you frequently work with CZI files, verify that pylibCZIrw installs and imports correctly in your environment.


Optional notes by workflow

RICS and SFCS

Require the standard numerical/scientific stack:

  • numpy

  • scipy

  • matplotlib

  • pandas

  • tifffile

FCS fitting

Also requires:

  • lmfit

  • statsmodels

FRAP

Also requires:

  • scikit-image

  • openpyxl

  • pylibCZIrw

Vesicle Finder

Requires the standard stack plus optionally:

  • opencv-python for faster Hough circle detection

  • cellpose for deep learning segmentation

Install optional vesicle dependencies:

pip install opencv-python cellpose 

Install documentation dependencies

If you want to build the documentation locally:

pip install -r docs/requirements.txt

or, if using the optional docs extra:

pip install -e ".[docs]"

Then build the docs with:

sphinx-build -b html docs/source docs/build/html

Verify the installation

After installation, you can test the command-line entry point:

theatrics

If successful, the GUI should open.


Common installation issues

theatrics command not found

This usually means:

  • the package was not installed in the active environment

  • the wrong Python environment is active

  • the console script location is not on your PATH

Try:

python -m pip install -e .

and make sure you run the command in the same environment.

Tkinter import errors

Install system Tk support if necessary.

pylibCZIrw installation problems

This may depend on the platform and available system libraries. If CZI-based workflows fail, verify that this package is importable.

Missing package during runtime

Install the missing dependency explicitly with pip install <package> and retry.