Skip to simulator

Educational resources · Interactive model

Nuclear Diffusion Simulator

This simulation follows molecules through a single confocal section of a mouse embryonic fibroblast nucleus. The image shows Hoechst-stained DNA in blue and SC35-GFP in green. The simulator uses the two signals to infer regions representing euchromatin, heterochromatin, splicing-factor speckles and nucleoli, and to assign relative concentrations within them. Choose a model for each compartment and the molecule's shape, size, charge and binding. Then watch simulated single-molecule tracks form, bleach a spot, or acquire tracks for analysis.

Nucleus

  • Euchromatin (dim DAPI)
  • Heterochromatin (bright DAPI)
  • SC35 speckles
  • Nucleoplasm
  • Nucleoli
  • Free molecule
  • Bound molecule
  • Local apparent D: yellow (slow) → magenta (fast)
Image scale
Nuclear diameter ≈  µm

The default pixel size comes from the 1 µm scale bar in the source figure (about 7 pixels), so it is approximate.

Diffusing molecule

Shape
Chemistry

Charge couples to each compartment's electrostatic potential. Stickiness couples to its scaffold cohesion. Specific binding is set per compartment below.

Single-particle tracking

Follow individual molecules as a camera would. Each one is imaged once per frame, with localization error added. The live tracks on the image come from the running population at equilibrium. For analysis, acquire a larger set: pooling many tracks reveals each region's diffusion through the mean squared displacement (MSD) against lag time, the apparent diffusion coefficient and anomalous exponent α, step-size distributions, dwell times, and a diffusion map.

MSD by region

Ensemble, time-averaged MSD for each region, grouped by the setting above. A slope of 1 on these log axes is free diffusion; below 1 is subdiffusion from binding, crowding or confinement. Requiring windows to stay inside a region shows confinement, but it drops fast molecules that leave.

Step sizes in one frame

A bound pool appears as a peak near the localization error; free molecules form the broad tail. Two-population fits of these histograms are how bound fractions are estimated in SPT experiments.

Region Steps D from tracks (µm²/s) α Mean dwell (ms) Bound (true, in sim) Jump-distance fit Model D free Model D with binding

D from tracks: slope/4 of a straight-line fit (with intercept, which absorbs localization error) to the first four MSD lags. α: log-log slope of the noise-corrected MSD over the first ten lags. Dwell: mean uninterrupted time inside a region; tracks cut off at either end shorten it. Jump-distance fit: two Brownian populations fitted to the one-frame step sizes, the way bound fractions are estimated from SPT data; compare it with the true bound fraction. Model columns are averages over the region's pixels. Model D with binding = Dfree/(1 + k*on/koff), the value approached when binding exchanges quickly compared with the lag time. The diffusion map in the image viewer bins one-frame steps by where they start.

Compartments and their physical models

Each compartment is defined by the image, not painted. Every pixel has a soft membership in each compartment and a local concentration taken from its intensity. Choose how each compartment is modelled: for example heterochromatin as a collapsed globule or a gel, and euchromatin as a dilute polymer chain. Parameters describe the material at the compartment's mean intensity and are rescaled to each pixel's intensity.

How the image defines compartments

How each region treats this molecule

Region Area Mean DAPI Mean SC35 Predicted enrichment Simulated enrichment Bound (simulated) D free (µm²/s) D with binding

Regions group pixels by their dominant compartment, for reporting only; the physics uses each pixel's own memberships and intensities. Enrichment is total concentration (free + bound) relative to the nucleoplasm region. Simulated enrichment is the running average of the molecule density since the last change.

Photobleaching recovery

Double-normalized: the spot signal relative to pre-bleach, corrected for molecules removed by the bleach.

Size exclusion by chromatin (nanoscale data)

Dots: measured free volume for a rigid sphere in a HeLa nuclear crop (8 × 8 × 10 nm voxels, 40.58% contrast cutoff). Lines: the same curve rescaled to the mesh size and chromatin fraction of the euchromatin and heterochromatin models at each compartment's mean intensity (shown only for mesh-type models). Dashed lines mark the current molecule's partition and pore-passage sizes.

How the model works

From image to compartments

The nucleus is the two-channel image itself, registered and normalised to the 2nd–99.5th percentile inside the nucleus. Chromatin concentration is DAPI0.5 by default: heterochromatin has 5.5–7.5× the DNA density of euchromatin (Imai et al. 2017) but only ~2.5× its chromatin volume fraction (12–21% vs 37–52%; Ou et al. 2017). Euchromatin and heterochromatin memberships rise smoothly across their own DAPI thresholds; below the euchromatin threshold a pixel is interchromatin nucleoplasm. Speckle membership rises across an SC35 threshold. Nucleolar density is the inverted merged intensity inside large regions where both channels are dark. In each pixel, every compartment's effect is weighted by its membership and scaled to the local intensity relative to the compartment's mean: volume fraction ∝ concentration and mesh size ∝ concentration−3/4 for network materials, and free energy and friction ∝ concentration for liquids and solutions. Effects multiply, so partition free energies add and frictions compound. Binding-site density follows the same membership and intensity.

Each compartment acts on a molecule in two ways. It sets the molecule's free concentration relative to its surroundings (a partition coefficient, K), and it sets how fast the molecule moves inside it (D). Resident binding sites add an immobile bound pool. Molecules hop between neighbouring pixels with rate D̄/h² · 2Kj/(Ki+Kj), where D̄ is the harmonic mean of the two pixels' D. This rule relaxes the molecules to concentrations proportional to K(1 + k*on/koff), so the simulated enrichment should converge on the predicted value.

Molecule shapes

  • Globular: a hard sphere. Its diameter sets both its Stokes radius and its steric size.
  • Rigid rod: the Stokes radius comes from the Tirado–García de la Torre rod formula. Partitioning uses the orientation-averaged width (diameter + length/2). Mobility in a mesh depends on the rod's width, because a rod can slide along its axis; it is reduced by ξ/length once the rod is longer than the mesh.
  • Flexible polymer: N Kuhn segments in good solvent, Rg = lKN0.588/√6 and Rh = 0.665 Rg. In a mesh the chain only needs its segments to fit. The coil pays a blob confinement cost exp[−(2Rg/ξ)1/0.588] and moves by snaking, with mobility reduced by (ξ/2Rg)².

Compartment materials

  • Dilute and crowded solutions: soluble crowders exclude volume according to scaled-particle theory. The osmotic pressure–volume term is left out because compartments in osmotic balance share it. Viscosity depends on length scale: probes much smaller than the crowders feel the solvent, and large probes feel the Krieger–Dougherty bulk viscosity.
  • Viscous liquid (condensate): one viscosity slows every probe by the same factor (Stokes–Einstein). The liquid does not sieve by size; enrichment or exclusion comes from its chemistry and binding sites.
  • Nucleosome gel network: a remodeling network of nucleosome–nucleosome contacts. Steric exclusion follows the measured HeLa free-volume curve, rescaled by ξref/ξ (ξref = 40 nm, the probe size at which passage across the crop fails laterally). Mobility follows Ogston–Johansson fibre obstruction. A probe wider than the mesh is stuck except for hops of about ξ each remodeling time.
  • Collapsed polymer globule: compact chromatin in poor solvent, as in chromocenters or the inactive X. It uses the same equations with a small mesh, a high polymer fraction and, by default, no remodeling.
  • Viscoelastic network fluid: a transient network of sticky polymers or RNA (sticker–spacer condensates). Ogston partitioning, exp[−φ(1 + r/rf)²], sets size exclusion. The felt viscosity rises from the solvent value to the bulk value as the probe's Stokes diameter approaches the mesh size.
  • Porous sponge-like body: a low-density body with fixed pores. Partitioning is (1 − φ)(1 − λ)² and mobility follows Renkin hindrance, with λ = probe size / pore size. Probes wider than the pores are excluded.
  • Layered (core–shell) condensate: two immiscible liquids. Pixels brighter than the compartment's mean form the core and dimmer edges form the shell, each with its own viscosity and cohesion.

Literature models for each compartment

Each compartment offers the physical pictures proposed for it in the literature, such as HP1 liquid droplets versus bridging-induced collapse for heterochromatin, or multiphase liquids versus a viscoelastic rRNA network for the nucleolus. Choosing one loads its material engine and parameters, and shows the evidence and references. Parameters that come from measurements are stated with their source; the rest are illustrative choices that represent the model's qualitative claim. Soluble crowders are set to the nucleoplasmic mobile-protein fraction (16%; Bubak et al. 2021) in every compartment unless a model says otherwise. With that baseline, the sponge models reproduce the measured 70 kDa dextran penetration of speckles and nucleoli (Handwerger et al. 2005). Comparing models with the same molecule and the same experiment is the point: they make different predictions for size exclusion, mobility and track statistics.

Single-particle tracking analysis

Live tracks follow a random subset of the running molecules, which start from the equilibrium distribution, and add one point per fast camera frame (free step about 0.25 µm). Acquired tracks are simulated separately with the same lattice rules, starting from equilibrium, and imaged once per frame with Gaussian localization error. The MSD for each region is averaged over all windows assigned to it. The diffusion coefficient comes from a straight-line fit to the first four lags; the intercept absorbs localization error (4σ²). The anomalous exponent α comes from the log-log slope after subtracting 4σ². The jump-distance fit treats squared one-frame steps as a mixture of two exponentials, the 2D Brownian form for a slow (bound) and a fast (free) population. Two populations are reported only when their diffusion coefficients differ more than threefold. Fast molecules cross several compartments per frame unless the frame interval is short, so the automatic frame interval keeps the free step near 0.25 µm.

Chemical exclusion and attraction

The electrostatic factor is exp(−zψ/kBT). DNA- and RNA-rich phases carry a negative Donnan-like potential, so they favour basic proteins and repel acidic ones. The cohesion factor is exp(εmolecule · εscaffold), a simple stand-in for non-specific contacts such as RS, RGG or aromatic residues.

What the model leaves out

The model is two-dimensional, has no nuclear pores or cytoplasm, and treats bound molecules as immobile. Advective flows, such as the outward rRNA flux of the nucleolus, are not simulated. The simulation runs on the image's 0.14 µm pixels, and the image is a single optical section. Chromatin is static at the pixel scale. The presets use order-of-magnitude parameters chosen for teaching, not fits to particular experiments. Use the simulator to build intuition about which properties of a compartment or a molecule control partitioning and mobility, and test those predictions experimentally.

Data sources

The nucleus is a single confocal section of a mouse embryonic fibroblast stained for DNA (Hoechst) and expressing SC35-GFP. Annotation marks in the figure were removed by filling from the local background. The nanoscale exclusion curve comes from a HeLa nuclear crop analysed at 8 × 8 × 10 nm voxels: rigid-sphere free volume, and passage across opposite faces at the 40.58% contrast cutoff.