This repository contains the code and example datasets used to generate the figures for the manuscript:
Quantitative Expansion Microscopy for In Situ Estimation of Endogenous Target Abundance
Authors: Matthew D. Lycas, Juan C. Landoni, Benedetta Noferi, Christian E. Zimmerli, Kyle M. Douglass, Suliana Manley
DOI: https://doi.org/10.64898/2026.01.18.700178
figures/ holds one folder per figure. Each folder contains the source code for that figure and a README.md
with requirements and usage notes; some folders also include a Demo/ subfolder with a small dataset and a
run_demo.py script, or the small tables needed to redraw the plotted panels.
| Figure | Folder | Content |
|---|---|---|
| Figure 1g | figure_1 |
Signal-to-noise of the three expansion protocols (superplot, replicate-level t-tests) |
| Figure 2 | figure_2 |
NPC colocalization, labeling efficiency and subunit counts |
| Figure 3b,c | figure_3/baseline |
Respiratory chain labeling efficiency and abundance |
| Figure 3g | figure_3/P5CS |
Abundance in P5CS-positive vs -negative mitochondria |
| Figure 4 | figure_4 |
Super-complex association analysis (U2OS and T cells) |
| Supplementary Figure 1 | figure_s1 |
Petersen and Chapman estimator simulations |
| Supplementary Figure 2 | figure_s2 |
Aggregation by complex vs by image |
| Supplementary Figure 3 | figure_s3 |
Fixation comparison (per-cell intensities) |
| Supplementary Figure 4 | figure_s4 |
qExM vs higher-expansion protocol (nuclear areas, MT-CO1 signal per area) |
| Supplementary Figure 5 | figure_s5 |
Segmentation and colocalization pipeline on one image |
| Supplementary Figure 6 | figure_s6 |
Label independence |
| Supplementary Figure 7 | figure_s7 |
Expansion factor from Nup96-mEGFP |
| Supplementary Figure 8 | figure_s8 |
Binomial model of labeled NPC subunits |
| Supplementary Figure 9 | figure_s9 |
NPC sensitivity to the colocalization threshold |
| Supplementary Figure 10 and Supplementary Table 1 | figure_s10 |
NPC estimates vs number of colocalized spots |
| Supplementary Figure 11 | figure_s11 |
Respiratory chain results by passage |
| Supplementary Figure 12 | figure_s12 |
Mitochondrial width (live-STED vs qExM) |
| Supplementary Figure 14 | figure_s14 |
Complex I per mitochondrion (ROIs); uses the figure_s5 module |
| Supplementary Figure 16 | figure_s16 |
Automated vs manual NPC centers |
| Supplementary Figure 17 | figure_s17 |
Respiratory chain sensitivity to the colocalization threshold |
Supplementary Figures 13 and 15 have no custom analysis code.
All colocalization analyses (NPC and respiratory chain) use one-to-one nearest-neighbour matching on object centers:
each channel-1 object is paired with its nearest channel-2 object within the colocalization distance, and each
channel-2 object can be paired only once (KD-tree; see count_exclusive_colocalization in
figures/figure_3/baseline/figure_3_panels_b_c.py).
Pick a figure folder and run its demo script (if available), for example:
python figures/figure_4/Demo/run_demo.py
See each folder’s README.md for the expected outputs and runtime.
Full versions of the centers and mask datasets are hosted on Zenodo:
https://doi.org/10.5281/zenodo.18340724
Please use the Zenodo archive if you need the complete datasets beyond the demo subsets.
Detailed expansion microscopy protocol:
https://github.com/LEB-EPFL/qExM_protocol/blob/main/Expansion%20Microscopy.md
Source: https://raw.githubusercontent.com/LEB-EPFL/qExM_protocol/main/Expansion%20Microscopy.md
If you use this code or dataset in your work, please cite the manuscript and the Zenodo dataset:
- Manuscript DOI: https://doi.org/10.64898/2026.01.18.700178
- Zenodo dataset DOI: https://doi.org/10.5281/zenodo.18340724