Robustness-audited silencing screens
A silencing screen (sweep: silence_each) predicts how a readout changes when each
candidate cell type is silenced. Those predictions depend on modelling choices: the
synaptic weight w_syn, the predicted neurotransmitter signs, the edge threshold and the
dataset. A robustness: block reruns the screen with each choice changed one at a time,
compares every effect with silencing random neurons, and writes a hit list a wet lab can
plan from (ADR-0011). Everything it reports is a model prediction from wiring, not a
measurement.
Prerequisites
flyconn data pull malecns@1.0 --level nt-probs # NT probabilities for the sign axis (2.65 GB)
flyconn data pull flywire@783 --level weights # replicate dataset
flyconn data pull flylight_lines@meissner2025 # split-GAL4 lines for the handoff
A missing replicate or line table does not stop the run: the replicate axis is reported
as not run and the lines as "not looked up", each with the pull command. A MaleCNS
store without NT probabilities does not stop the run either: the sampled-sign variants
are skipped (never replaced by argmax signs), the NT axis is reported as not run, and
provenance records robustness.nt with the --level nt-probs pull command.
Writing a robustness: block
Add the block to any silence_each spec. The example
examples/specs/w2_robust_pathway_mn9.yaml is the pathway screen of GOLDEN_RESULTS 6h
(LB3 GRNs at 100 Hz, relays on LB3 -> MN9 routes) plus:
robustness:
primary_readout: MN9 # required; must name one of the spec's readouts
readout_proxy: "MN9 motor neurons drive proboscis extension (Shiu et al. 2024, Nature 634:210)"
w_syn: auto # auto | off | [list of mV]
nt_samples: 8 # sampled-sign variants; 0 = off
min_weights: [3, 5] # network.min_weight variants; [] = off
replicate: flywire@783 # null = off
random_null: {n_sets: 40} # random sets per size bin and super_class; 0 = off
# pool: active (default) | all
extra_candidates: # always simulated, labelled `control`, never hits
- {cell_type: "LC4"}
negative_controls: 1 # automatic active off-route controls; 0 = off
A robustness spec also defaults to report: {statistics: paired} (ADR-0012); write
statistics: unpaired to get the M13 behaviour.
w_syn: autouses the dataset's calibration CI ends and sensitivity range (flyconn.sim.CALIBRATIONS). A dataset without a calibration entry needs an explicit list.readout_proxyis free text you supply, with a citation. flyconn never infers behaviour from a readout; the text is copied into the suggested test.extra_candidatestake the same selection grammar asselect. Use them for a negative control: a type with no route from the stimulus to the primary readout. The example uses LC4; the path query that confirms it has no LB3* -> MN9 route is in the spec's header comment. Controls join the reference BH family, so q values differ slightly from the same screen without them; compare effects and CIs instead.- A control only tests something if it fires under the stimulus: silencing a silent
neuron cannot change any run. LC4 fires no spike under LB3 drive, so it passes
trivially.
negative_controls: Nadds the N most active groups (summed stimulated rate at least 1 Hz) with no neuron on any stimulus -> primary-readout path within the pathway'smax_hops(else 3) at min_weight 1. "No route within max_hops" is not "no influence": longer routes remain, so a large effect of such a control is a warning about the model. Every control is listed incontrols.parquetand the report, withinformative= fires under the stimulus. statistics: pairedcompares each variant with the stimulated run trial by trial. Trial k of every condition uses Poisson seed stream k, so the pairing is exact: the CI is a bootstrap over trials of the mean per-trial difference and p is Wilcoxon signed-rank. The difference itself equals the unpaired one. With n trials the Wilcoxon p cannot go below 2^(1-n). With BH over many rows, few trials can make every q exceed alpha. The sweep records the smallest attainable q asq_floorinprovenance.jsonand warns when it reaches alpha. At 10 trials this happens above 25 variant x readout rows; raisetrialsor usestatistics: unpaired.- Every variant silences the reference run's candidates. Whether a variant would have selected the same candidates is reported as selection stability.
Running it
flyconn run examples/specs/w2_robust_pathway_mn9.yaml --out runs/robust_mn9
flyconn run detects the block; there is no separate command. Variants run one after
another, each into runs/robust_mn9/variants/<label>/. An interrupted run resumes when
started again with the same --out: finished variants are skipped and a half-written one
is moved to variants/.incomplete/ and rerun. Changing the spec and reusing the
directory is refused. The MaleCNS example takes tens of minutes on a laptop CPU; see
GOLDEN_RESULTS 6j for the measured time and memory.
Outputs:
| File | Contents |
|---|---|
report.html |
banners, ranked hit table, one evidence card per hit, selection stability, negative results |
handoff.csv |
one row per reference hit, for planning experiments |
hits.parquet |
every candidate x variant on the primary readout, with its label |
null.parquet |
the random-silencing effects (key, seed, set size, difference) |
selection_stability.parquet |
Jaccard overlap of each variant's natural selection with the reference |
controls.parquet |
every negative control: source (auto / extra), stimulated rate, effect and CI, null p, informative |
provenance.json |
spec hash, store fingerprints (also in the plan hash), dataset checksums, every variant's w_syn / sign seed / threshold, null seeds and bins, replicate mapping, line-table checksum, package versions, git SHA |
Reading handoff.csv
One row per reference hit: a candidate whose primary-readout effect has q < 0.05 in the reference run. Columns:
label,direction,effect_hz,ci_low,ci_high,q_value: the reference effect (difference of mean readout rates, silenced minus stimulated; bootstrap 95 % CI, paired over trials by default; BH q over the reference sweep).tier,failed_axes,untested_axes,uninformative_axes,thinly_tested: the robustness verdict (below).replicate: holds / weakens / flips / not testable / not run on the replicate dataset. Informational only.path_stability: mean sign-stability x threshold-presence of the stimulus -> readout paths through the candidate. Informational only.best_line,line_quality,line_specific,line_match,lines: split-GAL4 lines from Meissner et al. 2025 annotated with the candidate type, best quality first.line_matchisexact,globornone; annotations are free text, so check them. No match reads "no annotated split-GAL4 in Meissner 2025"; lines are never invented.off_target_bodies: NeuronBridge candidate counts, only when already cached.suggested_test: a templated sentence ("silence X (e.g. Kir2.1, GtACR1) under the stimulus; the model predicts the readout goes down by N Hz"). The effectors are examples, not recommendations.
Candidates that were not reference hits are listed in the report's negative-results
section, not in handoff.csv.
What the tiers mean
Each variant gets a label against the reference sign: holds (same sign, CI excludes 0), weakens (CI includes 0) or flips (opposite sign, CI excludes 0). Axis verdicts:
| Axis | Robust when |
|---|---|
| w_syn | holds at every w_syn value |
| NT signs | holds in at least 6 of 8 sign samples (any flip is listed) |
| threshold | holds at every min_weights value |
| random null | p < 0.05: silencing the candidate moves the readout further, in its direction, than silencing random sets of the same size bin and super_class (drawn from neurons that fire under the stimulus); uninformative when at least half the random sets changed nothing |
| replicate | reported, never graded |
- Strong: robust on every graded axis that ran.
- Conditional: fails exactly one graded axis; the card names it.
- Fragile: fails two or more.
Axes that were off or not run are untested, not failed. An uninformative random null is neither a pass nor a fail, and does not count towards the two axes below which a hit is thinly tested. No correction is applied across variants; they test the stability of one effect, not new hypotheses.
Caveats (on every evidence card)
- Model predictions from wiring plus Shiu LIF dynamics; not measurements.
- MaleCNS w_syn calibrated by protocol, not validated (ADR-0009). Other datasets without a calibration entry run at Shiu's published w_syn, uncalibrated.
- NT signs are predicted; sampled-sign variants assume the published probabilities are calibrated.
- The replicate runs at an uncalibrated w_syn on a different sex; disagreement may be biology or calibration.
- Line annotations are curated text and may not match EM type names one to one.
- "Strong" means robust within the tested axes, not true.
Two more limits of the random null:
- The random null can be degenerate. In the M13 MaleCNS golden run nearly all random sets
changed the readout by exactly 0 Hz (GOLDEN_RESULTS 6j), so p floors at 1 / (n_sets + 1)
for any nonzero effect. Since M14 such a null scores
uninformativeand the pool is restricted to neurons that fire under the stimulus (pool: active); a bin whose active pool is smaller than the set size is skipped, with the reason recorded. Checknull.parquetbefore relying on that axis. - The random pool excludes the stimulus and the primary readout. If the primary readout
is a whole super_class, candidates of that super_class get no null p and the axis is
reported untested for them, with the reason on the card (
provenance.json,robustness.random_null.skipped).