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
numpyscipymatplotlibpandastifffilescikit-imagelmfit
GUI / usability
sv-ttk
Correlation and statistics
multipletaustatsmodels
File I/O
pylibCZIrwopenpyxl
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
Virtual environment (recommended)
It is recommended to use a dedicated virtual environment.
Using venv
python -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .
On Windows:
python -m venv .venv
.venv\Scripts\activate
pip install -U pip
pip install -e .
Using conda
conda create -n theatrics python=3.11
conda activate theatrics
pip install -e .
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:
numpyscipymatplotlibpandastifffile
FCS fitting
Also requires:
lmfitstatsmodels
FRAP
Also requires:
scikit-imageopenpyxlpylibCZIrw
Vesicle Finder
Requires the standard stack plus optionally:
opencv-pythonfor faster Hough circle detectioncellposefor 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.
Recommended workflow after installation
A typical first test is:
start the GUI with
theatricsopen the Image Simulation tab and run a short simulation
try RICS Export or FCS Fitting on known test data
verify that figures and result files are written successfully