Skip to content

About

Desktop installers (Windows/macOS/Linux) for VLab4Mic, the no-code fluorescence-microscopy simulation toolkit.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VLab4Mic logo

VLab4Mic Desktop App

Download and install VLab4Mic on your computer. A friendly toolkit to simulate fluorescence microscopy images, no coding required.

VLab4Mic website · Main project repository · Releases


What is VLab4Mic?

VLab4Mic is a virtual laboratory that lets you explore, test, and design imaging experiments before stepping into the microscope room. You build virtual samples from molecular structures, apply fluorescent labelling, and simulate image acquisition across microscopy modalities, all without writing code. It works equally well for newcomers learning the basics and for experienced researchers benchmarking probes, PSFs, or reconstruction methods.

With VLab4Mic you can:

  • Build virtual samples from PDB/CIF structures
  • Apply direct or indirect fluorescent labelling
  • Add structural variation and molecular crowding
  • Simulate image acquisition across multiple modalities
  • Run parameter sweeps to explore experimental conditions
  • Compare noiseless versus realistic acquisitions

What this repository gives you

This repository is the desktop-app distribution of VLab4Mic, built with LabConstrictor. It provides one-click installers for Windows, macOS, and Linux, so you can run VLab4Mic locally with no Python setup. The installers are published on the Releases page.

Download and install

Full step-by-step instructions for each operating system are in the installation guide.

Platform Installer Notes
Windows .exe Double-click to install. Approve via More info then Run anyway if Windows warns.
macOS .pkg (ARM64 or Intel) or .sh Pick ARM64 for Apple silicon, Intel otherwise.
Linux .sh Run bash VLab4Mic-<version>-Linux-x86_64.sh, or mark executable and run.

Installation takes around 6 to 8 minutes and is only needed once. After installing, launch VLab4Mic from your desktop, Start Menu, or Applications folder.

How-to: install and run your first simulation

1. Install the app (about 10 minutes, once)

  1. Open the Releases page and download the installer for your system from the newest release: the .exe for Windows, the .pkg for a Mac with an Apple chip (M1 or newer; Intel Macs are not supported), the .sh for Linux.
  2. Run it and follow the prompts (choose Install only for me). It downloads and sets up Python and VLab4Mic, which takes 6 to 8 minutes; the window may look idle for a while.
  3. Windows: if it warns that the publisher is unknown, click More info, then Run anyway. macOS: if it refuses to open, go to System Settings > Privacy & Security, scroll to Security and click Open Anyway. Step-by-step pictures: installation guide.

You now have the VLab4Mic notebook app. To use it from napari or Fiji, continue below; the app must stay installed, because the two programs only show its tools. VLab4Mic's tools are listed in napari and Fiji, not in QuPath. How to install the napari and Fiji bridge and how to test it: LabConstrictor-Tools docs.

2. First simulation in napari

  1. Install the two small napari add-ons into the Python environment where napari lives, then restart napari (details):

    pip install https://github.com/CellMigrationLab/LabConstrictor-Tools/archive/refs/tags/v0.3.0-alpha.1.zip
    pip install https://github.com/CellMigrationLab/LabConstrictor-napari/archive/refs/heads/main.zip
    
  2. In napari open Plugins > LabConstrictor tools. Pick VLab4Mic, then Simulate imaging of a virtual sample. The form is the same as the notebook's: structure, labelling, imaging. The advanced settings are behind Show advanced settings; the form scrolls.

    The VLab4Mic form in napari

  3. Choose a modality (here STED, 8 particles) and press Run. The first run downloads the structure and can take a minute; later runs of the same structure take 10 to 60 seconds. The line under the form tells you the result and the pixel size.

    A simulated STED image in napari

  4. You get two layers, VLab4Mic:simulated and VLab4Mic:noiseless. Every new run replaces them. To keep a result, rename its layer: a renamed layer is never replaced.

3. First simulation in Fiji

  1. Copy labconstrictor-fiji-*.jar into Fiji.app/plugins/ and restart Fiji (details).

  2. Choose Plugins > LabConstrictor > LabConstrictor Tools..., pick VLab4Mic and Simulate imaging of a virtual sample. The dialog has the same settings, grouped as in the notebook.

    The VLab4Mic dialog in Fiji

  3. Press OK. The simulated image opens in its own window, with the settings summary in a text window (the Log). Running again replaces the window; rename it to keep it.

    The result in Fiji

Common problems

What you see What to do
The installer window looks stuck Wait: the installation takes 6 to 8 minutes.
napari or Fiji lists no VLab4Mic The app is not registered: install it (or reinstall), then press Rescan apps in napari or restart Fiji.
The first run is very slow It downloads the structure; the next run is faster. Keep Keep the worker running ticked in napari.
The image is only 10 x 10 pixels Widefield pixels are 100 nm and the default field is 1000 nm: raise Sample size XY under advanced settings.
A run fails Press Details... (napari) or read the Log window (Fiji); the last lines say why. Press Restart worker and try again.
Something else Open an issue with a screenshot and the text of Details....

Use VLab4Mic from napari and Fiji (experimental)

VLab4Mic's tools are listed in napari and Fiji, not in QuPath.

The installer also registers two VLab4Mic tools for the LabConstrictor tools bridge, so that napari and Fiji show them as forms, and so that the command line can run them:

Tool What it does
Simulate imaging of a virtual sample Builds a virtual sample of a structure (clathrin, nuclear pore, HIV capsid, T4 capsid), labels it with a probe and images it with one of the five modalities, with the settings of the notebook (advanced ones are folded away). Returns the simulated and the noiseless image, plus the pixel size.
Compare an image with a reference Measures the structural similarity (SSIM) and the Pearson correlation of two images after matching their pixel sizes.

Example from a terminal (use the Python of the installed app):

<install folder>/bin/python -m labconstrictor_tools run VLab4Mic simulate_sample modality=STED random_seed=1
<install folder>/bin/python -m labconstrictor_tools run VLab4Mic simulate_sample structure=7R5K probe=NPC_Nup96_Cterminal_direct modality=Widefield sample_size_xy_nm=3000

Good to know:

  • The first run with a structure downloads it, and a run takes from about 10 seconds (small structure, STED) to over a minute (nuclear pore, SMLM). Stopping a run takes effect between its stages.
  • The image covers a square field (1000 nm by default, Sample size XY under advanced settings). A widefield image at 100 nm per pixel has only 10 x 10 pixels in the default field: use a larger field for the coarser modalities.
  • The pixel size is reported in the results (napari and Fiji do not read it from the image): enter it as the pixel size of the layer or window when you compare images.
  • Each simulation replaces the previous simulated and noiseless images (one layer or window, not a pile while you tune the settings). To keep a result for comparison, rename its layer (napari) or window (Fiji): a renamed one is never replaced.
  • SSIM is high for sparse images even when they do not match (an image full of background looks alike); read it together with the Pearson correlation.
  • The form uses the same controls as the notebook: sliders for the number of particles, the labelling efficiency, the wobble cone (0 = none) and the structural integrity (1 = intact), dropdowns for the structure, probe, fluorophore and modality. You can image your own structure file (.cif or .pdb, instead of the PDB ID) and set the orientation angles as comma-separated lists, as in the notebook.
  • Not in the tools (use the notebook): probes made from a protein, residue or primary probe, new fluorophores, image-based placement of particles, several modalities or probes in one run, parameter sweeps, and multi-frame acquisitions (a single frame is returned).
  • The notebooks are unchanged.

Developers: src/vlab4mic_lc_tools holds the declarations, lc_tests/ the tests (see lc_tests/README.md).

Other ways to use VLab4Mic

Prefer not to install anything, or want full scripting control? The main VLab4Mic repository covers the alternatives:

  • Google Colab notebooks, no installation needed
  • Local Jupyter notebooks with the same widget interface
  • Python library for scripting and automation

Documentation and support

Citation

If you use VLab4Mic in your research, please cite:

@article{martinez_2026_vlab4mic,
  title={VLab4Mic: prediction of structural resolvability in super-resolution microscopy},
  author={Mart{\'i}nez, Dami{\'a}n and Saraiva, Bruno M. and Shakespeare, Tayla and
          Bates, Mark and Owen, Dylan M. and Leterrier, Christophe and
          Del Rosario, Mario and Henriques, Ricardo},
  year={2026},
  journal={bioRxiv},
  doi={10.64898/2026.06.02.729521},
  url={https://www.biorxiv.org/content/10.64898/2026.06.02.729521v1}
}

License

Released under the MIT License.

🔄 Automatic Template Updates

LabConstrictor can prepare pull requests that keep this repository aligned with improvements in the main template, including updates to GitHub Actions workflows. Complete the one-time automatic synchronization setup to enable these updates.

About

Desktop installers (Windows/macOS/Linux) for VLab4Mic, the no-code fluorescence-microscopy simulation toolkit.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages