One messy ELISA CSV, six reasonable code choices, and p-values from 0.0001 to 0.1161
See how six clean Python scripts on one 36-row ELISA CSV swing lift from +40.8% to +94.5% and p-values from 0.00012 to 0.11606, with verified notebook.
By Amir Hesham

When an AI coding agent makes a mistake in a web app, the test suite fails or the build breaks. When an AI analysis script makes a mistake on lab data, the code runs with exit code 0, prints a crisp p-value, and hands you a clean chart.
To see how wide that gap gets in practice, we built a small, realistic 36-row preclinical ELISA dataset (preclinical_assay_messy.csv) and ran six ordinary Python analysis paths against the exact same plain-English question: does Candidate_M4 increase cytokine secretion over Vehicle? Every path executed with zero errors. The reported increase swung from +40.8% to +94.5%, and the two-sided p-value swung from 0.00012 to 0.11606, flipping the conclusion across p = 0.05 twice.
Download the verified files for this audit: preclinical_assay_messy.csv (36 rows, 12 donors, SHA-256 5599ea1d3527) and silent_assumptions_audit.ipynb (executed clean-start with zero errors).
The dataset and its three everyday wet-lab traps
Nothing in preclinical_assay_messy.csv is exotic. Anyone who has exported a 96-well plate reader file has seen all three quirks in the wild:
- Three technical wells per biological donor. The file holds 36 rows across 12 donors, six in
Vehicleand six inCandidate_M4, with three technical replicates (tech_well1, 2, 3) per donor. Treating individual wells as independent samples is classic pseudoreplication. It inflates sample size fromn = 6donors per arm ton = 16or18wells per arm and artificially shrinks p-values. - Below-detection strings in the cytokine column. Donor
D05in theVehiclearm reads<LODin technical wells 2 and 3, taggedbelow_4pg_mLinwell_note. A quickpd.to_numeric(..., errors="coerce")followed bydropna()throws those two low readings away silently, pushing theVehiclemean upward. Substituting half the limit of detection (LOD/2 = 2.0 pg/mL) keeps them in the dataset. - One edge-well evaporation spike. Donor
D10in theCandidate_M4arm has a single reading of218.40 pg/mLin technical well 3, taggededge_well_H12. The next four highest readings on the entire plate sit between42.75and47.78 pg/mL(D12at47.78,D08at45.98,D12at43.95, andD10well 1 at42.75).
On top of those three traps, the table includes a plate_blank_pg_mL column for background subtraction, and a script still has to choose a statistical test: Student's t-test, Welch's t-test, or Mann-Whitney U.
This is what Gelman and Loken called the garden of forking paths, and what Silberzahn and colleagues showed in 2018 when 29 research teams analyzed the same dataset and reached opposite conclusions. With an AI writing pandas code faster than most users read it, those forks happen automatically inside collapsed code blocks. You can see how Dalliance exposes these decisions inline in the interactive demo on dalliance.io before installing anything.
Six clean Python paths, one CSV
In Cell 4 of silent_assumptions_audit.ipynb, we ran six realistic decision paths on preclinical_assay_messy.csv. Every row below is computed directly by the verified notebook from the raw plate export:

| Analytical path | n (Vehicle) | n (Candidate_M4) | Vehicle mean (pg/mL) | Candidate mean (pg/mL) | Lift (%) | Two-sided p-value | Significant at 0.05 |
|---|---|---|---|---|---|---|---|
1. Naive well-level, drop <LOD, keep outlier, no blank subtraction (Student t) | 16 | 18 | 27.07 | 46.46 | +71.7% | 0.08598 | NO |
2. Well-level, blank subtracted, drop edge outlier, drop <LOD (Welch t) | 16 | 17 | 22.86 | 32.19 | +40.8% | 0.00012 | YES |
3. Donor-collapsed, blank subtracted, keep edge outlier, drop <LOD (Welch t) | 6 | 6 | 21.75 | 42.30 | +94.5% | 0.11606 | NO |
4. Donor-collapsed, blank subtracted, drop edge outlier, drop <LOD (Welch t) | 6 | 6 | 21.75 | 32.34 | +48.7% | 0.01473 | YES |
5. Donor-collapsed, blank subtracted, drop edge outlier, <LOD = LOD/2 (Welch t) | 6 | 6 | 20.32 | 32.34 | +59.1% | 0.02571 | YES |
6. Donor-collapsed, blank subtracted, drop edge outlier, <LOD = LOD/2 (Mann-Whitney) | 6 | 6 | 20.32 | 32.34 | +59.1% | 0.02597 | YES |
Read those six rows side by side and notice how deceptive a single clean output would be:
- Path 1 vs Path 3 show how one bad well kills power. Keeping the
218.40 pg/mLedge-well artifact inflates theCandidate_M4mean to46.46 pg/mLat the well level and42.30 pg/mLat the donor level, creating an eye-popping+94.5%lift on Path 3, while blowing up group variance so severely that the Welch t-test returnsp = 0.11606. An automated script that skips outlier inspection would either report a false negative or present an absurdly inflated effect size. - Path 2 shows the pseudoreplication mirage. Cleaning the
H12edge well without collapsing technical triplicates into donor means drops the p-value to0.00012because Welch's test thinks you ran 16 and 17 independent donors instead of 6 and 6. That is the exact bug that slips past busy scientists and gets papers rejected in peer review. - Path 4 vs Path 5 show that even defensible choices move the effect size. Both paths collapse to 6 donors per arm, subtract plate blanks, and exclude
edge_well_H12. Yet dropping<LODon DonorD05yields aVehiclemean of21.75 pg/mL, a+48.7%lift, andp = 0.01473. Imputing<LODatLOD/2 = 2.0 pg/mLlowers theVehiclemean to20.32 pg/mL, moves the lift to+59.1%, and shifts the p-value to0.02571. Switching to a non-parametric Mann-Whitney U test in Path 6 keeps the same+59.1%lift withp = 0.02597.
Why chat boxes and terminal coding agents miss this failure mode
Generic chat interfaces and software coding agents optimize for completing a prompt cleanly. Give a chat tool preclinical_assay_messy.csv and ask whether Candidate_M4 increases cytokines, and it will quietly pick one of the six rows above, bury the pandas filtering inside a collapsed code block, and summarize the result in confident prose.
Software coding agents running in a terminal do not solve this either. They hand you code diffs to review, assuming you have the time and Python fluency to audit every dropna(), groupby(), and ttest_ind() line by hand while managing your own virtual environment.
Research asks for a different contract. You should not have to read 60 lines of pandas code just to discover whether technical wells were collapsed to donors or how <LOD strings were handled.
How Dalliance puts every fork on the record
Dalliance was built around this exact failure mode:
- Underlined clickable assumptions. Right next to every answer, Dalliance states how it read your question and underlines each modeling choice as a clickable control. Whether technical replicates are averaged per donor, how
<LODvalues are imputed, whetheredge_well_H12is excluded, and whether Welch's t-test or Mann-Whitney runs all sit visibly on screen. Click any assumption to flip it and watch the cell rerun. - Ask before guessing on high-impact forks. When an ambiguous choice would invert or invalidate the answer, Dalliance pauses and asks you before writing code.
- Local files and clean-start Verify. Python runs locally on Mac and Windows across x64 and Arm machines with zero desktop telemetry. Every save writes a standard Jupyter
.ipynbfile pinning package versions and data file fingerprints. One-click Verify restarts Python from scratch, reruns every cell with zero AI calls, and flags any output that changed. Saved notebooks rerun locally forever with no credits or subscription needed. Note that Dalliance does not offer a HIPAA BAA today, so stick to wet-lab, preclinical, genomics, biostatistics, and de-identified data.
Audit the verified notebook yourself
Every number in this post comes from a clean-start execution of silent_assumptions_audit.ipynb on Python 3.14.7, numpy 2.5.5, pandas 3.1.1, scipy 1.18.1, and matplotlib 3.11.2, reading preclinical_assay_messy.csv with SHA-256 prefix 5599ea1d3527. Download both files above and rerun them locally, or open your own messy assay CSV inside Dalliance Starter for $0 with 100 free credits on verified email sign-up, no credit card required, and saved notebooks that rerun free forever. For ongoing lab work across models from 18+ providers, Pro Annual is $199/year with two months free, 1,000 credits per month, rollover up to a 2,000-credit cap, and a single Polar PDF invoice ready for institutional reimbursement.