A dashboard for the CellPhe cell phenotyping library.
The dashboard is run locally so that you are in full control of your images and do not need to upload them anywhere. It is cross-platform and runs in a web browser and doesn't require any coding experience beyond that required to run the CellPhe python package.
The only prerequisite is to install Docker (or Docker Desktop for Windows users). Optionally you can run the dashboard from the source code, although this is more involved and slower as it requires manually installing the dependencies. However, if you are unable to install Docker on your computer due to the elevated permissions it needs to run, then this might be necessary.
Simply download the Docker image from this repository by running the following command in a terminal or command prompt:
docker pull ghcr.io/uoy-research/cellphe-dashboard:mainThen run it:
docker run --rm -p 8501:8501 ghcr.io/uoy-research/cellphe-dashboard:mainYou can then access the app by navigating to http://127.0.0.1:8501/ in a web-browser.
The app can be run without Docker, although it will require installing the dependencies by hand which takes some time. NB: Currently Python 3.12 is the supported version, other versions may require tweaking the Python dependencies.
The tracking functionality depends on the ImageJ plugin TrackMate, which in turn depends on having a Java runtime available. We recommend the Eclipse Temurin variant, which is built on OpenJDK and is free, stable, and widely supported.
- Download: Go to the Adoptium Temurin website.
- Select & Install:
- Windows: Click the "Latest LTS Release" button. Run the downloaded
.msifile and follow the prompts. (Ensure the "SetJAVA_HOMEvariable" option is checked during installation). - macOS: Download the
.pkgfile for your chip type (Apple Silicon or Intel). Open it and follow the installation prompts. - Linux (Debian/Ubuntu): Open a terminal and run the following (NB: you can also install Canonical's build from the
openjdk-21-jdkpackage)sudo apt update sudo apt install temurin-21-jdk
- Windows: Click the "Latest LTS Release" button. Run the downloaded
After installing, open a new terminal/command prompt and run:
java -versionIf you see the version details, your Java installation is successful and you are ready to setup the Python environment. Firstly, clone this repository and change into it:
git clone https://github.com/uoy-research/CellPhe-dashboard.git
cd CellPhe-dashboardThen install the Python prequisites, ideally in a new virtual environment:
pip install -r requirements.txtThen you can run the app although NB: the first time tracking is run it will take some time to setup an ImageJ instance.
streamlit run CellPheDashboard.py --server.port=8501 --server.address=0.0.0.0Windows users might encounter some additional OS-specific issues. This section aims to document some of these in order to remove any barriers to use.
As mentioned above, running the dashboard through Docker involves installing the fewest dependencies, however, installing Docker itself on Windows is not as straightforward as it is on other OSes. The easiest way to install Docker on Windows is through the Docker Desktop GUI, however, the licence agreement requires a paid subscription for users in organisations with > 250 employees or > $10million in annual revenue. An alternative is to use Windows Subsystem for Linux (WSL) although this requires setting up WSL itself and using a potentially unfamiliar Linux environment. The final possible hurdle with Docker that due to it requiring elevated access it might not be permitted by your organization's IT security policy, in which case running the dashboard from the Python source might be the only option.
Unlike MacOS or Linux, Python doesn't come installed with Windows by default. The best way to install Python is from the official website, with the following considerations:
- CellPhe isn't compatible with Python 3.14 - we'd recommend either 3.12 or 3.13
- Check the box for adding Python to
PATHduring the install process - It's a good idea to also install the separate Install Manager from the same website to allow for quicker switching between Python versions in future
If you come across an error message like the below when installing CellPhe (or other Python packages), the solution is to install C++ Build Tools from the Microsoft website (tick 'Desktop development with C++').
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]If you get an error when running pip install cellphe about pip not being found ("'pip' is not recognized as an internal or external command" or similar), try running python -m pip install cellphe instead.
This is because pip isn't always added to the PATH in Windows.