Fluorescence heterogeneity across individual cells was quantified using a coefficient of variation (CV)–based metric computed from image-segmented single-cell intensity measurements.
Cell nuclei or GFP-positive regions were segmented using a hybrid approach combining pre-trained machine learning segmentation model (for cell boundary initialization) and intensity thresholding in the GFP channel for refinement.
The variability in expression within a population was expressed as the coefficient of variation (CV) of pixel intensity for each image field or individual cell population.
⸻
Before you start
All conda .ymal were exported and tested on apple silicon OSX-ARM64 platform
⸻
Installation
You can resolve environment using Conda.
cd [the location of src folder]
activate this for segmentation and calculation #1 and #3 script#
conda env create --file=co_var_image_analysis.yaml
activate this for plotting #2 and #4 script#
conda env create --file=co_var_image_analysis_plot.yaml
⸻
Usage
conda activate co_var_image_analysis
python ~/src/1_analyze_images_EGFP.py
&
conda activate co_var_image_analysis_plot
python ~/src/2_plot_EGFP_CV_raincloud_vertical.py
⸻
Definition
For each segmented nucleus
The coefficient of variation (CV) is defined as:
where:
⸻
Interpretation
The numerator
The denominator
Thus,
⸻
Final Expression
The full background-corrected coefficient of variation is:
⸻
Calculation for other channels
eg. Cy5/Cy3 • EGFP were used as a metric to include the cell for channal CV calculation. See 3_Cy5_CV_from_EGFP_Positive.py and input your desired channel.
⸻
