Skip to main content

Cytkit | Honeychrome

Honeychrome

Open-Source Cross-Platform GUI App for Cytometry Acquisition and Analysis. Built in Python. Source code on GitHub. Part of the Cytkit project to provide a complete open-source spectral cytometer.

Animated Demo

Our aim is to make Honeychrome so intuitive that you don't need instructions. But just in case, we have prepared this instructional video on YouTube: Introduction to Honeychrome in 30 Minutes.

We also have a set of guides to using Honeychrome:

Mission statement

For too long, our field lacked a general purpose, free and open-source cytometry software package. We are plugging that gap to provide a software package that is useful for everybody: power cytometrists, biologists, students, innovators. The app is lightweight but provides all the features one expects:

  • acquire data (starting with Cytkit, perhaps with drivers for other instruments in the future)
  • analyse data from any instrument's FCS files
  • provide both conventional compensation and spectral unmixing
  • give simple statistical comparisons between samples, publication-quality graphs and exports
  • provide intuitive usability with minimal instructions
  • support the major operating systems (Windows, MacOS, Linux...)
  • no collection or processing of personal information

Honeychrome is fully open source to provide a platform that innovators can exploit, for developing both new instrumentation and new methods in data analysis/visualisation.

See more about Honeychrome and the Cytkit project here: cytkit.com

Installation

You have the following options, depending on whether you want to use the Python source code or just download an executable. For most users, it is sufficient to download an executable for your platform (Windows/Linux/MacOS).

This project uses the SignPath Foundation for code signing.

Note that the plugin system is only available if Honeychrome is run from the Python source code.

For non-programmers: download and run executable

A set of compressed binary installers are available below.

Windows

  1. Download Honeychrome for Windows x64 (from the Microsoft Store)
  2. Double click to run the installer

Linux (Ubuntu with Wayland) > 24.04)

  1. Download Honeychrome for Linux x64 Ubuntu > 24.04
  2. Extract the honeychrome folder and put it somewhere appropriate for the single user or system
  3. Change to the honeychrome folder and run ./install_linux.sh

(For other Linux systems, please use the Python instructions below.)

MacOs

  1. Download Honeychrome for MacOS (arm64)
  2. Open the disk image and drag honeychrome.app to your Applications folder.
  3. Double click the app in your Applications folder to run

Other systems

For all other systems, please follow the Python instructions below.

Note: If you want to use the plugin functionality, please clone and run the full Python package according to the instructions below.

Run Honeychrome as a Python package

This should work on any platform for which Python is available. The simple way is to install Honeychrome from PyPi (pip). You can alternatively clone and run the source code. Either way works if you want to run plugins.

Install Honeychrome package from PyPi

Requires Python 3.12 and a C/C++ compiler (some dependencies are compiled during installation): the Xcode command-line tools on macOS (xcode-select --install), the Visual Studio 2022 Build Tools with "Desktop development with C++" on Windows, build-essential on Linux.

  1. Create a virtual environment:

    python3.12 -m venv .venv
    
  2. Activate the virtual environment:

    • Linux/macOS: source .venv/bin/activate
    • Windows: .venv\Scripts\activate
  3. Update the installation tools:

    python -m pip install --upgrade pip setuptools wheel
    
  4. macOS and Linux only: install Annoy without fast-math (PaCMAP needs this):

    ANNOY_COMPILER_ARGS=-D_CRT_SECURE_NO_WARNINGS,-fpermissive,-O3,-fno-associative-math \
      pip install --no-binary annoy --no-cache-dir annoy==1.17.3
    
  5. Install Honeychrome with pip:

    pip install honeychrome
    

(Optional: use pip to install any further packages on which your plugins may depend.)

  1. Build the compiled kernels (recommended): Honeychrome runs without them, but FlowSOM clustering in Honeycluster and Spectral Variants are then unavailable, autofluorescence extraction uses k-means in place of the SOM, and the noise model and Spectral Correction run more slowly. First install the build tools for your platform (see Build tools below), then go to the kernels' folder inside the installed package:

    • Linux/macOS:
      cd "$(python -c "import honeychrome, os; print(os.path.join(os.path.dirname(honeychrome.__file__), 'bundled_plugins'))")"
      
    • Windows (PowerShell):
      cd (python -c "import honeychrome, os; print(os.path.join(os.path.dirname(honeychrome.__file__), 'bundled_plugins'))")
      

    and build them:

    python build_som_kernel.py
    python build_autospectral_opt_kernel.py
    python build_fix_my_unmix_kernel.py
    

    Build them again after each upgrade of Honeychrome.

  2. Run Honeychrome:

    honeychrome
    

Run Honeychrome from Python source

Follow these steps to clone the repository and run the application from source:

  1. Clone the repository:

    git clone https://github.com/salmansamson/honeychrome.git
    cd honeychrome
    
  2. Create a virtual environment: Requires Python 3.12.

    python3.12 -m venv .venv
    
  3. Activate the virtual environment:

    • Linux/macOS: source .venv/bin/activate
    • Windows: .venv\Scripts\activate
  4. Upgrade pip and install dependencies:

    python -m pip install --upgrade pip setuptools wheel
    python install_annoy.py
    pip install -r requirements.txt
    python install_opentsne.py   # macOS only (needs `brew install libomp`); elsewhere it does nothing
    
  5. Install the package in editable mode: This ensures all internal modules are correctly mapped to your path, and that the kernels built in the next step are found.

    pip install -e .
    
  6. Build the compiled kernels (install the Build tools for your platform first):

    cd src/honeychrome/bundled_plugins
    python build_som_kernel.py
    python build_autospectral_opt_kernel.py
    python build_fix_my_unmix_kernel.py
    cd ../../..
    

    Check that they load:

    python -c "import sys; sys.path.insert(0, 'src/honeychrome/bundled_plugins'); [__import__(n) for n in ('_som_kernel', '_autospectral_opt_kernel', '_gls_m2p_kernel', '_fmu_kernel')]; print('kernels OK')"
    

    After git pull, build them again if any .c, .cpp, .hpp, CMakeLists.txt or build_*kernel*.py file in src/honeychrome/bundled_plugins has changed. Quit Honeychrome before rebuilding.

  7. Run the application:

    python3 -m honeychrome.main
    

Build tools

The compiled kernels need a C/C++ compiler, CMake, Armadillo with BLAS/LAPACK and OpenMP:

  • macOS:
    xcode-select --install
    brew install libomp armadillo cmake
    
  • Linux (Ubuntu/Debian):
    sudo apt install build-essential cmake libarmadillo-dev libopenblas-dev
    
  • Windows: install the Visual Studio 2022 Build Tools with "Desktop development with C++", CMake and Git, then Armadillo with OpenBLAS through vcpkg (PowerShell; the vcpkg step takes about 15 minutes the first time):
    git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
    C:\vcpkg\bootstrap-vcpkg.bat -disableMetrics
    C:\vcpkg\vcpkg.exe install armadillo:x64-windows-static-md
    Set-Content -Path "$env:USERPROFILE\vcpkg_static_md.cmake" -Encoding ascii -Value @(
      'set(VCPKG_TARGET_TRIPLET x64-windows-static-md CACHE STRING "")',
      'include("C:/vcpkg/scripts/buildsystems/vcpkg.cmake")'
    )
    $env:CMAKE_TOOLCHAIN_FILE = "$env:USERPROFILE\vcpkg_static_md.cmake"
    
    Build the kernels in the same PowerShell window, so that CMAKE_TOOLCHAIN_FILE is set.

Contributions

We have many ideas for Honeychrome and welcome new ones. We also welcome anyone wishing to contribute to and improve the software!

We will shortly release fuller instructions and documentation for programmers wishing to build on Honeychrome in new open source cytometry projects. In the meantime, please contact us if you require assistance.

Honeychrome builds on several great open source Python packages:

  • FlowKit - for definition of gates, gating hierarchies, transforms, and FCS input/output
  • PySide6 - the GUI system, Qt for Python
  • pyqtgraph - extremely fast plotting and manipulation of plots in Qt
  • Several others for processing of data, including numpy, scikit, sklearn
  • Seaborn and Matplotlib for publication-quality graphics

Samson Rogers and Oliver Burton have been the main developers of Honeychrome so far. Oliver contributed the AutoSpectral Cleaning and AF functions and many aspects of the spec and usability. Angxiao Lu contributed the per-sample gating, the spectral reference library, and many bug fixes. Thanks to support and advice from many people including Catherine Vant, Lotte Carr, Scott Tasker, Philip Jones, Robyn Pritchard.

Roadmap

We got to our milestone v1.0.0 ahead of schedule! So now we will see what the community makes of our work before we think about new milestones. Please get in touch and let us know your feedback!

Metadata

Release files for honeychrome 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for honeychrome 1.0.0
File Size Uploaded Provenance Actions
honeychrome-1.0.0.tar.gz 3.3 MB Without provenance Details for honeychrome-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for honeychrome 1.0.0
File Interpreter ABI Platform Actions
honeychrome-1.0.0-py3-none-any.whl Python 3 none any Details for honeychrome-1.0.0-py3-none-any.whl

Total release size: 6.5 MB

Release files / honeychrome-1.0.0.tar.gz

Download URL honeychrome-1.0.0.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
2e02a9675f589583aec03b1c74bdd31a2f7e559363fd0dab64d16b26e3f32795
BLAKE2b-256 checksum
How to use checksums
814087de80b0a94df9f0dffe5157f3fcbe9eb8d4977243c740d7c009853cea2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / honeychrome-1.0.0-py3-none-any.whl

Download URL honeychrome-1.0.0-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ce7be458c98b22591b1da815eb03161b70f1737725a8c3c925a0a87fa8ea1cd5
BLAKE2b-256 checksum
How to use checksums
b50358c0ffdaa2242c0894b2a9dd2d3ea92954da9f93425c9b2c8ab22089f139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for honeychrome 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page