Skip to content

VLab4Mic

A Virtual Laboratory for Microscopy

Simulate fluorescence microscopy experiments — build virtual samples, apply fluorescent labelling, and image across modalities — before stepping into the microscope room.

Get Started View on GitHub

VLab4Mic Tutorial


Why VLab4Mic?

  • :material-dna:{ .lg .middle } Virtual Samples from Atomic Structures


    Build virtual samples directly from PDB/CIF structural models and populate fields of view with particles.

  • :material-tag-multiple:{ .lg .middle } Realistic Fluorescent Labelling


    Model direct and indirect labelling with antibodies, nanobodies, GFP, SNAP-tags and more — including labelling efficiency and steric hindrance.

  • :material-microscope:{ .lg .middle } Multi-Modality Imaging Simulation


    Simulate image acquisition across Widefield, Confocal, STED, AiryScan, SMLM, and custom modalities with physically-grounded PSFs and noise models.

  • :material-chart-scatter-plot:{ .lg .middle } Parameter Sweeps


    Systematically test parameter combinations and compare outputs — quantify how labelling efficiency, probe distance, or exposure time affect your images.


Quick Start

pip install vlab4mic
pip install vlab4mic vlab4micjupyter

Then run your first imaging simulation:

from vlab4mic.experiments import image_vsample

images, noiseless, experiment = image_vsample(run_simulation=True)

Available Notebooks

Category Description Notebook Colab
Main Interface Create virtual samples and simulate image acquisition with multiple imaging modalities Jupyter Open in Colab
Parameter Sweeps Generate and analyze simulations over parameter ranges for optimization Jupyter Open in Colab

Usage Options

Option Skills Needed Best For
Google Colab None Beginners, teaching, quick experiments
Local Jupyter Notebooks Basic installation Smooth widget-based use
Python Scripts Comfortable with code Full flexibility & automation