Skip to the content.

An external input for HFODE (-input): implementation and tests

Design: evaluation/analysis/INPUT_TERM_DESIGN.md. Motivation: the model that GREMA fits on one IRMA condition does not carry over to the other (IRMA_PREDICTION_REPORT.md, free-running skill -4.7 against persistence), and a stimulus that drives many genes is learnt as regulation between them (SOS). Archive of inputs and results: evaluation/analysis/results/input_term_results.tgz (see evaluation/analysis/results/README.md). HFODE, -f 1, -g 500, default slots, 4 threads.

Answer: the input term works as designed, and it finds the input and predicts a new condition when the data come from the model; on the two real data sets that were tried (IRMA, SOS) it gives no improvement. The criteria of the design were fixed before the runs; where a criterion failed it is reported as failed.

1. What was implemented

2. Test 1: simulation with a known input (sim_input_net.py, eval_input_sim.py)

The IRMA topology (8 gene-gene regulations) plus a stimulus U1 that activates G1 and represses G4; 3 training series with the stimulus at (start, level) = (3, 1.0), (6, 0.6), (4, 0.8), one held-out condition (5, 0.7); 16 points, 5% noise, 10 parameter sets, one GREMA run each.

  Result Criterion
Input edges, AUROC (pooled, 10 seeds) 0.948; 15 of the 20 true input edges called, 15/15 signs right >= 0.8, sign >= 90%: pass
Gene-gene AUROC, with against without the input 0.783 +- 0.079 against 0.763 +- 0.056 (+0.020) not more than 0.05 lower: pass
Held-out condition, free-running skill (against persistence) input 0.919 +- 0.123, no input 0.601 +- 0.540, no-regulation ODE 0.428 +- 0.219, training mean -0.24; the input model beats the no-regulation ODE in 10 of 10 seeds (+0.49) >= 0.1 above the no-regulation ODE: pass
Control: constant input input-edge AUROC 0.453, 0 of 20 true edges called near 0.5: pass
Control: input shuffled between the series input-edge AUROC 0.702, 6 of 20 called, 4 of 6 signs right near 0.5 (0.4-0.6): fail

The shuffled control fails because it is not an independent null: the three inputs are steps that rise at the points 3-6 and the shuffled input of a series correlates 0.73 with its true input (0.62-0.83), so part of the edge signal stays. The held-out prediction separates them clearly: the model trained on the shuffled input gets a skill of -5.3 (+- 18) against 0.92 with the true input. The criterion is kept as failed; a control with an independent input (the stimulus permuted in time) was not run. All the generators of this repository are of the Hill type, so this test shows that the implementation recovers a known input when the model is right, not that real regulation is of this form (compare the signs on real IRMA, SIGNS_REAL_DATA_REPORT.md).

3. Test 2: IRMA switch-on and switch-off as two series, the medium as input (examples/irma_input/)

The medium is constant within a series (1 in switch-on, 0.01 in switch-off): it is a label of the condition, so a model fitted on one condition sees one value of the input and the held-out-condition test of IRMA_PREDICTION_REPORT.md cannot be repeated with an input (a change of the design). Instead both series are fitted together and the later points are forecast (5 GA runs; the models free-running from the last training point, the input of the series given):

Fitted on Forecast With the input (RMSE) Without the input No-regulation ODE Training mean Persistence
first 12 points points 13-16 0.081 +- 0.003 0.077 +- 0.001 0.089 0.106 0.078 / 0.067
first 8 points points 9-16 (the transitions) 0.113 +- 0.002 0.109 +- 0.001 0.101 0.113 0.116 / 0.123

4. Test 3: SOS with the UV dose as input (prep_sos_input.py, eval_sos_input.py)

The exposure is at the first time point, so a step is constant in a series; the input is a decay of the dose (raw 5 and 20, scaled to 0.2575 and 1; half-time 60 min), to have an input that changes within a series. Main design: leave one experiment out (fit on three experiments, which have both doses; predict the fourth), 3 GA runs per fold and mode.

Model held-out skill, mean of the 4 folds  
no input 0.782  
decay of the dose 0.787 +0.005 above no input; above the no-regulation ODE by 0.011: both pass by margins far below the differences between the folds (0.67-0.86)
the same decay in the reverse order of time (control) 0.811 should be worse than the decay by >= 0.1: fail (it is better by 0.024)
training mean / no-regulation ODE 0.784 / 0.776  

5. What this says

Limits