Reproducing Chen, He et al. (2026) from dandiset 001933¶

Paper: Chen C, He Q, Tombesi G, et al. (2026). Leucine-rich repeat kinase 2 impairs the release sites of Parkinson's disease vulnerable dopamine axons. Nature Communications. doi:10.1038/s41467-026-75194-3. This attempt used the open access full text (CC BY) and its Supplementary Information.

Dandiset: DANDI:001933, version 0.260825.1457. This version was asked for: it is the version of the earlier attempt, chen-2026-01, and the dandiset has not changed since (the data check shows the version and the draft hold the same files). It is also the only published version, and the paper names neither the dandiset nor a version (its data statement points to Zenodo, PRIDE and the BioImage Archive).

This is attempt chen-2026-02, under protocol pilot-7. The data are the same as in attempt -01; the protocol changed. Pilot-7 adds a kind of claim, data: elsewhere, for a claim whose data the paper deposited in another public archive. The eight claims of Figures 1 to 5, blocked in attempt -01 as data_missing, are such claims: they now name their archive and are tested here on those data, counted apart from the dandiset's claims. The ten photometry claims and their criteria are unchanged and are re-run. The data check also says, for each finding of attempt -01, whether it still holds.

What the dandiset holds: one session per mouse of GRAB-DA3m fiber photometry in the dorsal striatum during optogenetic stimulation of SNc dopamine neurons, 15 Anxa1-iCre mice (dorsolateral striatum) and 12 Calb1-Cre mice (dorsomedial striatum), LRRK2-WT and LRRK2-G2019S (GS). This is the data of Figure 6 and Supplementary Figures 7 and 8.

Outside data: the paper's Zenodo record (10.5281/zenodo.19930567): the source data file, used in source-data-link and as the per-section, per-area and per-blot values of Figures 1, 2, 4 and 5, and the Supplementary data files; PRIDE PXD065006 (phosphopeptide abundances) and PXD065125 (pulldown intensities and the DIA-NN report); and the BioImage Archive, where the synaptosome images of S-BIAD2074 are streamed and measured and the file lists of S-BIAD2070, 2071 and 2072 are matched to the source data. The paper's photometry code was read at DombeckLab/lrrk2_photometry_analysis, commit d34558f, and its proteomics R code in the Zenodo record (analysis code.zip). The Imaris analyses of Figures 1 and 5 and the Proteome Discoverer search of Figure 2 use commercial software and are not re-run.

Claim Paper Data Tested
source-data-link Source data of Fig. 6, Supp. Figs 7 and 8 can be recomputed from the dandiset dandiset with inputs tested
fig6e-anxa1-evoked-reduced Anxa1 evoked release lower in GS at 0.5 mW (p = 1.10e-20) dandiset tested
fig6e-anxa1-evoked-per-mouse 7 of 8 Anxa1 GS mice reduced; 3743 not dandiset tested
supp7c-anxa1-evoked-all-powers Reduction at 0.1, 0.5, 1 and 4 mW dandiset tested
fig6f-anxa1-spontaneous-reduced Anxa1 spontaneous transients smaller in GS (1064 against 798) dandiset tested
fig6f-anxa1-spontaneous-per-mouse 6 of 8 Anxa1 GS mice reduced; 4651 and 3743 not dandiset tested
supp8c-calb1-spontaneous-not-reduced Calb1 spontaneous transients not reduced (p = 0.98) dandiset tested
supp8e-calb1-evoked-reduced Calb1 evoked release reduced at four powers dandiset tested
supp8e-calb1-few-mice-reduced Only 2 of 7 Calb1 GS mice reduced dandiset tested
cohens-d-anxa1-larger Cohen's d at 0.5 mW, Anxa1 2.05 against Calb1 0.76 dandiset tested
fig1d-lrrk2-enriched-vulnerable LRRK2 higher in Aldh1a1+ SNc neurons (p = 0.0008) elsewhere: S-BIAD2070, Zenodo tested
fig2b-rab3-phosphorylation 289 phosphopeptides change with MLi-2, including RAB3 T86 elsewhere: PRIDE PXD065006 tested
fig2eg-prab3-increased p-RAB3A and p-RAB3C up in GS, back to WT with MLi-2 elsewhere: Zenodo tested
fig3d-rim-binds-unphosphorylated RIM1 and RIM2 prefer RAB3A; RILPL1 and RILPL2 prefer p-RAB3A elsewhere: PRIDE PXD065125 tested
fig4d-fewer-active-zones Fewer bassoon+ TH+/VAMP2+ synaptosomes; larger bassoon elsewhere: S-BIAD2074, Zenodo tested
fig4i-rim1-reduced RIM1 lower in synaptosomes only elsewhere: Zenodo tested
fig5-bassoon-vulnerable-axons Bassoon clusters change in Aldh1a1+ and Anxa1+ axons only elsewhere: S-BIAD2071, Zenodo tested
fig5j-no-axon-loss No loss of TH+ fibres elsewhere: S-BIAD2072, Zenodo tested

Method choices are fixed in the claims file, claims/001933/10.1038-s41467-026-75194-3.yaml. In short: the signal is the dandiset's processed dF/F, the trace the paper's code analyses; the evoked integral follows the Methods (the light-on period), with the code's baseline; spontaneous transients follow the Methods and transient_by_threshold.m. The claims of Figures 1 to 5 use the legends' tests on the deposited values, and for Figure 4D and 4E also the Methods' FIJI procedure, re-implemented in archives.py, on the images.

In [1]:
import io
import time
import warnings

import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from scipy import stats

import archives
import lrrk2

pd.set_option("display.width", 220)
pd.set_option("display.max_columns", 40)
pd.set_option("display.max_rows", 200)
warnings.filterwarnings("ignore", category=RuntimeWarning)

started = time.time()
sessions = lrrk2.load_all()
by_mouse = {s["mouse"]: s for s in sessions}
print(f"loaded {len(sessions)} files from dandiset {lrrk2.DANDISET_ID} version {lrrk2.DANDISET_VERSION} "
      f"in {time.time() - started:.0f} s")
# Only the imputation variant of fig3d-rim-binds-unphosphorylated draws random numbers; it has its own
# generator, seeded in that section.
loaded 27 files from dandiset 001933 version 0.260825.1457 in 36 s

Data check¶

Each check of the description against the values is stated under its output. The check covers the dandiset, the findings of attempt -01, and the data of Figures 1 to 5 in other archives.

In [2]:
info = pd.DataFrame([{
    "mouse": s["mouse"], "subject_id": s["subject_id"], "line": s["line"], "group": s["group"],
    "genotype": s["genotype"], "sex": s["sex"], "date_of_birth": s["date_of_birth"][:10],
    "session_start": s["session_start"][:19],
    "age_months": round((pd.Timestamp(s["session_start"][:10]) - pd.Timestamp(s["date_of_birth"][:10])).days / 30.44, 1),
    "recorded_in": s["location"][s["dff_region"]], "species": s["species"], "strain": s["strain"],
    "dff_md5": s["md5"][:12]} for s in sessions]).sort_values(["line", "group", "mouse"])
print("Files (one session each) by Cre line and genotype:")
print(pd.crosstab(info.line, info.group, margins=True).to_string())
print("\nPaper: Anxa1 8 G2019S and 7 WT mice (Figure 6C); Calb1 7 G2019S and 5 WT mice (Supplementary Figure 8D),"
      "\nafter excluding one Anxa1 G2019S, one Calb1 G2019S and two Calb1 WT mice (Methods).")
paper_anxa1_gs = [4885, 4651, 4652, 3742, 3743, 4004, 4005, 4007]  # mouse IDs in the Figure 6E legend
ours = sorted(info[(info.line == "Anxa1") & (info.group == "GS")].mouse)
print("Anxa1 G2019S mouse IDs in the Figure 6E legend found in the dandiset:", sorted(paper_anxa1_gs) == ours, ours)
print("\nSex by line and genotype:")
print(pd.crosstab([info.line, info.group], info.sex).to_string())
print("\nAge at the session (months), by line: ", info.groupby("line").age_months.agg(["min", "max"]).to_dict("index"))
print("Recording site by line:", info.groupby("line").recorded_in.unique().to_dict())
print("Species and strain:", info.species.unique().tolist(), info.strain.unique().tolist())
print("\nDistinct dF/F traces (md5 of the full series):", info.dff_md5.nunique(), "of", len(info),
      "; distinct session start times:", info.session_start.nunique())
print("\n", info.to_string(index=False))

# The pinned version against the draft: same files and content?
from dandi.dandiapi import DandiAPIClient
client = DandiAPIClient()
def digests(version):
    return {a.path: (a.size, a.get_raw_metadata()["digest"].get("dandi:dandi-etag")) for a in client.get_dandiset(lrrk2.DANDISET_ID, version).get_assets()}
pinned, draft = digests(lrrk2.DANDISET_VERSION), digests("draft")
print(f"\nAssets: pinned version {len(pinned)}, draft {len(draft)}; identical paths, sizes and etags: {pinned == draft}")
Files (one session each) by Cre line and genotype:
group  GS  WT  All
line              
Anxa1   8   7   15
Calb1   7   5   12
All    15  12   27

Paper: Anxa1 8 G2019S and 7 WT mice (Figure 6C); Calb1 7 G2019S and 5 WT mice (Supplementary Figure 8D),
after excluding one Anxa1 G2019S, one Calb1 G2019S and two Calb1 WT mice (Methods).
Anxa1 G2019S mouse IDs in the Figure 6E legend found in the dandiset: True [3742, 3743, 4004, 4005, 4007, 4651, 4652, 4885]

Sex by line and genotype:
sex          F  M
line  group      
Anxa1 GS     5  3
      WT     2  5
Calb1 GS     4  3
      WT     3  2

Age at the session (months), by line:  {'Anxa1': {'min': 6.3, 'max': 7.6}, 'Calb1': {'min': 6.4, 'max': 7.5}}
Recording site by line: {'Anxa1': <StringArray>
['dorsal lateral striatum']
Length: 1, dtype: str, 'Calb1': <StringArray>
['dorsal medial striatum']
Length: 1, dtype: str}
Species and strain: ['Mus musculus'] ['C57BL/6J']

Distinct dF/F traces (md5 of the full series): 27 of 27 ; distinct session start times: 27

  mouse   subject_id  line group     genotype sex date_of_birth       session_start  age_months             recorded_in      species   strain      dff_md5
  3742 3742-anxa-gs Anxa1    GS LRRK2-G2019S   M    2024-06-22 2025-01-24T13:57:40         7.1 dorsal lateral striatum Mus musculus C57BL/6J 32910da94bb5
  3743 3743-anxa-gs Anxa1    GS LRRK2-G2019S   F    2024-06-22 2025-01-24T12:58:18         7.1 dorsal lateral striatum Mus musculus C57BL/6J c8197bb500c9
  4004 4004-anxa-gs Anxa1    GS LRRK2-G2019S   F    2025-01-13 2025-08-13T14:33:49         7.0 dorsal lateral striatum Mus musculus C57BL/6J 61b9d61f611d
  4005 4005-anxa-gs Anxa1    GS LRRK2-G2019S   F    2025-01-13 2025-08-13T15:03:13         7.0 dorsal lateral striatum Mus musculus C57BL/6J b702c1a8ef7d
  4007 4007-anxa-gs Anxa1    GS LRRK2-G2019S   M    2025-01-13 2025-08-13T16:24:04         7.0 dorsal lateral striatum Mus musculus C57BL/6J a877b1b28c63
  4651 4651-anxa-gs Anxa1    GS LRRK2-G2019S   F    2024-12-19 2025-07-02T10:24:51         6.4 dorsal lateral striatum Mus musculus C57BL/6J 81bd1ddec442
  4652 4652-anxa-gs Anxa1    GS LRRK2-G2019S   M    2024-10-30 2025-05-20T12:09:39         6.6 dorsal lateral striatum Mus musculus C57BL/6J 5f8f49231d9e
  4885 4885-anxa-gs Anxa1    GS LRRK2-G2019S   F    2024-07-06 2025-01-24T11:26:46         6.6 dorsal lateral striatum Mus musculus C57BL/6J 52017ceb29e4
  3947 3947-anxa-wt Anxa1    WT     LRRK2-WT   M    2024-07-06 2025-01-27T12:37:54         6.7 dorsal lateral striatum Mus musculus C57BL/6J 13efb67f38fa
  3948 3948-anxa-wt Anxa1    WT     LRRK2-WT   M    2024-07-06 2025-01-27T13:32:06         6.7 dorsal lateral striatum Mus musculus C57BL/6J 45aa0e733966
  4253 4253-anxa-wt Anxa1    WT     LRRK2-WT   F    2025-01-13 2025-08-14T15:17:39         7.0 dorsal lateral striatum Mus musculus C57BL/6J ba6b51c08785
  4398 4398-anxa-wt Anxa1    WT     LRRK2-WT   M    2024-09-30 2025-05-02T15:47:48         7.0 dorsal lateral striatum Mus musculus C57BL/6J 2bca264e0b13
  4401 4401-anxa-wt Anxa1    WT     LRRK2-WT   M    2024-12-23 2025-07-02T11:58:30         6.3 dorsal lateral striatum Mus musculus C57BL/6J 2b5b0af5e35d
  4558 4558-anxa-wt Anxa1    WT     LRRK2-WT   F    2024-09-30 2025-05-20T11:23:39         7.6 dorsal lateral striatum Mus musculus C57BL/6J 03ca39f90a50
  4561 4561-anxa-wt Anxa1    WT     LRRK2-WT   M    2024-12-19 2025-07-02T11:08:51         6.4 dorsal lateral striatum Mus musculus C57BL/6J bba28e200248
   302  302-calb-gs Calb1    GS LRRK2-G2019S   M    2025-04-03 2025-11-10T13:29:32         7.3  dorsal medial striatum Mus musculus C57BL/6J 45357f497b8a
   306  306-calb-gs Calb1    GS LRRK2-G2019S   M    2025-04-03 2025-11-10T15:06:39         7.3  dorsal medial striatum Mus musculus C57BL/6J e1e60b6257be
   740  740-calb-gs Calb1    GS LRRK2-G2019S   F    2025-08-09 2026-03-24T11:25:42         7.5  dorsal medial striatum Mus musculus C57BL/6J b4ae1bcbb642
   741  741-calb-gs Calb1    GS LRRK2-G2019S   F    2025-08-09 2026-03-24T11:50:36         7.5  dorsal medial striatum Mus musculus C57BL/6J 32944d44a305
   848  848-calb-gs Calb1    GS LRRK2-G2019S   F    2025-05-19 2025-12-17T13:13:20         7.0  dorsal medial striatum Mus musculus C57BL/6J abb262188482
   852  852-calb-gs Calb1    GS LRRK2-G2019S   F    2025-05-19 2025-12-17T12:04:48         7.0  dorsal medial striatum Mus musculus C57BL/6J 4df069801545
   935  935-calb-gs Calb1    GS LRRK2-G2019S   M    2025-10-07 2026-04-23T12:35:42         6.5  dorsal medial striatum Mus musculus C57BL/6J 97d06653b3c4
   671  671-calb-wt Calb1    WT     LRRK2-WT   F    2025-08-31 2026-03-19T10:41:31         6.6  dorsal medial striatum Mus musculus C57BL/6J 8db992bcd20c
   673  673-calb-wt Calb1    WT     LRRK2-WT   F    2025-08-31 2026-03-19T11:49:31         6.6  dorsal medial striatum Mus musculus C57BL/6J c59715218cc0
   688  688-calb-wt Calb1    WT     LRRK2-WT   M    2025-05-08 2025-12-17T13:38:53         7.3  dorsal medial striatum Mus musculus C57BL/6J ad3bb702e244
   966  966-calb-wt Calb1    WT     LRRK2-WT   M    2025-10-09 2026-04-23T12:11:19         6.4  dorsal medial striatum Mus musculus C57BL/6J 982088216b0d
  1803 1803-calb-wt Calb1    WT     LRRK2-WT   F    2025-04-11 2025-11-10T12:15:28         7.0  dorsal medial striatum Mus musculus C57BL/6J af5a0b79fc48
Assets: pinned version 27, draft 27; identical paths, sizes and etags: True

The files hold one session each of 15 Anxa1 mice (8 GS, 7 WT) and 12 Calb1 mice (7 GS, 5 WT), the paper's counts after its exclusions, and the Anxa1 GS mouse IDs are those of the Figure 6E legend. The four excluded mice are not in the dandiset, which does not say that they were left out. Ages at the session are 6.3 to 7.6 months, consistent with surgery at 6 months and recording four weeks later. Anxa1 mice are recorded in the dorsolateral and Calb1 mice in the dorsomedial striatum, as the paper states. No two files share a dF/F trace or a start time, so no recording is deposited twice. The pinned version and the draft hold the same files.

In [3]:
rows = []
for s in sessions:
    t, x = s["t"], s["dff"]
    dt = np.diff(t) * 1000
    rows.append({"mouse": s["mouse"], "line": s["line"], "group": s["group"], "samples": len(t),
                 "first_s": round(t[0], 2), "minutes": round((t[-1] - t[0]) / 60, 1),
                 "dt_med_ms": round(np.median(dt), 2), "dt_min_ms": round(dt.min(), 2), "dt_max_ms": round(dt.max(), 2),
                 "dff_min": round(x.min(), 1), "dff_p8": round(np.percentile(x, 8), 2), "dff_max": round(x.max(), 1),
                 "dff405_min": round(s["dff405"].min(), 1), "dff405_max": round(s["dff405"].max(), 1),
                 "max_diff_recomputed": round(np.abs(x - s["dff_recomputed"]).max(), 4),
                 "raw_lag_samples": s["raw_lag"], "raw_r_at_lag0": round(s["raw_r"], 3),
                 "raw_470_samples_per_bin": round(s["raw_n"] / len(t), 2)})
series = pd.DataFrame(rows).sort_values(["line", "group", "mouse"])
print("dF/F series: stated unit", repr(sessions[0]["dff_unit"]), "; description:", sessions[0]["dff_description"].strip())
print(series.to_string(index=False))
print("\nSampling interval over all files (ms): median", series.dt_med_ms.median(), "min", series.dt_min_ms.min(),
      "max", series.dt_max_ms.max())
print("Recording length (min):", series.minutes.min(), "to", series.minutes.max(), "(Methods: 20 min)")
print("Largest difference between the stored dF/F and the code's df_f plus 20-sample moving mean recomputed from the",
      "stored corrected signal (% dF/F):", series.max_diff_recomputed.max())
print("Lag that best aligns the raw 470 nm signal, averaged into each 100 Hz bin, with the corrected signal:",
      sorted(series.raw_lag_samples.unique()), "; correlation at lag 0 from", series.raw_r_at_lag0.min(), "to",
      series.raw_r_at_lag0.max())
dF/F series: stated unit 'a.u.' ; description: % ΔF/F of baseline-corrected GRAB-DA3m 470 nm fluorescence (Calb-LRRK2 group, DMS) at 100 Hz. F0 = 8th percentile of the corrected trace. Smoothed with a 20-sample moving mean (~0.2 s).
 mouse  line group  samples  first_s  minutes  dt_med_ms  dt_min_ms  dt_max_ms  dff_min  dff_p8  dff_max  dff405_min  dff405_max  max_diff_recomputed  raw_lag_samples  raw_r_at_lag0  raw_470_samples_per_bin
  3742 Anxa1    GS   148937     1.93     24.8       10.0        9.5       10.0    -31.7    1.36    149.1        -2.3        50.0               0.0000                0          0.891                     8.03
  3743 Anxa1    GS   148293     2.47     24.7       10.0        9.5       10.0    -57.9    1.24    553.5        -4.6        15.0               0.0059                0          0.966                     8.01
  4004 Anxa1    GS   131835    24.74     22.0       10.0        9.5       10.0    -10.0    0.42    116.2        -3.4         4.5               0.0011                0          0.917                     8.17
  4005 Anxa1    GS   135709    25.94     22.6       10.0        9.5       10.0     -5.8    0.24     76.0        -3.3         8.2               0.0000                0          0.770                     8.20
  4007 Anxa1    GS   129307    21.06     21.5       10.0        9.5       10.0     -6.8    0.34    117.2        -2.1         5.8               0.0000                0          0.941                     8.16
  4651 Anxa1    GS   123899    24.68     20.6       10.0        9.5       10.0    -28.3    0.28    313.4        -2.0        11.1               0.0021                0          0.888                     8.17
  4652 Anxa1    GS   130637    22.54     21.8       10.0        9.5       10.0    -38.4    0.41    356.6        -4.0        17.4               0.0011                0          0.985                     8.15
  4885 Anxa1    GS   140790     2.34     23.5       10.0        9.5       10.0    -14.0    0.42    248.7        -4.8        18.8               0.0020                0          0.950                     8.01
  3947 Anxa1    WT   145600     2.24     24.3       10.0        9.5       10.0    -46.2    0.44    567.9        -6.1        13.3               0.0006                0          0.901                     8.03
  3948 Anxa1    WT   152720     1.94     25.4       10.0        9.5       10.0    -56.6    1.24    693.1        -5.2        14.2               0.0035                0          0.983                     8.02
  4253 Anxa1    WT   126423    29.97     21.1       10.0        9.5       10.0    -37.4    0.90    485.2        -3.6         6.0               0.0088                0          0.940                     8.21
  4398 Anxa1    WT   122304    28.30     20.4       10.0        9.5       10.0    -44.8    0.96    677.5        -3.5         9.9               0.0019                0          0.993                     8.29
  4401 Anxa1    WT   128603    25.68     21.4       10.0        9.5       10.0    -78.4    0.72    597.0        -3.5        13.0               0.0003                0          0.910                     8.18
  4558 Anxa1    WT   125326    26.48     20.9       10.0        9.5       10.0    -34.8    0.63    573.4        -3.0        11.5               0.0006                0          0.980                     8.19
  4561 Anxa1    WT   132088    27.27     22.0       10.0        9.5       10.0    -18.0    0.69    278.5        -2.3         5.1               0.0010                0          0.979                     8.18
   302 Calb1    GS   129360    24.87     21.6       10.0        9.5       10.0    -42.2    1.17    767.8        -3.2        13.1               0.0000                0          0.981                     8.17
   306 Calb1    GS   123782    19.52     20.6       10.0        9.5       10.0    -53.7    0.38    502.3        -3.0        10.2               0.0000                0          0.912                     8.14
   740 Calb1    GS   129340    24.48     21.6       10.0        9.5       10.0    -39.5    1.09    349.4        -3.4        10.4               0.0012                0          0.950                     8.16
   741 Calb1    GS   134827     2.89     22.5       10.0        9.5       10.0    -43.0    1.58    669.6        -4.0        11.2               0.0007                0          0.983                     8.03
   848 Calb1    GS   124741    20.36     20.8       10.0        9.5       10.0    -38.7    0.79    505.5        -4.6        10.3               0.0019                0          0.963                     8.15
   852 Calb1    GS   128578     3.90     21.4       10.0        9.5       10.0    -40.8    1.47    671.2        -2.2        11.8               0.0044                0          0.973                     8.04
   935 Calb1    GS   122988    44.12     20.5       10.0        9.5       10.0    -47.8    1.54    542.8        -2.5         8.0               0.0009                0          0.964                     8.30
   671 Calb1    WT   127644     3.24     21.3       10.0        9.5       10.0    -50.8    1.57    779.7        -2.3         9.0               0.0258                0          0.993                     8.03
   673 Calb1    WT   125288    25.53     20.9       10.0        9.5       10.0    -35.7    1.61    325.0        -2.1         7.0               0.0000                0          0.958                     8.18
   688 Calb1    WT   124290     2.68     20.7       10.0        9.5       10.0    -49.6    0.96    943.6        -5.2        12.1               0.0022                0          0.952                     8.03
   966 Calb1    WT   123499    28.54     20.6       10.0        9.5       10.0    -50.9    0.92    657.7        -2.3         8.1               0.0058                0          0.978                     8.20
  1803 Calb1    WT   149832     2.73     25.0       10.0        9.5       10.0    -56.0    1.35   1281.9        -5.0        13.8               0.0027                0          0.986                     8.03

Sampling interval over all files (ms): median 10.0 min 9.5 max 10.0
Recording length (min): 20.4 to 25.4 (Methods: 20 min)
Largest difference between the stored dF/F and the code's df_f plus 20-sample moving mean recomputed from the stored corrected signal (% dF/F): 0.0258
Lag that best aligns the raw 470 nm signal, averaged into each 100 Hz bin, with the corrected signal: [np.int64(0)] ; correlation at lag 0 from 0.77 to 0.993

The processed series are regular at 10 ms (the shortest interval, 9.5 ms, comes from the 2 kHz grid) and last 20.4 to 25.4 min, a little longer than the Methods' 20 min. The dF/F series is stated in a.u., but its description and its values are % dF/F: the code's df_f and 20-sample moving mean applied to the stored corrected signal give the stored series to within 0.026 % dF/F. The raw 470 nm signal, averaged into the 100 Hz bins, aligns with the corrected signal at lag 0 in every file (correlation 0.77 to 0.99), so raw and processed series share a clock. About 8 of the 20 raw samples per bin are kept for 470 nm, as the demultiplexing describes.

In [4]:
code_letter = {0.1: "a", 0.25: "b", 0.5: "c", 1.0: "d", 1.5: "e", 2.0: "f", 3.0: "g", 4.0: "h"}
rows = []
for s in sessions:
    p = s["power_in_mW"]
    dur = s["stop_time"] - s["start_time"]
    paper = np.isin(p, lrrk2.PAPER_POWERS)
    gaps = np.diff(s["start_time"])
    rows.append({"mouse": s["mouse"], "line": s["line"], "group": s["group"], "epochs": len(p),
                 "per_power": "/".join(str((p == q).sum()) for q in sorted(set(p))),
                 "powers": len(set(p)), "first_8_codes": "".join(code_letter[q] for q in p[:8]),
                 "paper_powers_in_half": 1 if paper[:32].all() else (2 if paper[32:].all() else 0),
                 "train_s_paper": round(np.median(dur[paper]), 3), "pulse_ms_paper": s["pulse_length_in_ms"][paper][0],
                 "period_ms_paper": s["period_in_ms"][paper][0],
                 "train_s_other": round(np.median(dur[~paper]), 3), "pulse_ms_other": s["pulse_length_in_ms"][~paper][0],
                 "period_ms_other": s["period_in_ms"][~paper][0],
                 "min_gap_s": round(gaps.min(), 1), "median_gap_s": round(np.median(gaps), 1),
                 "wavelength": s["wavelength_in_nm"][0], "first_onset_s": round(s["start_time"][0], 1),
                 "onset_minus_series_start_s": round(s["start_time"][0] - s["t"][0], 1)})
opto = pd.DataFrame(rows).sort_values(["line", "group", "mouse"])
print("Epochs table description (first file):", sessions[0]["opto_description"])
print("\nPowers in the files (mW):", sorted(set(np.concatenate([s["power_in_mW"] for s in sessions]))))
print(opto.to_string(index=False))
print("\nTrain types carrying the paper's four powers, by line and genotype:")
print(opto.groupby(["line", "group", "train_s_paper", "pulse_ms_paper", "period_ms_paper"]).size().to_string())
odd = [(s["mouse"], j) for s in sessions for j in np.where((s["pulse_length_in_ms"] == 0) | np.isnan(s["period_in_ms"]))[0]]
print("\nEpochs with a pulse length of 0 or no period (mouse, epoch, power, length in s, pulses):",
      [(m, int(j), by_mouse[m]["power_in_mW"][j], round(by_mouse[m]["stop_time"][j] - by_mouse[m]["start_time"][j], 2),
        int(by_mouse[m]["number_pulses_per_pulse_train"][j])) for m, j in odd])
print("Shortest gap between onsets in any file (s):", opto.min_gap_s.min(), "(Methods: at least 20 s)")
gap_all = np.concatenate([np.diff(s["start_time"]) for s in sessions])
print("Gaps between onsets over all files (s): 5th, 50th, 95th percentiles", np.percentile(gap_all, [5, 50, 95]).round(1),
      "; fraction under 20 s:", round(float((gap_all < 20).mean()), 3))
Epochs table description (first file): Epochs of optogenetic activation of ChRmine-expressing Cre+ SNc dopamine neurons (635 nm LED, right hemisphere). Each row is one contiguous stimulation epoch (TTL=1 block) extracted from the 100 Hz binned TTL column in *_data.mat. Pulse parameters: 8 ms on / 8 ms off cycles for 500 ms per train; trains spaced at least 20 s apart; 8 repetitions per power level (0.1, 0.5, 1.0, 4.0 mW, pseudorandom order). Power and pulse parameters are passed per-session via conversion_options once confirmed.

Powers in the files (mW): [np.float64(0.1), np.float64(0.25), np.float64(0.5), np.float64(1.0), np.float64(1.5), np.float64(2.0), np.float64(3.0), np.float64(4.0)]
 mouse  line group  epochs       per_power  powers first_8_codes  paper_powers_in_half  train_s_paper  pulse_ms_paper  period_ms_paper  train_s_other  pulse_ms_other  period_ms_other  min_gap_s  median_gap_s  wavelength  first_onset_s  onset_minus_series_start_s
  3742 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.33             9.0             10.0           0.51             8.0             16.0       15.3          15.5       635.0          164.6                       162.7
  3743 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0          156.0                       153.5
  4004 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           57.1                        32.4
  4005 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           56.3                        30.4
  4007 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           51.8                        30.7
  4651 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           47.7                        23.0
  4652 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             0.0              NaN           0.33             9.0             10.0       15.3          15.5       635.0           52.7                        30.1
  4885 Anxa1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.33             9.0             10.0           0.51             8.0             16.0       15.3          15.5       635.0          157.6                       155.3
  3947 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0          155.6                       153.4
  3948 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0          159.8                       157.9
  4253 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           60.9                        30.9
  4398 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           61.0                        32.7
  4401 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           54.9                        29.2
  4558 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0           55.9                        29.5
  4561 Anxa1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.33             9.0             10.0       15.3          15.5       635.0          132.4                       105.1
   302 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           55.3                        30.5
   306 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           44.5                        24.9
   740 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             0.0              NaN           0.51             8.0             16.0       15.5          15.5       635.0           46.9                        22.5
   741 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           40.7                        37.8
   848 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           43.8                        23.4
   852 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           36.4                        32.5
   935 Calb1    GS      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           76.2                        32.0
   671 Calb1    WT      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           36.6                        33.4
   673 Calb1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           49.0                        23.5
   688 Calb1    WT      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           30.2                        27.5
   966 Calb1    WT      64 8/8/8/8/8/8/8/8       8      ffggbbee                     2           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           59.2                        30.6
  1803 Calb1    WT      64 8/8/8/8/8/8/8/8       8      ddaacchh                     1           0.51             8.0             16.0           0.51             8.0             16.0       15.5          15.5       635.0           28.6                        25.9

Train types carrying the paper's four powers, by line and genotype:
line   group  train_s_paper  pulse_ms_paper  period_ms_paper
Anxa1  GS     0.33           9.0             10.0               2
              0.51           8.0             16.0               5
       WT     0.51           8.0             16.0               7
Calb1  GS     0.51           8.0             16.0               6
       WT     0.51           8.0             16.0               5

Epochs with a pulse length of 0 or no period (mouse, epoch, power, length in s, pulses): [(4652, 32, np.float64(1.0), np.float64(0.51), 1), (740, 32, np.float64(1.0), np.float64(0.51), 1)]
Shortest gap between onsets in any file (s): 15.3 (Methods: at least 20 s)
Gaps between onsets over all files (s): 5th, 50th, 95th percentiles [15.3 15.5 26.4] ; fraction under 20 s: 0.508

Every file holds 64 trains, 8 at each of 8 powers from 0.1 to 4 mW; the paper uses four of them (0.1, 0.5, 1 and 4 mW). The table's own description gives 8 ms on and 8 ms off for 500 ms and only those four powers, but the table holds two kinds of train. In Anxa1 files one half of the session has 9 ms pulses every 10 ms for 0.33 s, the other 8 ms pulses every 16 ms for 0.51 s; Calb1 files hold only the second kind. The paper's four powers fall on 0.51 s trains in 25 files and on 0.33 s trains in two Anxa1 GS mice (3742 and 4885), so these two mice were stimulated differently from every WT mouse; a variant of fig6e-anxa1-evoked-reduced leaves them out. One train each in mice 4652 and 740 has a pulse length of 0, no period and one pulse, though it lasts 0.51 s like its neighbours, so its pulse columns are wrong. Trains of the same power come in pairs 15.3 to 15.5 s apart, and 51% of the gaps are under 20 s, where the Methods and the table description say at least 20 s.

In [5]:
rows = []
for s in sessions:
    shifted = dict(s, onset=s["onset"] + 1000, offset=s["offset"] + 1000)  # 10 s later, between trains
    true = lrrk2.evoked_integrals(s, "fixed")
    moved = lrrk2.evoked_integrals(shifted, "fixed")
    iso = lrrk2.evoked_integrals(s, "fixed", trace="dff405")
    traces = np.array([s["dff"][i - 100:i + 300] for i in s["onset"] if i + 300 <= len(s["dff"])])
    mean_trace = traces.mean(0)
    ok = ~np.isnan(true)
    rows.append({"mouse": s["mouse"], "line": s["line"], "group": s["group"],
                 "median_at_onsets": np.nanmedian(true), "median_10s_later": np.nanmedian(moved),
                 "median_405_at_onsets": np.nanmedian(iso),
                 "peak_latency_ms": (np.argmax(mean_trace) - 100) * 10,
                 "rise_before_onset": mean_trace[90:100].mean() - mean_trace[:90].mean(),
                 "spearman_power": stats.spearmanr(s["power_in_mW"][ok], true[ok])[0],
                 **{f"{q}mW": np.nanmedian(true[s["power_in_mW"] == q]) for q in sorted(set(s["power_in_mW"]))}})
clock = pd.DataFrame(rows).sort_values(["line", "group", "mouse"])
print("Integral from 0 to 0.5 s after onset minus the mean of -1.0 to -0.1 s (% dF/F x s), median over each file's 64",
      "trains, at the table's onsets, 10 s later, and for the 405 nm control; latency of the peak of the mean trace;",
      "Spearman correlation of the integral with the labelled power; median integral per labelled power.")
print(clock.round(2).to_string(index=False))
print("\nFiles where the median at onsets exceeds the median 10 s later:", int((clock.median_at_onsets > clock.median_10s_later).sum()),
      "of", len(clock), "; Wilcoxon p =", f"{stats.wilcoxon(clock.median_at_onsets, clock.median_10s_later).pvalue:.2g}")
print("Peak latency (ms) from", clock.peak_latency_ms.min(), "to", clock.peak_latency_ms.max(),
      "; mean rise in the 0.1 s before onset from", clock.rise_before_onset.min().round(2), "to", clock.rise_before_onset.max().round(2))
print("Spearman correlation with power, median by line:", clock.groupby("line").spearman_power.median().round(2).to_dict())

# The two Anxa1 G2019S mice whose paper powers are 0.33 s trains, against two GS mice given 0.51 s trains,
# one epoch per row: labelled power, train type and the 0 to 0.5 s integral.
rows = []
for m in (3742, 4885, 4004, 4651):
    s = by_mouse[m]
    v = lrrk2.evoked_integrals(s, "fixed")
    for j in range(len(v)):
        rows.append({"mouse": m, "epoch": j, "power": s["power_in_mW"][j],
                     "train_s": round(s["stop_time"][j] - s["start_time"][j], 2),
                     "train": "0.33 s, 9/10 ms" if s["period_in_ms"][j] == 10 else "0.51 s, 8/16 ms", "pulse_ms": s["pulse_length_in_ms"][j],
                     "period_ms": s["period_in_ms"][j], "integral_0_0.5s": v[j]})
ep = pd.DataFrame(rows)
print("\nEpoch by epoch, mice 3742 and 4885 (0.33 s trains at the paper's powers) and 4004 and 4651 (0.51 s trains):")
for m in (3742, 4885):
    print(ep[ep.mouse == m].round(2).to_string(index=False))
print("\nMedian 0 to 0.5 s integral by labelled power and train type:")
print(ep.pivot_table(index=["mouse", "train"], columns="power", values="integral_0_0.5s", aggfunc="median").round(1).to_string())
print("Spearman correlation of the integral with labelled power, within each train type:")
print(ep.groupby(["mouse", "train"]).apply(lambda g: round(stats.spearmanr(g.power, g["integral_0_0.5s"], nan_policy="omit")[0], 2)).to_string())

# Anxa1 files where 1.5, 2 and 3 mW are 0.33 s trains and 0.5 and 1 mW are 0.51 s trains: do the former fall below?
rows = []
for s in sessions:
    if s["line"] != "Anxa1":
        continue
    v = lrrk2.evoked_integrals(s, "fixed")
    kind = {q: set(s["period_in_ms"][s["power_in_mW"] == q]) for q in (0.5, 1.0, 1.5, 2.0, 3.0)}
    if not (all(kind[q] == {10} for q in (1.5, 2.0, 3.0)) and all(kind[q] == {16} for q in (0.5, 1.0))):
        continue
    med = {q: np.nanmedian(v[s["power_in_mW"] == q]) for q in kind}
    rows.append({"mouse": s["mouse"], "group": s["group"], **{f"{q}mW": med[q] for q in kind},
                 "high_033_below_low_051": max(med[q] for q in (1.5, 2.0, 3.0)) < min(med[q] for q in (0.5, 1.0))})
split = pd.DataFrame(rows)
print("\nAnxa1 files with 1.5, 2 and 3 mW as 0.33 s trains and 0.5 and 1 mW as 0.51 s trains, median 0 to 0.5 s integral:")
print(split.round(1).to_string(index=False))
print("Files where every 0.33 s median (1.5, 2, 3 mW) is below both 0.51 s medians (0.5, 1 mW):",
      int(split.high_033_below_low_051.sum()), "of", len(split))
Integral from 0 to 0.5 s after onset minus the mean of -1.0 to -0.1 s (% dF/F x s), median over each file's 64
 trains, at the table's onsets, 10 s later, and for the 405 nm control; latency of the peak of the mean trace; Spearman correlation of the integral with the labelled power; median integral per labelled power.
 mouse  line group  median_at_onsets  median_10s_later  median_405_at_onsets  peak_latency_ms  rise_before_onset  spearman_power  0.1mW  0.25mW  0.5mW  1.0mW  1.5mW  2.0mW  3.0mW  4.0mW
  3742 Anxa1    GS             18.38             -1.83                  0.04              270               1.19           -0.13  33.55    9.39   5.68  31.38  37.38  16.49   3.02  24.14
  3743 Anxa1    GS            128.50             -1.18                 -0.39              210              12.37            0.72  51.11   95.26 123.81 161.17 131.19 127.63 132.15 182.33
  4004 Anxa1    GS             21.36              0.36                 -0.07              160               4.88            0.12  19.28   21.72  25.18  25.32  18.11  20.53  18.57  33.34
  4005 Anxa1    GS             13.02              0.06                 -0.09              160               1.98            0.00   8.61   19.88  14.16  10.23  14.97  12.79  13.16  12.68
  4007 Anxa1    GS             25.84             -0.20                 -0.15              160               4.89           -0.18  23.60   28.41  32.78  32.62  21.19  21.70  22.53  29.74
  4651 Anxa1    GS             60.88              1.34                 -0.13              210               7.48            0.22  54.32   60.08  81.27  91.54  54.21  55.10  57.68 100.06
  4652 Anxa1    GS             81.15              1.12                 -0.10              300               6.40            0.92  26.57   54.59  63.91  77.19  86.24  93.81  94.81 113.12
  4885 Anxa1    GS             54.67              0.13                 -0.10              170              10.23           -0.06  40.57   78.08  53.51  35.02  66.89  69.51  56.14  38.70
  3947 Anxa1    WT             85.90              3.36                 -0.28              240               7.96           -0.00  78.26   90.32 128.36 114.78  67.25  55.41  66.15 147.72
  3948 Anxa1    WT            148.32              4.18                 -0.28              220              13.59            0.93  48.97   97.94 107.85 146.71 164.83 160.72 175.54 226.16
  4253 Anxa1    WT            105.20              1.87                 -0.36              170              17.09           -0.06  92.65  108.74 132.98 132.93  84.00  93.88  87.39 116.49
  4398 Anxa1    WT            160.94              1.44                 -0.74              240              13.86            0.93  53.89  100.69 114.76 154.88 173.51 169.51 172.83 213.69
  4401 Anxa1    WT            142.27              2.97                 -0.47              180              25.09            0.04 128.19  143.90 179.98 178.24 124.72 133.06 127.32 191.01
  4558 Anxa1    WT            127.92              0.37                 -0.28              210              12.90            0.74  47.78  100.63 121.80 157.36 138.08 135.11 125.24 201.76
  4561 Anxa1    WT             63.13             -0.10                 -0.21              190               6.38            0.06  48.78   68.68  88.22  85.72  53.81  50.36  56.03  80.23
   302 Calb1    GS            120.12              1.99                 -0.30              270               9.26            0.81   6.88   58.00  69.64 117.53 163.89 194.27 194.75 155.76
   306 Calb1    GS            101.63             -0.64                  0.14              370              11.54            0.82  31.31   72.94  57.33  98.80 121.57 130.13 147.55 121.59
   740 Calb1    GS             43.15              0.13                 -0.03              300              -1.76            0.76   1.15   15.19  18.21  51.89  54.91  55.81  56.14  51.26
   741 Calb1    GS            125.63              1.12                  0.32              260              14.59            0.92  30.77   59.04  88.62 106.25 138.77 146.06 149.00 195.22
   848 Calb1    GS             94.21             -0.32                  0.26              270               9.87            0.83  27.28   65.90  55.67  80.39 122.03 132.86 142.60 121.47
   852 Calb1    GS            152.43              5.41                  0.44              270              10.40            0.94  40.52   64.97  99.54 134.82 170.12 200.81 205.92 205.64
   935 Calb1    GS            129.49              3.74                  0.16              220              11.38            0.86  29.22   62.85  89.60 107.65 144.98 154.00 161.58 148.11
   671 Calb1    WT            198.16              0.47                  0.45              250              11.64            0.89  52.97   84.89 147.90 190.68 205.06 236.03 226.55 274.11
   673 Calb1    WT             62.52              0.72                  0.01              190               7.88            0.84  17.00   29.76  49.80  63.01  71.44  75.42  71.74  81.01
   688 Calb1    WT            216.36              1.35                  0.42              270              16.85            0.86  79.03  141.89 174.67 196.44 243.43 239.12 268.27 252.57
   966 Calb1    WT            128.71              1.07                 -0.06              280               8.94            0.87  29.82   50.19  89.86 103.25 156.80 175.12 189.85 161.63
  1803 Calb1    WT            260.39              2.06                  1.15              300              16.37            0.94  86.68  140.64 185.63 279.83 254.11 309.31 324.59 441.64

Files where the median at onsets exceeds the median 10 s later: 27 of 27 ; Wilcoxon p = 1.5e-08
Peak latency (ms) from 160 to 370 ; mean rise in the 0.1 s before onset from -1.76 to 25.09
Spearman correlation with power, median by line: {'Anxa1': 0.06, 'Calb1': 0.86}

Epoch by epoch, mice 3742 and 4885 (0.33 s trains at the paper's powers) and 4004 and 4651 (0.51 s trains):
 mouse  epoch  power  train_s           train  pulse_ms  period_ms  integral_0_0.5s
  3742      0   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            26.90
  3742      1   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            16.25
  3742      2   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            41.78
  3742      3   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            30.36
  3742      4   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            -6.62
  3742      5   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            -1.82
  3742      6   4.00     0.32 0.33 s, 9/10 ms       9.0       10.0            25.51
  3742      7   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            36.87
  3742      8   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            34.88
  3742      9   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            33.69
  3742     10   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            32.30
  3742     11   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            46.10
  3742     12   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0             8.88
  3742     13   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0             7.39
  3742     14   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            22.77
  3742     15   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            17.19
  3742     16   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            32.57
  3742     17   1.00     0.32 0.33 s, 9/10 ms       9.0       10.0            30.19
  3742     18   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            36.32
  3742     19   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            23.58
  3742     20   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            18.79
  3742     21   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0             3.97
  3742     22   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            22.02
  3742     23   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            32.59
  3742     24   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            29.90
  3742     25   1.00     0.32 0.33 s, 9/10 ms       9.0       10.0            45.06
  3742     26   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            34.79
  3742     27   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            25.79
  3742     28   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            17.21
  3742     29   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0             3.50
  3742     30   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            28.30
  3742     31   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            21.37
  3742     32   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            -1.09
  3742     33   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            19.65
  3742     34   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0             4.96
  3742     35   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0             5.52
  3742     36   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            17.56
  3742     37   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0            14.60
  3742     38   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            37.69
  3742     39   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            37.41
  3742     40   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            16.65
  3742     41   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            16.34
  3742     42   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0             2.55
  3742     43   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0            -4.95
  3742     44   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0             8.40
  3742     45   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0             7.08
  3742     46   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            39.82
  3742     47   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            50.44
  3742     48   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            17.96
  3742     49   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            16.07
  3742     50   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0             6.34
  3742     51   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0           -12.81
  3742     52   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            10.38
  3742     53   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0             0.73
  3742     54   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            37.36
  3742     55   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            33.28
  3742     56   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0             4.26
  3742     57   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            17.54
  3742     58   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0             0.23
  3742     59   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0             3.50
  3742     60   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0            12.22
  3742     61   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0             1.90
  3742     62   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            22.45
  3742     63   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            34.31
 mouse  epoch  power  train_s           train  pulse_ms  period_ms  integral_0_0.5s
  4885      0   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            29.60
  4885      1   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            34.24
  4885      2   0.10     0.32 0.33 s, 9/10 ms       9.0       10.0            29.79
  4885      3   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            29.80
  4885      4   0.50     0.32 0.33 s, 9/10 ms       9.0       10.0            54.57
  4885      5   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            49.31
  4885      6   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            27.60
  4885      7   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            40.34
  4885      8   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            23.36
  4885      9   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            34.99
  4885     10   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            35.71
  4885     11   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            40.88
  4885     12   0.50     0.32 0.33 s, 9/10 ms       9.0       10.0            53.44
  4885     13   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            43.95
  4885     14   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            31.52
  4885     15   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            39.29
  4885     16   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            35.05
  4885     17   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            37.33
  4885     18   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            40.62
  4885     19   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            40.52
  4885     20   0.50     0.32 0.33 s, 9/10 ms       9.0       10.0            59.70
  4885     21   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            52.88
  4885     22   4.00     0.32 0.33 s, 9/10 ms       9.0       10.0            38.12
  4885     23   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            42.08
  4885     24   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            46.82
  4885     25   1.00     0.33 0.33 s, 9/10 ms       9.0       10.0            43.92
  4885     26   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            46.27
  4885     27   0.10     0.33 0.33 s, 9/10 ms       9.0       10.0            41.19
  4885     28   0.50     0.32 0.33 s, 9/10 ms       9.0       10.0            66.23
  4885     29   0.50     0.33 0.33 s, 9/10 ms       9.0       10.0            53.57
  4885     30   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            41.25
  4885     31   4.00     0.33 0.33 s, 9/10 ms       9.0       10.0            34.39
  4885     32   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            63.10
  4885     33   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            69.58
  4885     34   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            50.41
  4885     35   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0            53.88
  4885     36   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            74.75
  4885     37   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            75.64
  4885     38   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            60.71
  4885     39   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            67.33
  4885     40   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            64.54
  4885     41   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            66.61
  4885     42   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            57.50
  4885     43   3.00     0.52 0.51 s, 8/16 ms       8.0       16.0            54.78
  4885     44   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0            82.85
  4885     45   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            80.42
  4885     46   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            60.31
  4885     47   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            58.28
  4885     48   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            73.73
  4885     49   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            69.43
  4885     50   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            61.81
  4885     51   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            54.79
  4885     52   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0            67.15
  4885     53   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            76.44
  4885     54   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            67.40
  4885     55   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            66.45
  4885     56   2.00     0.51 0.51 s, 8/16 ms       8.0       16.0            74.78
  4885     57   2.00     0.52 0.51 s, 8/16 ms       8.0       16.0            74.20
  4885     58   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            62.37
  4885     59   3.00     0.51 0.51 s, 8/16 ms       8.0       16.0            60.14
  4885     60   0.25     0.52 0.51 s, 8/16 ms       8.0       16.0            81.20
  4885     61   0.25     0.51 0.51 s, 8/16 ms       8.0       16.0            79.71
  4885     62   1.50     0.51 0.51 s, 8/16 ms       8.0       16.0            78.64
  4885     63   1.50     0.52 0.51 s, 8/16 ms       8.0       16.0            71.16

Median 0 to 0.5 s integral by labelled power and train type:
power                  0.10  0.25  0.50  1.00  1.50  2.00  3.00   4.00
mouse train                                                           
3742  0.33 s, 9/10 ms  33.5   NaN   5.7  31.4   NaN   NaN   NaN   24.1
      0.51 s, 8/16 ms   NaN   9.4   NaN   NaN  37.4  16.5   3.0    NaN
4004  0.33 s, 9/10 ms   NaN  21.7   NaN   NaN  18.1  20.5  18.6    NaN
      0.51 s, 8/16 ms  19.3   NaN  25.2  25.3   NaN   NaN   NaN   33.3
4651  0.33 s, 9/10 ms   NaN  60.1   NaN   NaN  54.2  55.1  57.7    NaN
      0.51 s, 8/16 ms  54.3   NaN  81.3  91.5   NaN   NaN   NaN  100.1
4885  0.33 s, 9/10 ms  40.6   NaN  53.5  35.0   NaN   NaN   NaN   38.7
      0.51 s, 8/16 ms   NaN  78.1   NaN   NaN  66.9  69.5  56.1    NaN
Spearman correlation of the integral with labelled power, within each train type:
mouse  train          
3742   0.33 s, 9/10 ms   -0.07
       0.51 s, 8/16 ms   -0.38
4004   0.33 s, 9/10 ms   -0.41
       0.51 s, 8/16 ms    0.81
4651   0.33 s, 9/10 ms   -0.21
       0.51 s, 8/16 ms    0.86
4885   0.33 s, 9/10 ms   -0.28
       0.51 s, 8/16 ms   -0.74

Anxa1 files with 1.5, 2 and 3 mW as 0.33 s trains and 0.5 and 1 mW as 0.51 s trains, median 0 to 0.5 s integral:
 mouse group  0.5mW  1.0mW  1.5mW  2.0mW  3.0mW  high_033_below_low_051
  3743    GS  123.8  161.2  131.2  127.6  132.2                   False
  3947    WT  128.4  114.8   67.2   55.4   66.2                    True
  3948    WT  107.8  146.7  164.8  160.7  175.5                   False
  4004    GS   25.2   25.3   18.1   20.5   18.6                    True
  4005    GS   14.2   10.2   15.0   12.8   13.2                   False
  4007    GS   32.8   32.6   21.2   21.7   22.5                    True
  4253    WT  133.0  132.9   84.0   93.9   87.4                    True
  4398    WT  114.8  154.9  173.5  169.5  172.8                   False
  4401    WT  180.0  178.2  124.7  133.1  127.3                    True
  4558    WT  121.8  157.4  138.1  135.1  125.2                   False
  4561    WT   88.2   85.7   53.8   50.4   56.0                    True
  4651    GS   81.3   91.5   54.2   55.1   57.7                    True
Files where every 0.33 s median (1.5, 2, 3 mW) is below both 0.51 s medians (0.5, 1 mW): 7 of 12

At the table's onsets the 0 to 0.5 s integral has a median of 13 to 260 % dF/F x s per file; 10 s later, between trains, it is near zero in every file (lower in 27 of 27, Wilcoxon p = 1.5e-08), and the 405 nm control shows no response (medians -0.74 to 1.15). The mean response peaks 160 to 370 ms after onset. The mean trace rises by up to 25 % dF/F in the 0.1 s before onset: the 20-sample moving mean of the stored dF/F spreads the response about 0.1 s earlier, which is why the code's baseline ends 0.1 s before onset. The epochs table and the photometry share a clock.

The response grows with the labelled power in every Calb1 file (Spearman 0.76 to 0.94) but not in many Anxa1 files (median 0.06). Of the 12 Anxa1 files where 1.5, 2 and 3 mW are given as 0.33 s trains and 0.5 and 1 mW as 0.51 s trains, the 0.33 s responses fall below both 0.51 s ones in 7 (for example mouse 4401) and not in the other 5 (in 4398, 173.5 at 1.5 mW against 114.8 at 0.5 mW). The power labels are consistent with the data in Calb1 files; in Anxa1 files the data alone cannot confirm them. The labels of the four powers the paper uses are confirmed against its source data under source-data-link.

The epoch-by-epoch tables show mice 3742 and 4885, whose paper powers are all 0.33 s trains of 9 ms pulses every 10 ms, and two GS mice given 0.51 s trains. In 3742 the response does not follow the labelled power: within the 0.33 s trains the median 0 to 0.5 s integral is lowest at 0.5 mW (5.7 % dF/F x s) and higher at 0.1 mW (33.5), and the correlation with power is negative within each train type. In 4885 the 0.33 s trains give medians of 35.0 to 53.5 at the four labelled powers, below every 0.51 s power (56.1 to 78.1), and the correlation with power is negative within both train types (-0.28 and -0.74). In 4004 and 4651 the response rises with power within the 0.51 s trains (Spearman 0.81 and 0.86) and not within the 0.33 s ones (-0.41 and -0.21). The data cannot confirm the power labels of 3742 and 4885.

Findings of attempt chen-2026-01¶

The same version is analysed again, so each finding of the earlier attempt is checked against the files, the archive's metadata, the paper's code repository and the paper's Crossref record.

In [6]:
# Each finding of attempt chen-2026-01, checked again on version 0.260825.1457.
import json
import subprocess

import requests

meta = client.get_dandiset(lrrk2.DANDISET_ID, lrrk2.DANDISET_VERSION).get_raw_metadata()
md5_src, src = lrrk2.load_source_data()


def nearest_epoch(record):
    s = by_mouse[record["mouse"]]
    return min(np.nanmax(np.abs(lrrk2.code_chunk(s, j) - record["trace"])) for j in range(len(s["onset"])))


near = {k: np.array([nearest_epoch(d) for d in src[k]]) for k in ("6C", "S8D")}
print("F1 (Calb1 dF/F is not the paper's). Published triggered traces within 1e-6 of some epoch of the same mouse, any power:",
      {k: f"{int((v < 1e-6).sum())} of {len(v)}" for k, v in near.items()}, f"; closest S8D trace {near['S8D'].min():.3g} % dF/F")
summary = meta["assetsSummary"]
related = meta.get("relatedResource", [])
text = ((meta.get("description") or "") + " " + " ".join(r.get("url", "") for r in related)).lower()
print("F2 (only the photometry is in the dandiset):", summary["numberOfFiles"], "NWB files; the description or related resources",
      "name Zenodo, PRIDE or the BioImage Archive:", any(w in text for w in ("zenodo", "pride", "biostudies", "bioimage", "s-biad", "pxd")))
print("   related resources:", [(r.get("relation"), r.get("url")) for r in related])
m = by_mouse[4398]
print(f"F3 (series of 4398 cut short): last onset {m['start_time'][-1]:.2f} s, series ends {m['t'][-1]:.2f} s,",
      f"{m['t'][-1] - m['start_time'][-1]:.2f} s after it")
print("F4 (epochs table description):", " ".join(sessions[0]["opto_description"].split())[:260])
print("   powers in the tables:", sorted(set(np.concatenate([s["power_in_mW"] for s in sessions]))),
      "; train lengths (s):", sorted({round(float(d), 2) for s in sessions for d in s["stop_time"] - s["start_time"]}),
      "; trains with a pulse length of 0:", sum(int((s["pulse_length_in_ms"] == 0).sum()) for s in sessions))
paper_train = {s["mouse"]: float(np.median((s["stop_time"] - s["start_time"])[np.isin(s["power_in_mW"], lrrk2.PAPER_POWERS)]))
               for s in sessions}
print("F5 (mice given the paper's powers as 0.33 s trains):", {k: round(v, 2) for k, v in paper_train.items() if v < 0.4})
print("F6 (dF/F unit):", sorted({s["dff_unit"] for s in sessions}))
print("F7 (archive summary): approach", [a["name"] for a in summary.get("approach", [])], "; techniques",
      [a["name"] for a in summary.get("measurementTechnique", [])], "; variables", summary.get("variableMeasured"))
print("F8 (exclusions undocumented): the description mentions an exclusion:", "exclu" in (meta.get("description") or "").lower())
head = subprocess.run(["git", "ls-remote", "https://github.com/DombeckLab/lrrk2_photometry_analysis", "HEAD"],
                      capture_output=True, text=True, timeout=120, check=True).stdout.split()[0]
print("F9 to F11 (published code): HEAD of DombeckLab/lrrk2_photometry_analysis is", head[:7], "; attempt -01 read d34558f")
cr = requests.get("https://api.crossref.org/works/10.1038/s41467-026-75194-3", timeout=60)
cr.raise_for_status()
cm = cr.json()["message"]
print("F12 and F13 (paper): Crossref lists a correction or update:", bool(cm.get("updated-by") or cm.get("update-to")),
      "; references naming DANDI:", sum("dandi" in json.dumps(r).lower() for r in cm.get("reference", [])), "of",
      len(cm.get("reference", [])))
F1 (Calb1 dF/F is not the paper's). Published triggered traces within 1e-6 of some epoch of the same mouse, any power: {'6C': '120 of 120', 'S8D': '0 of 384'} ; closest S8D trace 15.7 % dF/F
F2 (only the photometry is in the dandiset): 27 NWB files; the description or related resources name Zenodo, PRIDE or the BioImage Archive: False
   related resources: [('dcite:IsDescribedBy', 'https://doi.org/10.1038/s41467-026-75194-3'), ('dcite:IsCompiledBy', 'https://github.com/catalystneuro/dombeck-lab-to-nwb/tree/main/src/dombeck_lab_to_nwb/chen2026'), ('dcite:IsSupplementedBy', 'https://github.com/dandi/example-notebooks/blob/master/001933/DombeckLab/001933_demo.ipynb')]
F3 (series of 4398 cut short): last onset 1250.24 s, series ends 1251.05 s, 0.81 s after it
F4 (epochs table description): Epochs of optogenetic activation of ChRmine-expressing Cre+ SNc dopamine neurons (635 nm LED, right hemisphere). Each row is one contiguous stimulation epoch (TTL=1 block) extracted from the 100 Hz binned TTL column in *_data.mat. Pulse parameters: 8 ms on / 8
   powers in the tables: [np.float64(0.1), np.float64(0.25), np.float64(0.5), np.float64(1.0), np.float64(1.5), np.float64(2.0), np.float64(3.0), np.float64(4.0)] ; train lengths (s): [0.32, 0.33, 0.49, 0.5, 0.51, 0.52] ; trains with a pulse length of 0: 2
F5 (mice given the paper's powers as 0.33 s trains): {3742: 0.33, 4885: 0.33}
F6 (dF/F unit): ['a.u.']
F7 (archive summary): approach ['behavioral approach'] ; techniques ['behavioral technique', 'analytical technique'] ; variables ['ProcessingModule', 'BehavioralTimeSeries']
F8 (exclusions undocumented): the description mentions an exclusion: False
F9 to F11 (published code): HEAD of DombeckLab/lrrk2_photometry_analysis is d34558f ; attempt -01 read d34558f
F12 and F13 (paper): Crossref lists a correction or update: False ; references naming DANDI: 0 of 99

None of the findings of attempt -01 is fixed; the version is the same, and so are the code and the paper.

Finding of attempt -01 Kind Now Shown by
The Calb1 dF/F is not the trace behind Supplementary Figure 8 data_missing still present F1: 0 of 384 Supplementary 8D traces within 1e-6 of any epoch of the mouse (closest 15.7 % dF/F), against 120 of 120 for Figure 6C
Only the photometry is in the dandiset; Figures 1 to 5 are elsewhere data_missing still present, kind changed F2: 27 files, and neither the description nor the related resources name Zenodo, PRIDE or the BioImage Archive. Under pilot-7 these data count as public elsewhere, so the finding is recorded again as other
The series of 4398 ends 0.8 s after its last onset other still present F3: 0.81 s
The epochs table description gives one train and four powers metadata_error still present F4: eight powers, trains of 0.32 to 0.52 s, two trains with a pulse length of 0
Two Anxa1 GS mice received 0.33 s trains other still present F5: 3742 and 4885
The dF/F unit is a.u. metadata_error still present F6
The archive summary lists a behavioral approach only metadata_error still present F7
The four excluded mice are left out without a note selection_undocumented still present F8
Three disagreements of the published code with the paper code_mismatch still present F9 to F11: the repository is at the commit read in attempt -01
Welch, one-tailed and two-tailed tests named for the per-mouse comparisons paper_inconsistency still present F12: no correction is registered
The paper does not cite the dandiset other still present F13: 0 of 99 references name DANDI

The data in other archives¶

The claims of Figures 1 to 5 are tested on the data the paper deposited elsewhere (protocol pilot-7, data: elsewhere): the tabular values behind each figure on Zenodo, the search outputs in PRIDE and the images in the BioImage Archive. Each is read in memory. This check lists what each archive holds, counts it against the legends, and looks for values or files deposited twice.

In [7]:
rec = requests.get(archives.ZENODO_RECORD, timeout=60).json()
print(f"Zenodo record {rec['id']}, created {rec['created'][:10]}, modified {rec['modified'][:10]}:")
for f in rec["files"]:
    print(f"   {f['key']}: {f['size']} bytes, {f['checksum']}")
md5_wb, _ = archives.source_workbook()
print("Source data.xlsx read here, md5", md5_wb, "; equal to the record's:", md5_wb == archives.SOURCE_DATA_MD5)

f1 = archives.fig1d()
f2 = archives.fig2eg()
f4de = archives.fig4de()
blots = archives.fig4()
f5 = archives.fig5de()
f5gh = archives.fig5gh()
f5j = archives.fig5j()
print("\nFigure 1D: sections per mouse", f1.groupby("mouse").size().to_dict(), "; total", len(f1), "(legend: 16 sections, 3 mice)")
print("   LRRK2 intensity, Aldh1a1- from", f1.neg.min().round(3), "to", f1.neg.max().round(3), "; Aldh1a1+ from", f1.pos.min().round(3),
      "to", f1.pos.max().round(3), "(normalised; no unit given)")
print("Figure 2E and 2G: values per group", {p: {g: len(v) for g, v in d.items()} for p, d in f2.items()}, "(legend: 10 and 7 mice)")
print("   ranges:", {p: {g: (round(v.min(), 3), round(v.max(), 3)) for g, v in d.items()} for p, d in f2.items()})
print("Figure 4D and 4E: areas per replicate (mouse) and group (legend: 4D 39 WT and 35 GS areas, 3 mice each;",
      "4E 43 WT and 57 GS areas, 4 mice each):")
print(pd.crosstab([f4de.panel, f4de.replicate], f4de.group, margins=True).to_string())
print("   ranges:", f4de.groupby(["panel", "group"]).value.agg(["min", "max"]).round(4).to_dict("index"))
print("   4D values under 1 %:", f4de[(f4de.panel == "4D") & (f4de.value < 1)][["replicate", "area", "group", "value"]].to_dict("records"))
print("Figure 4G to 4L: values per genotype", {k: (len(v["WT"]), len(v["GS"])) for k, v in blots.items()}, "(legend: 6 mice per genotype)")
print("Figure 5D and 5E: sections with a value, by cell type and group (legend 5D: WT+ 19, GS+ 21, WT- 18, GS- 17;",
      "5E: 19, 20, 16, 17):")
print(f5.dropna().groupby(["panel", "cell", "group"]).size().unstack().to_string())
print("   mice per group:", f5.groupby("group").mouse.unique().apply(list).to_dict())
print("   ranges:", f5.groupby(["panel", "cell"]).value.agg(["min", "max"]).round(4).to_dict("index"))
print("Figure 5G and 5H: sections per group", f5gh.groupby(["panel", "group"]).size().to_dict(), "(legend: 16 WT, 3 mice; 18 GS, 4 mice);",
      "the animal column lists", sorted(f5gh.animal_column.unique()), "for both groups")
print("Figure 5J: sections per group", f5j.groupby("group").size().to_dict(), "(legend: 12 sections, 4 mice each); the animal column",
      "lists", sorted(f5j.animal_column.unique()), "for both groups")

# Values deposited twice: whole sections of Figure 5D/5E with the same four values, and repeated values within any panel.
wide = f5.set_index(["group", "column", "mouse", "section", "panel", "cell"]).value.unstack(["panel", "cell"])
dups = wide[wide.round(9).duplicated(keep=False)]
print("\nFigure 5D/5E sections whose four values (density and volume, Aldh1a1+ and -) equal another section's:")
print(dups.to_string())


def repeats(v):
    v = pd.Series(v).dropna()
    return sorted(v[v.duplicated(keep=False)].round(9).unique().tolist())


rep = {"1D": repeats(np.r_[f1.pos, f1.neg]), **{f"2/{p}": repeats(np.concatenate(list(d.values()))) for p, d in f2.items()},
       **{f"{p}": repeats(g.value) for p, g in f4de.groupby("panel")}, **{k: repeats(np.r_[v["WT"], v["GS"]]) for k, v in blots.items()},
       **{f"{p}": repeats(g.value) for p, g in f5gh.groupby("panel")}, "5J": repeats(f5j.value),
       **{f"{p} {c}": repeats(g.value) for (p, c), g in f5.groupby(["panel", "cell"])}}
print("Repeated values within each panel:", {k: v for k, v in rep.items() if v})
Zenodo record 19930567, created 2026-04-30, modified 2026-05-27:
   images.zip: 35022707 bytes, md5:d3cf7f738d7eaac93f18c844f0ddc1b3
   Supplementary files.zip: 36933509 bytes, md5:98f11f6ea1fdd13e56807ff1f639c9a4
   analysis code.zip: 3605 bytes, md5:409c3df90d78c70ab661e8a7ca9f06c5
   Source data.xlsx: 28375315 bytes, md5:c26fe3de8f340a3db5fa29a40e5a8c10
   Westerbn blot.pdf: 3952092 bytes, md5:94bf9bd82f31c2637c806e861e1d9986
Source data.xlsx read here, md5 c26fe3de8f340a3db5fa29a40e5a8c10 ; equal to the record's: True

Figure 1D: sections per mouse {2275: 6, 2650: 5, 2722: 5} ; total 16 (legend: 16 sections, 3 mice)
   LRRK2 intensity, Aldh1a1- from 0.935 to 1.037 ; Aldh1a1+ from 0.933 to 1.14 (normalised; no unit given)
Figure 2E and 2G: values per group {'RAB3A': {'WT': 10, 'GS': 10, 'GS+MLi2': 10}, 'RAB3C': {'WT': 7, 'GS': 7, 'GS+MLi2': 7}} (legend: 10 and 7 mice)
   ranges: {'RAB3A': {'WT': (np.float64(0.651), np.float64(1.349)), 'GS': (np.float64(0.867), np.float64(2.345)), 'GS+MLi2': (np.float64(0.381), np.float64(1.382))}, 'RAB3C': {'WT': (np.float64(0.852), np.float64(1.148)), 'GS': (np.float64(1.174), np.float64(1.781)), 'GS+MLi2': (np.float64(0.87), np.float64(1.553))}}
Figure 4D and 4E: areas per replicate (mouse) and group (legend: 4D 39 WT and 35 GS areas, 3 mice each; 4E 43 WT and 57 GS areas, 4 mice each):
group            GS  WT  All
panel replicate             
4D    1          14  14   28
      2          11  11   22
      3          10  14   24
4E    1          14  14   28
      2          12  12   24
      3          15   9   24
      4          10   8   18
All              86  82  168
   ranges: {('4D', 'GS'): {'min': 0.0766, 'max': 36.3636}, ('4D', 'WT'): {'min': 6.8966, 'max': 41.9355}, ('4E', 'GS'): {'min': 0.0435, 'max': 0.1546}, ('4E', 'WT'): {'min': 0.0407, 'max': 0.1434}}
   4D values under 1 %: [{'replicate': 1, 'area': 14, 'group': 'GS', 'value': 0.07657143}]
Figure 4G to 4L: values per genotype {'4G': (6, 6), '4H': (6, 6), '4I': (6, 6), '4J': (6, 6), '4L': (6, 6)} (legend: 6 mice per genotype)
Figure 5D and 5E: sections with a value, by cell type and group (legend 5D: WT+ 19, GS+ 21, WT- 18, GS- 17; 5E: 19, 20, 16, 17):
group           GS  WT
panel cell            
5D    Aldh1a1+  21  19
      Aldh1a1-  17  18
5E    Aldh1a1+  21  19
      Aldh1a1-  17  16
   mice per group: {'GS': [np.int64(1272), np.int64(1522), np.int64(517), np.int64(796)], 'WT': [np.int64(1723), np.int64(1929), np.int64(516), np.int64(797)]}
   ranges: {('5D', 'Aldh1a1+'): {'min': 0.0721, 'max': 0.3275}, ('5D', 'Aldh1a1-'): {'min': 0.0, 'max': 0.4569}, ('5E', 'Aldh1a1+'): {'min': 0.0091, 'max': 0.0169}, ('5E', 'Aldh1a1-'): {'min': 0.0092, 'max': 0.0167}}
Figure 5G and 5H: sections per group {('5G', 'GS'): 18, ('5G', 'WT'): 16, ('5H', 'GS'): 18, ('5H', 'WT'): 16} (legend: 16 WT, 3 mice; 18 GS, 4 mice); the animal column lists [np.int64(1021), np.int64(1024), np.int64(1028)] for both groups
Figure 5J: sections per group {'GS': 12, 'WT': 12} (legend: 12 sections, 4 mice each); the animal column lists [np.int64(3244), np.int64(3757), np.int64(3874), np.int64(4434)] for both groups

Figure 5D/5E sections whose four values (density and volume, Aldh1a1+ and -) equal another section's:
panel                             5D                 5E         
cell                        Aldh1a1+  Aldh1a1- Aldh1a1+ Aldh1a1-
group column mouse section                                      
WT    4      1723  4        0.288496  0.252251  0.01199  0.01182
      5      1723  5        0.288496  0.252251  0.01199  0.01182
Repeated values within each panel: {'4D': [2.02020202], '5D Aldh1a1+': [0.288496], '5D Aldh1a1-': [0.252251], '5E Aldh1a1+': [0.01199], '5E Aldh1a1-': [0.01182, 0.013812]}

The source data file read here is the one in the Zenodo record (equal md5). Its counts agree with the legends for Figures 1D (16 sections, 3 mice), 2E and 2G (10 and 7 per group), 4D (39 WT and 35 GS areas), 4G to 4L (6 mice per genotype), 5D, 5G, 5H and 5J. They disagree in two places: Figure 4E has 51 GS areas where the legend gives 57, and Figure 5E has 21 GS Aldh1a1+ sections where the legend gives 20. One GS value of Figure 4D, 0.0766 %, is of the size of the Figure 4E areas (0.04 to 0.15) and may have been pasted from there; it is kept, and leaving it out is shown. Sections 4 and 5 of WT mouse 1723 in Figure 5D and 5E carry the same four values to six digits, so one section appears to have been entered twice; as the claims file fixes, it is counted once, and the values as deposited are a variant. Figure 5D holds a density of 0 for one WT Aldh1a1- section, kept as deposited. The other repeated values (one in 4D, one in 5E) are single values, not whole sections. The sheets of Figure 5G/5H and 5J give one animal column for both genotypes, holding WT IDs (1021, 1024, 1028; 3244, 3757, 3874, 4434), so the GS animals of these panels are not identified in the source data. The values carry no units; Figure 1D and 5J are normalised to about 1.

In [8]:
supp, md5_supp = archives.supplementary_data()
print("Supplementary files.zip md5", md5_supp, "; files:", sorted(supp))
pp, md5_pp = archives.phosphopeptides()
print("\nPRIDE PXD065006 peptide groups table: md5", md5_pp, ";", len(pp), "peptides,", int(pp.Modifications.str.contains("Phospho").sum()),
      "with a phosphorylation")
ab = [c for c in pp.columns if c.startswith("Abundance")]
print("   abundance columns:", ab)
print("   values per sample:", pp[ab].notna().sum().to_dict())
print("   peptides with all six values", int(pp[ab].notna().all(axis=1).sum()), "; with at least two per group",
      int(((pp[ab[:3]].notna().sum(axis=1) >= 2) & (pp[ab[3:]].notna().sum(axis=1) >= 2)).sum()))
s1 = pd.read_excel(io.BytesIO(supp["Supplementary file 1.xlsx"]), sheet_name=None)
same = s1["PeptideGroups"][ab].fillna(-1).to_numpy().tolist() == pp[ab].fillna(-1).to_numpy().tolist()
print("   equal to the PeptideGroups sheet of Supplementary data 1:", same, "; that file's sheets:",
      {k: v.shape for k, v in s1.items()})
rab3 = pp[pp["Annotated Sequence"].str.contains("YRTITTAYYR", na=False)]
print("   RAB3 peptide covering T86:", rab3[["Annotated Sequence", "Modifications", "Modifications in Master Proteins"]].to_dict("records"))

pull, md5_pull, pull_cols = archives.pulldown()
print("\nPRIDE PXD065125 FilteredDataset.pg_matrix.Brain_Rab3A.csv: md5", md5_pull, ";", len(pull), "protein groups; columns",
      pull_cols[3:])
report = pd.read_csv(io.BytesIO(archives.fetch(archives.PULLDOWN_REPORT_URL)[0]), sep="\t")
runs = [c for c in report.columns if c.endswith(".raw")]
raw = pd.read_csv(io.BytesIO(archives.fetch(archives.PULLDOWN_URL)[0]))
order = {}
for c in [c for c in raw.columns if c.startswith(("phosRab3Brain", "Rab3Brain"))]:
    v = raw.set_index("Protein.Group")[c]
    for r in runs:
        w = report.set_index("Protein.Group").reindex(v.index)[r]
        if np.allclose(v.fillna(-1), w.fillna(-1)):
            order[c] = r.split("\\")[-1]
print("   each pulldown column equals the run of report.pg_matrix.tsv:", order)
sdrf = pd.read_csv(io.BytesIO(archives.fetch(archives.PULLDOWN_SDRF_URL)[0]), sep="\t")
print("   SDRF bait per run:", sorted((n.split("_")[3], n.split("_")[4]) for n in sdrf["source name"] if n.startswith("20240406")))
print("   the six RAB3A and six p-RAB3A runs are paired here in run order, C13 with C19 and so on")
Supplementary files.zip md5 98f11f6ea1fdd13e56807ff1f639c9a4 ; files: ['Supplementary file 1.xlsx', 'Supplementary file 2.xlsx', 'Supplementary file 3.xlsx', 'Supplementary file 4.xlsx', 'Supplementary file 5.xlsx']
PRIDE PXD065006 peptide groups table: md5 1ceefa5fc576c1991f07f7d637f83fae ; 8008 peptides, 8008 with a phosphorylation
   abundance columns: ['Abundance: F1: Sample, Vehicle, 1', 'Abundance: F2: Sample, Vehicle, 2', 'Abundance: F3: Sample, Vehicle, 3', 'Abundance: F4: Sample, MLi2, 1', 'Abundance: F5: Sample, MLi2, 2', 'Abundance: F6: Sample, MLi2, 3']
   values per sample: {'Abundance: F1: Sample, Vehicle, 1': 6216, 'Abundance: F2: Sample, Vehicle, 2': 6147, 'Abundance: F3: Sample, Vehicle, 3': 6211, 'Abundance: F4: Sample, MLi2, 1': 6200, 'Abundance: F5: Sample, MLi2, 2': 6279, 'Abundance: F6: Sample, MLi2, 3': 6171}
   peptides with all six values 5366 ; with at least two per group 6070
   equal to the PeptideGroups sheet of Supplementary data 1: True ; that file's sheets: {'Proteins': (2155, 16), 'PeptideGroups': (8008, 18), 'Volcano plot-phospho peptides': (6157, 11), 'Volcano plot-protein ': (55, 3)}
   RAB3 peptide covering T86: [{'Annotated Sequence': '[R].YRTITTAYYR.[G]', 'Modifications': '1xPhospho [T3(100)]', 'Modifications in Master Proteins': 'P63011 1xPhospho [T86(100)]; A2A7Z6 1xPhospho [T86(100)]; A0A286YDR2 1xPhospho [T92(100)]'}]
PRIDE PXD065125 FilteredDataset.pg_matrix.Brain_Rab3A.csv: md5 cd060787ee1d324f77d151ef0c1e54f1 ; 3480 protein groups; columns ['phosRab3Brain', 'phosRab3Brain.1', 'phosRab3Brain.2', 'phosRab3Brain.3', 'phosRab3Brain.4', 'phosRab3Brain.5', 'Rab3Brain', 'Rab3Brain.1', 'Rab3Brain.2', 'Rab3Brain.3', 'Rab3Brain.4', 'Rab3Brain.5', 'WCLBrain', 'WCLBrain.1', 'WCLBrain.2', 'WCLBrain.3', 'WCLBrain.4', 'WCLBrain.5']
   each pulldown column equals the run of report.pg_matrix.tsv: {'phosRab3Brain': '20240406_MJ_Eve_C13.raw', 'phosRab3Brain.1': '20240406_MJ_Eve_C14.raw', 'phosRab3Brain.2': '20240406_MJ_Eve_C15.raw', 'phosRab3Brain.3': '20240406_MJ_Eve_C16.raw', 'phosRab3Brain.4': '20240406_MJ_Eve_C17.raw', 'phosRab3Brain.5': '20240406_MJ_Eve_C18.raw', 'Rab3Brain': '20240406_MJ_Eve_C19.raw', 'Rab3Brain.1': '20240406_MJ_Eve_C20.raw', 'Rab3Brain.2': '20240406_MJ_Eve_C21.raw', 'Rab3Brain.3': '20240406_MJ_Eve_C22.raw', 'Rab3Brain.4': '20240406_MJ_Eve_C23.raw', 'Rab3Brain.5': '20240406_MJ_Eve_C24.raw'}
   SDRF bait per run: [('C13', 'phosRab3A'), ('C14', 'phosRab3A'), ('C15', 'phosRab3A'), ('C16', 'phosRab3A'), ('C17', 'phosRab3A'), ('C18', 'phosRab3A'), ('C19', 'Rab3A'), ('C20', 'Rab3A'), ('C21', 'Rab3A'), ('C22', 'Rab3A'), ('C23', 'Rab3A'), ('C24', 'Rab3A')]
   the six RAB3A and six p-RAB3A runs are paired here in run order, C13 with C19 and so on

The peptide groups table of PXD065006 equals the PeptideGroups sheet of Supplementary data 1: 8008 phosphopeptides with three vehicle and three MLi-2 samples, of which 5366 have all six values and 6070 at least two per group. It holds the RAB3 peptide YRTITTAYYR phosphorylated at T86 of RAB3A and RAB3B (T92 of RAB3C). The paper's volcano table, also in Supplementary data 1, holds 6157 peptides. The pulldown matrix of PXD065125 holds 3480 protein groups, the paper's count. Its twelve pulldown columns equal runs C13 to C24 of the DIA-NN report, and the SDRF gives p-RAB3A for C13 to C18 and RAB3A for C19 to C24, so the column labels agree with the runs. The pairing of replicates behind the paired test of Figure 3E and 3F is not stated; run order is used, as the claims file fixes.

In [9]:
bia = {acc: archives.bia_files(acc) for acc in archives.BIA_FILE_LISTS}
for acc, d in bia.items():
    print(f"{acc}: {len(d)} files, {d['size'].sum() / 1e9:.2f} GB; folders", d.path.str.split("/").str[-2].value_counts().to_dict())
    print("   channel annotations:", d.filter(like="Channel").drop_duplicates().to_dict("records"))

import re


def ids(paths, pattern):
    out = []
    for p in paths:
        m = re.search(pattern, p.split("/")[-1])
        out.append(m.groups() if m else (None, None))
    return out


d = bia["S-BIAD2070"]
mice = pd.Series([int(m) for _, m in ids(d.path, r"(C57)-(\d+)-")])
print("\nS-BIAD2070 (Figure 1): images per mouse", mice.value_counts().sort_index().to_dict(),
      "; source data sections per mouse", f1.groupby("mouse").size().to_dict())
d = bia["S-BIAD2071"]
folder = d.path.str.split("/").str[-2]
g = pd.DataFrame(ids(d.path, r"(?:Aldh|Anxa)(GS|WT)-(?:R-)?(?:Middle-)?(\d{3,})?"), columns=["group", "mouse"]).assign(folder=folder.values)
print("S-BIAD2071 (Figure 5): images per folder, group and mouse:")
print(g.fillna("none").groupby(["folder", "group", "mouse"]).size().to_string())
print("   source data mice, 5D/5E:", f5.groupby("group").mouse.unique().apply(list).to_dict(), "; 5G/5H animal column:",
      sorted(f5gh.animal_column.unique()))
d = bia["S-BIAD2072"]
d = d[d.path.str.contains("TH-6M-volume")]
g = pd.DataFrame(ids(d.path, r"(C57|GSHom)-(\d+)-"), columns=["group", "mouse"])
print("S-BIAD2072 (Figure 5J, folder TH-6M-volume): images per group and mouse", g.groupby(["group", "mouse"]).size().to_dict(),
      "; source data animal column", sorted(f5j.animal_column.unique()), "; legend: 8 images per section, 12 sections, 4 mice per group")
d = bia["S-BIAD2074"]
g = pd.DataFrame(ids(d.path, r"(?i)Export_(wt|ki)(\d+)_"), columns=["group", "mouse"]).assign(folder=d.path.str.split("/").str[-2].values)
g["group"] = g.group.str.lower()
print("S-BIAD2074 (Figure 4D, 4E): images per folder, group and mouse:")
print(g.groupby(["folder", "group", "mouse"]).size().unstack(fill_value=0).to_string())
S-BIAD2070: 21 files, 2.38 GB; folders {'LRRK2 expression': 21}
   channel annotations: [{'Channel 405': 'DAPI', 'Channel 488': 'LRRK2', 'Channel 568': 'aldh1a1', 'Channel 647': 'TH'}]
S-BIAD2071: 463 files, 542.19 GB; folders {'aldh1a1': 333, 'Anxa': 107, 'Rotated images': 23}
   channel annotations: [{'Channel 488': '-', 'Channel 568': 'mcherry', 'Channel 647': 'bassoon'}, {'Channel 488': 'GFP', 'Channel 568': 'mcherry', 'Channel 647': 'bassoon'}]
S-BIAD2072: 336 files, 182.52 GB; folders {'100x': 191, 'TH-6M-volume': 128, '20x': 17}
   channel annotations: [{'Channel 488': 'VMAT2', 'Channel 568': 'TH', 'Channel 647': 'aldh1a1'}, {'Channel 488': '-', 'Channel 568': 'TH', 'Channel 647': 'aldh1a1'}, {'Channel 488': 'anxa1', 'Channel 568': 'TH', 'Channel 647': '-'}, {'Channel 488': 'aldh1a1', 'Channel 568': 'TH', 'Channel 647': '-'}]
S-BIAD2074: 168 files, 1.07 GB; folders {'BSN-area': 93, 'BSN': 75}
   channel annotations: [{'Channel 488': 'Bassoon', 'Channel 568': 'TH', 'Channel 647': 'VMAP2'}]

S-BIAD2070 (Figure 1): images per mouse {2275: 7, 2650: 7, 2722: 7} ; source data sections per mouse {2275: 6, 2650: 5, 2722: 5}
S-BIAD2071 (Figure 5): images per folder, group and mouse:
folder          group  mouse
Anxa            GS     1019      6
                       1020     12
                       1022     14
                       1052     17
                WT     1018      6
                       1021     13
                       1024     12
                       1028     27
Rotated images  GS     1022      6
                       1052      4
                WT     1021      6
                       1028      7
aldh1a1         GS     1272     43
                       1522     38
                       517      30
                       796      42
                WT     1923     30
                       1929     41
                       516      48
                       797      59
                       none      2
   source data mice, 5D/5E: {'GS': [np.int64(1272), np.int64(1522), np.int64(517), np.int64(796)], 'WT': [np.int64(1723), np.int64(1929), np.int64(516), np.int64(797)]} ; 5G/5H animal column: [np.int64(1021), np.int64(1024), np.int64(1028)]
S-BIAD2072 (Figure 5J, folder TH-6M-volume): images per group and mouse {('C57', '3244'): 16, ('C57', '3757'): 16, ('C57', '3874'): 16, ('C57', '4434'): 16, ('GSHom', '3243'): 16, ('GSHom', '3246'): 16, ('GSHom', '4120'): 16, ('GSHom', '4369'): 16} ; source data animal column [np.int64(3244), np.int64(3757), np.int64(3874), np.int64(4434)] ; legend: 8 images per section, 12 sections, 4 mice per group
S-BIAD2074 (Figure 4D, 4E): images per folder, group and mouse:
mouse            1   2   3   4   5
folder   group                    
BSN      ki     14  10  12   0   0
         wt     14  10  15   0   0
BSN-area ki     13   0  15  12  10
         wt     14   0  15   6   8

The images match the source data by mouse only in part, and none of the studies records which images the figures used. S-BIAD2070 holds 7 images for each of the three Figure 1D mice, where the source data give 5 or 6 sections each. S-BIAD2071 holds Aldh1a1 images of the four GS mice of Figure 5D (1272, 1522, 517, 796) and of WT mice 1923, 1929, 516 and 797, where the source data name 1723 for the first; two WT files carry no mouse ID. Its Anxa1 folder holds four WT mice (1018, 1021, 1024, 1028), where the legend and the source data have three (1018 is not in the source data), and four GS mice (1019, 1020, 1022, 1052) that the source data do not name. In S-BIAD2072, the volume folder holds 16 images for each of the four WT mice of Figure 5J and of four GS mice (3243, 3246, 4120, 4369), 64 per genotype, where the legend gives 8 images per section for 12 sections (96). S-BIAD2074 names its images by genotype and a mouse number from 1 to 5. Its counts do not follow the source data image by image: in the BSN folder the GS mice have 14, 10 and 12 images against 14, 11 and 10 areas in Figure 4D (WT 14, 10, 15 against 14, 11, 14); in the BSN-area folder GS has 50 images against 51 areas (and the legend's 57) and WT 43 against 43 (cell 75 drops one GS image with no particle to measure). Part B of fig4d-fewer-active-zones therefore compares genotypes over the deposited images and cannot match them to the published areas.

In [10]:
# Every synaptosome image of S-BIAD2074, streamed and measured with the Methods' FIJI procedure (archives.py).
t0 = time.time()
syn = archives.analyse_synaptosomes(bia["S-BIAD2074"], workers=12)
print(f"{len(syn)} images streamed and measured in {time.time() - t0:.0f} s; shapes {syn['shape'].value_counts().to_dict()};",
      f"pixel sizes (um) {sorted(syn.pixel_um.unique())}")
dupe = syn[syn.md5.duplicated(keep=False)].sort_values("md5")
within = dupe.groupby(["md5"]).folder.agg(lambda f: f.duplicated().any())
print("Images with the same content as another:", len(dupe), "; pairs within one folder:", int(within.astype(bool).sum()))
print(dupe.groupby("md5").path.apply(lambda p: " = ".join(x.split("/", 1)[1] for x in p)).to_string(index=False))
frac = syn[syn.folder == "BSN"]
area = syn[syn.folder == "BSN-area"]
print("\nBSN folder: VAMP2 particles per image", int(frac.vamp2_particles.min()), "to", int(frac.vamp2_particles.max()),
      "(median", int(frac.vamp2_particles.median()), "); TH+ VAMP2+ per image", int(frac.th_vamp2.min()), "to", int(frac.th_vamp2.max()),
      "; images with none:", int((frac.th_vamp2 == 0).sum()), "(the legend: about 1000 synaptosomes per area)")
print("BSN-area folder: bassoon and TH overlaps per image", int(area.overlaps.min()), "to", int(area.overlaps.max()),
      "; VAMP2+ overlaps", int(area.vamp2_pos.min()), "to", int(area.vamp2_pos.max()), "; images with none:", int((area.vamp2_pos == 0).sum()))
print("\nExcitation wavelengths (nm) of channels 0, 1 and 2 in each image's OME metadata:", syn.excitation_nm.value_counts().to_dict(),
      "; the procedure reads them as bassoon (488), TH (568) and VAMP2 (647)")
print("Images whose metadata give another order:", syn[syn.excitation_nm != "488/561/640"].path.tolist())
print("\nBSN folder: objects above the Default threshold before the size and circularity limits, VAMP2 objects within the",
      "size limits alone, and VAMP2 particles after both, per image (the legend: about 1000 synaptosomes per area):")
print(frac[["bassoon_objects", "th_objects", "vamp2_objects", "vamp2_size_only", "vamp2_particles", "th_vamp2", "bassoon_th_vamp2"]]
      .describe().loc[["min", "25%", "50%", "75%", "max"]].round(0).to_string())
cols = ["group", "mouse", "image", "bassoon_objects", "th_objects", "vamp2_objects", "vamp2_size_only", "vamp2_particles", "th_vamp2", "bassoon_th_vamp2", "percent"]
print("Three images per genotype:")
print(frac.sort_values(["group", "mouse", "image"]).groupby("group").head(3)[cols].to_string(index=False, float_format=lambda v: f"{v:.1f}"))

# One image at the median VAMP2 particle count, with the VAMP2 segmentation drawn on it.
from skimage.segmentation import find_boundaries

row = frac.iloc[(frac.vamp2_particles - frac.vamp2_particles.median()).abs().argsort().iloc[0]]
img, _, px, _ = archives.read_synaptosome_image(row.path)
vamp = archives.rolling_ball(img[2])
thr = archives.ij_default_threshold(vamp)
kept = archives.particles(vamp, px, (0.04, 0.40))
fig, ax = plt.subplots(1, 2, figsize=(12, 6))
hi = np.percentile(vamp, 99.5)
for a, title in zip(ax, ("VAMP2 (647 nm) after background subtraction", "the same, with the segmentation")):
    a.imshow(np.clip(vamp, 0, hi), cmap="gray", vmin=0, vmax=hi)
    a.set_title(title, fontsize=9)
    a.axis("off")
ax[1].contour(vamp >= thr, levels=[0.5], colors="tab:orange", linewidths=0.4)
ax[1].contour(find_boundaries(kept), levels=[0.5], colors="tab:cyan", linewidths=0.6)
fig.suptitle(f"{row.path.split('/')[-1]}: orange, above the Default threshold; cyan, the {int(row.vamp2_particles)} particles kept", fontsize=9)
plt.show()
print(f"Shown: {row.path}; intensities clipped at the 99.5th percentile, {hi:.0f}; {100 * (vamp > hi).mean():.2f} % of pixels above it;",
      f"Default threshold {thr:.0f}; {100 * (vamp >= thr).mean():.2f} % of pixels above the threshold")
168 images streamed and measured in 144 s; shapes {'3x1024x1024': 167, '3x512x512': 1}; pixel sizes (um) [np.float64(0.030753), np.float64(0.031074), np.float64(0.061507)]
Images with the same content as another: 0 ; pairs within one folder: 0
Series([], )

BSN folder: VAMP2 particles per image 1 to 417 (median 183 ); TH+ VAMP2+ per image 0 to 143 ; images with none: 1 (the legend: about 1000 synaptosomes per area)
BSN-area folder: bassoon and TH overlaps per image 1 to 140 ; VAMP2+ overlaps 0 to 74 ; images with none: 1

Excitation wavelengths (nm) of channels 0, 1 and 2 in each image's OME metadata: {'488/561/640': 165, '488/488/488': 3} ; the procedure reads them as bassoon (488), TH (568) and VAMP2 (647)
Images whose metadata give another order: ['synaptosome/BSN-area/Export_ki4_BSN2.ome.tif', 'synaptosome/BSN-area/Export_ki4_BSN3.ome.tif', 'synaptosome/BSN-area/Export_ki4_BSN4.ome.tif']

BSN folder: objects above the Default threshold before the size and circularity limits, VAMP2 objects within the size limits alone, and VAMP2 particles after both, per image (the legend: about 1000 synaptosomes per area):
     bassoon_objects  th_objects  vamp2_objects  vamp2_size_only  vamp2_particles  th_vamp2  bassoon_th_vamp2
min            262.0        29.0           10.0              1.0              1.0       0.0               0.0
25%           1134.0       634.0          236.0             57.0             56.0      15.0               5.0
50%           1493.0      1005.0         1186.0            193.0            183.0      52.0              28.0
75%           1703.0      1671.0         1546.0            326.0            320.0     104.0              44.0
max           2446.0      3168.0         2765.0            428.0            417.0     143.0              71.0
Three images per genotype:
group  mouse  image  bassoon_objects  th_objects  vamp2_objects  vamp2_size_only  vamp2_particles  th_vamp2  bassoon_th_vamp2  percent
   GS      1      1           1192.0       281.0           17.0              6.0              6.0       1.0               1.0    100.0
   GS      1      2            889.0       972.0         1242.0            201.0            199.0      62.0              32.0     51.6
   GS      1      3            954.0       198.0           99.0             35.0             35.0      12.0               6.0     50.0
   WT      1      1           1493.0       916.0           28.0             10.0             10.0       5.0               2.0     40.0
   WT      1      2           1705.0       890.0          136.0             21.0             21.0       4.0               2.0     50.0
   WT      1      3           1084.0        40.0           66.0              7.0              7.0       3.0               3.0    100.0
No description has been provided for this image
Shown: synaptosome/BSN/Export_ki1_BSN10.ome.tif; intensities clipped at the 99.5th percentile, 1348; 0.50 % of pixels above it; Default threshold 558; 2.71 % of pixels above the threshold

All 168 synaptosome images were streamed and measured, and no two share content, although the BSN and BSN-area folders share file names for mice 1 and 3. One image (ki4 BSN1) is 512 x 512 at 0.0615 um per pixel, the others 1024 x 1024 at 0.0308 or 0.0311 um; particle sizes use each image's own pixel size. With the Methods' procedure as re-implemented here, an image holds 1 to 417 VAMP2 particles (median 183), well under the legend's "about 1000 synaptosomes per area", and one image in each folder has nothing to measure. The re-implementation does not reproduce the paper's segmentation closely (it is not FIJI, and the threshold and perimeter are approximations), and part B of the claim is read with that in mind.

The OME metadata of 165 images give excitation at 488, 561 and 640 nm for channels 0, 1 and 2, the order the archive annotates (bassoon, TH, VAMP2). Three images of GS mouse 4 in the BSN-area folder (BSN2, BSN3 and BSN4) give 488 nm for all three channels; they are read in the same order as the others. Before the size and circularity limits, the Default threshold gives a median of 1186 VAMP2 objects per image, near the legend's "about 1000"; the size limit of 0.04 to 0.40 um2 alone leaves 193, and the circularity limit 183. The figure shows that the kept particles are the brighter puncta and that many dimmer puncta fall below the threshold. Which step differs from the paper's FIJI run cannot be told from these outputs.

Claims¶

source-data-link¶

The dandiset's recordings are those behind the paper's Figure 6 and Supplementary Figures 7 and 8, and the paper's published per-stimulation traces, evoked integrals and spontaneous transient integrals can be recomputed from them.

Records are matched by mouse ID, group, labelled power and the rank of the stimulation within its power. The source data file is read in memory from Zenodo.

In [11]:
md5, src = lrrk2.load_source_data()
print("Source data file md5:", md5, "; matches the Zenodo record:", md5 == lrrk2.SOURCE_DATA_MD5)
print("Records per table:", {k: len(v) for k, v in src.items()})
line_of = {"6C": "Anxa1", "6E": "Anxa1", "6F": "Anxa1", "S7B": "Anxa1", "S7C": "Anxa1",
           "S8C": "Calb1", "S8D": "Calb1", "S8E": "Calb1"}

# (1) Mice
mice = {(k, d["mouse"], d["group"]) for k, v in src.items() for d in v}
part1 = pd.DataFrame([{"table": k, "mouse": m, "group": g, "in_dandiset": m in by_mouse,
                       "same_group": m in by_mouse and by_mouse[m]["group"] == g,
                       "same_line": m in by_mouse and by_mouse[m]["line"] == line_of[k]} for k, m, g in mice])
part1["match"] = part1.in_dandiset & part1.same_group & part1.same_line
mouse_level = part1.groupby("mouse").match.all()
print(f"\n(1) Mice: {int(mouse_level.sum())} of {len(mouse_level)} source-data mice are in the dandiset with the same genotype and line;",
      "dandiset mice not in the source data:", sorted(set(by_mouse) - set(mouse_level.index)))


def rank_match(records):
    """Pair each source record with the dandiset epoch of the same mouse and power and the same rank."""
    seen, out = {}, []
    for d in records:
        key = (d["mouse"], d["power"])
        r = seen.get(key, 0)
        seen[key] = r + 1
        s = by_mouse[d["mouse"]]
        idx = np.where(np.isclose(s["power_in_mW"], d["power"]))[0]
        out.append((d, s, idx[r], idx))
    return out


# (2) Triggered traces
rows = []
for key in ("6C", "S7B", "S8D"):
    for d, s, j, idx in rank_match(src[key]):
        ours = lrrk2.code_chunk(s, j)
        rows.append({"table": key, "line": s["line"], "mouse": d["mouse"], "power": d["power"],
                     "max_diff": np.nanmax(np.abs(ours - d["trace"])), "nan_here": int(np.isnan(ours).sum()),
                     "r": np.corrcoef(ours[~np.isnan(ours)], d["trace"][~np.isnan(ours)])[0, 1],
                     "slope": np.polyfit(ours[~np.isnan(ours)], d["trace"][~np.isnan(ours)], 1)[0],
                     "offset": np.polyfit(ours[~np.isnan(ours)], d["trace"][~np.isnan(ours)], 1)[1]})
part2 = pd.DataFrame(rows)
part2["match"] = part2.max_diff < 1e-6
print("\n(2) Triggered traces equal to the dandiset's dF/F from 1 s before the onset of the epoch with the same power and rank:")
print(part2.groupby("table").agg(records=("match", "size"), matched=("match", "sum"), largest_diff=("max_diff", "max"),
                                 median_r=("r", "median"), slope_min=("slope", "min"), slope_max=("slope", "max")).to_string())
print("Largest difference among matched traces, per table:", {k: f"{v:.2g}" for k, v in part2[part2.match].groupby("table").max_diff.max().items()})
print("Unmatched Anxa1 traces:")
print(part2[(part2.line == "Anxa1") & ~part2.match].to_string(index=False))
m4398 = by_mouse[4398]
print(f"Mouse 4398: last onset at {m4398['start_time'][-1]:.2f} s, processed series ends at {m4398['t'][-1]:.2f} s")

# (3) Evoked integrals
code_auc = {s["mouse"]: lrrk2.evoked_integrals(s, "code") * lrrk2.FS for s in sessions}  # in samples, as the code
rows = []
for key in ("6E", "S7C", "S8E"):
    for d, s, j, idx in rank_match(src[key]):
        four = np.where(np.isclose(s["power_in_mW"], 4.0))[0][list(idx).index(j)]
        rows.append({"table": key, "line": s["line"], "mouse": d["mouse"], "power": d["power"], "published": d["value"],
                     "ours": code_auc[d["mouse"]][j], "ours_4mW_same_rank": code_auc[d["mouse"]][four]})
part3 = pd.DataFrame(rows)
factor = float(np.nanmedian(part3.published / part3.ours))
part3["match"] = np.abs(part3.published - factor * part3.ours) <= 1e-4 * np.abs(part3.published)
part3["match_if_4mW"] = np.abs(part3.published - factor * part3.ours_4mW_same_rank) <= 1e-4 * np.abs(part3.published)
print(f"\n(3) Evoked integrals: common factor published / ours (code's window, in samples) = {factor:.6g}")
print(part3.groupby(["table", "power"]).agg(records=("match", "size"), matched=("match", "sum"),
                                            matched_if_4mW=("match_if_4mW", "sum")).to_string())
print("Calb1 records: ratio published / ours from", part3[part3.line == "Calb1"].eval("published / ours").min().round(6),
      "to", part3[part3.line == "Calb1"].eval("published / ours").max().round(6))
print("Unmatched Anxa1 records:", part3[(part3.line == "Anxa1") & ~part3.match][["table", "mouse", "power", "published", "ours"]].to_dict("records"))

# (4) Spontaneous transients
measures = {ex: {s["mouse"]: lrrk2.spontaneous_transients(s, ex) for s in sessions} for ex in ("methods", "code_as_written")}
rows = []
for key in ("6F", "S8C"):
    pub = pd.DataFrame(src[key])
    for m, g in pub.groupby("mouse", sort=False):
        row = {"table": key, "line": line_of[key], "mouse": m, "published": len(g)}
        for ex in ("methods", "code_as_written"):
            auc, peaks, means, per_duration = measures[ex][m]
            row[f"n_{ex}"] = len(auc)
            for name, v in (("integral", auc), ("mean", means), ("per_duration", per_duration)):
                ratio = g.value.values / v if len(v) == len(g) else np.array([np.nan])
                row[f"{name}_ratio_{ex}"] = np.median(ratio)
                row[f"{name}_ratio_cv_{ex}"] = np.std(ratio) / np.mean(ratio)
        rows.append(row)
part4 = pd.DataFrame(rows)
for ex in ("methods", "code_as_written"):
    for name in ("integral", "mean", "per_duration"):
        f4 = np.nanmedian(part4[f"{name}_ratio_{ex}"])
        for rtol, tag in ((1e-2, ""), (1e-4, "_1e-4")):
            ok = []
            for _, r in part4.iterrows():
                pub = pd.DataFrame(src[r.table]).query("mouse == @r.mouse").value.values
                v = measures[ex][r.mouse][{"integral": 0, "mean": 2, "per_duration": 3}[name]]
                ok.append(len(pub) == len(v) and bool(np.allclose(np.sort(pub), f4 * np.sort(v), rtol=rtol, atol=0)))
            part4[f"match_{name}_{ex}{tag}"] = ok
            print(f"(4) exclusion '{ex}', {name} of each transient: common factor {f4:.6g}; mice whose count and sorted values match",
                  f"within a relative {rtol:g}:", int(np.sum(ok)), "of", len(ok), "(Anxa1", int(np.sum(np.array(ok)[part4.line == 'Anxa1'])), "of 15)")
cols = ["table", "mouse", "published", "n_methods", "n_code_as_written", "integral_ratio_cv_methods", "mean_ratio_methods",
        "mean_ratio_cv_methods", "match_integral_methods", "match_mean_methods", "match_mean_methods_1e-4",
        "match_mean_code_as_written"]
print(part4[cols].to_string(index=False, float_format=lambda v: f"{v:.4g}"))
for _, r in part4[(part4.line == "Anxa1") & ~part4.match_mean_methods].iterrows():
    pub = np.sort(pd.DataFrame(src[r.table]).query("mouse == @r.mouse").value.values)
    v = np.sort(measures["methods"][r.mouse][2]) * float(np.nanmedian(part4.mean_ratio_methods))
    rel = np.abs(pub - v) / np.abs(pub)
    print(f"Anxa1 mouse {r.mouse} fails the 1% match on the mean: {int((rel > 1e-2).sum())} of {len(rel)} sorted values differ by more",
          f"than 1% (largest {rel.max():.3g}); its own ratio {r.mean_ratio_methods:.6g}, CV {r.mean_ratio_cv_methods:.3g}")
print("Transients: published", part4.published.sum(), "; here, Methods exclusion", part4.n_methods.sum(),
      "; code's exclusion as written", part4.n_code_as_written.sum())
print("Count equal to the published count, Methods exclusion:", part4.groupby("line").apply(lambda g: f"{int((g.published == g.n_methods).sum())} of {len(g)}").to_dict())

score = {"mice": float(mouse_level.mean()), "traces": float(part2.match.mean()), "evoked integrals": float(part3.match.mean()),
         "spontaneous integrals (best window)": float(max(part4.match_integral_methods.mean(), part4.match_integral_code_as_written.mean()))}
print("Part (4) with integrals at a relative 1e-4, the tolerance of part (3):",
      round(float(max(part4["match_integral_methods_1e-4"].mean(), part4["match_integral_code_as_written_1e-4"].mean())), 3))
print("\nFraction of records that match, per part, as the criterion scores them:", {k: round(v, 3) for k, v in score.items()})
print("Variant, part (4) with the mean dF/F of each transient, within 1%:",
      round(float(max(part4.match_mean_methods.mean(), part4.match_mean_code_as_written.mean())), 3), "; within 1e-4:",
      round(float(max(part4["match_mean_methods_1e-4"].mean(), part4["match_mean_code_as_written_1e-4"].mean())), 3))

# (4b) Which measure the published values are: for each candidate, the spread of published / ours within each mouse
# (transients in time order, Methods exclusion), and the mice that match at a relative 1e-4.
rows = []
for name in ("integral", "mean", "per_duration"):
    for line, g in part4.groupby("line"):
        rows.append({"measure": name, "line": line, "common_factor": float(np.nanmedian(part4[f"{name}_ratio_methods"])),
                     "largest_within_mouse_cv": float(g[f"{name}_ratio_cv_methods"].max()),
                     "median_within_mouse_cv": float(g[f"{name}_ratio_cv_methods"].median()),
                     "mice_matched_1e-4": f"{int(g[f'match_{name}_methods_1e-4'].sum())} of {len(g)}",
                     "mice_matched_1%": f"{int(g[f'match_{name}_methods'].sum())} of {len(g)}"})
print("\n(4b) Candidate measures of the published spontaneous values (per_duration: the trapezoid integral divided by the",
      "number of samples in the transient, % dF/F):")
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.6g}"))
score_pd = dict(score, **{"spontaneous integrals (best window)": float(max(part4["match_per_duration_methods_1e-4"].mean(),
                                                                          part4["match_per_duration_code_as_written_1e-4"].mean()))})
print("Variant, part (4) with the integral divided by the number of samples, at 1e-4; the four parts:", {k: round(v, 3) for k, v in score_pd.items()})

# (6) The paper's statistics recomputed from its own published values, to check the source data against the text.
pubdf = {k: pd.DataFrame(src[k]) for k in ("6E", "6F", "S7C", "S8C", "S8E")}
rows = []
for key, power, paper_p in (("6E", 0.5, "1.10e-20"), ("S7C", 4.0, "2.39e-16"), ("S8E", 0.5, "0.0002"), ("S8E", 4.0, "0.001")):
    g = pubdf[key][pubdf[key].power == power]
    gs, wt = g[g.group == "GS"].value, g[g.group == "WT"].value
    rows.append({"panel": key, "power": power, "n_GS": len(gs), "n_WT": len(wt), "p_one_tailed": lrrk2.one_tailed_less(gs, wt)[1],
                 "paper_p": paper_p, "cohens_d": lrrk2.cohens_d(wt, gs)})
for key, paper_p in (("6F", "2.75e-177"), ("S8C", "0.98")):
    g = pubdf[key]
    gs, wt = g[g.group == "GS"].value, g[g.group == "WT"].value
    rows.append({"panel": key, "power": np.nan, "n_GS": len(gs), "n_WT": len(wt), "p_one_tailed": lrrk2.one_tailed_less(gs, wt)[1],
                 "paper_p": paper_p, "cohens_d": lrrk2.cohens_d(wt, gs)})
print("\n(6) Statistics from the published values themselves (paper's Cohen's d at 0.5 mW: Anxa1 2.05, Calb1 0.76):")
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.3g}"))
Source data file md5: c26fe3de8f340a3db5fa29a40e5a8c10 ; matches the Zenodo record: True
Records per table: {'6C': 120, '6E': 120, '6F': 1862, 'S7B': 480, 'S7C': 480, 'S8C': 1652, 'S8D': 384, 'S8E': 384}

(1) Mice: 27 of 27 source-data mice are in the dandiset with the same genotype and line; dandiset mice not in the source data: []
(2) Triggered traces equal to the dandiset's dF/F from 1 s before the onset of the epoch with the same power and rank:
       records  matched  largest_diff  median_r  slope_min  slope_max
table                                                                
6C         120      120  5.684342e-13  1.000000   1.000000   1.000000
S7B        480      479  1.098330e+02  1.000000   1.000000   1.043088
S8D        384        0  1.049231e+03  0.943889  -0.882173   1.552810
Largest difference among matched traces, per table: {'6C': '5.7e-13', 'S7B': '5.7e-13'}
Unmatched Anxa1 traces:
table  line  mouse  power   max_diff  nan_here        r    slope    offset  match
  S7B Anxa1   4398    4.0 109.833047        68 0.992197 1.043088 34.343536  False
Mouse 4398: last onset at 1250.24 s, processed series ends at 1251.05 s

(3) Evoked integrals: common factor published / ours (code's window, in samples) = 0.0001
             records  matched  matched_if_4mW
table power                                  
6E    0.5        120      120               0
S7C   0.1        120      120               0
      0.5        120      120               0
      1.0        120      120               0
      4.0        120      119             119
S8E   0.1         96        0               0
      0.5         96        0               0
      1.0         96        0               0
      4.0         96        0               0
Calb1 records: ratio published / ours from -0.000849 to 0.000905
Unmatched Anxa1 records: [{'table': 'S7C', 'mouse': 4398, 'power': 4.0, 'published': 3.70650168535861, 'ours': nan}]
(4) exclusion 'methods', integral of each transient: common factor 0.000894123; mice whose count and sorted values match within a relative 0.01: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'methods', integral of each transient: common factor 0.000894123; mice whose count and sorted values match within a relative 0.0001: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'methods', mean of each transient: common factor 0.00499723; mice whose count and sorted values match within a relative 0.01: 13 of 27 (Anxa1 13 of 15)
(4) exclusion 'methods', mean of each transient: common factor 0.00499723; mice whose count and sorted values match within a relative 0.0001: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'methods', per_duration of each transient: common factor 0.005; mice whose count and sorted values match within a relative 0.01: 15 of 27 (Anxa1 15 of 15)
(4) exclusion 'methods', per_duration of each transient: common factor 0.005; mice whose count and sorted values match within a relative 0.0001: 15 of 27 (Anxa1 15 of 15)
(4) exclusion 'code_as_written', integral of each transient: common factor nan; mice whose count and sorted values match within a relative 0.01: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'code_as_written', integral of each transient: common factor nan; mice whose count and sorted values match within a relative 0.0001: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'code_as_written', mean of each transient: common factor nan; mice whose count and sorted values match within a relative 0.01: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'code_as_written', mean of each transient: common factor nan; mice whose count and sorted values match within a relative 0.0001: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'code_as_written', per_duration of each transient: common factor nan; mice whose count and sorted values match within a relative 0.01: 0 of 27 (Anxa1 0 of 15)
(4) exclusion 'code_as_written', per_duration of each transient: common factor nan; mice whose count and sorted values match within a relative 0.0001: 0 of 27 (Anxa1 0 of 15)
table  mouse  published  n_methods  n_code_as_written  integral_ratio_cv_methods  mean_ratio_methods  mean_ratio_cv_methods  match_integral_methods  match_mean_methods  match_mean_methods_1e-4  match_mean_code_as_written
   6F   4558         93         93                 39                     0.9793            0.004998              0.0008238                   False                True                    False                       False
   6F   4561        131        131                 47                     0.7188            0.004996              0.0006883                   False                True                    False                       False
   6F   4398        162        162                 28                     0.7546            0.004997               0.001003                   False               False                    False                       False
   6F   4401         76         76                 57                     0.6492            0.004999              0.0002882                   False                True                    False                       False
   6F   3947         81         81                 69                     0.7144            0.004999              0.0007371                   False                True                    False                       False
   6F   3948        151        151                 56                     0.8881            0.004997              0.0008199                   False                True                    False                       False
   6F   4253        104        104                 67                     0.9779            0.004997               0.001583                   False                True                    False                       False
   6F   4885         93         93                 20                       1.07            0.004997              0.0007055                   False                True                    False                       False
   6F   4651         57         57                 64                     0.2104            0.004999              0.0001155                   False                True                    False                       False
   6F   4652         79         79                 50                     0.8163            0.004999               0.001028                   False                True                    False                       False
   6F   3742        285        285                229                     0.7331            0.004994               0.001126                   False                True                    False                       False
   6F   3743        132        132                 69                     0.8883            0.004998              0.0007105                   False                True                    False                       False
   6F   4004        143        143                 77                      1.039            0.004995               0.002894                   False                True                    False                       False
   6F   4005        122        122                 66                       0.91            0.004996               0.002073                   False                True                    False                       False
   6F   4007        153        153                 73                     0.9986            0.004995                0.00191                   False               False                    False                       False
  S8C    671        133        159                 60                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    673        219        159                129                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    966        120         79                 65                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C   1803        118        132                  9                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    688         92        106                 12                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    848        141        120                 73                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    852        117        165                 31                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    302        122         93                 55                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    306        148         75                 59                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    740        179        140                132                        NaN                 NaN                    NaN                   False               False                    False                       False
  S8C    741        158        158                114                     0.6889            0.001398                 0.3307                   False               False                    False                       False
  S8C    935        105        145                 76                        NaN                 NaN                    NaN                   False               False                    False                       False
Anxa1 mouse 4398 fails the 1% match on the mean: 1 of 162 sorted values differ by more than 1% (largest 0.0103); its own ratio 0.00499723, CV 0.001
Anxa1 mouse 4007 fails the 1% match on the mean: 1 of 153 sorted values differ by more than 1% (largest 0.0167); its own ratio 0.00499501, CV 0.00191
Transients: published 3514 ; here, Methods exclusion 3393 ; code's exclusion as written 1826
Count equal to the published count, Methods exclusion: {'Anxa1': '15 of 15', 'Calb1': '1 of 12'}
Part (4) with integrals at a relative 1e-4, the tolerance of part (3): 0.0

Fraction of records that match, per part, as the criterion scores them: {'mice': 1.0, 'traces': 0.609, 'evoked integrals': 0.609, 'spontaneous integrals (best window)': 0.0}
Variant, part (4) with the mean dF/F of each transient, within 1%: 0.481 ; within 1e-4: 0.0

(4b) Candidate measures of the published spontaneous values (per_duration: the trapezoid integral divided by the number of samples in the transient, % dF/F):
     measure  line  common_factor  largest_within_mouse_cv  median_within_mouse_cv mice_matched_1e-4 mice_matched_1%
    integral Anxa1    0.000894123                  1.07009                0.888059           0 of 15         0 of 15
    integral Calb1    0.000894123                 0.688851                0.688851           0 of 12         0 of 12
        mean Anxa1     0.00499723               0.00289354             0.000823818           0 of 15        13 of 15
        mean Calb1     0.00499723                 0.330651                0.330651           0 of 12         0 of 12
per_duration Anxa1          0.005               2.2458e-15             1.27082e-15          15 of 15        15 of 15
per_duration Calb1          0.005                 0.330776                0.330776           0 of 12         0 of 12
Variant, part (4) with the integral divided by the number of samples, at 1e-4; the four parts: {'mice': 1.0, 'traces': 0.609, 'evoked integrals': 0.609, 'spontaneous integrals (best window)': 0.556}
(6) Statistics from the published values themselves (paper's Cohen's d at 0.5 mW: Anxa1 2.05, Calb1 0.76):
panel  power  n_GS  n_WT  p_one_tailed   paper_p  cohens_d
   6E    0.5    64    56       1.1e-20  1.10e-20      2.06
  S7C      4    64    56      2.39e-16  2.39e-16      1.72
  S8E    0.5    56    40      0.000185    0.0002     0.765
  S8E      4    56    40       0.00147     0.001     0.632
   6F    NaN  1064   798     2.75e-177 2.75e-177      1.49
  S8C    NaN   970   682         0.989      0.98    -0.114

To see why the Calb1 records differ, the dF/F is recomputed from the raw 470 nm signal in the dandiset with the code's binning and baseline correction, at the code's background fraction (0.85 of the sliding 8th percentile) and at other fractions, and compared with the published triggered traces. The edges of the sliding percentile are not reproduced exactly, so the comparison with the stored series leaves out the first and last 30 s.

In [12]:
# (5) Why the Calb1 records differ: dF/F recomputed from the raw 470 nm signal in the dandiset with the code's
# processing, and with other background fractions, against the published triggered traces.
rows = []
for s in sessions:
    binned = lrrk2.raw_binned(s)
    key = "6C" if s["line"] == "Anxa1" else "S8D"
    pairs = [(d, j) for d, ss, j, idx in rank_match([d for d in src[key] if d["mouse"] == s["mouse"]])]
    stored_diff = np.abs(lrrk2.dff_from_raw(binned) - s["dff"])[3000:-3000].max()
    best = None
    for frac in np.round(np.arange(0.0, 0.951, 0.05), 2):
        dff = lrrk2.dff_from_raw(binned, frac)
        err = np.median([np.abs(dff[s["onset"][j] - 100:s["onset"][j] + 150] - d["trace"]).max() for d, j in pairs])
        if frac == 0.85:
            at_085 = err
        if best is None or err < best[1]:
            best = (frac, err)
    rows.append({"mouse": s["mouse"], "line": s["line"], "group": s["group"], "stored_vs_recomputed_max_diff": stored_diff,
                 "median_diff_at_0.85": at_085, "best_fraction": best[0], "median_diff_at_best": best[1]})
raw_check = pd.DataFrame(rows).sort_values(["line", "group", "mouse"])
print("Largest difference between the stored dF/F and dF/F recomputed from raw with the code's 0.85 (away from the edges),",
      "and the median over a mouse's published traces of the largest difference to dF/F recomputed with background fraction",
      "0.85 and with the best fraction of 0 to 0.95 (% dF/F):")
print(raw_check.round(3).to_string(index=False))
Largest difference between the stored dF/F and dF/F recomputed from raw with the code's 0.85 (away from the edges), and the median over a mouse's published traces of the largest difference to dF/F recomputed with background fraction 0.85 and with the best fraction of 0 to 0.95 (% dF/F):
 mouse  line group  stored_vs_recomputed_max_diff  median_diff_at_0.85  best_fraction  median_diff_at_best
  3742 Anxa1    GS                          0.192                0.118           0.85                0.118
  3743 Anxa1    GS                          0.242                0.145           0.85                0.145
  4004 Anxa1    GS                          0.086                0.047           0.85                0.047
  4005 Anxa1    GS                          0.036                0.002           0.85                0.002
  4007 Anxa1    GS                          0.058                0.000           0.85                0.000
  4651 Anxa1    GS                          0.242                0.191           0.85                0.191
  4652 Anxa1    GS                          0.413                0.264           0.85                0.264
  4885 Anxa1    GS                          0.075                0.017           0.85                0.017
  3947 Anxa1    WT                          0.860                0.598           0.85                0.598
  3948 Anxa1    WT                          1.136                0.588           0.85                0.588
  4253 Anxa1    WT                          0.990                0.835           0.85                0.835
  4398 Anxa1    WT                          0.871                0.492           0.85                0.492
  4401 Anxa1    WT                          0.711                0.641           0.85                0.641
  4558 Anxa1    WT                          0.308                0.076           0.85                0.076
  4561 Anxa1    WT                          0.152                0.109           0.85                0.109
   302 Calb1    GS                          0.681              164.686           0.65               39.824
   306 Calb1    GS                          0.253              113.061           0.80               88.316
   740 Calb1    GS                          0.195               66.341           0.85               66.341
   741 Calb1    GS                          1.472              261.222           0.50               40.434
   848 Calb1    GS                          0.178               78.939           0.75               47.581
   852 Calb1    GS                          0.278              196.729           0.65               35.871
   935 Calb1    GS                          0.345              149.468           0.70               41.564
   671 Calb1    WT                          1.433              371.125           0.55               33.814
   673 Calb1    WT                          0.127               66.219           0.80               43.890
   688 Calb1    WT                          0.199              248.842           0.70               58.357
   966 Calb1    WT                          0.617              103.399           0.80               56.929
  1803 Calb1    WT                          0.848              518.819           0.25               22.329
In [13]:
# (5b) Is the Calb1 mismatch one of epoch or power labels, or of processing? Per mouse, the fit of the published S8D
# traces on the dandiset's matched traces (published = slope x ours + offset), and for each published trace the
# dandiset epoch, over all 64 epochs and all 8 powers of that mouse, that it is closest to.
s8d = part2[part2.table == "S8D"]
print("S8D traces against the matched dandiset epoch, per mouse (r, slope and offset of published on ours; offset in % dF/F):")
print(s8d.groupby("mouse").agg(traces=("r", "size"), r_median=("r", "median"), r_min=("r", "min"), slope_median=("slope", "median"),
                               slope_min=("slope", "min"), slope_max=("slope", "max"), offset_median=("offset", "median"),
                               max_diff_median=("max_diff", "median")).round(3).to_string())
rows = []
for d, s, j, idx in rank_match(src["S8D"]):
    chunks = np.array([lrrk2.code_chunk(s, k) for k in range(len(s["onset"]))])
    ok = ~np.isnan(chunks).any(1)
    diff = np.where(ok, np.nanmax(np.abs(chunks - d["trace"]), 1), np.inf)
    r = np.array([np.corrcoef(c, d["trace"])[0, 1] if o else -np.inf for c, o in zip(chunks, ok)])
    kd, kr = int(np.argmin(diff)), int(np.argmax(r))
    rows.append({"mouse": d["mouse"], "power": d["power"], "matched_epoch": j, "diff_matched": diff[j], "r_matched": r[j],
                 "best_epoch_by_diff": kd, "best_diff": diff[kd], "best_diff_power": s["power_in_mW"][kd],
                 "best_epoch_by_r": kr, "best_r": r[kr], "best_r_power": s["power_in_mW"][kr]})
best = pd.DataFrame(rows)
print("\nFor the 384 S8D traces: best epoch by largest absolute difference and by correlation, over all epochs of the mouse")
print("best epoch by difference is the matched one:", int((best.best_epoch_by_diff == best.matched_epoch).sum()), "of", len(best),
      "; has the labelled power:", int((best.best_diff_power == best.power).sum()))
print("best epoch by correlation is the matched one:", int((best.best_epoch_by_r == best.matched_epoch).sum()), "of", len(best),
      "; has the labelled power:", int((best.best_r_power == best.power).sum()))
print("traces with any epoch within 1e-6:", int((best.best_diff < 1e-6).sum()), "; best difference over all epochs (% dF/F), median",
      round(best.best_diff.median(), 2), "range", round(best.best_diff.min(), 2), "to", round(best.best_diff.max(), 2))
print(best.groupby("mouse").agg(traces=("power", "size"), best_by_r_is_matched=("best_epoch_by_r", lambda v: int((v == best.loc[v.index, "matched_epoch"]).sum())),
                                diff_matched_median=("diff_matched", "median"), best_diff_median=("best_diff", "median"),
                                r_matched_median=("r_matched", "median"), best_r_median=("best_r", "median")).round(3).to_string())
S8D traces against the matched dandiset epoch, per mouse (r, slope and offset of published on ours; offset in % dF/F):
       traces  r_median  r_min  slope_median  slope_min  slope_max  offset_median  max_diff_median
mouse                                                                                             
302        32     0.932  0.009         0.398      0.003      0.761         13.185          164.947
306        32     0.766 -0.083         0.722     -0.053      1.309        -13.801          113.055
671        32     0.973  0.616         0.305      0.099      0.423         -0.467          370.041
673        32     0.883 -0.098         0.619     -0.118      1.144          6.924           66.238
688        32     0.971  0.786         0.495      0.301      0.845          9.013          248.914
740        32     0.761 -0.635         0.650     -0.882      1.553         16.240           66.369
741        32     0.922 -0.285         0.293     -0.087      0.405          1.236          262.118
848        32     0.954  0.546         0.721      0.318      1.119         -7.683           78.972
852        32     0.969  0.613         0.435      0.192      0.764          0.775          196.583
935        32     0.943 -0.303         0.448     -0.317      0.666          9.616          149.578
966        32     0.972  0.620         0.747      0.369      1.379         -1.600          103.163
1803       32     0.988  0.712         0.210      0.139      0.271         -1.486          518.390
For the 384 S8D traces: best epoch by largest absolute difference and by correlation, over all epochs of the mouse
best epoch by difference is the matched one: 11 of 384 ; has the labelled power: 128
best epoch by correlation is the matched one: 7 of 384 ; has the labelled power: 86
traces with any epoch within 1e-6: 0 ; best difference over all epochs (% dF/F), median 47.14 range 15.72 to 150.77
       traces  best_by_r_is_matched  diff_matched_median  best_diff_median  r_matched_median  best_r_median
mouse                                                                                                      
302        32                     0              164.947            38.307             0.932          0.984
306        32                     0              113.055            67.579             0.766          0.930
671        32                     0              370.041            81.035             0.973          0.994
673        32                     1               66.238            34.457             0.883          0.974
688        32                     3              248.914            52.934             0.971          0.996
740        32                     0               66.369            35.000             0.761          0.938
741        32                     0              262.118            63.204             0.922          0.986
848        32                     1               78.972            35.062             0.954          0.993
852        32                     0              196.583            45.954             0.969          0.994
935        32                     1              149.578            33.998             0.943          0.983
966        32                     0              103.163            43.580             0.972          0.991
1803       32                     1              518.390            98.724             0.988          0.997

Result: not reproduced. All 27 mice in the source data are in the dandiset with the same genotype and line. For Anxa1 the link holds: 120 of 120 triggered traces of Figure 6C and 479 of 480 of Supplementary Figure 7B equal the dandiset's dF/F from 1 s before onset (largest difference among matched traces 5.7e-13 in each table), the published evoked integrals equal the code's measure times 0.0001 for all Anxa1 records except one (119 of 120 at 4 mW), and the transient counts match for 15 of 15 mice. The two Anxa1 misses are the last 4 mW stimulation of mouse 4398, whose processed series ends 0.8 s after onset. For Calb1 none of the 384 traces and none of the 384 integrals match, and the transient counts match for 1 of 12 mice. dF/F recomputed from the raw signal with the code's processing reproduces the stored Calb1 series (largest difference 1.47 % dF/F) but not the published traces (median differences 66 to 519 % dF/F at the code's background fraction, and 22 to 88 at the best fraction for each mouse). The published spontaneous values are not integrals: they are 0.005 times the trapezoid integral divided by the number of samples in the transient (part 4b: within-mouse spread of the ratio at most 2.2e-15, 15 of 15 Anxa1 mice matched at 1e-4). Part (4) as the criterion fixed it, with integrals, matches for no mouse. Scored as the criterion sets out, the four parts match for 1.0, 0.609, 0.609 and 0 of their records, so the outcome is not reproduced. With the published measure in part (4) the parts give 1.0, 0.609, 0.609 and 0.556 (15 of 27 mice, no Calb1 mouse), which would be partially reproduced; the criterion fixed integrals, so this is a variant. The Figure 6E integrals match the 0.5 mW epochs (120 of 120) and none of the 4 mW ones, so the figure uses the power its legend states. The published values reproduce the paper's statistics (Figure 6E p = 1.1e-20, Figure 6F p = 2.75e-177, Supplementary Figure 8C p = 0.989, Cohen's d 2.06 and 0.765).

Part (4) scores 0 with integrals at either tolerance, 1% or the 1e-4 of part (3). The mean dF/F over each transient comes close (13 of 15 Anxa1 mice within 1%, none within 1e-4, per-mouse factor 0.004994 to 0.004999), as it differs from the published measure only in weighting the two end samples.

The Calb1 mismatch is not one of epoch or power labels. Against the matched epochs the published S8D traces have per-mouse median correlations of 0.76 to 0.99, median slopes of 0.21 to 0.75 and median offsets of -13.8 to 16.2 % dF/F. Searched over all 64 epochs and all 8 powers of each mouse, no epoch is within 1e-6 of any of the 384 traces; the closest differs by 15.7 to 150.8 % dF/F (median 47.1). Correlation does not single out an epoch: the epoch with the highest correlation is the matched one for 7 of 384 traces and has the labelled power for 86. The published Calb1 traces are smaller and differently shaped versions of the dandiset's responses, which points to processing; the dandiset does not hold that processing.

Evoked integrals¶

Integrals for every train under the four windows: the Methods' light-on period (main), the code's -0.1 to 1.0 s (code), the window chunking_index.m computes as written, starting 1 s after onset (code_as_written), and a fixed 0 to 0.5 s (fixed). All use the mean from 1.0 to 0.1 s before onset as baseline (shifted with the window for code_as_written).

In [14]:
def evoked_table(window):
    rows = []
    for s in sessions:
        values = lrrk2.evoked_integrals(s, window)
        for j, v in enumerate(values):
            rows.append({"mouse": s["mouse"], "line": s["line"], "group": s["group"], "power": s["power_in_mW"][j],
                         "train_s": round(s["stop_time"][j] - s["start_time"][j], 2), "value": v})
    return pd.DataFrame(rows)


windows = ["methods", "code", "code_as_written", "fixed"]
evoked = {w: evoked_table(w) for w in windows}
print("Evoked integrals (% dF/F x s) that could not be computed (window outside the recording):",
      {w: int(evoked[w].value.isna().sum()) for w in windows})


def group_test(df):
    gs, wt = df[df.group == "GS"].value.dropna(), df[df.group == "WT"].value.dropna()
    t, p = lrrk2.one_tailed_less(gs, wt)
    return {"n_GS": len(gs), "n_WT": len(wt), "mean_GS": gs.mean(), "mean_WT": wt.mean(),
            "t": t, "p_one_tailed": p, "cohens_d": lrrk2.cohens_d(wt, gs)}


def per_mouse_tests(df, alpha):
    wt = df[df.group == "WT"].value.dropna()
    rows = []
    for m, g in df[df.group == "GS"].groupby("mouse"):
        v = g.value.dropna()
        row = {"mouse": m, "n": len(v), "mean": v.mean(), "WT_mean": wt.mean()}
        for name, equal_var, tails in (("a_welch_1t", False, 1), ("b_welch_2t", False, 2),
                                       ("c_student_2t", True, 2), ("d_student_1t", True, 1)):
            p = (lrrk2.one_tailed_less(v, wt, equal_var)[1] if tails == 1 else lrrk2.two_tailed(v, wt, equal_var)[1])
            row[f"p_{name}"] = p
            row[f"sig_{name}"] = bool(p < alpha and v.mean() < wt.mean())
        rows.append(row)
    return pd.DataFrame(rows)
Evoked integrals (% dF/F x s) that could not be computed (window outside the recording): {'methods': 0, 'code': 1, 'code_as_written': 1, 'fixed': 0}
In [15]:
# Check of evoked_integrals on a synthetic series that ends 0.81 s after the last onset, as mouse 4398's does: the
# light-on window (0.51 s) and the 0 to 0.5 s window fit and are computed; the code's window (to 1.0 s) does not.
toy = {"dff": np.r_[np.zeros(200), np.ones(81)], "onset": np.array([100, 200]), "offset": np.array([150, 251])}
toy_vals = {w: lrrk2.evoked_integrals(toy, w) for w in ("methods", "fixed", "code")}
print("Synthetic check, integrals of the second train per window:", {w: v[1] for w, v in toy_vals.items()})
assert np.isclose(toy_vals["methods"][1], 0.51) and np.isclose(toy_vals["fixed"][1], 0.5) and np.isnan(toy_vals["code"][1])
Synthetic check, integrals of the second train per window: {'methods': np.float64(0.51), 'fixed': np.float64(0.5), 'code': np.float64(nan)}

fig6e-anxa1-evoked-reduced¶

Optogenetically evoked dopamine release in the dorsolateral striatum (Anxa1+ projection region) at 0.5 mW is lower in LRRK2-G2019S than in LRRK2-WT mice (64 against 56 stimulations, p = 1.10e-20, one-tailed two-sample t-test).

The plot shows the mean dF/F (shading: SEM over stimulations) at 0.5 mW, with the 405 nm control dashed, and the light-on period shaded. All points are within the axes; the ranges are printed.

In [16]:
anxa = evoked["methods"].query("line == 'Anxa1' and power == 0.5")
main = group_test(anxa)
print("Anxa1, 0.5 mW, Methods window (light-on period):")
print({k: (float(f"{v:.3g}") if isinstance(v, float) else v) for k, v in main.items()})
print(f"one-tailed p = {main['p_one_tailed']:.3g} (paper 1.10e-20)")
print("\nPer mouse (mean and range of the eight integrals, train length):")
print(anxa.groupby(["group", "mouse"]).agg(n=("value", "size"), mean=("value", "mean"), min=("value", "min"),
                                           max=("value", "max"), train_s=("train_s", "first")).round(2).to_string())
print("\nVariants (window, power): counts, means, one-tailed p, Cohen's d")
rows = []
for w in windows:
    for q in (0.5, 4.0):
        r = group_test(evoked[w].query("line == 'Anxa1' and power == @q"))
        rows.append({"window": w, "power": q, **r})
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.3g}"))
print("\nVariant without the two G2019S mice whose 0.5 mW trains are 0.33 s long (3742, 4885), Methods window:")
r = group_test(anxa[~anxa.mouse.isin([3742, 4885])])
print({k: (f"{v:.3g}" if isinstance(v, float) else v) for k, v in r.items()})
print("Variant with one value per mouse (mouse means), Methods window: Welch one-tailed p =",
      f"{lrrk2.one_tailed_less(anxa[anxa.group == 'GS'].groupby('mouse').value.mean(), anxa[anxa.group == 'WT'].groupby('mouse').value.mean(), False)[1]:.3g}")

fig, axes = plt.subplots(1, 2, figsize=(11, 3.8))
tt = np.arange(-100, 150) / lrrk2.FS
for ax, line in zip(axes, ("Anxa1", "Calb1")):
    for group, colour in (("GS", "tab:blue"), ("WT", "tab:gray")):
        tr, iso = [], []
        for s in sessions:
            if s["line"] != line or s["group"] != group:
                continue
            for j in np.where(s["power_in_mW"] == 0.5)[0]:
                tr.append(lrrk2.code_chunk(s, j))
                on = s["onset"][j]
                iso.append(s["dff405"][on - 100:on + 150])
        tr, iso = np.array(tr), np.array(iso)
        m, se = tr.mean(0), tr.std(0, ddof=1) / np.sqrt(len(tr))
        ax.plot(tt, m, color=colour, label=f"{group} (n = {len(tr)})")
        ax.fill_between(tt, m - se, m + se, color=colour, alpha=0.3)
        ax.plot(tt, iso.mean(0), color=colour, ls="--", lw=1)
        print(f"{line} {group}: mean trace from {m.min():.1f} to {m.max():.1f} % dF/F; 405 nm mean from {iso.mean(0).min():.1f} to {iso.mean(0).max():.1f}")
    ax.axvspan(0, 0.5, color="red", alpha=0.1)
    ax.set_title(f"{line}, 0.5 mW (dashed: 405 nm)")
    ax.set_xlabel("time from onset (s)")
    ax.set_ylabel("dF/F (%)")
    ax.legend(frameon=False)
plt.tight_layout()
plt.show()
Anxa1, 0.5 mW, Methods window (light-on period):
{'n_GS': 64, 'n_WT': 56, 'mean_GS': 48.8, 'mean_WT': 128.0, 't': -12.1, 'p_one_tailed': 1.16e-22, 'cohens_d': 2.21}
one-tailed p = 1.16e-22 (paper 1.10e-20)

Per mouse (mean and range of the eight integrals, train length):
             n    mean     min     max  train_s
group mouse                                    
GS    3742   8    3.28   -5.29   12.15     0.33
      3743   8  125.30   97.59  146.77     0.52
      4004   8   26.26   24.49   30.16     0.51
      4005   8   13.87    8.95   17.21     0.51
      4007   8   33.57   26.26   39.15     0.51
      4651   8   82.33   76.10   88.09     0.51
      4652   8   64.95   53.90   76.01     0.51
      4885   8   40.45   33.94   48.55     0.32
WT    3947   8  129.57  114.74  137.02     0.51
      3948   8  113.44   97.88  130.57     0.51
      4253   8  130.38   88.43  161.16     0.51
      4398   8  114.82   96.19  127.53     0.51
      4401   8  190.21  157.64  231.96     0.51
      4558   8  126.48  109.02  141.47     0.52
      4561   8   90.86   80.45  108.23     0.51

Variants (window, power): counts, means, one-tailed p, Cohen's d
         window  power  n_GS  n_WT  mean_GS  mean_WT     t  p_one_tailed  cohens_d
        methods    0.5    64    56     48.8      128 -12.1      1.16e-22      2.21
        methods      4    64    56     66.3      172 -10.2      4.08e-18      1.86
           code    0.5    64    56     75.3      199 -11.2       1.1e-20      2.06
           code      4    64    55       99      258 -9.27      5.62e-16       1.7
code_as_written    0.5    64    56    -11.8      -33  4.71             1    -0.861
code_as_written      4    64    55    -22.1    -60.9  6.92             1     -1.27
          fixed    0.5    64    56     49.7      124 -11.8      4.73e-22      2.16
          fixed      4    64    56     66.8      168 -10.1      4.76e-18      1.85

Variant without the two G2019S mice whose 0.5 mW trains are 0.33 s long (3742, 4885), Methods window:
{'n_GS': 48, 'n_WT': 56, 'mean_GS': '57.7', 'mean_WT': '128', 't': '-10', 'p_one_tailed': '4.16e-17', 'cohens_d': '1.97'}
Variant with one value per mouse (mouse means), Methods window: Welch one-tailed p = 0.000434
Anxa1 GS: mean trace from 15.8 to 144.3 % dF/F; 405 nm mean from 1.3 to 2.5
Anxa1 WT: mean trace from 35.8 to 349.6 % dF/F; 405 nm mean from 1.0 to 3.0
Calb1 GS: mean trace from 40.1 to 220.6 % dF/F; 405 nm mean from 2.8 to 4.3
Calb1 WT: mean trace from 46.4 to 387.1 % dF/F; 405 nm mean from 1.8 to 4.2
No description has been provided for this image

Result: reproduced. At 0.5 mW there are 64 GS and 56 WT stimulations, as in the paper. The mean integral over the light-on period is 48.8 against 128.0 % dF/F x s, one-tailed p = 1.16e-22 (paper 1.10e-20), Cohen's d 2.21. With the code's window p = 1.1e-20, the paper's value. The reduction holds at 4 mW (p = 4.08e-18), without the two GS mice given 0.33 s trains (p = 4.16e-17), and with one value per mouse (Welch p = 0.000434). The window chunking_index.m computes as written reverses the sign (one-tailed p = 1, means -11.8 and -33), as it starts 1 s after onset. Every GS mouse except 3743 has a lower mean than every WT mouse (GS 3.28 to 82.33 without 3743, WT 90.86 to 190.21).

fig6e-anxa1-evoked-per-mouse¶

Seven of eight individual G2019S mice show significantly reduced evoked dopamine release at 0.5 mW compared with the WT group; mouse 3743 does not.

In [17]:
pm = per_mouse_tests(anxa, 0.05 / 8)
print("Each Anxa1 G2019S mouse against all WT integrals, 0.5 mW, Methods window; significant when p < 0.05/8 and the mean is lower.")
print(pm.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
print("\nSignificant mice per reading:", {c[4:]: int(pm[c].sum()) for c in pm.columns if c.startswith("sig_")})
print("Not significant under each reading:", {c[4:]: pm.loc[~pm[c], "mouse"].tolist() for c in pm.columns if c.startswith("sig_")})
print("Paper's p-values (legend): 4885 2.57e-10, 4651 0.0004, 4652 7.36e-05, 3742 4.14e-15, 3743 0.478, 4004 2.81e-13, 4005 1.72e-14, 4007 2.36e-12")
print("\nVariants (other windows, and 4 mW): significant mice per reading")
for w in windows:
    for q in (0.5, 4.0):
        v = per_mouse_tests(evoked[w].query("line == 'Anxa1' and power == @q"), 0.05 / 8)
        print(f"  {w:16s} {q} mW:", {c[4:]: int(v[c].sum()) for c in v.columns if c.startswith("sig_")},
              "not significant (a):", v.loc[~v.sig_a_welch_1t, "mouse"].tolist())
Each Anxa1 G2019S mouse against all WT integrals, 0.5 mW, Methods window; significant when p < 0.05/8 and the mean is lower.
 mouse  n  mean  WT_mean  p_a_welch_1t  sig_a_welch_1t  p_b_welch_2t  sig_b_welch_2t  p_c_student_2t  sig_c_student_2t  p_d_student_1t  sig_d_student_1t
  3742  8  3.28      128      3.69e-34            True      7.38e-34            True        7.46e-16              True        3.73e-16              True
  3743  8   125      128         0.362           False         0.725           False           0.821             False            0.41             False
  4004  8  26.3      128      3.29e-31            True      6.59e-31            True        1.56e-12              True        7.82e-13              True
  4005  8  13.9      128      2.42e-34            True      4.83e-34            True        2.36e-14              True        1.18e-14              True
  4007  8  33.6      128      7.35e-30            True      1.47e-29            True        1.98e-11              True         9.9e-12              True
  4651  8  82.3      128       7.9e-15            True      1.58e-14            True        0.000202              True        0.000101              True
  4652  8    65      128      2.92e-18            True      5.84e-18            True        9.38e-07              True        4.69e-07              True
  4885  8  40.5      128      8.84e-28            True      1.77e-27            True        2.17e-10              True        1.08e-10              True

Significant mice per reading: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 7, 'd_student_1t': 7}
Not significant under each reading: {'a_welch_1t': [3743], 'b_welch_2t': [3743], 'c_student_2t': [3743], 'd_student_1t': [3743]}
Paper's p-values (legend): 4885 2.57e-10, 4651 0.0004, 4652 7.36e-05, 3742 4.14e-15, 3743 0.478, 4004 2.81e-13, 4005 1.72e-14, 4007 2.36e-12

Variants (other windows, and 4 mW): significant mice per reading
  methods          0.5 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 7, 'd_student_1t': 7} not significant (a): [3743]
  methods          4.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 6, 'd_student_1t': 7} not significant (a): [3743]
  code             0.5 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 7, 'd_student_1t': 7} not significant (a): [3743]
  code             4.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 6, 'd_student_1t': 6} not significant (a): [3743]
  code_as_written  0.5 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0} not significant (a): [3742, 3743, 4004, 4005, 4007, 4651, 4652, 4885]
  code_as_written  4.0 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0} not significant (a): [3742, 3743, 4004, 4005, 4007, 4651, 4652, 4885]
  fixed            0.5 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 7, 'd_student_1t': 7} not significant (a): [3743]
  fixed            4.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 7, 'd_student_1t': 7} not significant (a): [3743]

Result: reproduced. Under all four readings 7 of 8 GS mice are below the WT group at p < 0.05/8, and 3743 is the exception (mean 125 against 128, Welch one-tailed p = 0.362), as in the paper. The Student one-tailed p-values are of the same order as the legend's, for example 1.01e-04 against 4.0e-04 for 4651 and 3.73e-16 against 4.14e-15 for 3742. With the code's window the count is 7 under every reading, and at 4 mW it is 7 under the Welch readings. Two of the seven, 3742 and 4885, received their paper powers as 0.33 s trains, unlike every WT mouse, and the data cannot confirm their power labels (data check); the other five significant mice are 4004, 4005, 4007, 4651 and 4652.

supp7c-anxa1-evoked-all-powers¶

The reduction of evoked dopamine release in Anxa1 G2019S mice holds at each of the four stimulation powers, 0.1, 0.5, 1 and 4 mW (p from 1.29e-15 to 1.10e-20).

In [18]:
rows = []
for w in windows:
    for q in lrrk2.PAPER_POWERS:
        rows.append({"window": w, "power": q, **group_test(evoked[w].query("line == 'Anxa1' and power == @q"))})
s7 = pd.DataFrame(rows)
print("Anxa1, evoked integrals per power; paper p: 0.1 mW 1.29e-15, 0.5 mW 1.10e-20, 1 mW 1.22e-17, 4 mW 2.39e-16")
print(s7.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
main7 = s7[s7.window == "methods"]
print("\nMethods window: powers with G2019S lower at one-tailed p < 0.05:",
      int(((main7.p_one_tailed < 0.05) & (main7.mean_GS < main7.mean_WT)).sum()), "of 4")
Anxa1, evoked integrals per power; paper p: 0.1 mW 1.29e-15, 0.5 mW 1.10e-20, 1 mW 1.22e-17, 4 mW 2.39e-16
         window  power  n_GS  n_WT  mean_GS  mean_WT     t  p_one_tailed  cohens_d
        methods    0.1    64    56     30.9     73.6 -8.94      3.13e-15      1.64
        methods    0.5    64    56     48.8      128 -12.1      1.16e-22      2.21
        methods      1    64    56     56.2      143 -11.4      3.79e-21      2.09
        methods      4    64    56     66.3      172 -10.2      4.08e-18      1.86
           code    0.1    64    56     51.3      127 -9.11      1.29e-15      1.67
           code    0.5    64    56     75.3      199 -11.2       1.1e-20      2.06
           code      1    64    56     84.3      211 -9.96      1.22e-17      1.82
           code      4    64    55       99      258 -9.27      5.62e-16       1.7
code_as_written    0.1    64    56    -7.56    -23.9  4.46             1    -0.817
code_as_written    0.5    64    56    -11.8      -33  4.71             1    -0.861
code_as_written      1    64    56    -14.8    -38.5   5.4             1    -0.987
code_as_written      4    64    55    -22.1    -60.9  6.92             1     -1.27
          fixed    0.1    64    56     32.5     71.6 -8.34         8e-14      1.53
          fixed    0.5    64    56     49.7      124 -11.8      4.73e-22      2.16
          fixed      1    64    56     57.1      140 -11.4      4.86e-21      2.08
          fixed      4    64    56     66.8      168 -10.1      4.76e-18      1.85

Methods window: powers with G2019S lower at one-tailed p < 0.05: 4 of 4

Result: reproduced. GS integrals are lower at all four powers, one-tailed p from 3.13e-15 (0.1 mW) to 1.16e-22 (0.5 mW) with the Methods' window. With the code's window the p-values at 0.1, 0.5 and 1 mW are 1.29e-15, 1.1e-20 and 1.22e-17, the paper's values; at 4 mW it is 5.62e-16 against 2.39e-16, as the code's window, which runs to 1.0 s after onset, leaves 55 WT stimulations in place of 56. The Methods window fits the last 4 mW train of mouse 4398 and keeps all 56.

Spontaneous transients¶

Transients for every mouse, with the Methods' exclusion of 1 s before to 1.5 s after each onset (main) and with the window the code removes as written (1 s to 3.5 s after onset). Each transient's integral, peak and mean dF/F are kept.

In [19]:
def spont_table(exclusion):
    rows = []
    for s in sessions:
        auc, peaks, means, per_duration = lrrk2.spontaneous_transients(s, exclusion)
        rows += [{"mouse": s["mouse"], "line": s["line"], "group": s["group"], "value": a, "peak": p, "mean": m, "per_duration": d}
                 for a, p, m, d in zip(auc, peaks, means, per_duration)]
    return pd.DataFrame(rows)


spont = {ex: spont_table(ex) for ex in ("methods", "code_as_written")}
for ex, df in spont.items():
    print(f"{ex}: {len(df)} transients over {df.mouse.nunique()} mice; integral (% dF/F x s) from {df.value.min():.2f} to {df.value.max():.1f}")
methods: 3393 transients over 27 mice; integral (% dF/F x s) from 2.29 to 1522.9
code_as_written: 1826 transients over 27 mice; integral (% dF/F x s) from 11.61 to 14489.2

fig6f-anxa1-spontaneous-reduced¶

Spontaneous dopamine transients in the dorsolateral striatum are smaller in G2019S than in WT mice (1064 against 798 transients, p = 2.75e-177, one-tailed two-sample t-test), with 57 to 285 transients per mouse.

In [20]:
sa = spont["methods"].query("line == 'Anxa1'")
main_s = group_test(sa)
print("Anxa1 spontaneous transients, Methods exclusion:")
print({k: (float(f"{v:.3g}") if isinstance(v, float) else v) for k, v in main_s.items()})
print(f"one-tailed p = {main_s['p_one_tailed']:.3g} (paper 2.75e-177; counts 1064 G2019S, 798 WT)")
per = sa.groupby(["group", "mouse"]).agg(n=("value", "size"), mean=("value", "mean"), median=("value", "median"),
                                          max=("value", "max"), mean_peak=("peak", "mean"))
print("\nPer mouse:")
print(per.round(2).to_string())
print("Transients per mouse from", per.n.min(), "to", per.n.max(), "(paper 57 to 285; criterion 51.3 to 313.5)")
v = spont["code_as_written"].query("line == 'Anxa1'")
r = group_test(v)
print("\nVariant, the code's exclusion window as written:", {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r.items()})
print("Variant, one value per mouse (mouse means), Welch one-tailed p =",
      f"{lrrk2.one_tailed_less(per.loc['GS', 'mean'], per.loc['WT', 'mean'], False)[1]:.3g}")
print("Variant, transient peaks in place of integrals: one-tailed p =",
      f"{lrrk2.one_tailed_less(sa[sa.group == 'GS'].peak, sa[sa.group == 'WT'].peak)[1]:.3g}")
r = group_test(sa.assign(value=sa["mean"]))
print("Variant, the mean dF/F over each transient (close to the published values, see source-data-link):",
      {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r.items()})
r = group_test(sa.assign(value=0.005 * sa["per_duration"]))
print("Variant, 0.005 times the integral divided by the number of samples (the published values, see source-data-link (4b)):",
      {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r.items()})
print(f"   one-tailed p = {r['p_one_tailed']:.4g} (paper 2.75e-177)")
Anxa1 spontaneous transients, Methods exclusion:
{'n_GS': 1064, 'n_WT': 798, 'mean_GS': 132.0, 'mean_WT': 303.0, 't': -18.7, 'p_one_tailed': 4.85e-72, 'cohens_d': 0.876}
one-tailed p = 4.85e-72 (paper 2.75e-177; counts 1064 G2019S, 798 WT)

Per mouse:
               n    mean  median      max  mean_peak
group mouse                                         
GS    3742   285   73.66   48.30   446.40      48.46
      3743   132  299.56  272.10   872.05      96.24
      4004   143   62.75   51.42   187.28      22.42
      4005   122   36.19   26.02   117.86      11.80
      4007   153   54.63   42.99   161.53      22.39
      4651    57  416.91  390.00   797.53      77.95
      4652    79  259.57  242.19   650.17      70.15
      4885    93  148.76  152.39   405.11      37.51
WT    3947    81  514.26  504.29  1237.65     117.23
      3948   151  282.04  239.81  1067.54      95.23
      4253   104  346.03  322.96   919.61      97.38
      4398   162  186.41  154.43   596.89      84.03
      4401    76  622.04  629.03  1415.50     139.68
      4558    93  289.88  234.83   759.53      77.32
      4561   131  129.87   88.09   416.05      44.07
Transients per mouse from 57 to 285 (paper 57 to 285; criterion 51.3 to 313.5)

Variant, the code's exclusion window as written: {'n_GS': 648, 'n_WT': 363, 'mean_GS': '300', 'mean_WT': '969', 't': '-18.9', 'p_one_tailed': '1.3e-68', 'cohens_d': '1.24'}
Variant, one value per mouse (mouse means), Welch one-tailed p = 0.0318
Variant, transient peaks in place of integrals: one-tailed p = 1.04e-158
Variant, the mean dF/F over each transient (close to the published values, see source-data-link): {'n_GS': 1064, 'n_WT': 798, 'mean_GS': '24.2', 'mean_WT': '49', 't': '-31.7', 'p_one_tailed': '2.23e-177', 'cohens_d': '1.49'}
Variant, 0.005 times the integral divided by the number of samples (the published values, see source-data-link (4b)): {'n_GS': 1064, 'n_WT': 798, 'mean_GS': '0.121', 'mean_WT': '0.245', 't': '-31.7', 'p_one_tailed': '2.75e-177', 'cohens_d': '1.49'}
   one-tailed p = 2.747e-177 (paper 2.75e-177)

Result: reproduced. The Methods' detection gives 1064 GS and 798 WT transients, the paper's counts, with 57 to 285 per mouse, the paper's range. Mean integrals are 131.9 against 302.9 % dF/F x s, one-tailed p = 4.85e-72 (paper 2.75e-177). The published values are 0.005 times the integral divided by the number of samples in each transient (see source-data-link, part 4b); with that measure p = 2.747e-177, the paper's value. With one value per mouse the difference gives Welch p = 0.0318, and the code's exclusion window as written gives p = 1.3e-68 on 648 and 363 transients.

fig6f-anxa1-spontaneous-per-mouse¶

Six of eight individual G2019S mice show significantly smaller spontaneous dopamine transients than the WT group; mice 4651 and 3743 do not.

In [21]:
pms = per_mouse_tests(sa, 0.05 / 8)
print("Each Anxa1 G2019S mouse's transient integrals against all WT transients, Methods exclusion; threshold 0.05/8.")
print(pms.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
print("\nSignificant mice per reading:", {c[4:]: int(pms[c].sum()) for c in pms.columns if c.startswith("sig_")})
print("Not significant under each reading:", {c[4:]: pms.loc[~pms[c], "mouse"].tolist() for c in pms.columns if c.startswith("sig_")})
print("Paper's p-values (legend): 4885 1.44e-49, 4651 0.008, 4652 6.21e-13, 3742 5.28e-88, 3743 0.97, 4004 1.24e-95, 4005 4.13e-109, 4007 5.00e-107")
v = per_mouse_tests(sa.assign(value=sa["mean"]), 0.05 / 8)
print("\nVariant, the mean dF/F over each transient:", {c[4:]: int(v[c].sum()) for c in v.columns if c.startswith("sig_")},
      "not significant (a):", v.loc[~v.sig_a_welch_1t, "mouse"].tolist())
print(v[["mouse", "mean", "WT_mean", "p_a_welch_1t", "p_d_student_1t"]].to_string(index=False, float_format=lambda x: f"{x:.3g}"))
v = per_mouse_tests(sa.assign(value=0.005 * sa["per_duration"]), 0.05 / 8)
print("\nVariant, 0.005 times the integral divided by the number of samples (the published values):",
      {c[4:]: int(v[c].sum()) for c in v.columns if c.startswith("sig_")},
      "not significant (d, Student one-tailed):", v.loc[~v.sig_d_student_1t, "mouse"].tolist())
print(v[["mouse", "mean", "WT_mean", "p_a_welch_1t", "p_d_student_1t"]].to_string(index=False, float_format=lambda x: f"{x:.3g}"))
v = per_mouse_tests(spont["code_as_written"].query("line == 'Anxa1'"), 0.05 / 8)
print("\nVariant, code's exclusion as written:", {c[4:]: int(v[c].sum()) for c in v.columns if c.startswith("sig_")},
      "not significant (a):", v.loc[~v.sig_a_welch_1t, "mouse"].tolist())
Each Anxa1 G2019S mouse's transient integrals against all WT transients, Methods exclusion; threshold 0.05/8.
 mouse   n  mean  WT_mean  p_a_welch_1t  sig_a_welch_1t  p_b_welch_2t  sig_b_welch_2t  p_c_student_2t  sig_c_student_2t  p_d_student_1t  sig_d_student_1t
  3742 285  73.7      303      7.2e-102            True     1.44e-101            True         5.9e-50              True        2.95e-50              True
  3743 132   300      303         0.431           False         0.862           False           0.883             False           0.441             False
  4004 143  62.7      303     8.67e-109            True     1.73e-108            True        7.83e-30              True        3.92e-30              True
  4005 122  36.2      303     3.36e-136            True     6.73e-136            True        2.75e-31              True        1.38e-31              True
  4007 153  54.6      303     1.46e-118            True     2.91e-118            True        1.25e-33              True        6.27e-34              True
  4651  57   417      303             1           False      1.44e-08           False        0.000482             False               1             False
  4652  79   260      303        0.0128           False        0.0256           False           0.122             False          0.0608             False
  4885  93   149      303      1.28e-30            True      2.55e-30            True        2.01e-09              True           1e-09              True

Significant mice per reading: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 5, 'd_student_1t': 5}
Not significant under each reading: {'a_welch_1t': [3743, 4651, 4652], 'b_welch_2t': [3743, 4651, 4652], 'c_student_2t': [3743, 4651, 4652], 'd_student_1t': [3743, 4651, 4652]}
Paper's p-values (legend): 4885 1.44e-49, 4651 0.008, 4652 6.21e-13, 3742 5.28e-88, 3743 0.97, 4004 1.24e-95, 4005 4.13e-109, 4007 5.00e-107

Variant, the mean dF/F over each transient: {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 6, 'd_student_1t': 6} not significant (a): [3743]
 mouse  mean  WT_mean  p_a_welch_1t  p_d_student_1t
  3742  25.3       49     5.23e-165        5.38e-88
  3743    52       49         0.989           0.965
  4004  13.7       49     8.09e-279        1.12e-95
  4005  7.26       49             0       3.33e-109
  4007  12.3       49     1.89e-290       4.43e-107
  4651  43.2       49       1.5e-05         0.00819
  4652    34       49      5.71e-16        5.73e-13
  4885  19.4       49      2.6e-128        1.28e-49

Variant, 0.005 times the integral divided by the number of samples (the published values): {'a_welch_1t': 7, 'b_welch_2t': 7, 'c_student_2t': 6, 'd_student_1t': 6} not significant (d, Student one-tailed): [3743, 4651]
 mouse   mean  WT_mean  p_a_welch_1t  p_d_student_1t
  3742  0.126    0.245     5.16e-165        5.28e-88
  3743   0.26    0.245         0.989           0.965
  4004 0.0683    0.245     1.02e-278        1.24e-95
  4005 0.0363    0.245             0       4.13e-109
  4007 0.0615    0.245     2.16e-290          5e-107
  4651  0.216    0.245      1.61e-05         0.00844
  4652   0.17    0.245      6.21e-16        6.21e-13
  4885 0.0969    0.245     2.38e-128        1.44e-49

Variant, code's exclusion as written: {'a_welch_1t': 6, 'b_welch_2t': 6, 'c_student_2t': 6, 'd_student_1t': 6} not significant (a): [3743, 4885]

Result: partially reproduced. By the integral, the measure the criterion fixed, 5 of 8 GS mice are below the WT group under every reading. The exceptions are 3743 (Welch one-tailed p = 0.431), 4651, whose mean (417) is above the WT mean (303), and 4652 (p = 0.0128). With the published measure, 0.005 times the integral divided by the number of samples, reading (d), the one-tailed Student test of the legend, gives 6 of 8 with 3743 and 4651 as the exceptions, and the legend's p-values (3742 5.28e-88, 3743 0.965 against 0.97, 4004 1.24e-95, 4005 4.13e-109, 4007 5e-107, 4651 0.00844 against 0.008, 4652 6.21e-13, 4885 1.44e-49). The Welch readings give 7 there, as 4651 reaches p = 1.61e-05, so the paper's count follows the one-tailed Student test of its legend, not the Welch test of its Methods. The difference from the paper comes from the measure, not the data.

supp8c-calb1-spontaneous-not-reduced¶

In the dorsomedial striatum (Calb1+ projection region), spontaneous dopamine transients are not reduced in G2019S mice (970 against 682 transients, p = 0.98).

In [22]:
sc = spont["methods"].query("line == 'Calb1'")
r = group_test(sc)
print("Calb1 spontaneous transients, Methods exclusion (paper: 970 G2019S, 682 WT, one-tailed p = 0.98):")
print({k: (float(f"{v:.4g}") if isinstance(v, float) else v) for k, v in r.items()})
print(f"one-tailed p (G2019S lower) = {r['p_one_tailed']:.3g}; difference of means (WT - G2019S) = {r['mean_WT'] - r['mean_GS']:.3f} % dF/F x s")
print("Two-tailed p =", f"{lrrk2.two_tailed(sc[sc.group == 'GS'].value, sc[sc.group == 'WT'].value)[1]:.3g}")
per = sc.groupby(["group", "mouse"]).agg(n=("value", "size"), mean=("value", "mean"), median=("value", "median"))
print("\nPer mouse:")
print(per.round(3).to_string())
v = spont["code_as_written"].query("line == 'Calb1'")
r2 = group_test(v)
print("\nVariant, the code's exclusion window as written:", {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r2.items()})
print("Variant, mouse means, Welch one-tailed p =",
      f"{lrrk2.one_tailed_less(per.loc['GS', 'mean'], per.loc['WT', 'mean'], False)[1]:.3g}")
r3 = group_test(sc.assign(value=sc["mean"]))
print("Variant, the mean dF/F over each transient:", {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r3.items()})
r4 = group_test(sc.assign(value=0.005 * sc["per_duration"]))
print("Variant, 0.005 times the integral divided by the number of samples:", {k: (f"{x:.3g}" if isinstance(x, float) else x) for k, x in r4.items()})

# How the main test moves with the exclusion window: 1 s before to 1.5 s after onset (100 and 150 samples), each end
# moved by up to 10 samples in steps of 2.
cal = [s for s in sessions if s["line"] == "Calb1"]
rows = []
for pre in range(90, 111, 2):
    for post in range(140, 161, 2):
        vals = {"GS": [], "WT": []}
        for s in cal:
            vals[s["group"]].append(lrrk2.spontaneous_transients(s, (pre, post))[0])
        gs, wt = np.concatenate(vals["GS"]), np.concatenate(vals["WT"])
        rows.append({"before": pre, "after": post, "n_GS": len(gs), "n_WT": len(wt), "p": lrrk2.one_tailed_less(gs, wt)[1]})
grid = pd.DataFrame(rows)
print("\nOne-tailed p (G2019S lower) by exclusion window, samples before (rows) and after (columns) onset:")
print(grid.pivot(index="before", columns="after", values="p").to_string(float_format=lambda v: f"{v:.3f}"))
print(f"p from {grid.p.min():.3g} to {grid.p.max():.3g}; below 0.05 in {int((grid.p < 0.05).sum())} of {len(grid)} windows;",
      f"transients GS {grid.n_GS.min()} to {grid.n_GS.max()}, WT {grid.n_WT.min()} to {grid.n_WT.max()}")
Calb1 spontaneous transients, Methods exclusion (paper: 970 G2019S, 682 WT, one-tailed p = 0.98):
{'n_GS': 896, 'n_WT': 635, 'mean_GS': 322.9, 'mean_WT': 343.9, 't': -1.637, 'p_one_tailed': 0.05088, 'cohens_d': 0.08494}
one-tailed p (G2019S lower) = 0.0509; difference of means (WT - G2019S) = 21.086 % dF/F x s
Two-tailed p = 0.102

Per mouse:
               n     mean   median
group mouse                       
GS    302     93  490.660  408.085
      306     75  510.731  489.758
      740    140  252.220  225.825
      741    158  416.694  347.068
      848    120  343.685  317.679
      852    165  188.790  159.445
      935    145  219.291  174.492
WT    671    159  311.234  249.236
      673    159  206.032  150.697
      688    106  375.352  327.453
      966     79  488.571  454.854
      1803   132  437.652  367.420
Variant, the code's exclusion window as written: {'n_GS': 540, 'n_WT': 275, 'mean_GS': '696', 'mean_WT': '1.08e+03', 't': '-4.15', 'p_one_tailed': '1.81e-05', 'cohens_d': '0.308'}
Variant, mouse means, Welch one-tailed p = 0.402
Variant, the mean dF/F over each transient: {'n_GS': 896, 'n_WT': 635, 'mean_GS': '61.2', 'mean_WT': '67.5', 't': '-5.9', 'p_one_tailed': '2.25e-09', 'cohens_d': '0.306'}
Variant, 0.005 times the integral divided by the number of samples: {'n_GS': 896, 'n_WT': 635, 'mean_GS': '0.306', 'mean_WT': '0.337', 't': '-5.88', 'p_one_tailed': '2.45e-09', 'cohens_d': '0.305'}
One-tailed p (G2019S lower) by exclusion window, samples before (rows) and after (columns) onset:
after    140   142   144   146   148   150   152   154   156   158   160
before                                                                  
90     0.074 0.065 0.051 0.052 0.054 0.063 0.060 0.060 0.062 0.058 0.049
92     0.059 0.055 0.040 0.041 0.042 0.049 0.047 0.051 0.053 0.049 0.041
94     0.057 0.053 0.041 0.041 0.043 0.049 0.047 0.048 0.053 0.049 0.043
96     0.057 0.054 0.041 0.042 0.044 0.049 0.047 0.048 0.052 0.049 0.044
98     0.061 0.053 0.041 0.040 0.044 0.049 0.047 0.049 0.050 0.051 0.044
100    0.060 0.055 0.041 0.042 0.046 0.051 0.047 0.049 0.052 0.051 0.048
102    0.071 0.063 0.050 0.046 0.051 0.053 0.049 0.052 0.055 0.052 0.049
104    0.079 0.070 0.057 0.053 0.053 0.056 0.051 0.052 0.057 0.049 0.045
106    0.077 0.065 0.052 0.048 0.051 0.054 0.047 0.049 0.049 0.045 0.045
108    0.076 0.066 0.052 0.048 0.049 0.056 0.046 0.043 0.047 0.048 0.048
110    0.079 0.068 0.054 0.047 0.050 0.057 0.054 0.044 0.048 0.050 0.051
p from 0.0403 to 0.0792; below 0.05 in 59 of 121 windows; transients GS 878 to 905, WT 620 to 648

Result: reproduced. By the paper's test, GS transients are not significantly smaller: one-tailed p = 0.0509 on 896 GS and 635 WT transients (both within tolerance of 970 and 682), difference of means 21.1 % dF/F x s, Cohen's d 0.085. The result sits at the threshold and is fragile: moving either end of the exclusion window by up to 10 samples gives p from 0.0403 to 0.0792, below 0.05 in 59 of 121 windows. With the published measure (0.005 times the integral divided by the number of samples) GS are lower at p = 2.45e-09 (d = 0.305), with the mean dF/F over each transient at p = 2.25e-09, and with the code's exclusion window as written at p = 1.81e-05; with one value per mouse, Welch p = 0.402. The dandiset's Calb1 dF/F is not the trace the paper analysed (see source-data-link), and the published values give p = 0.989.

supp8e-calb1-evoked-reduced¶

Evoked dopamine release in the dorsomedial striatum from Calb1+ neuron stimulation is reduced in G2019S mice at each of four powers (56 against 40 stimulations per power, p from 6.45e-05 to 0.001).

In [23]:
rows = []
for w in windows:
    for q in lrrk2.PAPER_POWERS:
        rows.append({"window": w, "power": q, **group_test(evoked[w].query("line == 'Calb1' and power == @q"))})
s8 = pd.DataFrame(rows)
print("Calb1, evoked integrals per power; paper p: 0.1 mW 6.45e-05, 0.5 mW 0.0002, 1 mW 0.0001, 4 mW 0.001 (56 against 40)")
print(s8.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
main8 = s8[s8.window == "methods"]
print("\nMethods window: powers with G2019S lower at one-tailed p < 0.05:",
      int(((main8.p_one_tailed < 0.05) & (main8.mean_GS < main8.mean_WT)).sum()), "of 4")
cal = evoked["methods"].query("line == 'Calb1' and power == 0.5")
print("\nPer mouse, 0.5 mW, Methods window:")
print(cal.groupby(["group", "mouse"]).value.agg(["size", "mean", "min", "max"]).round(2).to_string())
print("\nVariant with one value per mouse (mouse means, 7 GS and 5 WT), Methods window, Welch one-tailed p per power:")
for q in lrrk2.PAPER_POWERS:
    mm = evoked["methods"].query("line == 'Calb1' and power == @q").groupby(["group", "mouse"]).value.mean()
    print(f"  {q} mW: p = {lrrk2.one_tailed_less(mm.loc['GS'], mm.loc['WT'], False)[1]:.3g}, mean of mouse means GS {mm.loc['GS'].mean():.1f}, WT {mm.loc['WT'].mean():.1f}")
Calb1, evoked integrals per power; paper p: 0.1 mW 6.45e-05, 0.5 mW 0.0002, 1 mW 0.0001, 4 mW 0.001 (56 against 40)
         window  power  n_GS  n_WT  mean_GS  mean_WT     t  p_one_tailed  cohens_d
        methods    0.1    56    40     23.8     55.9  -5.7       6.9e-08      1.18
        methods    0.5    56    40     70.4      131 -6.74      6.29e-10       1.4
        methods      1    56    40      101      171  -5.8      4.51e-08       1.2
        methods      4    56    40      145      247 -5.27      4.38e-07      1.09
           code    0.1    56    40     40.7      101 -5.69      7.07e-08      1.18
           code    0.5    56    40      116      212 -6.05      1.47e-08      1.25
           code      1    56    40      159      269 -5.33      3.36e-07       1.1
           code      4    56    40      217      379 -5.06      1.04e-06      1.05
code_as_written    0.1    56    40    -7.61    -20.6  1.67          0.95    -0.345
code_as_written    0.5    56    40    -14.5    -32.4  2.53         0.993    -0.524
code_as_written      1    56    40    -19.2    -43.2  3.08         0.999    -0.638
code_as_written      4    56    40    -23.5    -66.6  4.33             1    -0.897
          fixed    0.1    56    40     22.9     53.9  -5.7      6.82e-08      1.18
          fixed    0.5    56    40     68.1      127 -6.75      6.14e-10       1.4
          fixed      1    56    40     97.7      166 -5.81      4.26e-08       1.2
          fixed      4    56    40      141      241 -5.28       4.1e-07      1.09

Methods window: powers with G2019S lower at one-tailed p < 0.05: 4 of 4

Per mouse, 0.5 mW, Methods window:
             size    mean     min     max
group mouse                              
GS    302       8   70.54   59.12   80.03
      306       8   64.52   45.09   93.07
      740       8   17.35  -12.01   32.04
      741       8   94.20   79.07  113.97
      848       8   58.25   41.07   72.77
      852       8  100.29   73.90  123.85
      935       8   87.93   64.88   98.22
WT    671       8  155.87  103.09  206.26
      673       8   49.74   37.39   59.02
      688       8  169.98  118.81  199.98
      966       8   90.10   71.13  104.04
      1803      8  190.17  142.78  240.39

Variant with one value per mouse (mouse means, 7 GS and 5 WT), Methods window, Welch one-tailed p per power:
  0.1 mW: p = 0.0424, mean of mouse means GS 23.8, WT 55.9
  0.5 mW: p = 0.0413, mean of mouse means GS 70.4, WT 131.2
  1.0 mW: p = 0.0726, mean of mouse means GS 100.6, WT 171.2
  4.0 mW: p = 0.0916, mean of mouse means GS 144.9, WT 247.4

Result: reproduced. There are 56 GS and 40 WT stimulations per power, as in the paper. GS are lower at all four powers, one-tailed p from 4.38e-07 (4 mW) to 6.29e-10 (0.5 mW), smaller p-values than the paper's 6.45e-05 to 0.001; the published integrals do not come from the dandiset's Calb1 dF/F (see source-data-link). With one value per mouse (7 GS and 5 WT), Welch one-tailed p is 0.0424, 0.0413, 0.0726 and 0.0916 at 0.1, 0.5, 1 and 4 mW, so the reduction is significant across mice at the two lower powers only.

supp8e-calb1-few-mice-reduced¶

Only 2 of 7 G2019S mice show reduced Calb1+ evoked dopamine release relative to the WT group.

In [24]:
pmc = per_mouse_tests(cal, 0.05 / 7)
print("Each Calb1 G2019S mouse against all WT integrals, 0.5 mW, Methods window; threshold 0.05/7.")
print(pmc.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
print("\nSignificant mice per reading:", {c[4:]: int(pmc[c].sum()) for c in pmc.columns if c.startswith("sig_")})
print("Significant under each reading:", {c[4:]: pmc.loc[pmc[c], "mouse"].tolist() for c in pmc.columns if c.startswith("sig_")})
print("\nVariants (other powers and windows): significant mice per reading")
for w in windows:
    for q in lrrk2.PAPER_POWERS:
        v = per_mouse_tests(evoked[w].query("line == 'Calb1' and power == @q"), 0.05 / 7)
        print(f"  {w:16s} {q} mW:", {c[4:]: int(v[c].sum()) for c in v.columns if c.startswith("sig_")})
Each Calb1 G2019S mouse against all WT integrals, 0.5 mW, Methods window; threshold 0.05/7.
 mouse  n  mean  WT_mean  p_a_welch_1t  sig_a_welch_1t  p_b_welch_2t  sig_b_welch_2t  p_c_student_2t  sig_c_student_2t  p_d_student_1t  sig_d_student_1t
   302  8  70.5      131      5.41e-08            True      1.08e-07            True         0.00524              True         0.00262              True
   306  8  64.5      131      3.94e-07            True      7.88e-07            True         0.00249              True         0.00125              True
   740  8  17.3      131      1.62e-14            True      3.23e-14            True         1.7e-06              True        8.48e-07              True
   741  8  94.2      131      0.000274            True      0.000549            True          0.0809             False          0.0404             False
   848  8  58.2      131      2.35e-09            True      4.71e-09            True         0.00099              True        0.000495              True
   852  8   100      131       0.00436            True       0.00871           False           0.145             False          0.0725             False
   935  8  87.9      131      3.92e-05            True      7.84e-05            True          0.0424             False          0.0212             False

Significant mice per reading: {'a_welch_1t': 7, 'b_welch_2t': 6, 'c_student_2t': 4, 'd_student_1t': 4}
Significant under each reading: {'a_welch_1t': [302, 306, 740, 741, 848, 852, 935], 'b_welch_2t': [302, 306, 740, 741, 848, 935], 'c_student_2t': [302, 306, 740, 848], 'd_student_1t': [302, 306, 740, 848]}

Variants (other powers and windows): significant mice per reading
  methods          0.1 mW: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 2, 'd_student_1t': 2}
  methods          0.5 mW: {'a_welch_1t': 7, 'b_welch_2t': 6, 'c_student_2t': 4, 'd_student_1t': 4}
  methods          1.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 6, 'c_student_2t': 2, 'd_student_1t': 2}
  methods          4.0 mW: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 1, 'd_student_1t': 3}
  code             0.1 mW: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 2, 'd_student_1t': 2}
  code             0.5 mW: {'a_welch_1t': 6, 'b_welch_2t': 6, 'c_student_2t': 2, 'd_student_1t': 3}
  code             1.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 5, 'c_student_2t': 1, 'd_student_1t': 2}
  code             4.0 mW: {'a_welch_1t': 6, 'b_welch_2t': 5, 'c_student_2t': 1, 'd_student_1t': 1}
  code_as_written  0.1 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0}
  code_as_written  0.5 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0}
  code_as_written  1.0 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0}
  code_as_written  4.0 mW: {'a_welch_1t': 0, 'b_welch_2t': 0, 'c_student_2t': 0, 'd_student_1t': 0}
  fixed            0.1 mW: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 2, 'd_student_1t': 2}
  fixed            0.5 mW: {'a_welch_1t': 7, 'b_welch_2t': 6, 'c_student_2t': 4, 'd_student_1t': 4}
  fixed            1.0 mW: {'a_welch_1t': 7, 'b_welch_2t': 6, 'c_student_2t': 2, 'd_student_1t': 2}
  fixed            4.0 mW: {'a_welch_1t': 5, 'b_welch_2t': 5, 'c_student_2t': 1, 'd_student_1t': 3}

Result: partially reproduced. At 0.5 mW, the number of GS mice below the WT group at p < 0.05/7 is 7 (Welch one-tailed), 6 (Welch two-tailed) and 4 (Student, either tail), against the paper's 2; the closest reading gives 4. Student tests give 2 at 0.1 and 1 mW and 1 or 3 at 4 mW, so the count depends on power and test. Mouse 740 (mean 17.3 against 131) is below the WT group under every reading.

cohens-d-anxa1-larger¶

The G2019S reduction of evoked release at 0.5 mW is much larger for Anxa1+ (Cohen's d = 2.05) than for Calb1+ stimulation (d = 0.76).

In [25]:
rows = []
for w in windows:
    for q in lrrk2.PAPER_POWERS:
        da = lrrk2.cohens_d(*[evoked[w].query("line == 'Anxa1' and power == @q and group == @g").value.dropna() for g in ("WT", "GS")])
        dc = lrrk2.cohens_d(*[evoked[w].query("line == 'Calb1' and power == @q and group == @g").value.dropna() for g in ("WT", "GS")])
        rows.append({"window": w, "power": q, "d_Anxa1": da, "d_Calb1": dc, "ratio": da / dc})
cd = pd.DataFrame(rows)
print("Cohen's d (WT minus G2019S over the pooled SD); paper at 0.5 mW: Anxa1 2.05, Calb1 0.76")
print(cd.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
m = cd.query("window == 'methods' and power == 0.5").iloc[0]
print(f"\nMethods window, 0.5 mW: Anxa1 d = {m.d_Anxa1:.3f} (tolerance 1.845 to 2.255), Calb1 d = {m.d_Calb1:.3f} (0.684 to 0.836), ratio {m.ratio:.2f}")
Cohen's d (WT minus G2019S over the pooled SD); paper at 0.5 mW: Anxa1 2.05, Calb1 0.76
         window  power  d_Anxa1  d_Calb1  ratio
        methods    0.1     1.64     1.18   1.39
        methods    0.5     2.21      1.4   1.58
        methods      1     2.09      1.2   1.74
        methods      4     1.86     1.09   1.71
           code    0.1     1.67     1.18   1.41
           code    0.5     2.06     1.25   1.64
           code      1     1.82      1.1   1.65
           code      4      1.7     1.05   1.63
code_as_written    0.1   -0.817   -0.345   2.37
code_as_written    0.5   -0.861   -0.524   1.64
code_as_written      1   -0.987   -0.638   1.55
code_as_written      4    -1.27   -0.897   1.42
          fixed    0.1     1.53     1.18   1.29
          fixed    0.5     2.16      1.4   1.55
          fixed      1     2.08      1.2   1.73
          fixed      4     1.85     1.09    1.7

Methods window, 0.5 mW: Anxa1 d = 2.210 (tolerance 1.845 to 2.255), Calb1 d = 1.395 (0.684 to 0.836), ratio 1.58

Result: not reproduced. At 0.5 mW, Cohen's d is 2.21 for Anxa1, within tolerance of 2.05, and 1.40 for Calb1, against 0.76 (tolerance 0.684 to 0.836); their ratio is 1.58, below the factor of 2 the criterion asks. With the code's window d is 2.06 and 1.25. The published integrals give 2.06 and 0.765 (see source-data-link), so the paper's values follow from its own data, and the Calb1 difference is consistent with the Calb1 dF/F in the dandiset not being the one the paper analysed. The Anxa1 effect is larger than the Calb1 effect at every power under the Methods, code and fixed windows (ratio 1.29 to 1.74).

Claims on data in other archives¶

These eight claims rest on data that the dandiset does not hold and that the paper deposited elsewhere. They are data: elsewhere claims and are counted apart from the dandiset's. Each section names the archive.

fig1d-lrrk2-enriched-vulnerable¶

LRRK2 immunolabeling intensity is higher in Aldh1a1+ (vulnerable) than in Aldh1a1- SNc dopamine neurons (p = 0.0008).

Data: the per-section values on Zenodo (doi:10.5281/zenodo.19930567); the images are in BioImage Archive S-BIAD2070 (matched in the data check). The Imaris segmentation that produced the values is not re-run.

In [26]:
t, p = archives.ttest(f1.pos, f1.neg)
print(f"Sections: {len(f1)} from {f1.mouse.nunique()} mice. Mean LRRK2 intensity, Aldh1a1+ {f1.pos.mean():.4f} (SEM {f1.pos.sem():.4f}),",
      f"Aldh1a1- {f1.neg.mean():.4f} (SEM {f1.neg.sem():.4f}); range of both {min(f1.pos.min(), f1.neg.min()):.3f} to {max(f1.pos.max(), f1.neg.max()):.3f}")
print(f"Two-tailed unpaired Student t-test: t = {t:.3f}, p = {p:.3g} (paper 0.0008); Cohen's d = {archives.cohens_d(f1.pos, f1.neg):.2f}")
print(f"Variants: Welch p = {archives.ttest(f1.pos, f1.neg, equal_var=False)[1]:.3g}; paired over sections p = {stats.ttest_rel(f1.pos, f1.neg).pvalue:.3g};",
      f"sections with Aldh1a1+ above Aldh1a1-: {int((f1.pos > f1.neg).sum())} of {len(f1)}")
mm = f1.groupby("mouse")[["neg", "pos"]].mean()
print("Per mouse (mean of sections):")
print(f1.groupby("mouse").agg(sections=("pos", "size"), pos=("pos", "mean"), neg=("neg", "mean"),
                              pos_above_neg=("pos", lambda s: int((s > f1.loc[s.index, "neg"]).sum()))).round(4).to_string())
print(f"Mouse means (n = 3 per type): unpaired p = {archives.ttest(mm.pos, mm.neg)[1]:.3g}, paired p = {stats.ttest_rel(mm.pos, mm.neg).pvalue:.3g}")
Sections: 16 from 3 mice. Mean LRRK2 intensity, Aldh1a1+ 1.0487 (SEM 0.0120), Aldh1a1- 0.9731 (SEM 0.0063); range of both 0.933 to 1.140
Two-tailed unpaired Student t-test: t = 5.571, p = 4.65e-06 (paper 0.0008); Cohen's d = 1.97
Variants: Welch p = 1.22e-05; paired over sections p = 0.000759; sections with Aldh1a1+ above Aldh1a1-: 15 of 16
Per mouse (mean of sections):
       sections     pos     neg  pos_above_neg
mouse                                         
2275          6  1.0363  0.9769              6
2650          5  1.0476  0.9709              5
2722          5  1.0646  0.9709              4
Mouse means (n = 3 per type): unpaired p = 0.000822, paired p = 0.0162

Result: reproduced. Over the 16 sections of the source data, LRRK2 intensity is higher in Aldh1a1+ than in Aldh1a1- neurons (1.049 against 0.973), two-tailed unpaired Student p = 4.65e-06, Cohen's d 1.97; it is higher in 15 of 16 sections and in each of the three mice. The paper's p = 0.0008 is not that of the unpaired test over sections its legend names; it matches a paired test over sections (p = 0.000759) or an unpaired test of the three mouse means (p = 0.000822). The test starts from the paper's per-section values; the images were not segmented again.

fig2b-rab3-phosphorylation¶

LRRK2 kinase inhibition with MLi-2 changes 289 phosphopeptides in striatal synaptosomes of G2019S mice, including RAB3 T86.

Data: the peptide groups table in PRIDE PXD065006 (Proteome Discoverer abundances). The raw files (7.9 GB) need Proteome Discoverer with Byonic, which are commercial, so the search is not re-run.

In [27]:
rows, tests = [], {}
for reading, k in (("a", 3), ("b", 2)):
    for welch in (False, True):
        r = archives.volcano_test(pp, k) if not welch else None
        if welch:
            veh = [c for c in ab if "Vehicle" in c]
            mli = [c for c in ab if "MLi2" in c]
            a_, b_ = np.log2(pp[veh].to_numpy(float)), np.log2(pp[mli].to_numpy(float))
            keep = (np.isfinite(a_).sum(1) >= k) & (np.isfinite(b_).sum(1) >= k)
            r = pp.loc[keep, ["Annotated Sequence", "Modifications"]].copy()
            r["diff"] = np.nanmean(a_[keep], 1) - np.nanmean(b_[keep], 1)
            r["p"] = np.asarray(stats.ttest_ind(a_[keep], b_[keep], axis=1, equal_var=False, nan_policy="omit").pvalue, float)
            r["altered"] = (r.p <= 0.05) & (r["diff"].abs() > 0.58)
        else:
            tests[reading] = r
        rb = r[r["Annotated Sequence"].str.contains("YRTITTAYYR", na=False) & r.Modifications.str.contains(r"Phospho \[T3", na=False)]
        rows.append({"reading": reading, "test": "Welch" if welch else "Student", "peptides_tested": len(r),
                     "altered": int(r.altered.sum()), "higher_with_vehicle": int((r.altered & (r["diff"] > 0)).sum()),
                     "lower_with_vehicle": int((r.altered & (r["diff"] < 0)).sum()),
                     "rab3_T86_diff": float(rb["diff"].iloc[0]) if len(rb) else np.nan,
                     "rab3_T86_p": float(rb.p.iloc[0]) if len(rb) else np.nan,
                     "rab3_T86_altered": bool(rb.altered.iloc[0]) if len(rb) else False})
res2b = pd.DataFrame(rows)
print("Phosphopeptides altered at p <= 0.05 and |difference| > 0.58 (paper: 289, tolerance 260.1 to 317.9):")
print(res2b.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
for reading in ("a", "b"):
    r = tests[reading]
    print(f"Reading ({reading}): altered at p <= 0.05 alone {int((r.p <= 0.05).sum())}; with |difference| > 0.58 alone {int((r['diff'].abs() > 0.58).sum())}")

vol = s1["Volcano plot-phospho peptides"]
vol = vol.rename(columns={vol.columns[-2]: "Difference", vol.columns[-1]: "mlog10p"})
pub_alt = (vol.mlog10p >= -np.log10(0.05)) & (vol.Difference.abs() > 0.58)
print(f"\nThe paper's volcano table (Supplementary data 1): {len(vol)} peptides, {int(pub_alt.sum())} at the same thresholds",
      f"({int((pub_alt & (vol.Difference > 0)).sum())} higher with vehicle)")
pv = vol[vol["Annotated Sequence"].astype(str).str.contains("YRTITTAYYR")]
print("   its RAB3 T86 row:", pv[["Annotated Sequence", "Modifications", "Difference", "mlog10p"]].to_dict("records"))
# Variant: log2 abundances centred on each sample's median (the samples labelled MLi-2 have higher abundances overall).
L = np.log2(pp[ab].to_numpy(float))
print("\nMedian log2 abundance per sample:", dict(zip([c.split(": ")[-1] for c in ab], np.nanmedian(L, axis=0).round(2))))
norm = pp.copy()
norm[ab] = 2 ** (L - np.nanmedian(L, axis=0))
for reading, k in (("a", 3), ("b", 2)):
    r = archives.volcano_test(norm, k)
    rb = r[r["Annotated Sequence"].str.contains("YRTITTAYYR", na=False)]
    print(f"Variant, median-centred, reading ({reading}): {int(r.altered.sum())} altered ({int((r.altered & (r['diff'] > 0)).sum())} higher with",
          f"vehicle); RAB3 T86 difference (vehicle - MLi-2) {rb['diff'].iloc[0]:.3f}, p = {rb.p.iloc[0]:.3g}, altered {bool(rb.altered.iloc[0])}")
    if reading == "b":
        tests["b_norm"] = r
known = pp["Master Protein Descriptions"].astype(str).str.contains("Rab-10 |Rab-12 |Rab-8A |Rab-35 |Leucine-rich repeat serine", regex=True)
kn = archives.volcano_test(norm[known], 3)
print("Other LRRK2 targets in the table (median-centred, reading a):",
      [(m[:28], round(d_, 2), round(p_, 3)) for m, d_, p_ in zip(kn["Modifications in Master Proteins"], kn["diff"], kn.p)])

mg = vol.merge(tests["b"], on=["Annotated Sequence", "Modifications"], how="inner")
print(f"   matched to reading (b) by sequence and modifications: {len(mg)} of {len(vol)}; difference, ours against the table's:",
      f"r = {np.corrcoef(mg['diff'], mg.Difference)[0, 1]:.4f}, largest absolute gap {np.abs(mg['diff'] - mg.Difference).max():.3g};",
      f"-log10 p: r = {np.corrcoef(-np.log10(mg.p), mg.mlog10p)[0, 1]:.4f}, largest gap {np.abs(-np.log10(mg.p) - mg.mlog10p).max():.3g}")
mn = vol.merge(tests["b_norm"], on=["Annotated Sequence", "Modifications"], how="inner")
slope, icpt = np.polyfit(mn["diff"], mn.Difference, 1)
print(f"   against the median-centred reading (b): {len(mn)} matched; table difference = {slope:.3f} x (vehicle - MLi-2) + {icpt:.3f},",
      f"r = {np.corrcoef(mn['diff'], mn.Difference)[0, 1]:.4f}; -log10 p r = {np.corrcoef(-np.log10(mn.p), mn.mlog10p)[0, 1]:.4f};",
      f"peptides whose table difference has the sign of (vehicle - MLi-2): {int((np.sign(mn['diff']) == np.sign(mn.Difference)).sum())} of {len(mn)}")
# The table's difference and p-value recomputed exactly, under both assignments of the labels, on the peptides with all
# six values. A per-sample normalisation adds one constant to every difference, so the difference is compared up to
# a common offset; the p-value does not depend on the direction.
iv = [ab.index(c) for c in ab if "Vehicle" in c]
im = [ab.index(c) for c in ab if "MLi2" in c]
full = np.isfinite(L).all(axis=1)
for name, M in (("as deposited", L), ("median-centred", L - np.nanmedian(L, axis=0))):
    x = pp[["Annotated Sequence", "Modifications"]].copy()
    x["full"] = full
    x["veh_minus_mli"] = np.nanmean(M[:, iv], axis=1) - np.nanmean(M[:, im], axis=1)
    x["mlog10p_student"] = -np.log10(np.asarray(stats.ttest_ind(M[:, iv], M[:, im], axis=1).pvalue, float))
    x["mlog10p_welch"] = -np.log10(np.asarray(stats.ttest_ind(M[:, iv], M[:, im], axis=1, equal_var=False).pvalue, float))
    m_ = vol.merge(x, on=["Annotated Sequence", "Modifications"], how="inner")
    m_ = m_[m_.full]
    for label, sign in (("as labelled, vehicle - MLi-2", 1), ("labels swapped, MLi-2 - vehicle", -1)):
        gap = m_.Difference - sign * m_.veh_minus_mli
        off = gap.median()
        print(f"{name}, {label}: {len(m_)} peptides with all six values; table difference - ours = {off:.4f} + residual,",
              f"largest |residual| {(gap - off).abs().max():.2g}")
    for t in ("student", "welch"):
        g_ = (m_.mlog10p - m_[f"mlog10p_{t}"]).abs()
        print(f"   -log10 p, {t} test: median gap {g_.median():.3g}, largest {g_.max():.3g}, within 1e-3 for {int((g_ < 1e-3).sum())}")
Phosphopeptides altered at p <= 0.05 and |difference| > 0.58 (paper: 289, tolerance 260.1 to 317.9):
reading    test  peptides_tested  altered  higher_with_vehicle  lower_with_vehicle  rab3_T86_diff  rab3_T86_p  rab3_T86_altered
      a Student             5366     1694                   21                1673          -1.31     0.00892              True
      a   Welch             5366     1343                   12                1331          -1.31       0.011              True
      b Student             6070     1810                   25                1785          -1.31     0.00892              True
      b   Welch             6070     1414                   14                1400          -1.31       0.011              True
Reading (a): altered at p <= 0.05 alone 1958; with |difference| > 0.58 alone 3128
Reading (b): altered at p <= 0.05 alone 2083; with |difference| > 0.58 alone 3531

The paper's volcano table (Supplementary data 1): 6157 peptides, 254 at the same thresholds (135 higher with vehicle)
   its RAB3 T86 row: [{'Annotated Sequence': '[R].YRTITTAYYR.[G]', 'Modifications': '1xPhospho [T3(100)]', 'Difference': 0.688467343648275, 'mlog10p': 1.6492742748406288}]

Median log2 abundance per sample: {'Sample, Vehicle, 1': np.float64(17.47), 'Sample, Vehicle, 2': np.float64(17.25), 'Sample, Vehicle, 3': np.float64(17.35), 'Sample, MLi2, 1': np.float64(18.12), 'Sample, MLi2, 2': np.float64(17.97), 'Sample, MLi2, 3': np.float64(17.84)}
Variant, median-centred, reading (a): 243 altered (119 higher with vehicle); RAB3 T86 difference (vehicle - MLi-2) -0.693, p = 0.0238, altered True
Variant, median-centred, reading (b): 282 altered (141 higher with vehicle); RAB3 T86 difference (vehicle - MLi-2) -0.693, p = 0.0238, altered True
Other LRRK2 targets in the table (median-centred, reading a): [('P55258 1xPhospho [S181(100)]', 0.32, 0.429), ('A2CG35 1xPhospho [S68(100)]', -0.26, 0.433), ('P61027 1xPhospho [T73(100)]', 0.15, 0.775), ('A2CG35 1xPhospho [S153(100)]', 0.03, 0.934), ('P61027 1xPhospho [S188(98.5)', -0.01, 0.965)]
   matched to reading (b) by sequence and modifications: 4770 of 6157; difference, ours against the table's: r = -0.9088, largest absolute gap 13.9; -log10 p: r = 0.2892, largest gap 4.66
   against the median-centred reading (b): 4770 matched; table difference = -1.002 x (vehicle - MLi-2) + -0.000, r = -0.9101; -log10 p r = 0.9463; peptides whose table difference has the sign of (vehicle - MLi-2): 178 of 4770
as deposited, as labelled, vehicle - MLi-2: 4340 peptides with all six values; table difference - ours = 0.6387 + residual, largest |residual| 13
as deposited, labels swapped, MLi-2 - vehicle: 4340 peptides with all six values; table difference - ours = -0.6243 + residual, largest |residual| 1.6e-06
   -log10 p, student test: median gap 0.774, largest 4.66, within 1e-3 for 0
   -log10 p, welch test: median gap 0.663, largest 4.62, within 1e-3 for 1
median-centred, as labelled, vehicle - MLi-2: 4340 peptides with all six values; table difference - ours = 0.0187 + residual, largest |residual| 13
median-centred, labels swapped, MLi-2 - vehicle: 4340 peptides with all six values; table difference - ours = -0.0043 + residual, largest |residual| 1.6e-06
   -log10 p, student test: median gap 0.0161, largest 1.73, within 1e-3 for 153
   -log10 p, welch test: median gap 0.0088, largest 1.33, within 1e-3 for 193

Result: not reproduced. On the log2 abundances as deposited, 1694 (reading a) or 1810 (reading b) phosphopeptides pass p <= 0.05 and |difference| > 0.58, against the paper's 289, and nearly all are lower with vehicle (1673 and 1785), as the samples labelled MLi-2 have higher abundances overall (median log2 17.84 to 18.12, against 17.25 to 17.47). The RAB3 T86 peptide passes (p = 0.00892) but is lower with vehicle (difference -1.31), so neither part of the criterion holds. Centring each sample on its median, a step the criterion did not fix, gives 243 (a) and 282 (b) peptides, within tolerance for reading b, and RAB3 T86 is still higher with MLi-2 (difference -0.693, p = 0.0238). The paper's own volcano table holds MLi-2 minus vehicle as the samples are labelled: on the 4340 peptides with all six values its difference equals that difference plus a constant (-0.0043 after median-centring, -0.624 as deposited) to within 1.6e-06, while against vehicle minus MLi-2 the residual reaches 13. Its p-values are close to those of a t-test on the median-centred values but not equal (median gap in -log10 p 0.0088 for Welch, 0.0161 for Student), so its test or normalisation differs in a way that does not affect the difference. The table holds 254 peptides at the legend's thresholds and gives RAB3 T86 +0.688, which the legend reads as higher with vehicle. As the samples are labelled in PRIDE and in Supplementary data 1, the RAB3 T86 phosphopeptide is higher after MLi-2, the opposite of the claim, so either the labels or the direction of the figure is swapped. The canonical LRRK2 site RAB10 T73 does not change (0.15, p = 0.775), so the data cannot tell which. If the labels are swapped, the median-centred reading b gives 282 peptides and RAB3 T86 higher with vehicle (+0.693), which would reproduce the claim, so the outcome rests on a labelling question the data cannot answer.

fig2eg-prab3-increased¶

Phosphorylation of RAB3A and RAB3C is increased in the SNc of G2019S mice and returns to WT levels with MLi-2.

Data: the p-RAB3A/total ratios on Zenodo (doi:10.5281/zenodo.19930567). The uncropped blots are in the record's Westerbn blot.pdf; the Methods do not say how bands were quantified, so they are not re-quantified.

In [28]:
paper2 = {"RAB3A": {"GS vs WT": ("0.0202", "8.593"), "GS vs GS+MLi2": ("0.0069", "11.33")},
          "RAB3C": {"GS vs WT": ("0.0036", "14.76"), "GS vs GS+MLi2": ("0.0415", "7.398")}}
rows = []
for prot, d in f2.items():
    print(prot, {g: f"n {len(v)}, mean {v.mean():.3f} (SEM {v.std(ddof=1) / np.sqrt(len(v)):.3f})" for g, v in d.items()})
    print(f"   one-way ANOVA over the three groups: F = {stats.f_oneway(*d.values()).statistic:.3f}, p = {stats.f_oneway(*d.values()).pvalue:.3g}")
    for m in (3, 2):
        pairs = [("GS", "WT"), ("GS", "GS+MLi2"), ("GS+MLi2", "WT")][:m]
        c = archives.pooled_contrasts(d, pairs, m)
        for _, r in c.iterrows():
            rows.append({"protein": prot, "sidak_over": m, "pair": r.pair, "diff": r["diff"], "F(1,df)": r.F, "df": r.df,
                         "p": r.p, "p_sidak": r.p_sidak, "paper_p_sidak": paper2[prot].get(r.pair, ("", ""))[0],
                         "paper_F": paper2[prot].get(r.pair, ("", ""))[1],
                         "student_p": archives.ttest(d[r.pair.split(" vs ")[0]], d[r.pair.split(" vs ")[1]])[1]})
res2 = pd.DataFrame(rows)
print(res2.to_string(index=False, float_format=lambda v: f"{v:.4g}"))
main2 = res2[(res2.sidak_over == 3) & res2.pair.isin(["GS vs WT", "GS vs GS+MLi2"])]
print("\nComparisons that hold (GS higher, Sidak over three pairs, p < 0.05):", int(((main2["diff"] > 0) & (main2.p_sidak < 0.05)).sum()), "of 4")
RAB3A {'WT': 'n 10, mean 1.000 (SEM 0.063)', 'GS': 'n 10, mean 1.458 (SEM 0.156)', 'GS+MLi2': 'n 10, mean 0.932 (SEM 0.091)'}
   one-way ANOVA over the three groups: F = 6.706, p = 0.00432
RAB3C {'WT': 'n 7, mean 0.999 (SEM 0.033)', 'GS': 'n 7, mean 1.435 (SEM 0.099)', 'GS+MLi2': 'n 7, mean 1.127 (SEM 0.092)'}
   one-way ANOVA over the three groups: F = 7.805, p = 0.00362
protein  sidak_over          pair     diff  F(1,df)  df        p  p_sidak paper_p_sidak paper_F  student_p
  RAB3A           3      GS vs WT   0.4578    8.593  27 0.006793  0.02024        0.0202   8.593    0.01392
  RAB3A           3 GS vs GS+MLi2   0.5258    11.33  27 0.002297 0.006877        0.0069   11.33   0.009267
  RAB3A           3 GS+MLi2 vs WT -0.06797   0.1894  27   0.6669    0.963                           0.5486
  RAB3A           2      GS vs WT   0.4578    8.593  27 0.006793  0.01354        0.0202   8.593    0.01392
  RAB3A           2 GS vs GS+MLi2   0.5258    11.33  27 0.002297  0.00459        0.0069   11.33   0.009267
  RAB3C           3      GS vs WT   0.4361    14.76  18 0.001195  0.00358        0.0036   14.76   0.001254
  RAB3C           3 GS vs GS+MLi2   0.3088    7.398  18  0.01404  0.04154        0.0415   7.398    0.04109
  RAB3C           3 GS+MLi2 vs WT   0.1274    1.258  18   0.2767   0.6216                           0.2184
  RAB3C           2      GS vs WT   0.4361    14.76  18 0.001195 0.002388        0.0036   14.76   0.001254
  RAB3C           2 GS vs GS+MLi2   0.3088    7.398  18  0.01404  0.02789        0.0415   7.398    0.04109

Comparisons that hold (GS higher, Sidak over three pairs, p < 0.05): 4 of 4

Result: reproduced. In the source data, p-RAB3A and p-RAB3C are higher in GS than in WT and than in GS with MLi-2. With contrasts on the pooled variance, Sidak-adjusted over three pairs, the four comparisons give p = 0.0202 and 0.00688 (RAB3A) and 0.00358 and 0.0415 (RAB3C), with F = 8.593, 11.33, 14.76 and 7.398: the legend's values. GS with MLi-2 does not differ from WT (adjusted p = 0.963 and 0.622), consistent with a return to WT levels. Adjusting over two pairs gives smaller p-values (0.0135, 0.00459, 0.00239, 0.0279), so the legend's numbers follow three pairs. The blots were not quantified again.

fig3d-rim-binds-unphosphorylated¶

RIM1 and RIM2 bind unphosphorylated RAB3A in preference to RAB3A phosphorylated at T86, while RILPL1 and RILPL2 prefer the phosphorylated form.

Data: the DIA-NN protein intensities of PRIDE PXD065125, six pulldowns with each bait, paired in run order (data check).

In [29]:
phos_cols = [f"phos_{k}" for k in range(1, 7)]
unphos_cols = [f"unphos_{k}" for k in range(1, 7)]
rows = []
for gene in ("Rims1", "Rims2", "Rilpl1", "Rilpl2"):
    for _, r in pull[pull.Genes == gene].iterrows():
        rows.append({"gene": gene, "protein_group": r["Protein.Group"], "n_unphos": int(r[unphos_cols].notna().sum()),
                     "n_phos": int(r[phos_cols].notna().sum()), **archives.paired_test(r)})
res3 = pd.DataFrame(rows)
res3["values"] = res3.n_unphos + res3.n_phos
res3["used"] = False
for gene, g in res3.groupby("gene", sort=False):
    res3.loc[g["values"].idxmax(), "used"] = True
print("Paired two-sided t-test of log2 intensity, RAB3A against p-RAB3A pulldowns (paper: RIM2 p = 0.011, RILPL1 p = 0.002):")
print(res3.to_string(index=False, float_format=lambda v: f"{v:.3g}"))
print("Groups shared between genes:", pull[pull.Genes.str.contains("Rims1|Rims2|Rilpl", na=False) & pull.Genes.str.contains(";")][["Genes", "Protein.Group"]].to_dict("records"))
used = res3[res3.used].set_index("gene")
holds = {g: bool((used.loc[g, "log2FC_unphos_minus_phos"] > 0) == g.startswith("Rims") and used.loc[g, "p"] < 0.05) for g in used.index}
print("Holds under the criterion's paired test (RIMs higher with RAB3A, RILPLs higher with p-RAB3A, p < 0.05):", holds, "->",
      sum(holds.values()), "of 4")

# Variant: the same paired test on intensities without the log.
lin = {g: stats.ttest_rel(2 ** pull[pull.Genes == g][unphos_cols].iloc[0].to_numpy(float),
                          2 ** pull[pull.Genes == g][phos_cols].iloc[0].to_numpy(float)).pvalue for g in ("Rims2", "Rilpl1")}
print("Variant, paired t-test on linear intensities (the first group of each gene):", {k: round(float(v), 4) for k, v in lin.items()})
r2 = pull[pull.Genes == "Rilpl2"].iloc[0]
print("RILPL2 values with RAB3A:", int(r2[unphos_cols].notna().sum()), "of 6; with p-RAB3A:", int(r2[phos_cols].notna().sum()), "of 6,",
      "log2 from", round(float(r2[phos_cols].min()), 2), "to", round(float(r2[phos_cols].max()), 2),
      "; the paired test has no pair, so the criterion's test does not find RILPL2 higher with p-RAB3A")

# Variant: the Methods' imputation, then an unpaired Student t-test, on every protein group.
rng3 = np.random.default_rng(1933)
imp = archives.impute(pull, phos_cols + unphos_cols, rng3)
t3 = stats.ttest_ind(imp[unphos_cols], imp[phos_cols], axis=1)
imp["log2FC"] = imp[unphos_cols].mean(axis=1) - imp[phos_cols].mean(axis=1)
imp["p"] = t3.pvalue
print("\nVariant, imputation (seeded) and unpaired t-test:")
print(imp[imp.Genes.isin(["Rims1", "Rims2", "Rilpl1", "Rilpl2"])][["Genes", "Protein.Group", "log2FC", "p"]]
      .to_string(index=False, float_format=lambda v: f"{v:.3g}"))
lim = pd.read_csv(io.BytesIO(archives.fetch(archives.PULLDOWN_LIMMA_URL)[0]))
print(f"\nThe deposited limma table ({len(lim)} protein groups, comparison {lim.Comparison.unique().tolist()}):")
print(lim[lim.Genes.isin(["Rims1", "Rims2", "Rilpl1", "Rilpl2"])][["Genes", "Protein.Group", "logFC", "P.Value", "adj.P.Val"]].to_string(index=False))
print("   groups at P.Value < 0.05 with logFC >= 1 (more with RAB3A):", int(((lim["P.Value"] < 0.05) & (lim.logFC >= 1)).sum()),
      "; with logFC <= -1 (more with p-RAB3A):", int(((lim["P.Value"] < 0.05) & (lim.logFC <= -1)).sum()), "(paper: 3480 proteins, 69 and 16)")
print("   the same with adj.P.Val < 0.05:", int(((lim["adj.P.Val"] < 0.05) & (lim.logFC >= 1)).sum()), "and",
      int(((lim["adj.P.Val"] < 0.05) & (lim.logFC <= -1)).sum()))
rilpl2 = imp[imp.Genes == "Rilpl2"].iloc[0]
holds_imp = dict(holds, Rilpl2=bool(rilpl2.log2FC < 0 and rilpl2.p < 0.05))
print("Variant, RILPL2 from the imputation:", holds_imp, "->", sum(holds_imp.values()), "of 4")
Paired two-sided t-test of log2 intensity, RAB3A against p-RAB3A pulldowns (paper: RIM2 p = 0.011, RILPL1 p = 0.002):
  gene                                       protein_group  n_unphos  n_phos  pairs  log2FC_unphos_minus_phos       p  values  used
 Rims1                                            Q99NE5-7         6       6      6                      2.42 0.00361      12  True
 Rims1          Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6         6       6      6                      2.11  0.0196      12 False
 Rims1 Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6;Q99NE5-7         6       6      6                       2.2 0.00984      12 False
 Rims2                                              Q9EQZ7         6       6      6                      2.17  0.0124      12  True
Rilpl1                                              Q9JJC6         6       6      6                     -6.02 9.8e-05      12  True
Rilpl2                                              Q99LE1         0       6      0                       NaN     NaN       6  True
Groups shared between genes: [{'Genes': 'Rims1;Rims2', 'Protein.Group': 'Q9EQZ7;Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6;Q99NE5-7'}]
Holds under the criterion's paired test (RIMs higher with RAB3A, RILPLs higher with p-RAB3A, p < 0.05): {'Rims1': True, 'Rims2': True, 'Rilpl1': True, 'Rilpl2': False} -> 3 of 4
Variant, paired t-test on linear intensities (the first group of each gene): {'Rims2': 0.0109, 'Rilpl1': 0.0022}
RILPL2 values with RAB3A: 0 of 6; with p-RAB3A: 6 of 6, log2 from 21.13 to 23.47 ; the paired test has no pair, so the criterion's test does not find RILPL2 higher with p-RAB3A

Variant, imputation (seeded) and unpaired t-test:
 Genes                                       Protein.Group  log2FC        p
Rilpl2                                              Q99LE1   -7.92 1.21e-08
 Rims1                                            Q99NE5-7    2.42 0.000172
 Rims1          Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6    2.11  0.00116
 Rims1 Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6;Q99NE5-7     2.2 0.000658
 Rims2                                              Q9EQZ7    2.17 0.000549
Rilpl1                                              Q9JJC6   -6.02 9.72e-07
The deposited limma table (3480 protein groups, comparison ['Rab3Brain-phosRab3Brain']):
 Genes                                       Protein.Group     logFC      P.Value    adj.P.Val
Rilpl2                                              Q99LE1 -7.581403 2.585455e-11 8.997385e-08
 Rims1                                            Q99NE5-7  2.417337 4.742372e-05 4.231655e-03
 Rims1          Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6  2.111374 4.145363e-04 2.060838e-02
 Rims1 Q99NE5;Q99NE5-3;Q99NE5-4;Q99NE5-5;Q99NE5-6;Q99NE5-7  2.201008 2.178605e-04 1.285008e-02
 Rims2                                              Q9EQZ7  2.171487 1.825412e-04 1.134363e-02
Rilpl1                                              Q9JJC6 -6.017170 5.620326e-08 3.911747e-05
   groups at P.Value < 0.05 with logFC >= 1 (more with RAB3A): 121 ; with logFC <= -1 (more with p-RAB3A): 32 (paper: 3480 proteins, 69 and 16)
   the same with adj.P.Val < 0.05: 69 and 16
Variant, RILPL2 from the imputation: {'Rims1': True, 'Rims2': True, 'Rilpl1': True, 'Rilpl2': True} -> 4 of 4

Result: partially reproduced. In the PRIDE pulldown matrix, RIM1 (Q99NE5-7) and RIM2 are higher with RAB3A (log2 differences 2.42 and 2.17, paired p = 0.00361 and 0.0124) and RILPL1 is higher with p-RAB3A (-6.02, p = 9.8e-05). RILPL2 is detected in all six p-RAB3A pulldowns and in none of the RAB3A ones, so the criterion's paired test has no pair and does not find it higher with p-RAB3A: three of four comparisons hold. The data point the way of the claim for RILPL2: with the Methods' imputation, a variant, it is higher with p-RAB3A (log2 difference -7.92, p = 1.21e-08), and the deposited limma table gives logFC -7.58. The other two RIM1 groups agree (paired p = 0.0196 and 0.00984). The paper's p-values for RIM2 and RILPL1 (0.011 and 0.002) are those of the paired test on intensities without the log (0.0109 and 0.0022). The deposited limma table agrees in direction for every group. At the text's p-value < 0.05 and |log2FC| >= 1 it gives 121 and 32 proteins; the paper's 69 and 16 are the counts at adjusted p < 0.05.

fig4d-fewer-active-zones¶

Fewer TH+/VAMP2+ striatal synaptosomes from G2019S mice contain bassoon, and the remaining bassoon clusters are larger.

Data: (A) the per-area values on Zenodo; (B) the images of BioImage Archive S-BIAD2074, measured in the data check with the Methods' FIJI procedure as re-implemented in archives.py.

In [30]:
rows = []
for panel, label in (("4D", "percent of TH+/VAMP2+ with bassoon"), ("4E", "bassoon area (um2)")):
    d = f4de[f4de.panel == panel]
    gs, wt = d[d.group == "GS"].value, d[d.group == "WT"].value
    reps = d.groupby(["group", "replicate"]).value.mean()
    rows.append({"part": "A", "panel": panel, "measure": label, "n_WT": len(wt), "n_GS": len(gs), "mean_WT": wt.mean(),
                 "mean_GS": gs.mean(), "p": archives.ttest(gs, wt)[1], "d_GS_minus_WT": archives.cohens_d(gs, wt),
                 "p_welch": archives.ttest(gs, wt, equal_var=False)[1], "p_mouse_means": archives.ttest(reps["GS"], reps["WT"])[1]})
d = f4de[(f4de.panel == "4D") & ~((f4de.group == "GS") & (f4de.value < 1))]
print("(A) Source data, two-tailed unpaired Student t-tests over areas (paper: 4D p < 0.0001, 4E p = 0.0301):")
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.4g}"))
print(f"   4D without the GS value under 1 %: p = {archives.ttest(d[d.group == 'GS'].value, d[d.group == 'WT'].value)[1]:.3g}")
print("   4D per replicate (mean):", f4de[f4de.panel == "4D"].groupby(["replicate", "group"]).value.mean().round(2).unstack().to_dict("index"))
print("   4E per replicate (mean):", f4de[f4de.panel == "4E"].groupby(["replicate", "group"]).value.mean().round(4).unstack().to_dict("index"))

rows = []
for folder, col, label in (("BSN", "percent", "percent with bassoon"), ("BSN-area", "area_overlap", "area, reading (i) overlap"),
                           ("BSN-area", "area_bassoon", "area, reading (ii) bassoon particle")):
    d = syn[(syn.folder == folder)].dropna(subset=[col])
    gs, wt = d[d.group == "GS"][col], d[d.group == "WT"][col]
    mice = d.groupby(["group", "mouse"])[col].mean()
    rows.append({"part": "B", "folder": folder, "measure": label, "images_WT": len(wt), "images_GS": len(gs),
                 "dropped": int((syn.folder == folder).sum() - len(d)), "mean_WT": wt.mean(), "mean_GS": gs.mean(),
                 "min": d[col].min(), "max": d[col].max(), "p": archives.ttest(gs, wt)[1], "d_GS_minus_WT": archives.cohens_d(gs, wt),
                 "p_mouse_means": archives.ttest(mice["GS"], mice["WT"])[1]})
print("\n(B) Images, the same tests over images (dropped: images with no particle to measure):")
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.4g}"))
print("   per mouse (mean over images):")
print(syn.groupby(["folder", "group", "mouse"])[["percent", "area_overlap", "area_bassoon", "th_vamp2", "vamp2_pos"]].mean().round(3).to_string())
(A) Source data, two-tailed unpaired Student t-tests over areas (paper: 4D p < 0.0001, 4E p = 0.0301):
part panel                            measure  n_WT  n_GS  mean_WT  mean_GS         p  d_GS_minus_WT   p_welch  p_mouse_means
   A    4D percent of TH+/VAMP2+ with bassoon    39    35    21.38    12.01 6.379e-05        -0.9889 8.085e-05         0.2628
   A    4E                 bassoon area (um2)    43    51  0.07496  0.08616   0.03006         0.4562   0.02882         0.4736
   4D without the GS value under 1 %: p = 0.000118
   4D per replicate (mean): {1: {'GS': 9.39, 'WT': 19.41}, 2: {'GS': 4.88, 'WT': 16.42}, 3: {'GS': 23.52, 'WT': 27.26}}
   4E per replicate (mean): {1: {'GS': 0.0798, 'WT': 0.0665}, 2: {'GS': 0.0691, 'WT': 0.0599}, 3: {'GS': 0.0897, 'WT': 0.0947}, 4: {'GS': 0.1103, 'WT': 0.0902}}

(B) Images, the same tests over images (dropped: images with no particle to measure):
part   folder                             measure  images_WT  images_GS  dropped  mean_WT  mean_GS     min    max      p  d_GS_minus_WT  p_mouse_means
   B      BSN                percent with bassoon         39         35        1    52.38    48.83   6.667    100 0.4588        -0.1734         0.6987
   B BSN-area           area, reading (i) overlap         43         49        1  0.06956  0.06824 0.03154 0.1371 0.8052       -0.05168         0.6511
   B BSN-area area, reading (ii) bassoon particle         43         49        1    0.141    0.132 0.06337 0.2296 0.2064        -0.2659         0.3533
   per mouse (mean over images):
                      percent  area_overlap  area_bassoon  th_vamp2  vamp2_pos
folder   group mouse                                                          
BSN      GS    1       69.685           NaN           NaN    25.786     83.214
               2       27.140           NaN           NaN    24.400    128.800
               3       44.306           NaN           NaN   111.333    319.083
         WT    1       60.816           NaN           NaN    30.000    110.357
               2       52.100           NaN           NaN    38.600    140.700
               3       44.703           NaN           NaN   106.333    318.933
BSN-area GS    1          NaN         0.057         0.138       NaN      8.462
               3          NaN         0.057         0.123       NaN     39.067
               4          NaN         0.086         0.132       NaN     15.083
               5          NaN         0.077         0.139       NaN     10.000
         WT    1          NaN         0.061         0.132       NaN     12.429
               3          NaN         0.051         0.110       NaN     36.800
               4          NaN         0.086         0.178       NaN      7.833
               5          NaN         0.107         0.187       NaN      8.000

Result: partially reproduced. (A) In the source data, fewer TH+/VAMP2+ synaptosomes contain bassoon in GS (12.0 against 21.4 %, p = 6.38e-05; 0.000118 without the value under 1 %) and the bassoon area is larger (0.0862 against 0.0750 um2, p = 0.0301, the paper's value), so part A holds. Both tests treat imaging areas as independent; with one value per mouse (3 or 4 per group) p = 0.263 and 0.474. (B) The Methods' FIJI procedure as re-implemented here finds neither effect in the images: 48.8 against 52.4 % with bassoon (GS against WT, p = 0.459), and a bassoon area of 0.0682 against 0.0696 um2 (overlap, p = 0.805) or 0.132 against 0.141 um2 (bassoon particle, p = 0.206). The re-implementation keeps far fewer synaptosomes than the paper (median 183 VAMP2 particles per image against about 1000; the threshold alone gives a median of 1186 objects, and the size limit removes most of them) and finds percentages more than twice the paper's. Part B may therefore fail because of this attempt's segmentation, and its null result is weak evidence against the claim.

fig4i-rim1-reduced¶

RIM1 is reduced in striatal synaptosomes of G2019S mice (p = 0.0245) but not in other striatal fractions or the SNc.

Data: the band values on Zenodo (doi:10.5281/zenodo.19930567); the blots are not re-quantified.

In [31]:
names = {"4G": "synaptophysin/actin, synaptosomes", "4H": "Figure 4H protein, synaptosomes", "4I": "RIM1, synaptosomes",
         "4J": "RIM1, S1 fraction", "4L": "RIM1, SNc"}
rows = []
for k, v in blots.items():
    t, p = archives.ttest(v["GS"], v["WT"])
    rows.append({"panel": k, "what": names[k], "n_WT": len(v["WT"]), "n_GS": len(v["GS"]), "mean_WT": v["WT"].mean(),
                 "mean_GS": v["GS"].mean(), "t": t, "p": p, "p_welch": archives.ttest(v["GS"], v["WT"], equal_var=False)[1],
                 "d_GS_minus_WT": archives.cohens_d(v["GS"], v["WT"]),
                 "range": f"{min(v['WT'].min(), v['GS'].min()):.3f} to {max(v['WT'].max(), v['GS'].max()):.3f}"})
print("Two-tailed unpaired Student t-tests, GS against WT (paper: 4I p = 0.0245; 4G, 4J and 4L not significant):")
print(pd.DataFrame(rows).to_string(index=False, float_format=lambda v: f"{v:.4g}"))
Two-tailed unpaired Student t-tests, GS against WT (paper: 4I p = 0.0245; 4G, 4J and 4L not significant):
panel                              what  n_WT  n_GS  mean_WT  mean_GS        t       p  p_welch  d_GS_minus_WT          range
   4G synaptophysin/actin, synaptosomes     6     6    1.268     1.11  -0.7959  0.4446   0.4454        -0.4595 0.663 to 1.918
   4H   Figure 4H protein, synaptosomes     6     6   0.3085   0.2846  -0.4913  0.6338   0.6338        -0.2836 0.201 to 0.455
   4I                RIM1, synaptosomes     6     6   0.3185   0.2056   -2.645 0.02454  0.03018         -1.527 0.109 to 0.472
   4J                 RIM1, S1 fraction     6     6   0.2613   0.2721   0.1341   0.896   0.8964        0.07742 0.144 to 0.583
   4L                         RIM1, SNc     6     6        1   0.9817 -0.08243  0.9359   0.9372       -0.04759 0.398 to 1.968

Result: reproduced. RIM1 in synaptosomes is lower in GS (0.206 against 0.319, two-tailed p = 0.0245, the paper's value; Cohen's d -1.53), and RIM1 in the S1 fraction (p = 0.896) and in the SNc (p = 0.936) does not differ. Synaptophysin (4G, p = 0.445) and the protein of 4H (p = 0.634) do not differ either. The test starts from the deposited band values.

fig5-bassoon-vulnerable-axons¶

Bassoon cluster density is reduced and cluster volume increased in Aldh1a1+ but not Aldh1a1- dopamine axons of G2019S mice, and the same holds in Anxa1+ axons.

Data: the per-section values on Zenodo; the 542 GB of SIM images of S-BIAD2071 are matched by file name in the data check.

In [32]:
dup_cols = set(wide[wide.round(9).duplicated(keep="first")].index.get_level_values("column"))
print("Sections counted once (columns of the source sheet dropped as repeats):", sorted(dup_cols))
paper5 = {"5D": {"cell": ("12.75", "0.0006"), "group": ("1.277", "0.2622"), "interaction": ("4.838", "0.0311"), "sidak+": "0.0344"},
          "5E": {"cell": ("4.607", "0.0354"), "group": ("1.277", "0.0252"), "interaction": ("0.8688", "0.3545"), "sidak+": "0.0385"}}
parts = {}
for variant, data in (("main", f5[~f5.column.isin(dup_cols)]), ("as deposited", f5)):
    for panel in ("5D", "5E"):
        d = data[data.panel == panel].dropna(subset=["value"])
        anova, mse, dfr = archives.twoway_anova(d)
        sid = archives.sidak_within(d, mse, dfr)
        print(f"\n{panel}, {variant}: two-way ANOVA (paper: cell type F {paper5[panel]['cell'][0]}, p {paper5[panel]['cell'][1]};",
              f"genotype F {paper5[panel]['group'][0]}, p {paper5[panel]['group'][1]}; interaction F {paper5[panel]['interaction'][0]},",
              f"p {paper5[panel]['interaction'][1]}; Sidak Aldh1a1+ p {paper5[panel]['sidak+']})")
        print(anova.to_string(index=False, float_format=lambda v: f"{v:.4g}"))
        print(sid.to_string(index=False, float_format=lambda v: f"{v:.4g}"))
        if variant == "main":
            s = sid.set_index("cell")
            sign = -1 if panel == "5D" else 1
            parts[f"{panel} Aldh1a1+"] = bool(sign * (s.loc["Aldh1a1+", "mean_GS"] - s.loc["Aldh1a1+", "mean_WT"]) > 0 and s.loc["Aldh1a1+", "p_sidak"] < 0.05)
            parts[f"{panel} Aldh1a1- not different"] = bool(s.loc["Aldh1a1-", "p_sidak"] >= 0.05)
z = f5[(f5.panel == "5D") & (f5.value == 0)]
print("\nZero values in 5D:", z[["group", "mouse", "section", "cell"]].to_dict("records"))
print("\nAnxa1 (5G density, 5H volume), two-tailed unpaired Student t-tests (paper: 5G p = 0.0374, 5H p = 0.0148):")
for panel, sign in (("5G", -1), ("5H", 1)):
    d = f5gh[f5gh.panel == panel]
    gs, wt = d[d.group == "GS"].value, d[d.group == "WT"].value
    t, p = archives.ttest(gs, wt)
    print(f"   {panel}: n WT {len(wt)}, GS {len(gs)}; mean WT {wt.mean():.5g}, GS {gs.mean():.5g}; t = {t:.3f}, p = {p:.3g};",
          f"Welch p = {archives.ttest(gs, wt, equal_var=False)[1]:.3g}; d (GS - WT) = {archives.cohens_d(gs, wt):.2f}")
    parts[f"{panel} Anxa1"] = bool(sign * (gs.mean() - wt.mean()) > 0 and p < 0.05)
print("\nParts that hold:", parts, "->", sum(parts.values()), "of 6")
Sections counted once (columns of the source sheet dropped as repeats): [5]

5D, main: two-way ANOVA (paper: cell type F 12.75, p 0.0006; genotype F 1.277, p 0.2622; interaction F 4.838, p 0.0311; Sidak Aldh1a1+ p 0.0344)
     factor      F    df         p
       cell  12.87 1, 69 0.0006182
      group 0.9671 1, 69    0.3288
interaction  4.231 1, 69   0.04347
    cell  n_GS  n_WT  mean_GS  mean_WT      t       p  p_sidak
Aldh1a1+    21    18   0.1644   0.2171 -2.224 0.02942  0.05798
Aldh1a1-    17    17   0.2623   0.2437 0.7354  0.4646   0.7133

5E, main: two-way ANOVA (paper: cell type F 4.607, p 0.0354; genotype F 1.277, p 0.0252; interaction F 0.8688, p 0.3545; Sidak Aldh1a1+ p 0.0385)
     factor     F    df       p
       cell 4.851 1, 67 0.03108
      group 4.592 1, 67 0.03576
interaction  1.04 1, 67  0.3115
    cell  n_GS  n_WT  mean_GS  mean_WT     t      p  p_sidak
Aldh1a1+    21    18  0.01301  0.01179 2.354 0.0215  0.04254
Aldh1a1-    17    15  0.01347  0.01303 0.758 0.4511   0.6987

5D, as deposited: two-way ANOVA (paper: cell type F 12.75, p 0.0006; genotype F 1.277, p 0.2622; interaction F 4.838, p 0.0311; Sidak Aldh1a1+ p 0.0344)
     factor     F    df         p
       cell 12.75 1, 71 0.0006426
      group 1.277 1, 71    0.2622
interaction 4.838 1, 71    0.0311
    cell  n_GS  n_WT  mean_GS  mean_WT      t       p  p_sidak
Aldh1a1+    21    19   0.1644   0.2209 -2.436 0.01736  0.03442
Aldh1a1-    17    18   0.2623   0.2441 0.7324  0.4663   0.7152

5E, as deposited: two-way ANOVA (paper: cell type F 4.607, p 0.0354; genotype F 1.277, p 0.0252; interaction F 0.8688, p 0.3545; Sidak Aldh1a1+ p 0.0385)
     factor      F    df       p
       cell  4.607 1, 69 0.03537
      group  5.234 1, 69 0.02522
interaction 0.8688 1, 69  0.3545
    cell  n_GS  n_WT  mean_GS  mean_WT     t       p  p_sidak
Aldh1a1+    21    19  0.01301  0.01181 2.393 0.01942  0.03846
Aldh1a1-    17    16  0.01347  0.01296 0.916  0.3628    0.594

Zero values in 5D: [{'group': 'WT', 'mouse': 1723, 'section': 2, 'cell': 'Aldh1a1-'}]

Anxa1 (5G density, 5H volume), two-tailed unpaired Student t-tests (paper: 5G p = 0.0374, 5H p = 0.0148):
   5G: n WT 16, GS 18; mean WT 0.25058, GS 0.1901; t = -2.171, p = 0.0374; Welch p = 0.0411; d (GS - WT) = -0.75
   5H: n WT 16, GS 18; mean WT 0.011828, GS 0.013137; t = 2.576, p = 0.0148; Welch p = 0.0158; d (GS - WT) = 0.89

Parts that hold: {'5D Aldh1a1+': False, '5D Aldh1a1- not different': True, '5E Aldh1a1+': True, '5E Aldh1a1- not different': True, '5G Anxa1': True, '5H Anxa1': True} -> 5 of 6

Result: partially reproduced. Five of the six parts hold. With section 5 of WT mouse 1723 counted once (its four values equal those of section 4), Aldh1a1+ density is lower in GS (0.164 against 0.217) but the Sidak-adjusted p is 0.058, so part 1 fails; Aldh1a1- density does not differ (p = 0.713). Bassoon volume is larger in GS Aldh1a1+ axons (Sidak p = 0.0425) and not in Aldh1a1- axons (p = 0.699). In Anxa1+ axons density is lower (p = 0.0374) and volume larger (p = 0.0148), the paper's values. With the section counted twice, as deposited, all six parts hold and the ANOVA gives the legend's numbers (5D: F 12.75, 1.277, 4.838, Sidak p 0.0344; 5E: Sidak p 0.0385). The legend's genotype F for 5E (1.277) repeats that of 5D; the deposited values give F = 5.234 with the legend's p = 0.0252. The analysis starts from the per-section values; the SIM images were not analysed again.

fig5j-no-axon-loss¶

The volume occupied by TH+ fibres in the dorsal striatum does not differ between G2019S and WT mice.

Data: the per-section values on Zenodo; the images of S-BIAD2072 are matched by file name in the data check.

In [33]:
gs, wt = f5j[f5j.group == "GS"].value, f5j[f5j.group == "WT"].value
t, p = archives.ttest(gs, wt)
print(f"Sections: WT {len(wt)}, GS {len(gs)}; mean TH volume (normalised) WT {wt.mean():.4f} (SEM {wt.sem():.4f}), GS {gs.mean():.4f} (SEM {gs.sem():.4f});",
      f"range {f5j.value.min():.3f} to {f5j.value.max():.3f}")
print(f"Two-tailed unpaired Student t-test: t = {t:.3f}, p = {p:.3g}; difference of means (GS - WT) {gs.mean() - wt.mean():.4f};",
      f"Cohen's d (GS - WT) {archives.cohens_d(gs, wt):.2f}; Welch p = {archives.ttest(gs, wt, equal_var=False)[1]:.3g}")
print("Per animal-column group (the sheet gives one animal column for both genotypes):")
print(f5j.groupby(["animal_column", "group"]).value.agg(["size", "mean"]).round(4).unstack().to_string())
Sections: WT 12, GS 12; mean TH volume (normalised) WT 1.0000 (SEM 0.0279), GS 0.9286 (SEM 0.0337); range 0.652 to 1.148
Two-tailed unpaired Student t-test: t = -1.631, p = 0.117; difference of means (GS - WT) -0.0714; Cohen's d (GS - WT) -0.67; Welch p = 0.118
Per animal-column group (the sheet gives one animal column for both genotypes):
              size       mean        
group           GS WT      GS      WT
animal_column                        
3244             3  3  0.9864  0.9911
3757             2  2  1.0045  0.9001
3874             4  4  0.8452  1.0344
4434             3  3  0.9315  1.0295

Result: reproduced. The paper's test does not find a difference in TH volume: two-tailed p = 0.117 over 12 sections per genotype. GS is 7.1 % lower (0.929 against 1.000; Cohen's d -0.67).

Summary¶

Claim Data Outcome Attempt -01
source-data-link dandiset with inputs not reproduced (Anxa1 links; Calb1 does not) not reproduced
fig6e-anxa1-evoked-reduced dandiset reproduced reproduced
fig6e-anxa1-evoked-per-mouse dandiset reproduced reproduced
supp7c-anxa1-evoked-all-powers dandiset reproduced reproduced
fig6f-anxa1-spontaneous-reduced dandiset reproduced reproduced
fig6f-anxa1-spontaneous-per-mouse dandiset partially reproduced partially reproduced
supp8c-calb1-spontaneous-not-reduced dandiset reproduced (p = 0.0509, at the threshold; 0.040 to 0.079 as the window moves) reproduced
supp8e-calb1-evoked-reduced dandiset reproduced reproduced
supp8e-calb1-few-mice-reduced dandiset partially reproduced partially reproduced
cohens-d-anxa1-larger dandiset not reproduced not reproduced
fig1d-lrrk2-enriched-vulnerable elsewhere reproduced blocked, data missing
fig2b-rab3-phosphorylation elsewhere not reproduced blocked, data missing
fig2eg-prab3-increased elsewhere reproduced blocked, data missing
fig3d-rim-binds-unphosphorylated elsewhere partially reproduced blocked, data missing
fig4d-fewer-active-zones elsewhere partially reproduced blocked, data missing
fig4i-rim1-reduced elsewhere reproduced blocked, data missing
fig5-bassoon-vulnerable-axons elsewhere partially reproduced blocked, data missing
fig5j-no-axon-loss elsewhere reproduced blocked, data missing

The photometry outcomes are those of attempt -01: the data, the code and the numbers are the same. After the first verification round, fig3d-rim-binds-unphosphorylated was changed from reproduced to partially reproduced, as its criterion's paired test cannot score RILPL2. The eight claims of Figures 1 to 5 were blocked in attempt -01 under pilot-6; under pilot-7 they are tested on the data the paper deposited elsewhere and are counted apart from the dandiset's claims.

A failure to reproduce here may be a failure of this attempt, not of the paper: see the reasoning and the differences from the paper's method.

How the analysis differs from the paper's:

  • The evoked integral is taken over the light-on period, as the Methods state; the paper's numbers come from the code's window, 0.1 s before to 1.0 s after onset (its published integrals equal that measure times 0.0001). Both are shown.
  • Spontaneous transients are measured by their integral, as the Methods state; the paper's published values are 0.005 times the integral divided by the number of samples in each transient. Both are shown; the published measure gives the paper's Figure 6F p-value and per-mouse count exactly.
  • Per-mouse tests are shown under four readings, as the Methods (Welch), the legends (one-tailed) and the code (Student, two-tailed) disagree.
  • The window chunking_index.m computes as written starts 1 s after onset; the source data show the paper used the intended window starting 1 s before onset. The literal window is shown as a variant only.
  • The claims of Figures 1, 2E to 2G, 4I and 5 start from the paper's deposited per-section, per-area and per-blot values, as the Imaris analyses and the blot quantification cannot be repeated here. Figure 2B starts from the deposited peptide abundances without normalisation, which the criterion did not fix; a median-centred variant is shown. Figure 3 uses log2 intensities, where the paper's p-values are on intensities without the log; RILPL2 has no pair for the paired test, so it does not hold under the criterion, and the Methods' imputation is shown as a variant. Figure 4D and 4E add a re-implementation of the Methods' FIJI procedure in Python. One Figure 5 section entered twice is counted once.

What was found about the dandiset:

  • The Anxa1 recordings are those behind Figure 6 and Supplementary Figure 7: the matched published traces equal the dandiset's dF/F to within 5.7e-13, and the evoked integrals and transient counts match, except one stimulation of mouse 4398 that the processed series cuts off 0.8 s after onset.
  • The Calb1 dF/F in the dandiset is not the trace behind Supplementary Figure 8. None of the 384 published traces or integrals match it, no epoch of any power matches a published trace, and recomputing from the raw signal with any single background fraction does not close the gap. The raw signal is there, but the processing the paper used for Calb1 is not, so the Calb1 results here are of the dandiset's processing, not the paper's.
  • The epochs table describes one kind of train and four powers; the files hold two kinds of train and eight powers, and two Anxa1 GS mice received the paper's powers as 0.33 s trains of 9 ms pulses; in these two mice the response does not follow the labelled power.
  • The dF/F unit is given as a.u. for a series in percent; two trains have a pulse length of 0; the four excluded mice are left out without a note; the archive summary lists a behavioral approach; and the paper does not cite the dandiset. The dandiset does not link to the Zenodo, PRIDE and BioImage Archive deposits that hold the rest of the paper's data. None of these findings of attempt -01 is fixed.

What was found about the data in other archives:

  • In PRIDE PXD065006 and Supplementary data 1, the RAB3 T86 phosphopeptide is higher in the samples labelled MLi-2, and the paper's volcano table is MLi-2 minus vehicle (to within 1.6e-06 after a constant), while the legend reads a positive difference as higher with vehicle. The table gives 254 peptides at the legend's thresholds, not 289.
  • The paper's counts of 69 and 16 RAB3A-preferring and p-RAB3A-preferring proteins are at adjusted p < 0.05, where the text says p-value < 0.05; its Figure 1D p-value is not that of the test the legend names.
  • One Figure 5D/5E section appears twice in the source data; counting it once moves one comparison to p = 0.058. Figure 4E has 51 GS areas against the legend's 57, and the 5E legend repeats the 5D genotype F.
  • The source data do not identify the GS animals of Figures 5G, 5H and 5J, and the image studies hold images and mice that the source data do not (an extra WT mouse in the Anxa1 study, mouse 1923 against 1723, more images than sections), without saying which images the figures used. The OME metadata of three synaptosome images of S-BIAD2074 give 488 nm for all three channels.
In [34]:
print(f"total run time {time.time() - started:.0f} s")
total run time 482 s