- López Codony, Victòria
- Pavon, Miguel Angel
- Boix-Fabrés, Jaume
- Mendizuri, Saioa
GFP Positive and Cell Counting is an ImageJ/Fiji macro developed by Jaume Boix and Saioa Mendizuri at the Optical Microscopy Platform of IDIBELL for the automated quantification of total cells and GFP-positive cells in fluorescence microscopy images. The macro uses a nuclear staining channel (Hoechst/DAPI) to identify and segment nuclei and subsequently measures GFP fluorescence intensity for each detected cell. Based on a user-defined fluorescence threshold, cells are classified as GFP-positive or GFP-negative, allowing the calculation of total cell numbers, GFP-positive cell numbers, and the percentage of GFP-positive cells in each image.
The macro can be used either in a single-image mode, intended for parameter optimization and validation, or in a batch-analysis mode for the automated processing of large datasets. During the analysis, nuclei are segmented using the StarDist deep-learning framework and the pre-trained "Versatile (fluorescent nuclei)" model. Users can adjust segmentation parameters such as intensity normalization percentiles, probability threshold, non-maximum suppression threshold, and minimum and maximum nucleus size. GFP intensity is then measured within each segmented nucleus and compared against a user-defined threshold to determine GFP positivity. An optional supervised mode allows visual inspection of both nuclei segmentation and GFP-positive cell identification before continuing the analysis.
The macro has been designed for Zeiss .czi files containing at least two fluorescence channels, one corresponding to the nuclear marker and one corresponding to GFP fluorescence. It requires Fiji/ImageJ (version 1.53c or later) together with the Bio-Formats importer, the StarDist plugin, and the CSBDeep plugin. Bio-Formats is used to read Zeiss image files, while StarDist and CSBDeep provide the deep-learning-based nuclei segmentation workflow.
For each analyzed image, the macro generates quantitative measurements including the total number of cells, the number of GFP-positive cells, and the percentage of GFP-positive cells. In addition, verification images showing the detected nuclei and GFP-positive cells are saved to facilitate quality control. A results table is exported as a CSV file, and a processing log containing analysis information is also generated.
This software is distributed under the Apache License, Version 2.0. Users are free to use, modify, distribute, and incorporate the macro into academic, educational, or commercial projects, provided that proper attribution to the original authors is maintained and that any modifications are clearly documented. A copy of the Apache 2.0 license must accompany any redistribution of the software.
If this macro contributes to published work, presentations, or reports, users are kindly requested to acknowledge the authors and to cite the StarDist publication when reporting results obtained using the nuclei segmentation workflow.