DREAM4 in silico size 10: GREMA, dynGENIE3 and the permutation control; the source of the data
Question: DREAM4 is the standard simulated benchmark (GeneNetWeaver: network structures taken from E. coli and yeast, mRNA and protein dynamics, noise; the generating model is not the model of GREMA). Does GREMA find the structure there, do the scores come from the regulation, and how does it compare with dynGENIE3?
Archive: evaluation/analysis/results/dream4_size10_results.tgz (see evaluation/analysis/results/README.md). Scripts: dream4_verify_source.py, eval_dream4.py, dream4_signs.py, eval_dream4_slots.py, eval_dream4_null.py, eval_dream4_genefit.py, dream4_perreg_fit.py, eval_dream4_perreg.py.
Answer: on the five 10-gene networks GREMA detects the regulations (AUROC 0.73, the permutation control falls to 0.56), at the level of dynGENIE3 in AUROC (0.74-0.76; the difference is within the noise) and below it in AUPRC (0.36 against 0.51-0.53). The signs of the called edges are right in 95% (57 of 60; signs derived from the knockout data for 27 of the 71 gold edges).
1. The source of the data (dream4_verify_source.py)
The repository does not say where its DREAM4 files come from (added in 2019-2020). They were compared with an independent public copy: the Bioconductor data package DREAM4 1.28.0 (Bioconductor 3.13; inst/extdata/lightlyProcessedDownloadedData.tar.gz holds the text files of the challenge).
- Size 10, networks 1-5: identical. 5 series of 21 time points (times 0 to 1000, step 50), the largest difference of a value is 0, the gold standards have the same 15, 16, 15, 13, 12 edges. In every series a perturbation is applied in the first half and removed in the second (the description of the challenge).
- Size 100: three of the five files of the repository are damaged (not used here): network 1 has 15 cells that differ from the official file (for example
6898396for0.6898396), network 2 has 1,133 and network 4 has 2,200 (of 21,000 each); the networks 3 and 5 are identical (the two header lines of network 5 have trailing tabs). The gold standards of size 100 are identical for all five networks (176, 249, 195, 211, 193 edges). The size-100 inputs of the networks 1, 2 and 4 must be replaced by the official files before they are used, and the stored resultsoutput/Dream4_100_{1,2,4}should not be cited.
2. Runs (rules fixed before the runs)
GREMA: HFODE, no prior knowledge (input/insilico_size10_no_prior_knowledge.txt), -f 1 -g 500, default slots, 3 runs per network; the experiment-permutation control (permute_replicates.py, 2 permuted copies per network, 1 run each).
dynGENIE3 (RF and ET, 5 seeds; 10 permuted copies per network for RF). |Pearson| of the two profiles (all series joined). Directed gold standard, 90 non-self pairs per network; AUROC / AUPRC, mean of the 5 networks; random AUPRC 0.158.
3. Results
| Method | net 1 | net 2 | net 3 | net 4 | net 5 | mean AUROC / AUPRC |
|---|---|---|---|---|---|---|
| GREMA vote (mean of the 3 runs) | 0.802 | 0.615 | 0.695 | 0.810 | 0.746 | 0.734 / 0.363 |
| GREMA vote pooled over the 3 runs | 0.817 | 0.634 | 0.719 | 0.814 | 0.764 | 0.750 / 0.424 |
| GREMA confidence level | 0.745 | 0.570 | 0.634 | 0.825 | 0.765 | 0.708 / 0.298 |
| dynGENIE3 RF | 0.745 | 0.653 | 0.700 | 0.747 | 0.876 | 0.744 / 0.513 |
| dynGENIE3 ET | 0.762 | 0.691 | 0.705 | 0.783 | 0.880 | 0.764 / 0.527 |
| |Pearson| | 0.674 | 0.578 | 0.619 | 0.666 | 0.732 | 0.654 / 0.311 |
| GREMA vote, experiments permuted | 0.511 | 0.576 | 0.511 | 0.519 | 0.682 | 0.560 / 0.206 |
| dynGENIE3 RF, experiments permuted | 0.605 | 0.580 | 0.620 | 0.618 | 0.563 | 0.597 / 0.261 |
| stored result of the repository (confidence, before the bug fixes) | 0.744 | 0.683 | 0.687 | 0.830 | 0.753 | 0.739 / 0.312 |
(AUROC per network; the last column AUROC / AUPRC.)
- The scores come from the regulation: with the experiments permuted GREMA falls from 0.73 to 0.56 and dynGENIE3 from 0.74 to 0.60. DREAM4 is a valid benchmark for the detection (like Hackett, unlike SOS).
- GREMA against dynGENIE3: paired over the networks, AUROC of GREMA minus RF -0.011 +- 0.035, minus ET -0.031 +- 0.033 (GREMA higher in 2 of 5 networks in both): no difference that can be told. The AUPRC of dynGENIE3 is clearly higher (0.51-0.53 against 0.36; 0.42 for the pooled vote): its best-ranked pairs are more often true. GREMA calls 9.5 of the 14.2 true edges per run and 24.3 false ones: with three slots per gene it calls about 34 regulations for 14 true ones.
- GREMA is better than the correlation (0.73 against 0.65), and pooling the vote of 3 runs helps a little (+0.016 AUROC, +0.06 AUPRC).
- The stored results of the repository (made before the bug fixes of 2026, confidence level only) give the same picture (0.739 against 0.708 for the confidence level now; not the same runs, the difference is within the run-to-run variation).
4. Signs (dream4_signs.py): right for 95% of the called edges whose sign can be derived
The gold standard of DREAM4 has no signs. They were derived from the knockout data of the same challenge (wildtype.tsv, knockouts.tsv, knockdowns.tsv of the Bioconductor copy), independently of the time series, with a rule fixed before the signs of GREMA were looked at:
for a gold edge A -> B, B lower after the knockout of A = activation, B higher = repression; the sign counts as known when the change is at least twice the noise (0.091 = the sd of the change of the genes that cannot be reached from the knocked-out gene, 250 pairs; threshold 0.182) and the knockdown changes B in the same direction.
The sign is known for 27 of the 71 gold edges (5, 0, 10, 7, 5 in the networks 1-5; 11 activating, 16 repressing; 11 of them have another directed path from A to B that can add an indirect effect). Files: evaluation/gold_standards/10_signs_from_knockouts/.
| sign right | |
|---|---|
| GREMA (the 3 runs of every network; signed true edges that are called) | 57 of 60 (95%); 19 of the 20 different edges (the same edge of network 3 is wrong in all 3 runs); edges without another directed path 33 of 36 (92%) |
| sign of the Pearson correlation of the two time courses (all 27 signed edges) | 24 of 27 (89%) |
| sign of the lag-1 regression coefficient (all 27) | 23 of 27 (85%) |
every edge + / random |
41% / 50% |
- On DREAM4 the signs of GREMA are right, as in the other simulations (92-100%) and unlike real IRMA (25-50%). The simple baselines are right too (85-89%): in these data the sign of the association is the sign of the regulation, which is exactly what fails on real IRMA (
SIGN_DIAGNOSIS_REPORT.md, #35). So the sign problem of real data is not a matter of a generating model that differs from the Hill model (DREAM4 has mRNA and protein and other regulation functions), in agreement withNONHILL_FORM_REPORT.md(#34). - Limits of this check: only the edges with a clear knockout effect get a sign (27 of 71, none in network 2), and these are the strong regulations, the easiest ones; GREMA calls 20 of the 27; an indirect path can set the derived sign (11 edges are marked).
5. Two regulator slots instead of three (eval_dream4_slots.py)
With no prior knowledge a gene has 9 candidates and round(9/3) = 3 slots; a regulation that is fixed in an iteration keeps its slot and one free slot stays, so the final result can have more: GREMA called 3 regulators for 95 of the 150 genes (15 runs x 10 genes), 4 for 50, 5 for 4, 2 for 1,
while in the gold standards 12 of the 50 genes have no regulator, 20 have one, 8 two, 5 three and 5 four. The same runs with GREMA_SLOT_DIV=4 (2 slots), everything else unchanged, 3 runs per network:
| 3 slots (default) | 2 slots | |
|---|---|---|
| vote, mean of the runs: AUROC / AUPRC | 0.734 / 0.363 | 0.739 / 0.428 |
| vote pooled over the 3 runs: AUROC / AUPRC | 0.750 / 0.424 | 0.735 / 0.451 |
| true edges called per run (of 14.2) | 9.5 (recall 0.67) | 8.6 (recall 0.61) |
| false regulations called per run | 24.3 (precision 0.28) | 11.2 (precision 0.43) |
| regulators called per gene | 3 to 5 | 2 (147 of 150 genes), 1 (3) |
| signs of the called signed true edges | 57 of 60 | 57 of 57 |
Paired over the networks, 2 slots minus 3 slots: AUROC +0.005 +- 0.019, AUPRC +0.066 +- 0.022 (higher in 4 of 5 networks); pooled vote: AUROC -0.014 +- 0.023, AUPRC +0.027 +- 0.013.
- Two slots halve the false regulations (24.3 to 11.2) for one true edge less (9.5 to 8.6); the AUROC does not change and the AUPRC rises, still below dynGENIE3 (0.51-0.53). This is the trade of the earlier slot tests on IRMA and Hackett (
SSYSTEM_SLOTS_REPORT.md,HACKETT_REPORT.md), now on five networks with a valid control. - The slots are always filled: every gene gets exactly 2 regulators with 2 slots (3 or more with 3), also the 12 genes that have none. GREMA has no way to say that a gene needs fewer regulators than it has slots; a penalty for an additional regulator, or a threshold on the vote score for the called regulations, would be needed (not implemented).
6. A threshold on the vote score from the permutation control (eval_dream4_null.py)
The rule, written and committed before the additional control runs were made and before anything was computed (the gold standard is not used to set it):
- Null distribution of a network: the VOTE_SCORE of the 90 non-self pairs in 10 GREMA runs on experiment-permuted copies of its data (
permute_replicates.py, seeds 1-10, the settings of the real runs: 3 slots, no prior knowledge,-f 1 -g 500), 900 values. - Threshold of the network: the 95th percentile of that distribution. One percentile, not varied.
- A regulation that GREMA calls (
+or-) in a run on the real data is kept when its VOTE_SCORE is above the threshold of its network; the others are dropped. - Reported whatever the outcome, for the 15 real runs with 3 slots: true and false regulations per run, precision and recall before and after, the number of regulators per gene after, and how many regulations stay for the 12 genes that have no regulator. The AUROC and the AUPRC do not depend on a threshold and are not changed by it.
- Known weakness, stated in advance: the real runs were already looked at (sections 3-5) when this rule was written; the same rule has to be applied unchanged to data that took no part in it before it is recommended.
Result: the rule fails. With the 10 permuted runs of every network (50 runs, 900 null values per network) the 95th percentile of the null is 1.000 in all five networks, the largest value a vote score can take, so no regulation is above it: of the 9.5 true and 24.3 false regulations called per run, 0 are kept.
Why (a description made after the result, not a new rule): the vote score is not calibrated, it saturates on data without regulation.
- On the permuted data 12.1% of all pairs have a vote of 1.000 (20.5% are at 0.9 or more; the percentiles 50 / 75 / 90 are 0.19 / 0.80 / 1.00), and GREMA calls 33.2 regulations per run there, as many as on the real data (33.8), a third of them with a vote of 1.000.
- On the real data 37% of the true pairs and 9% of the false pairs have a vote of 1.000; among the called regulations 56% of the true and 28% of the false ones. So the vote separates true from false pairs on average (that is the AUROC of 0.73, against 0.56 on permuted data), but its upper end does not: a vote of 1.000 means that all the GA runs chose that regulator for the gene, which also happens when the data carry no regulation, because every gene must fill its slots with some regulator and the best-fitting one is chosen consistently. A threshold on the vote of a single run therefore cannot tell a regulation from a consistently chosen stand-in, and GREMA calls about as many regulations on data without regulation as on real data. A lower percentile was not tried (it would be a choice made after seeing the result).
What would be needed instead (not done): a score that is compared with the null for the same pair or the same gene (how much better the fit of the gene is with the regulator than without, against the same quantity on permuted data), or a penalty for an additional regulator inside the fit. Both are changes of the method, not of a threshold.
7. Does a gene have any regulator? A per-gene comparison of the fit with the permutation control (eval_dream4_genefit.py)
The rule, written and committed before anything was computed (offline, from the result files that exist; the gold standard is not used in the rule):
- Statistic of a gene in a run: F = the lowest fitness of its 30 GA runs in the final model (
out/G<i>.txt, the column before the last; fitness-f 1, lower = better fit). - Null of the gene: F of the same gene in each of the 10 runs on experiment-permuted copies of the network. The permutation keeps the own time courses of the gene (the same set of series) and destroys their coupling to the other genes, so a gene whose regulators carry information should be fitted better on the real data than on any permuted copy.
- Decision: the gene has a regulator in a real run when F is lower than all 10 null values (rank 1 of 11, one-sided p = 0.09); otherwise all the regulations that GREMA calls for the gene are dropped. One rule, not varied.
- Reported whatever the outcome, for the 15 real runs with 3 slots (150 gene-runs; 38 of the 50 genes have at least one regulator in the gold standard, 12 have none): the genes flagged among those with and without a regulator (sensitivity, specificity); the AUROC of z = (mean of the null - F) / sd of the null for the label “has a regulator”; the true and false regulations per run, precision and recall before and after; and the calibration without the gold standard: each permuted run against the other 9 (the share of genes flagged, expected 10%).
- Known weaknesses, stated in advance: the real runs were looked at before (sections 3-6); the rule decides for a whole gene, not for a pair (a per-pair contrast of the fitness was tried before and was worse than the vote,
METHODS_REPORT.mdsection 3); 10 null values give a coarse p value.
Result: the rule recognises every gene without a regulator, and loses half of the genes that have one.
| 150 gene-runs (15 real runs x 10 genes) | flagged “has a regulator” |
|---|---|
| genes without a regulator in the gold standard (36 gene-runs) | 0 of 36 (specificity 1.00) |
| genes with at least one regulator (114 gene-runs) | 56 of 114 (sensitivity 0.49) |
| AUROC of z for “has a regulator” | 0.779 (median z 0.92 with a regulator, -0.14 without) |
| regulations per run (14.2 true) | true | false | precision | recall | F1 |
|---|---|---|---|---|---|
| all that GREMA calls | 9.5 | 24.3 | 0.28 | 0.67 | 0.39 |
| after dropping the genes that are not flagged | 5.2 | 7.3 | 0.41 | 0.37 | 0.39 |
- The fit of a gene against its fit on permuted data carries real information about whether the gene is regulated at all (AUROC 0.78; no gene without a regulator passes the rule in any of the 15 runs). This is what the vote score could not do (section 6): the comparison is made for the same gene, so the saturation of the vote does not enter.
- As a filter it does not improve the list: the rule is strict (lower than all 10 null values) and drops half of the regulated genes, so two thirds of the false regulations go (24.3 to 7.3) but so does almost half of the true ones (9.5 to 5.2); the F1 is unchanged (0.39). Inside a flagged gene all the slots are still filled, so false regulators remain (7.3 per run).
- The calibration that was announced (each permuted run against the other nine) gives 10.0%, but it is 10% by construction (exactly one of the ten exchangeable runs is the lowest) and says nothing; it should not have been listed as a check. The specificity on the 36 gene-runs without a regulator is the only evidence on false positives, and it uses the gold standard.
- Not tried (they would be choices after the result): a less strict rule, more null runs for a finer p value, a per-regulator version (the gain of the fit from one regulator against the same gain on permuted data), which is what the list would need.
8. Is a called regulator needed? A conditional permutation test for every called regulation (dream4_perreg_fit.py, eval_dream4_perreg.py)
The rule, written and committed before any of these fits was made (new fits of single genes with the solver; the gold standard is not used in the rule):
- For every real run (the 15 runs with 3 slots), every gene i and the regulators R_i that GREMA calls for it (
+or-): the structure is fixed to R_i (each member?with its own slot, every other pair 0) and gene i is fitted again (30 GA runs,-f 1 -g 500); F_real = the lowest fitness. - For every regulator j in R_i, 10 times: the series of j are exchanged between the 5 experiments by a random permutation that is not the identity (gene i and the other regulators stay as they are), gene i is fitted with the same structure, F_k = the lowest fitness.
- The regulation j -> i is kept when F_real is lower than all 10 F_k (one-sided p = 0.09): the real series of j fit the gene better than the series of j from the wrong experiments. One rule, not varied.
- Reported whatever the outcome: of the called true and false regulations how many are kept; true and false regulations per run, precision, recall and F1 before and after; the AUROC of z = (mean of F_k - F_real) / sd of F_k for true against false among the called regulations; the regulators per gene after; what stays for the 12 genes without a regulator; and, as a description, which kind of false regulations are kept (the reverse of a true edge, a gene with a directed path to the target, two targets of a common regulator, others).
- Known weaknesses, stated in advance: the test is conditional on the structure that GREMA found (a missing true regulator is not recovered); a regulator that is informative without being a direct regulator (reverse, indirect, a common cause) can pass, so the kept false regulations are not expected to be at 9%; there is no check of the false-positive rate without the gold standard (the one of section 7 was empty); 10 permutations give a coarse p value, and the GA noise of a single fit enters the comparison.
Result (5,220 single-gene fits, none failed; 507 called regulations tested, 142 true and 365 false): the test keeps two thirds of the true and a quarter of the false regulations; the list improves, about as much as with two slots.
| kept by the test | |
|---|---|
| called true regulations | 94 of 142 (0.66) |
| called false regulations | 84 of 365 (0.23; the level of the test is 0.09) |
| AUROC of z, true against false among the called | 0.758 (median z 2.30 true, 0.69 false) |
| regulations per run (14.2 true) | true | false | precision | recall | F1 |
|---|---|---|---|---|---|
| all that GREMA calls (3 slots) | 9.5 | 24.3 | 0.28 | 0.67 | 0.39 |
| kept by the test | 6.3 | 5.6 | 0.53 | 0.44 | 0.48 |
| for comparison: 2 slots, no test (section 5) | 8.6 | 11.2 | 0.43 | 0.61 | 0.51 |
- The number of regulators per gene now comes from the data: after the test 40 gene-runs have no regulator, 58 one, 37 two, 14 three, 1 four (before: 3 to 5 for every gene). For the 12 genes without a regulator, 25 of the 122 called regulations stay (0.20).
- The test is not at its level: 23% of the false regulations pass where 9% is expected, and also the false ones that are neither a reverse edge, nor indirect, nor targets of a common regulator pass at 24% (39 of 165; reverse 19 of 86, a directed path 17 of 94, common regulator 9 of 20). So the excess is not explained by informative indirect relations. A likely cause, not tested: the series of one experiment share the state of that experiment (in DREAM4 every series has its own perturbation), so the real series of any gene of the same experiment fit better than series from another experiment; the exchange of j between experiments destroys this as well as the regulation.
- Cost against gain: 5,220 fits (about 6 hours on 18 cores for 15 runs of a 10-gene network) raise the F1 from 0.39 to 0.48 and the precision from 0.28 to 0.53. The plain choice of 2 slots reaches an F1 of 0.51 for nothing (lower precision, higher recall). The test was not run on the 2-slot results.
- Not tried (choices after the result): a stricter level or more permutations, a permutation that keeps the experiment (for example a shift in time inside the series), the test on the 2-slot runs.
9. What this adds
- A third data set, next to the Hill simulations and Hackett, on which the scores of GREMA come from the regulation: simulated, but with a generating model that is not the model of GREMA (mRNA and protein, other regulation functions), 5 different networks and 5 perturbation series each. GREMA detects there, without an advantage over dynGENIE3.
- GREMA calls as many regulations on experiment-permuted data as on the real data (33 per run), and a threshold on the vote score from the permutation control keeps nothing (section 6): the list of called regulations has no control of false positives; only the ranking carries the information.
- A per-gene comparison of the fit with the permutation control tells the genes that have no regulator (0 of 36 pass, AUROC 0.78), a first quantity of GREMA that is calibrated against a null; as a filter of the list it trades true for false regulations without a gain (section 7).
- A conditional permutation test of every called regulation makes the number of regulators per gene depend on the data and raises the precision of the list from 0.28 to 0.53 (F1 0.39 to 0.48), but it lets 23% of the false regulations pass (level 0.09) and costs 5,220 fits; two slots give a similar F1 for nothing (section 8).
- The signs are right there (section 4), for the edges whose sign can be derived from the knockouts. It says nothing about real data or about 100 genes (not run; three inputs must be replaced first).
Limits
- 5 networks of 10 genes, 3 GREMA runs each (the sd between runs is not shown; the differences between the networks, 0.62-0.81, are larger than between the methods); the permutation control of GREMA has 2 copies per network.
- No prior knowledge, default slots, equal time steps, the perturbation of each series not given as an input (
-inputcould describe it: applied in the first half, removed in the second; not tried). - dynGENIE3 was run with the time points as equal steps and its default parameters.