# Review 5: "Local flow directions can persist above diseased airway cells even when the overall flow looks disordered"

**Recommendation: major revisions**

## Summary

The paper asks whether, in DNAH11 PCD airway cultures, poor field-wide alignment of bead motion hides flow directions that stay put in space over seconds. It fits velocities to bead tracks in an early window (about the first 1.5 s) and a late window (the last 1.45 s). It then asks whether early neighbours, after removing a robust affine whole-field flow, improve prediction of late velocities. Two weakly aligned fields from different donors, Rep101 (discovery) and Rep66 (fixed validation sample), show better vector and angular prediction. These gains survive common-motion subtraction, full-path separation and window-specific track selection.

I reran the core analysis with my own code, written from the Methods text. The numbers reproduce exactly. The basic observation also holds: in these weakly aligned fields, the spatial pattern of flow direction persists from the early to the late window. But one extra check changes what that observation means. **A smooth quadratic whole-field flow, fitted to early tracks only, predicts late directions in Rep101 and Rep66 as well as or better than the paper's "affine + local" predictor. Once it is used as the broad baseline, local neighbours add almost nothing.** So the evidence shows a persistent, smoothly curving flow at the scale of the whole field, not local flow domains. The headline gains (12.44%; 0.502 → 0.340) measure improvement over an affine baseline that is too simple for these fields. The paper also still leaves out three facts that its own tables contain and that the previous review and the editor both raised.

## What I reran

My reimplementation used no project code. It reads the released spot and track tables, then:

- takes the top 150 tracks by mean quality and drops tracks with maximum speed above 5 px/frame;
- fits velocities by OLS in frames 0–149 and 300–444, requiring at least 50 points, span at least 50 and n/span at least 0.8, with a 100-px border;
- uses opposite-parity training and target tracks;
- fits a robust affine flow with 15 reweightings;
- adds the componentwise median residual of 3–8 neighbours at 75–400 px;
- applies the 3-px moving threshold.

Results, using the paper's whole-window polarization:

| Field | Polarization | Targets (moving) | Vector gain | Angular loss, affine → affine+local |
| --- | --- | --- | --- | --- |
| Rep101 | 0.263 | 72 (66) | 15.21% | 0.519 → 0.237 |
| Rep66 | 0.437 | 104 (73) | 12.44% | 0.502 → 0.340 |
| Rep50 | 0.818 | 70 (61) | 18.91% | 0.179 → 0.179 |
| Rep102 | 0.479 | 60 (56) | 8.06% | 0.193 → 0.195 |
| Rep27 | 0.271 | 117 (20) | −5.20% | 0.570 → 0.721 |
| Rep97 | 0.427 | 42 (41) | −0.61% | 0.359 → 0.332 |
| Normal Rep14 | 0.361 | 36 (36) | 12.60% | 0.474 → 0.389 |
| Normal Rep167 | 0.213 | 27 (27) | −3.79% | 0.778 → 0.637 |

Every value matches `paper_dnah11_table.csv`, `paper_field_table.csv` and Table 1. The data handling and the predictor are implemented as described.

## Main issues

### 1. The "local" gain is mostly smooth field-scale curvature that a quadratic broad flow captures

The affine baseline allows uniform flow, rotation, shear and expansion, but no curvature. A flow that bends across a 2,100-px field, such as a large swirl or a stream that turns, has low polarization. An affine fit misses its curvature. A median of neighbours 75–400 px away then recovers that curvature, and the gain gets labelled "local". With about 50 training tracks per split, neighbours sit roughly 250 px apart, so the "local" correction already averages over a large fraction of the field.

To test this, I added x², xy and y² terms to the same robust broad fit. Everything else stayed fixed: early tracks only, opposite parity, the same targets and the same moving set. Mean over the two splits:

| Field | Angular loss: affine | affine + local | **quadratic** | quadratic + local | Vector error, affine+local ÷ quadratic | Vector gain of local over quadratic |
| --- | --- | --- | --- | --- | --- | --- |
| Rep101 | 0.519 | 0.237 | **0.169** | 0.206 | 1.01 (0.95, 1.08 by split) | +0.9% |
| Rep66 | 0.502 | 0.340 | **0.324** | 0.289 | 1.05 (1.08, 1.01) | +1.4% |
| Rep50 | 0.179 | 0.179 | 0.289 | 0.277 | 0.97 (1.06, 0.89) | +4.1% |

- **Rep101.** The quadratic broad flow alone predicts direction much better than affine + local (0.169 vs 0.237). Adding neighbours then makes direction worse. Local information adds under 1% to vector error.
- **Rep66.** The quadratic flow alone matches affine + local on direction (0.324 vs 0.340) and on vector error. Neighbours add a small further angular gain (0.324 → 0.289), almost all of it in one split (0.349 → 0.290; the other split goes 0.298 → 0.288), and about 1.4% on vectors.
- **Across the other 18 DNAH11 and control fields I ran**, local information over a quadratic baseline improved vector error by more than 2.5% in only two: Rep70 (+5.6%) and Rep97 (+7.3%, though its affine+local error is no better than the quadratic broad error, ratio 0.996). Rep108, the other DNAH11 field that the paper notes improved on both endpoints, has a quadratic broad angular loss of 0.266, against 0.320 for affine + local.

Two things follow.

- **The finding survives in a different and arguably more interesting form.** The paper wants to separate persistent organization from incoherent motion, and the answer is clearer than the paper states. In both headline fields, a 12-parameter smooth flow fitted in the first 1.5 s predicts late directions well. Angular loss is 0.17 and 0.32, against 0.46 and 0.65 for a uniform-direction predictor fitted to the same early tracks. The flow is coherent and persistent, and field-wide polarization is low because the flow curves.
- **The headline numbers and the "local" framing do not hold up.** The 12.44% / 0.502 → 0.340 result, Rep66's role as the validation hit, and statements such as "accounting for local motion" and "early motion near a location helped predict which way particles would move there later" all rest on the affine baseline. The paper picked that baseline and never tested whether it was adequate. `DIRECTION_CHALLENGE.md` itself warns that the affine comparator is arbitrary. The paper should report a higher-order (at least quadratic) broad baseline, or a cross-validated choice of order. It should restate the claim as persistence of a spatially varying, field-scale flow pattern in weakly aligned fields. It should not imply sub-field domains, which the data at this track density cannot resolve.

The check is cheap to reproduce: in `affine()` in `analysis/analyze.py`, add columns x², xy and y² (scaled by 1/1000 like x and y) to the design matrix, and change nothing else.

### 2. The validation denominator and the counter-examples are still missing

The validation and reporting criteria are polarization < 0.5 and at least 10 moving targets in each split. Under these criteria the 20 DNAH11 fields contain **five** eligible fields: Rep101, Rep97, Rep66, Rep102 and Rep27. Of these:

- two (Rep101, Rep66) improve on both endpoints;
- Rep97 improves slightly on direction but not on vectors;
- Rep102 improves on vectors only;
- Rep27 is worse on both (0.570 → 0.721).

In the fixed 12-field validation sample, three fields were eligible and one showed the pattern. "Only Rep66 met those criteria" hides the fact that two of the three eligible fields did not. The paper names Rep102 but not Rep27. It should give these counts in the Results.

Low polarization in this cohort often goes with near-stationary beads. Rep27, Rep9, Rep53 and Rep113 have median late displacements of 1.2–1.9 px. In such fields, low polarization partly reflects tracking noise rather than cancelling flows. One sentence on this would help readers interpret the polarization axis of Figure 1.

### 3. Healthy fields show the same pattern

Normal Rep14 meets the paper's own validation definition on split means: polarization 0.361, at least 15 moving targets per split, vector gain 12.6%, angular loss 0.474 → 0.389. Normal Rep167 (polarization 0.213) improves directionally, 0.778 → 0.637. The paper says only that "some healthy fields showed substantial vector gains", and the introduction and `so_what` present the pattern as something that survives in disease. With 2 of 4 supported healthy fields showing it, weak polarization combined with spatially persistent direction is a feature of this assay, not of DNAH11. The paper should say this. It is arguably the more useful message for anyone who reads polarization or dispersion scores, such as CiliaTracks' directionality features, as evidence of disorder.

### 4. The angular endpoint, on which the claim rests, has no uncertainty

I recomputed the angular improvement under 999 shuffles of early residuals over fixed locations, the paper's own null applied to the angular endpoint.

- **Rep66.** In split 0, the observed angular improvement (0.076, 37 moving targets) was matched or beaten by 54 of 999 shuffles (rank p ≈ 0.055). A paired bootstrap over targets gives a 95% interval of −0.14 to +0.29. Split 1 is clear (p = 0.001; interval +0.06 to +0.43).
- **Rep101.** Both splits are clear (p = 0.016 and 0.001).

The editor's note found 14 of 199 for Rep66's weaker split, which agrees with my result. Report these numbers. Without them, the Rep66 "both splits improve" statement carries more weight than one split supports.

## Smaller points

- **The scan.** The Methods mention "10,836 configurations for spatial tests" without saying what varied. One clause would fix this.
- **The source of the flow.** A persistent, smooth, curved field-scale flow could be driven by cilia. It could also come from slow meniscus or convective flow in the insert, or from spatially varying optical distortion. This weighs more after issue 1. The Interpretation should say plainly that the trajectories cannot show the flow is cilia-driven.

## Is `record.json` fair?

- **`so_what`.** "In airway cells grown from two people … nearby particles moved in locally predictable directions" reads as a property of those people's cultures. In fact, most fields from the same donors did not show it, healthy fields also show it, and the structure is field-scale rather than "nearby". A fairer version: "In some recordings of airway cells from people with DNAH11-related ciliary dyskinesia, and in some from healthy donors, particle flow that looked disordered across the whole view was actually a steady, smoothly curving pattern. A low 'alignment' score therefore does not by itself mean the flow is disorganized."
- **`findings`.** These need the eligible denominators (2 of 5; 1 of 3 in validation), the healthy-control comparison and the quadratic-baseline result.
- **`importance` 2.** This is the right level if the claim is reframed as "field-wide polarization hides persistent curved flow in this assay". The reason should drop "in DNAH11 cultures".
- **`type: finding`.** This is reasonable.

## Does the paper answer its question?

Partly. It shows that, in some weakly aligned DNAH11 fields, flow direction at a location persists from one window to the next. The motion is not temporally incoherent. It does not show local flow domains: a smooth quadratic field fitted to early tracks accounts for nearly all of the directional gain attributed to local neighbours. The same pattern appears in healthy fields, and it recurs in only a minority of eligible DNAH11 fields.

## Single most important improvement

Replace the affine broad baseline with a quadratic (or cross-validated higher-order) smooth flow, and restate the claim around what remains. Weak field-wide polarization in these recordings, healthy and DNAH11 alike, can hide a smoothly curving flow that persists over seconds. Local information beyond that smooth field is small and limited to one split of Rep66. Then report the eligible-field denominators, the healthy fields that meet the same criteria, and the angular-shuffle ranks.
