MATLAB · chapter 13 of 13

Frequently asked questions

Which direction is S? S(i,j) is the effect of gene j on gene i. Row i lists the regulators of gene i. In an edge list, source = j, target = i. grn.export writes it that way.

Why does my source gene not respond to vmax? It does, since v0.3: overriding vmax through Params updates the constitutive level of unregulated genes unless you also override basal. Before that, basal kept its sampled value.

The repressilator does not oscillate with my parameters. The protein-only ring needs a loop slope above 2 at its fixed point, which requires hill > 2 and a large enough vmax / gamma; for Hill 4 the threshold is alpha = vmax / gamma = 2. With Stages = 2 the extra delay makes oscillation easier. The audit in Accuracy and validation reproduces the threshold.

Why are oscillations absent from my averaged data? Cells started from random initial conditions or subject to process noise dephase within a few periods, so the population mean is flat. That is the expected behaviour of bulk measurements; look at single cells or synchronise them with InitialCondition.

How do I get molecule counts? GRNLab works in concentration-like units. For count-like data, scale sol.x by a system size and sample Poisson counts from it; the chemical Langevin noise with NoiseStrength = 1 / sqrt(system size) gives the matching intrinsic fluctuations.

Steady state says converged = false. The model is oscillating or drifting very slowly. For oscillators that is correct; the returned value is a time average. For slow systems raise MaxTime or start closer to the fixed point with InitialCondition.

Can two stimuli act on one gene? Yes. Scale stimuli multiply, add stimuli sum. A step from 0 to 1 combined with a sine between 1 and 3 gives a gene that is off, then driven periodically.

How do I reproduce a dataset someone sent me? Load the .mat file; data.model and data.options hold the complete recipe. See Exporting data for the exact call.

Is anything in the toolbox random beyond the seed? No. grn.plotNetwork's force layout has its own Seed option, and MATLAB's ODE solvers are deterministic.

Does it use the Parallel Computing Toolbox? No. Loop over cells or seeds with parfor yourself; every call is self-contained and seeded.

Where are the equations? Concepts and conventions, and in the help text of grn.buildModel, grn.internal.rhs, and grn.internal.integrateSDE.