Scholl et al. (2015) on CRCNS pvc-10¶
Paper: Scholl, Pattadkal, Dilly, Priebe and Zemelman (2015), "Local Integration Accounts for Weak
Selectivity of Mouse Neocortical Parvalbumin Interneurons", Neuron 87:424-436,
doi:10.1016/j.neuron.2015.06.030. Claims file: claims/scholl-2015.yaml, written from the version
of record (main text, Experimental Procedures and Supplemental Information legends).
Data set: CRCNS pvc-10, "Disparity selectivity in mouse V1 measured using two-photon calcium
imaging", doi:10.6080/K0GT5K3V, read anonymously from the public S3 bucket crcnsarchive.
Version. CRCNS data sets are not versioned, so the version is recorded as unversioned. The data
set as published is the folder pvc-10/live/, the one its file list (live/filelist.txt) and its
live/checksums.md5 describe; every file there is listed with an MD5 sum. The bucket also holds,
under the same prefix, a folder pvc-10/original/to_remove/ with processed per-cell MATLAB structs
that neither list describes. This attempt uses them, for the reasons given in the data check: they
are public and under the data set's own identifier, each file read is identified by the ETag the
listing gives (printed below), and for the 9 cells checked on one plane the stored traces equal the
mask means of the published movie.
Every tested claim rests on them, and on the assumption that their cells are the paper's.
Outcome in brief. The published folder holds the raw movies, stimulus tables and plane shifts of 6
PV-Cre;Ai14 mice, and no cell masks, PV+/PV- labels or per-cell measures. The unpublished structs
hold per-cell responses, DSI, preferences and positions for PV+ and PV- cells of mice 8, 9 and 10,
and PV+ cells of mouse 7. Seven claims are blocked (histology, CaMKIIa mice, neuropil patches, and
the counts of all identified cells, none of which is deposited). Eighteen are tested on 3 of the 6
animals (4 for the PV+ side of Figure 3). The cells are taken as the authors' binocmonocinds
lists, an assumption the data check explains; most outcomes that rest on it change under another
cell set, and the notebook shows them all.
| Claim | Outcome |
|---|---|
| fig1e-pv-tdtomato-colocalization | blocked, data_missing: no histology |
| cell-counts-responsive | blocked, data_missing: the identified cells of the six mice are not deposited |
| fig3abc-pv-more-binocular-fraction | reproduced (assumed) |
| fig3c-contralateral-bias | reproduced |
| fig3-pv-lower-monocularity | partially reproduced (assumed) |
| mi-per-animal | reproduced on 3 animals (assumed) |
| fig3def-pv-weaker-disparity-selectivity | partially reproduced (assumed) |
| mi-dsi-relation | not reproduced (assumed) |
| pv-larger-dff-low-dsi | not reproduced |
| figs3-pv-distinct-from-neuropil | blocked, data_missing: no neuropil patches, no non-responsive PV+ cells |
| fig4ag-salt-and-pepper | reproduced |
| fig4d-pv-od-matches-local-50um | not reproduced (assumed) |
| fig4f-pv-od-spatial-decay | partially reproduced |
| fig4f-od-length-constant | not reproduced |
| fig4ef-pvminus-od-unrelated | partially reproduced (assumed) |
| figs6ab-pvminus-pv-like-od | reproduced (assumed) |
| figs4-same-plane-control | not reproduced |
| figs5-neuropil-no-relation | blocked, data_missing: no neuropil patches |
| fig5-camkii-responsive | blocked, data_missing: no CaMKIIa animals |
| fig5e-camkii-od-unrelated | blocked, data_missing: no CaMKIIa animals |
| fig4i-pv-disparity-matches-local | not reproduced |
| fig4k-pv-disparity-length-constant | not reproduced |
| fig4jk-pvminus-disparity-weak | not reproduced |
| figs6cd-pvminus-pv-like-disparity | reproduced (assumed) |
| fig5f-camkii-disparity-unrelated | blocked, data_missing: no CaMKIIa animals |
The table gives the outcomes after the third verification round, which agreed with two changes proposed after the second: fig4d-pv-od-matches-local-50um to not reproduced (its criterion has no partial case, and the count fails under every reading), and fig4f-pv-od-spatial-decay to partially reproduced (under readings 7b and 1b only the 50 um slope is significant).
import collections
import hashlib
import resource
import time
import matplotlib.pyplot as plt
import numpy as np
import pvc10
T0 = time.time()
print("dataset", pvc10.DATASET, pvc10.VERSION, "doi", pvc10.DOI, "folder", pvc10.LIVE)
dataset pvc-10 unversioned doi 10.6080/K0GT5K3V folder pvc-10/live/
Data check¶
Files in the bucket¶
The data descriptor (live/docs, Version 0.8, April 8, 2016) says the data are from 6 animals in folders mouse5 to mouse10, with green and red channel movies and a stimulus file per plane and a stats file per mouse. It also says "The dataset provided here contains information about the fluorescence traces, peak responses per condition, the measured binocular characteristics for each cell like its disparity selectivity index, preferred relative disparity, the position of the cell in the imaging volume". The listing below checks what is there.
listing = pvc10.list_bucket()
by_folder = collections.defaultdict(lambda: [0, 0])
for k, s in listing:
if k.endswith("/"):
continue
parts = k.split("/")
folder = "/".join(parts[1:3])
if parts[1] == "live" and parts[2] == "data":
folder = "live/data/" + parts[3]
by_folder[folder][0] += 1
by_folder[folder][1] += s
print(f"{'folder':28s} {'files':>6s} {'GB':>8s}")
for f, (n, s) in sorted(by_folder.items()):
print(f"{f:28s} {n:6d} {s / 1e9:8.2f}")
live_data = [(k, s) for k, s in listing if k.startswith(pvc10.LIVE + "data/") and not k.endswith("/")]
print("live/data total", round(sum(s for _, s in live_data) / 1e9, 1), "GB in", len(live_data), "files")
kinds = collections.Counter()
for k, _ in live_data:
name = k.rsplit("/", 1)[1]
kind = ("green" if name.endswith("green.mat") else "red" if name.endswith("red.mat")
else "stim" if name.endswith("stim.mat") else "stats" if name.endswith("stats.mat") else "other")
kinds[kind] += 1
print("live/data files by kind", dict(kinds))
print("files in live/ outside data/:", [k.split("live/")[1] for k, _ in listing
if k.startswith(pvc10.LIVE) and not k.startswith(pvc10.LIVE + "data") and not k.endswith("/")])
folder files GB
live/checksums.md5 1 0.00
live/data/mouse10 19 20.30
live/data/mouse5 46 67.46
live/data/mouse6 28 42.25
live/data/mouse7 46 68.43
live/data/mouse8 19 23.48
live/data/mouse9 22 29.85
live/docs 2 0.00
live/filelist.txt 1 0.00
live/script 2 0.00
original/to_remove 22 4.58
live/data total 251.8 GB in 180 files
live/data files by kind {'green': 58, 'red': 58, 'stim': 58, 'stats': 6}
files in live/ outside data/: ['checksums.md5', 'docs/crcns_pvc-10_data_description.doc', 'docs/crcns_pvc-10_data_description.pdf', 'filelist.txt', 'script/cellmasks.mat', 'script/examplecode.m']
P = pvc10.planes()
md5 = pvc10.checksums()
print("planes per mouse:", {m: len(d) for m, d in P.items()}, "total", sum(len(d) for d in P.values()))
print("paper: 6 animals, 6 to 15 focal planes each, 150 to 460 um below the pia")
for m, ds in P.items():
st = pvc10.stats_table(m)
same = sorted(st[:, 0].astype(int).tolist()) == ds
shifts = sorted({(float(a), float(b)) for a, b in st[:, 2:]})
print(f"mouse{m}: depths {ds[0]} to {ds[-1]} um; stats depths match file names: {same}; "
f"stimulus duration {sorted(set(st[:, 1]))} s; plane shifts (x, y um) {shifts}")
listed = set(md5)
missing_md5 = [k for k, _ in live_data if k.split("live/")[1] not in listed]
print("live/data files without an MD5 in checksums.md5:", len(missing_md5))
planes per mouse: {5: 15, 6: 9, 7: 15, 8: 6, 9: 7, 10: 6} total 58
paper: 6 animals, 6 to 15 focal planes each, 150 to 460 um below the pia
mouse5: depths 180 to 380 um; stats depths match file names: True; stimulus duration [np.float64(1.5)] s; plane shifts (x, y um) [(0.0, 0.0), (300.0, -300.0)]
mouse6: depths 200 to 360 um; stats depths match file names: True; stimulus duration [np.float64(1.5)] s; plane shifts (x, y um) [(0.0, 0.0)]
mouse7: depths 180 to 460 um; stats depths match file names: True; stimulus duration [np.float64(2.0)] s; plane shifts (x, y um) [(0.0, 0.0), (157.0, -70.0)]
mouse8: depths 205 to 280 um; stats depths match file names: True; stimulus duration [np.float64(2.0)] s; plane shifts (x, y um) [(0.0, 0.0)] mouse9: depths 150 to 270 um; stats depths match file names: True; stimulus duration [np.float64(2.0)] s; plane shifts (x, y um) [(0.0, 0.0)] mouse10: depths 125 to 275 um; stats depths match file names: True; stimulus duration [np.float64(2.0)] s; plane shifts (x, y um) [(0.0, 0.0)] live/data files without an MD5 in checksums.md5: 0
Stimulus tables¶
Each stim file has two columns: the frame at which a stimulus starts and its condition (1 blank, 2 to 9 the binocular phases 0 to 315 deg, 10 ipsilateral, 11 contralateral). The paper says 6 to 7 repeats per focal plane, a 1.5 to 2 s stimulus followed by a 3 s blank, and imaging at 30 Hz.
stims = {}
rows = []
for m, ds in P.items():
dur = pvc10.stats_table(m)[0, 1]
for d in ds:
s = pvc10.stim_table(m, d)
stims[(m, d)] = s
counts = np.bincount(s[:, 1], minlength=12)[1:]
isi = np.diff(s[:, 0])
rows.append((m, d, len(s), counts.min(), counts.max(), set(s[:, 1]) == set(range(1, 12)),
np.median(isi), isi.min(), isi.max(), dur))
print(f"{'mouse':>5s} {'depth':>5s} {'trials':>6s} {'rep min':>7s} {'rep max':>7s} {'11 conds':>8s} "
f"{'ISI med':>7s} {'min':>4s} {'max':>5s} {'stim s':>6s}")
for r in rows:
print(f"{r[0]:5d} {r[1]:5d} {r[2]:6d} {r[3]:7d} {r[4]:7d} {str(r[5]):>8s} {r[6]:7.0f} {r[7]:4d} {r[8]:5d} {r[9]:6.1f}")
reps = np.array([[r[3], r[4]] for r in rows])
print("planes with fewer than 6 repeats of some condition:",
[(r[0], r[1], r[3]) for r in rows if r[3] < 6])
print()
print("Implied frame rate if each cycle is the stimulus plus a 3 s blank (Methods):")
for m in P:
isi = np.median(np.concatenate([np.diff(stims[(m, d)][:, 0]) for d in P[m]]))
dur = pvc10.stats_table(m)[0, 1]
print(f" mouse{m}: median onset interval {isi:.0f} frames, cycle {dur + 3:.1f} s -> "
f"{isi / (dur + 3):.1f} frames/s; at 30 Hz the interval is {isi / 30:.2f} s")
mouse depth trials rep min rep max 11 conds ISI med min max stim s
5 180 77 7 7 True 118 116 120 1.5
5 200 77 7 7 True 118 116 121 1.5
5 220 77 7 7 True 118 116 121 1.5
5 225 77 7 7 True 118 116 122 1.5
5 238 77 7 7 True 118 116 120 1.5
5 260 77 7 7 True 118 117 122 1.5
5 265 77 7 7 True 118 116 127 1.5
5 280 77 7 7 True 118 116 122 1.5
5 282 77 7 7 True 118 116 120 1.5
5 300 77 7 7 True 118 116 123 1.5
5 315 77 7 7 True 118 116 121 1.5
5 320 77 7 7 True 118 117 121 1.5
5 340 77 7 7 True 118 116 126 1.5
5 360 77 7 7 True 118 116 125 1.5
5 380 77 7 7 True 118 116 123 1.5
6 200 77 7 7 True 134 132 149 1.5
6 220 77 7 7 True 133 132 164 1.5
6 240 71 6 7 True 133 132 160 1.5
6 260 66 6 6 True 134 132 138 1.5
6 280 77 7 7 True 133 132 139 1.5
6 300 58 5 6 True 133 132 137 1.5
6 320 75 6 7 True 133 132 169 1.5
6 340 77 7 7 True 133 132 138 1.5
6 360 77 7 7 True 133 132 137 1.5
7 180 77 7 7 True 133 132 1046 2.0
7 200 66 6 6 True 133 132 137 2.0
7 220 66 6 6 True 133 132 137 2.0
7 240 66 6 6 True 133 131 138 2.0
7 260 66 6 6 True 133 132 137 2.0
7 280 66 6 6 True 133 132 137 2.0
7 300 66 6 6 True 133 132 137 2.0
7 320 66 6 6 True 133 132 137 2.0
7 340 66 6 6 True 133 132 137 2.0
7 360 66 6 6 True 133 131 137 2.0
7 380 66 6 6 True 133 131 136 2.0
7 400 66 6 6 True 133 132 137 2.0
7 420 66 6 6 True 133 131 137 2.0
7 440 66 6 6 True 133 132 137 2.0
7 460 66 6 6 True 133 132 136 2.0
8 205 66 6 6 True 131 130 135 2.0
8 220 66 6 6 True 131 130 136 2.0
8 235 66 6 6 True 131 130 135 2.0
8 250 57 5 6 True 131 130 135 2.0
8 265 66 6 6 True 131 130 137 2.0
8 280 66 6 6 True 131 130 135 2.0
9 150 66 6 6 True 133 132 179 2.0
9 170 66 6 6 True 133 132 136 2.0
9 190 66 6 6 True 133 132 137 2.0
9 210 66 6 6 True 133 132 137 2.0
9 230 66 6 6 True 133 132 136 2.0
9 250 66 6 6 True 133 132 136 2.0
9 270 66 6 6 True 133 132 138 2.0
10 125 55 5 5 True 133 132 180 2.0
10 150 45 4 5 True 133 132 136 2.0
10 175 55 5 5 True 133 132 137 2.0
10 200 50 4 5 True 133 132 303 2.0
10 225 55 5 5 True 133 132 137 2.0
10 275 55 5 5 True 133 132 136 2.0
planes with fewer than 6 repeats of some condition: [(6, 300, np.int64(5)), (8, 250, np.int64(5)), (10, 125, np.int64(5)), (10, 150, np.int64(4)), (10, 175, np.int64(5)), (10, 200, np.int64(4)), (10, 225, np.int64(5)), (10, 275, np.int64(5))]
Implied frame rate if each cycle is the stimulus plus a 3 s blank (Methods):
mouse5: median onset interval 118 frames, cycle 4.5 s -> 26.2 frames/s; at 30 Hz the interval is 3.93 s
mouse6: median onset interval 133 frames, cycle 4.5 s -> 29.6 frames/s; at 30 Hz the interval is 4.43 s
mouse7: median onset interval 133 frames, cycle 5.0 s -> 26.6 frames/s; at 30 Hz the interval is 4.43 s mouse8: median onset interval 131 frames, cycle 5.0 s -> 26.2 frames/s; at 30 Hz the interval is 4.37 s mouse9: median onset interval 133 frames, cycle 5.0 s -> 26.6 frames/s; at 30 Hz the interval is 4.43 s mouse10: median onset interval 133 frames, cycle 5.0 s -> 26.6 frames/s; at 30 Hz the interval is 4.43 s
Two departures from the paper show in this table. All six planes of mouse 10 have 4 or 5 repeats of each condition, and single planes of mice 6 and 8 have 5, against the 6 to 7 repeats per plane of the Methods; the structs below hold the same numbers of trials per condition, so they are what the authors analysed. Mouse 10 has a plane at 125 um (cell above), above the 150 um the Methods give as the shallowest. Both are recorded as findings; the structs' cells of these planes are kept, as the authors kept them.
Movies¶
For every plane, the frame count and frame shape of both channels, the range of the first frame, and a hash of the first green frame, to look for recordings deposited twice. Only the first frame of each file is read here.
t = time.time()
movies = {}
for m, ds in P.items():
for d in ds:
for ch in ("green", "red"):
mv = pvc10.Movie(m, d, ch)
f0 = mv.frame(0)
movies[(m, d, ch)] = dict(n=mv.n_frames, shape=f0.shape, dtype=str(mv.frame_dataset(0).dtype),
lo=f0.min(), hi=f0.max(), mean=f0.mean(),
h=hashlib.md5(f0.tobytes()).hexdigest(), img=f0[::4, ::4].copy())
mv.close()
print(f"read {len(movies)} files in {time.time() - t:.0f} s")
print("frame shapes (rows, columns):", collections.Counter(v["shape"] for v in movies.values()))
print("dtypes:", collections.Counter(v["dtype"] for v in movies.values()))
for ch in ("green", "red"):
lo = [v["lo"] for k, v in movies.items() if k[2] == ch]
hi = [v["hi"] for k, v in movies.items() if k[2] == ch]
mn = [v["mean"] for k, v in movies.items() if k[2] == ch]
print(f"{ch}: first-frame minimum {min(lo):.0f} to {max(lo):.0f}, maximum {min(hi):.0f} to {max(hi):.0f}, "
f"mean {min(mn):.1f} to {max(mn):.1f}")
mismatch = [(m, d) for m, ds in P.items() for d in ds if movies[(m, d, 'green')]['n'] != movies[(m, d, 'red')]['n']]
print("planes whose green and red frame counts differ:", mismatch)
short = [(m, d) for m, ds in P.items() for d in ds
if stims[(m, d)][-1, 0] + np.median(np.diff(stims[(m, d)][:, 0])) > movies[(m, d, 'green')]['n']]
print("planes whose last stimulus cycle runs past the last frame:", short)
nf = [movies[(m, d, 'green')]['n'] for m, ds in P.items() for d in ds]
print("frames per plane:", min(nf), "to", max(nf))
hashes = collections.Counter(v["h"] for k, v in movies.items())
print("first frames identical between files:", [h for h, c in hashes.items() if c > 1])
# similarity of first green frames between planes of the same mouse
for m, ds in P.items():
imgs = np.array([movies[(m, d, 'green')]['img'].ravel() for d in ds])
c = np.corrcoef(imgs)
np.fill_diagonal(c, np.nan)
print(f"mouse{m}: highest correlation of first green frames between two planes {np.nanmax(c):.3f}")
print("descriptor: frames of 255 by 456 pixels; paper: 256 by 455 pixels; 300 um field")
read 116 files in 47 s
frame shapes (rows, columns): Counter({(256, 455): 116})
dtypes: Counter({'float64': 116})
green: first-frame minimum -802 to -210, maximum 884 to 2048, mean 33.3 to 281.9
red: first-frame minimum -332 to -84, maximum 580 to 2048, mean 11.8 to 126.4
planes whose green and red frame counts differ: []
planes whose last stimulus cycle runs past the last frame: [(6, 240), (6, 300), (8, 250), (10, 200)]
frames per plane: 6168 to 11677
first frames identical between files: []
mouse5: highest correlation of first green frames between two planes 0.619
mouse6: highest correlation of first green frames between two planes 0.763
mouse7: highest correlation of first green frames between two planes 0.715
mouse8: highest correlation of first green frames between two planes 0.515
mouse9: highest correlation of first green frames between two planes 0.587
mouse10: highest correlation of first green frames between two planes 0.742
descriptor: frames of 255 by 456 pixels; paper: 256 by 455 pixels; 300 um field
What the published files hold per cell¶
The paper's cells "were identified by hand from structure images based on size, shape, and
brightness" and PV+ cells "by selecting OGB-1-filled neurons with co-localized tdTomato
fluorescence" (Experimental Procedures, Data Imaging Analysis). Every claim needs those cells,
their masks and their PV+/PV- labels. The only masks in the published folder are the example ones
in live/script/cellmasks.mat.
cm = pvc10.load_small_mat(pvc10.LIVE + "script/cellmasks.mat")
for k, v in cm.items():
print(k, v.shape, v.dtype, "values", np.unique(v).tolist(), "pixels per mask",
int(v.sum(axis=(0, 1)).min()), "to", int(v.sum(axis=(0, 1)).max()))
print("files in live/ whose names suggest per-cell data (mask, cell, roi, binoc, peak, dsi):",
[k.split("live/")[1] for k, _ in listing if k.startswith(pvc10.LIVE) and not k.endswith("/")
and any(w in k.rsplit("/", 1)[1].lower() for w in ("mask", "cell", "roi", "binoc", "peak", "dsi"))])
cellmasks (256, 455, 50) uint8 values [0, 1] pixels per mask 29 to 55 files in live/ whose names suggest per-cell data (mask, cell, roi, binoc, peak, dsi): ['script/cellmasks.mat']
The bucket listing of original/, with what each MATLAB file holds:
t = time.time()
import fsspec, h5py
for k, s in pvc10.list_bucket(pvc10.DATASET + "/original/"):
if not k.endswith(".mat"):
continue
name = k.rsplit("/", 1)[1]
if name.startswith("binocmonocinds"):
d = pvc10.load_small_mat(k)
print(f"{name:28s} {s:>11d} B indices: {d['inds'].size}")
continue
try:
fh = fsspec.open(pvc10.BUCKET + k, "rb", block_size=2**20).open()
h = h5py.File(fh, "r")
except OSError as e:
print(f"{name:28s} {s:>11d} B cannot be opened: {e}")
continue
for top in [x for x in h.keys() if not x.startswith("#")]:
g = h[top]
fields = list(g.keys())
deps = collections.Counter(float(h[r][()].ravel()[0]) for r in g["depth"][:, 0])
print(f"{name:28s} {s:>11d} B struct {top}: {g[fields[0]].shape[0]} entries, depths {sorted(deps)}")
h.close()
print("fields:", fields)
print(f"({time.time() - t:.0f} s)")
1452382802_binoc7.mat 1401290752 B cannot be opened: Unable to synchronously open file (truncated file: eof = 1401290240, sblock->base_addr = 512, stored_eof = 1425407117)
binoc10.mat 154146225 B struct ce: 84 entries, depths [125.0, 150.0, 175.0, 200.0, 225.0, 275.0]
binoc10PV.mat 25652335 B struct cePV: 14 entries, depths [125.0, 150.0, 175.0, 200.0, 225.0, 275.0] binoc7.mat 719585280 B cannot be opened: Unable to synchronously open file (truncated file: eof = 719584768, sblock->base_addr = 512, stored_eof = 1425407117)
binoc7PV.mat 183975729 B struct cePV: 99 entries, depths [180.0, 200.0, 220.0, 240.0, 260.0, 280.0, 300.0, 320.0, 340.0, 360.0, 380.0, 400.0, 420.0, 440.0, 460.0] binoc7new.mat 1399848960 B cannot be opened: Unable to synchronously open file (truncated file: eof = 1399848448, sblock->base_addr = 512, stored_eof = 1425407117)
binoc8.mat 131143258 B struct ce: 72 entries, depths [205.0, 220.0, 235.0, 250.0, 265.0, 280.0]
binoc8PV.mat 44170630 B struct cePV: 24 entries, depths [205.0, 220.0, 235.0, 250.0, 265.0, 280.0]
binoc9.mat 486048428 B struct ce: 265 entries, depths [150.0, 170.0, 190.0, 210.0, 230.0, 250.0, 270.0]
binoc9PV.mat 36691643 B struct cePV: 20 entries, depths [170.0, 190.0, 210.0, 230.0, 250.0, 270.0] binocmonocinds10.mat 195 B indices: 21 binocmonocinds10PV.mat 177 B indices: 3 binocmonocinds5.mat 475 B indices: 171
binocmonocinds5PV.mat 194 B indices: 19 binocmonocinds6.mat 239 B indices: 61 binocmonocinds6PV.mat 184 B indices: 9 binocmonocinds7.mat 728 B indices: 348
binocmonocinds7PV.mat 229 B indices: 55 binocmonocinds8.mat 205 B indices: 31 binocmonocinds8PV.mat 185 B indices: 10 binocmonocinds9.mat 417 B indices: 137
binocmonocinds9PV.mat 187 B indices: 13 fields: ['Ftrace', 'cyc', 'date', 'depth', 'disparitypref', 'dsi', 'dsineuropil', 'filename', 'masks', 'neuropilcyc', 'neuropilpeaks', 'peakfit', 'peakfitparams', 'peaks', 'sampleG', 'sampleR', 'standard', 'windowlength', 'xy', 'xyshft'] (6 s)
The processed structs in original/to_remove/¶
The bucket holds, under the data set's own prefix pvc-10/, a folder original/to_remove/ that
the published file list and checksums do not describe. Its MATLAB structs hold per-cell data of the
kind the descriptor promises ("fluorescence traces, peak responses per condition, ... disparity
selectivity index, preferred relative disparity, the position of the cell"), which the published
folder live/ lacks.
Decision. These files are read and used for the claims they can test, for mice 8, 9 and 10 (both
populations) and mouse 7 (PV+ only). The basis: they are public, in the archive's own bucket under
the data set's identifier, and each file read is identified by the ETag of the S3 listing, printed
below (for a single-part upload, the MD5 of its content), so a later change is detectable. They are
not part of the data set as published: they are in neither live/filelist.txt nor
live/checksums.md5, the folder's name says they are to be removed, and nothing documents them.
Every outcome that uses them says so, and rests on the assumption, checked as far as the data allow
below, that their cells are the paper's cells. The checks below are: what one entry is, whether
the per-trial responses come from the published movies, how the stored indices are computed, and
which cells the structs hold.
tags = pvc10.etags()
print(f"{'file':28s} {'bytes':>11s} ETag (MD5 of content for single-part uploads)")
for k, (s, e) in sorted(tags.items()):
if k.endswith(".mat"):
print(f"{k.rsplit('/', 1)[1]:28s} {s:11d} {e}")
file bytes ETag (MD5 of content for single-part uploads) 1452382802_binoc7.mat 1401290752 584352b1d9f306ac576ae431e1d38381-3 binoc10.mat 154146225 1930f2b7db5ef339cbe4632f6df7e1f9 binoc10PV.mat 25652335 172d923792355626be066e34a42cf1cf binoc7.mat 719585280 10fe95ccdb8f9d050674b6f65c79cd2e-2 binoc7PV.mat 183975729 ed441b21bf27c9def40761cebd27cf46 binoc7new.mat 1399848960 9c7e15ecd1fa3726315a9667ce7695ed-3 binoc8.mat 131143258 9efb9cf67bc64dfa2743da1b11680a69 binoc8PV.mat 44170630 ecce64a777f0be0520fcc9f87c7ab2fb binoc9.mat 486048428 0189cb6da7943af59e7cb0b0b8fcbc2c binoc9PV.mat 36691643 76ad6e8a7341e1f998bb8d3394a7ac8e binocmonocinds10.mat 195 7ef07290df05e5b045cf9a5fbdc6ebe8 binocmonocinds10PV.mat 177 50cd9269d3f8d6c54e2e24f8cfd36067 binocmonocinds5.mat 475 04da9e89a729aa7d38014991ef2d5f9c binocmonocinds5PV.mat 194 223f17305fdc3aaa859772d72eec8de7 binocmonocinds6.mat 239 4c053a66811fafca27026aae6ddc654a binocmonocinds6PV.mat 184 2942e96ae65b5ea8cb8f777697da95a7 binocmonocinds7.mat 728 1d2f64685fba258f97d059616bbaf55e binocmonocinds7PV.mat 229 f938ace0f83625637d0afc378a470c29 binocmonocinds8.mat 205 477e890afdb9cb9293a5f639a45ffe28 binocmonocinds8PV.mat 185 ad68fe45184ddfc4a46584a072524608 binocmonocinds9.mat 417 5a25291d9a3cb33fd994ab12d1969e86 binocmonocinds9PV.mat 187 2d796bfeee324d3ca0a149dce127f4ec
t = time.time()
STRUCT_KEYS = [(8, True), (8, False), (9, True), (9, False), (10, True), (10, False), (7, True)]
S = {key: pvc10.load_struct(*key, masks=True) for key in STRUCT_KEYS}
print(f"read {len(S)} structs in {time.time() - t:.0f} s; peak memory "
f"{resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6:.2f} GB")
print("mice 5 and 6 have no struct; the three mouse 7 files without the PV suffix are truncated (cell above)")
print()
print("One entry, printed in full for binoc8PV.mat entry 1 (MATLAB orientation):")
s = S[(8, True)]
for f in pvc10.STRUCT_FIELDS:
v = s[f][0]
print(f" {f:14s}", repr(v) if isinstance(v, str) else f"shape {v.shape}, first values {np.round(v.ravel()[:6], 4).tolist()}")
print(" mask: pixels", s["mask_npix"][0], "connected components", s["mask_components"][0],
"centroid (column, row)", np.round(s["mask_centroid"][0], 2))
print()
print(f"{'struct':12s} {'cells':>5s} {'mask px':>11s} {'1 comp.':>7s} {'|xy - centroid| max':>19s} "
f"{'date':>11s} planes (depth: cells)")
for (m, pv), s in S.items():
xy = np.array([v.ravel() for v in s["xy"]])
cen = np.array(s["mask_centroid"])
deps = collections.Counter(float(v.ravel()[0]) for v in s["depth"])
print(f"mouse{m:<2d} {'PV+' if pv else 'PV-':4s} {s['n']:5d} {min(s['mask_npix']):4d} to {max(s['mask_npix']):3d} "
f"{sum(c == 1 for c in s['mask_components']):7d} {np.abs(xy - cen).max():19.2f} "
f"{'/'.join(sorted(set(s['date']))):>11s} {dict(sorted((int(d), c) for d, c in deps.items()))}")
print("xy range (pixels): column", min(v.ravel()[0] for s in S.values() for v in s["xy"]), "to",
max(v.ravel()[0] for s in S.values() for v in s["xy"]), "; row",
min(v.ravel()[1] for s in S.values() for v in s["xy"]), "to", max(v.ravel()[1] for s in S.values() for v in s["xy"]))
print("plane shifts (xyshft) in mice 8 to 10:", {tuple(v.ravel()) for k, s in S.items() if k[0] != 7 for v in s["xyshft"]},
"; mouse 7:", dict(collections.Counter(tuple(v.ravel()) for v in S[(7, True)]["xyshft"])),
"; stats.mat shift of mouse 7: (157, -70) um")
print("window length field:", {float(v.ravel()[0]) for s in S.values() for v in s["windowlength"]})
read 7 structs in 11 s; peak memory 0.23 GB
mice 5 and 6 have no struct; the three mouse 7 files without the PV suffix are truncated (cell above)
One entry, printed in full for binoc8PV.mat entry 1 (MATLAB orientation):
peaks shape (11, 18), first values [-0.0161, 0.0108, -0.0059, -0.0082, -0.0019, -0.0153]
standard shape (11, 1), first values [0.0, 1.6034, 2.7452, 1.9307, 4.0268, 2.4085]
dsi shape (1, 1), first values [0.0326]
disparitypref shape (1, 1), first values [245.0]
xy shape (1, 2), first values [161.0, 132.0]
xyshft shape (1, 2), first values [-0.0, -0.0]
depth shape (1, 1), first values [205.0]
neuropilpeaks shape (11, 18), first values [0.0051, -0.0027, 0.0046, 0.0089, 0.0088, -0.0081]
dsineuropil shape (1, 1), first values [0.0486]
date '2014_08_30'
filename '002_005'
windowlength shape (1, 1), first values [300.0]
mask: pixels 28 connected components 1 centroid (column, row) [160.71 131.96]
struct cells mask px 1 comp. |xy - centroid| max date planes (depth: cells)
mouse8 PV+ 24 28 to 62 24 0.45 2014_08_30 {205: 4, 220: 5, 235: 5, 250: 3, 265: 4, 280: 3}
mouse8 PV- 72 11 to 63 67 0.59 2014_08_30 {205: 5, 220: 6, 235: 12, 250: 21, 265: 12, 280: 16}
mouse9 PV+ 20 31 to 64 20 0.52 2014_08_31 {170: 5, 190: 2, 210: 1, 230: 2, 250: 3, 270: 7}
mouse9 PV- 265 27 to 68 262 0.59 2014_08_31 {150: 27, 170: 41, 190: 40, 210: 39, 230: 45, 250: 35, 270: 38}
mouse10 PV+ 14 37 to 70 14 0.45 2014_10_19 {125: 2, 150: 1, 175: 1, 200: 1, 225: 4, 275: 5}
mouse10 PV- 84 28 to 63 82 0.56 2014_10_19 {125: 8, 150: 14, 175: 16, 200: 11, 225: 25, 275: 10}
mouse7 PV+ 99 28 to 70 97 0.54 2014_08_21 {180: 7, 200: 2, 220: 8, 240: 6, 260: 5, 280: 4, 300: 10, 320: 4, 340: 6, 360: 7, 380: 6, 400: 7, 420: 8, 440: 10, 460: 9}
xy range (pixels): column 42.0 to 446.0 ; row 7.0 to 245.0
plane shifts (xyshft) in mice 8 to 10: {(np.float64(-0.0), np.float64(-0.0))} ; mouse 7: {(np.float64(-0.0), np.float64(-0.0)): 17, (np.float64(-70.0), np.float64(157.0)): 82} ; stats.mat shift of mouse 7: (157, -70) um
window length field: {300.0}
Each entry is one cell: one mask of 11 to 70 pixels, with xy its centroid in pixels (column,
row). Below: the trials per condition in peaks against the stimulus tables of the published
folder, whether neuropilpeaks is one region per plane or per cell, and whether the stored
standard and dsi follow the Methods' formulas from peaks.
T_all = pvc10.cell_table(S)
ph = np.deg2rad(np.arange(0, 360, 45))
print("trials per condition in peaks against repeats in the published stim file of the same plane:")
for (m, pv), s in S.items():
agree, total = 0, 0
for i in range(s["n"]):
d = int(s["depth"][i].ravel()[0])
ntr = np.sum(~np.isnan(s["peaks"][i]), 1)
reps = np.bincount(stims[(m, d)][:, 1], minlength=12)[1:]
total += 1
# a trial whose window runs past the movie's end cannot be measured
agree += np.all((ntr == reps) | (ntr == reps - 1))
print(f" mouse{m} {'PV+' if pv else 'PV-'}: {agree} of {total} cells have, for every condition, the stim file's repeats or one fewer")
same_np = []
for (m, pv), s in S.items():
by_file = collections.defaultdict(list)
for i in range(s["n"]):
by_file[s["filename"][i]].append(np.nan_to_num(s["neuropilpeaks"][i]))
same_np.append(all(all(np.array_equal(v[0], w) for w in v) for v in by_file.values()))
print("neuropilpeaks identical for all cells of a plane, in every struct:", all(same_np))
st_re = (T_all["mu"] - T_all["mu"][:, :1]) / (T_all["se"] + T_all["se"][:, :1])
err_st = np.nanmax(np.abs(st_re[:, 1:] - T_all["standard"][:, 1:]), 1)
print(f"stored 'standard' = (mean stim - mean blank) / (SE stim + SE blank) from peaks within 0.001 for "
f"{np.sum(err_st < 1e-3)} of {len(err_st)} cells (median difference {np.median(err_st):.4f}, max {err_st.max():.2f})")
for name, (b, c) in {"blank subtracted, as measured": (True, False), "as measured, no blank": (False, False),
"blank subtracted, negatives set to zero": (True, True)}.items():
d_re, p_re = pvc10.dsi_pref(T_all, b, c)
e = np.abs(d_re - T_all["dsi"])
ep = np.abs((p_re - T_all["pref"] + 180) % 360 - 180)
print(f"stored dsi against vector strength of the 8 binocular means, {name}: within 0.001 for "
f"{np.sum(e < 1e-3)} of {len(e)} cells; preference within 1 deg for {np.sum(ep < 1)}")
print("the stored DSI is the Methods' vector strength of the blank-subtracted responses with negatives set to zero;"
" the cells where the vector strength with negatives kept differs from it, and where 'standard' differs, by struct:")
d_re, _ = pvc10.dsi_pref(T_all, True, False)
for (m, pv) in S:
k = (T_all["mouse"] == m) & (T_all["pv"] == pv)
print(f" mouse{m} {'PV+' if pv else 'PV-'}: dsi with negatives kept differs for {np.sum(np.abs(d_re[k] - T_all['dsi'][k]) >= 1e-3)} of {k.sum()},"
f" 'standard' differs for {np.sum(err_st[k] >= 1e-3)}")
trials per condition in peaks against repeats in the published stim file of the same plane: mouse8 PV+: 24 of 24 cells have, for every condition, the stim file's repeats or one fewer mouse8 PV-: 72 of 72 cells have, for every condition, the stim file's repeats or one fewer mouse9 PV+: 20 of 20 cells have, for every condition, the stim file's repeats or one fewer mouse9 PV-: 265 of 265 cells have, for every condition, the stim file's repeats or one fewer mouse10 PV+: 14 of 14 cells have, for every condition, the stim file's repeats or one fewer mouse10 PV-: 84 of 84 cells have, for every condition, the stim file's repeats or one fewer mouse7 PV+: 99 of 99 cells have, for every condition, the stim file's repeats or one fewer neuropilpeaks identical for all cells of a plane, in every struct: True stored 'standard' = (mean stim - mean blank) / (SE stim + SE blank) from peaks within 0.001 for 279 of 578 cells (median difference 0.0250, max 3.49) stored dsi against vector strength of the 8 binocular means, blank subtracted, as measured: within 0.001 for 399 of 578 cells; preference within 1 deg for 388 stored dsi against vector strength of the 8 binocular means, as measured, no blank: within 0.001 for 5 of 578 cells; preference within 1 deg for 388 stored dsi against vector strength of the 8 binocular means, blank subtracted, negatives set to zero: within 0.001 for 578 of 578 cells; preference within 1 deg for 512 the stored DSI is the Methods' vector strength of the blank-subtracted responses with negatives set to zero; the cells where the vector strength with negatives kept differs from it, and where 'standard' differs, by struct: mouse8 PV+: dsi with negatives kept differs for 4 of 24, 'standard' differs for 9 mouse8 PV-: dsi with negatives kept differs for 25 of 72, 'standard' differs for 47 mouse9 PV+: dsi with negatives kept differs for 4 of 20, 'standard' differs for 8 mouse9 PV-: dsi with negatives kept differs for 99 of 265, 'standard' differs for 143 mouse10 PV+: dsi with negatives kept differs for 3 of 14, 'standard' differs for 6 mouse10 PV-: dsi with negatives kept differs for 34 of 84, 'standard' differs for 62 mouse7 PV+: dsi with negatives kept differs for 10 of 99, 'standard' differs for 24
Which cells the structs hold. The paper identified 338 PV+ and 3,982 PV- cells in 6 mice, of which
236 PV+ and 2,001 PV- were responsive to binocular stimuli. If the structs held every identified
cell, many would fail the response criterion. The Methods' criterion is applied with the stored
index, with and without the neuropil requirement (cell mean above the neuropil mean + 1.96 SE for
the same condition; see the helper). The binocmonocinds* files hold index lists, compared here
with the entry counts and the criterion.
print(f"{'struct':10s} {'cells':>5s} | without neuropil: {'bino':>4s} {'mono':>4s} {'joint':>5s} {'none':>4s} | "
f"with neuropil: {'bino':>4s} {'mono':>4s} {'joint':>5s} | binocmonocinds: {'n':>3s} {'max':>3s} {'in joint':>8s} {'in joint+np':>11s}")
for (m, pv) in S:
k = (T_all["mouse"] == m) & (T_all["pv"] == pv)
sub = {f: v[k] for f, v in T_all.items()}
w, n = pvc10.responsive(sub, False), pvc10.responsive(sub, True)
inds = pvc10.binocmonocinds(m, pv)
jw = set(np.nonzero(w["joint"])[0] + 1)
jn = set(np.nonzero(n["joint"])[0] + 1)
print(f"m{m:<2d} {'PV+' if pv else 'PV-'} {k.sum():5d} | {'':17s} {w['bino'].sum():4d} {w['mono'].sum():4d} {w['joint'].sum():5d} "
f"{(~w['bino'] & ~w['mono']).sum():4d} | {'':14s} {n['bino'].sum():4d} {n['mono'].sum():4d} {n['joint'].sum():5d} | "
f"{'':15s} {len(inds):3d} {inds.max():3d} {len(set(inds) & jw):8d} {len(set(inds) & jn):11d}")
for m in (5, 6, 7):
for pv in (True, False):
inds = pvc10.binocmonocinds(m, pv)
print(f"binocmonocinds{m}{'PV' if pv else ''}: {len(inds)} indices, {inds.min()} to {inds.max()} (no readable struct)")
tot = {pv: sum(len(pvc10.binocmonocinds(m, pv)) for m in range(5, 11)) for pv in (True, False)}
print(f"binocmonocinds totals over 6 mice: PV+ {tot[True]}, PV- {tot[False]}; the paper's monocular-responsive counts: 115 PV+, 944 PV-")
print("struct PV+ cells in mice 7 to 10:", sum(S[(m, True)]["n"] for m in (7, 8, 9, 10)),
"; PV- cells in mice 8 to 10:", sum(S[(m, False)]["n"] for m in (8, 9, 10)))
struct cells | without neuropil: bino mono joint none | with neuropil: bino mono joint | binocmonocinds: n max in joint in joint+np
m8 PV+ 24 | 24 18 18 0 | 20 5 5 | 10 24 10 4
m8 PV- 72 | 71 41 41 1 | 53 20 19 | 31 71 27 15 m9 PV+ 20 | 20 16 16 0 | 15 5 4 | 13 20 12 3 m9 PV- 265 | 247 153 150 15 | 194 69 63 | 137 264 113 57
m10 PV+ 14 | 14 8 8 0 | 10 3 3 | 3 13 3 1 m10 PV- 84 | 82 39 39 2 | 50 14 10 | 21 81 18 7 m7 PV+ 99 | 99 76 76 0 | 60 34 29 | 55 95 52 26 binocmonocinds5PV: 19 indices, 4 to 49 (no readable struct)
binocmonocinds5: 171 indices, 6 to 593 (no readable struct) binocmonocinds6PV: 9 indices, 5 to 20 (no readable struct) binocmonocinds6: 61 indices, 2 to 216 (no readable struct) binocmonocinds7PV: 55 indices, 2 to 95 (no readable struct)
binocmonocinds7: 348 indices, 1 to 769 (no readable struct)
binocmonocinds totals over 6 mice: PV+ 109, PV- 769; the paper's monocular-responsive counts: 115 PV+, 944 PV- struct PV+ cells in mice 7 to 10: 157 ; PV- cells in mice 8 to 10: 421
Do the structs come from the published movies? On one plane (mouse 8, depth 205 um, struct file
002_005), the green movie of live/ is streamed and the mean raw intensity in each struct mask is
taken per frame. If the structs were made from these files, this should equal the stored Ftrace.
The per-trial responses computed from it, as in the clock check below (Fo the 10 frames before
onset, a 0.5 s window centred on the plane's average peak), are then compared with the stored
peaks, trial by trial.
LM, LD = 8, 205
link_masks, link_peaks, link_F, link_lab = [], [], [], []
for pv in (True, False):
sel = [i for i in range(S[(LM, pv)]["n"]) if int(S[(LM, pv)]["depth"][i].ravel()[0]) == LD]
link_masks.append(pvc10.struct_masks(LM, pv, sel))
link_F += [f.ravel() for f in pvc10.struct_field(LM, pv, sel, "Ftrace")]
link_peaks += [S[(LM, pv)]["peaks"][i] for i in sel]
link_lab += ["PV+" if pv else "PV-"] * len(sel)
link_masks = np.concatenate(link_masks, axis=2)
mv = pvc10.Movie(LM, LD, "green")
ltr, lsecs = pvc10.mask_traces(mv, link_masks)
mv.close()
raw = ltr + pvc10.DARKNOISE # mask_traces subtracts DARKNOISE; Ftrace does not
print(f"mouse{LM} depth {LD}: {link_masks.shape[2]} struct cells ({dict(collections.Counter(link_lab))}), "
f"{ltr.shape[1]} frames streamed in {lsecs:.0f} s; Ftrace lengths {sorted({len(f) for f in link_F})}")
print("largest |mask mean of the published movie - stored Ftrace| per cell:",
[float(np.round(np.max(np.abs(raw[c] - link_F[c])), 6)) for c in range(len(link_F))])
lst = stims[(LM, LD)]
lx = pvc10.trial_dff(raw, lst, 80)
lpk = int(np.argmax(np.nanmean(lx[:, lst[:, 1] != 1], axis=(0, 1))))
for name, fps in (("30 Hz (paper)", 30.0), ("26.2 Hz (onset intervals)", 26.2)):
h = int(round(0.5 * fps)) // 2
lr = np.nanmean(lx[:, :, max(lpk - h, 0):lpk + h + 1], axis=2)
ours, theirs = [], []
for c in range(len(link_peaks)):
for cond in range(1, 12):
a = lr[c, lst[:, 1] == cond]
b = link_peaks[c][cond - 1]
b = b[~np.isnan(b)]
n = min(len(a), len(b))
ours += list(a[:n]); theirs += list(b[:n])
ours, theirs = np.array(ours), np.array(theirs)
ok = np.isfinite(ours)
print(f"window {2 * h + 1} frames ({name}) centred on frame {lpk}: trial responses against stored peaks, "
f"r = {np.corrcoef(ours[ok], theirs[ok])[0, 1]:.3f} over {ok.sum()} trials; "
f"median |difference| {np.median(np.abs(ours[ok] - theirs[ok])) * 100:.2f}% dF/F")
rng_link = np.random.default_rng(1)
perm = np.array([np.corrcoef(rng_link.permutation(ours[ok]), theirs[ok])[0, 1] for _ in range(200)])
print(f"same with trials permuted: r 95% range {np.percentile(perm, 2.5):.3f} to {np.percentile(perm, 97.5):.3f}")
mouse8 depth 205: 9 struct cells ({'PV+': 4, 'PV-': 5}), 8877 frames streamed in 84 s; Ftrace lengths [8877]
largest |mask mean of the published movie - stored Ftrace| per cell: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
window 15 frames (30 Hz (paper)) centred on frame 59: trial responses against stored peaks, r = 0.387 over 594 trials; median |difference| 3.18% dF/F
window 13 frames (26.2 Hz (onset intervals)) centred on frame 59: trial responses against stored peaks, r = 0.386 over 594 trials; median |difference| 3.28% dF/F
same with trials permuted: r 95% range -0.082 to 0.075
The clock of the stimulus table, on the example plane¶
The descriptor's example plane (mouse5, depth 260 um) is streamed whole, the mean intensity in each
of the 50 example masks is taken per frame (minus the offset of -160 that the data set's
examplecode.m subtracts), and dF/F per trial is computed with Fo the 10 frames before onset (a
standard choice; see the helper). If the stimulus table shares the movie's clock, stimulus trials
should differ from blank trials in a window after onset, and the difference should fall when the
onsets are moved or the condition labels shuffled. This is a check of the clock only. The window
is centred on the peak of the average over all masks (the plane), where the paper's plain reading
is per cell; a per-mask window is shown as a variant. Either way the window is placed on the same
trials it then measures, so the stimulus-minus-blank value is biased upward; the shuffled labels
and the onset shifts, which use the same window, are the comparison. The data set gives no frame
rate: the window is 15 frames (0.5 s at the paper's 30 Hz), and 13 frames (0.5 s at the 26.2
frames/s the onset intervals imply for this mouse) is shown; the conflict between the two rates is
not resolved here and is recorded as a finding. This checks one plane of 58; the others are not
checked, except mouse 8 depth 205 through the structs above.
M, D = 5, 260
masks = cm["cellmasks"]
mv = pvc10.Movie(M, D, "green")
traces, secs = pvc10.mask_traces(mv, masks)
mv.close()
stim = stims[(M, D)]
size_gb = dict(live_data)[pvc10.plane_path(M, D, "green")] / 1e9
print(f"streamed {traces.shape[1]} frames ({size_gb:.2f} GB) in {secs:.0f} s, "
f"{size_gb * 1e3 / secs:.1f} MB/s; peak memory {resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6:.2f} GB")
print("raw trace range", round(traces.min(), 1), "to", round(traces.max(), 1))
N_POST = 118 # one onset interval of this plane (median 118 frames)
x = pvc10.trial_dff(traces, stim, N_POST)
lab = stim[:, 1]
avg_stim = np.nanmean(x[:, lab != 1], axis=(0, 1)) * 100
avg_blank = np.nanmean(x[:, lab == 1], axis=(0, 1)) * 100
peak = int(np.argmax(avg_stim))
print(f"mean dF/F over cells and stimulus trials peaks at frame {peak} after onset, {avg_stim[peak]:.2f}%; "
f"blank trials at that frame {avg_blank[peak]:.2f}%")
print("mean dF/F (%) every 6 frames, stimulus trials:", np.round(avg_stim[::6], 2).tolist())
print("mean dF/F (%) every 6 frames, blank trials: ", np.round(avg_blank[::6], 2).tolist())
# the paper's 0.5 s window, centred on the average peak (Methods); 0.5 s is 15 frames at 30 Hz
# (13 frames at the 26.2 frames/s the onset intervals imply; shown as a variant below)
half = 7
win = slice(max(peak - half, 0), peak + half + 1)
def contrast(shift=0, labels=None):
xx = pvc10.trial_dff(traces, stim, N_POST, shift)
r = np.nanmean(xx[:, :, win], axis=2)
ll = lab if labels is None else labels
return (np.nanmean(r[:, ll != 1]) - np.nanmean(r[:, ll == 1])) * 100, r
c0, R = contrast()
rng = np.random.default_rng(20150630)
null = np.array([contrast(0, rng.permutation(lab))[0] for _ in range(200)])
print(f"stimulus minus blank in the window (frames {win.start} to {win.stop - 1}): {c0:.2f}% dF/F; "
f"with shuffled labels 95% range {np.percentile(null, 2.5):.2f} to {np.percentile(null, 97.5):.2f}, "
f"p = {(np.sum(np.abs(null) >= abs(c0)) + 1) / (len(null) + 1):.3f}")
shifts = [-118, -90, -60, -30, 0, 30, 60, 90]
cs = [contrast(s)[0] for s in shifts]
for s, c in zip(shifts, cs):
print(f" onsets moved by {s:+4d} frames: stimulus minus blank {c:6.2f}%")
for nm, hh in (("13 frames (0.5 s at 26.2 Hz)", 6),):
w2 = slice(max(peak - hh, 0), peak + hh + 1)
r2 = np.nanmean(x[:, :, w2], axis=2)
print(f"window of {nm}: stimulus minus blank {(np.nanmean(r2[:, lab != 1]) - np.nanmean(r2[:, lab == 1])) * 100:.2f}%")
pk_cell = np.argmax(np.nanmean(x[:, lab != 1], axis=1), axis=1)
rc = np.array([np.nanmean(x[c, :, max(p - half, 0):p + half + 1], axis=1) for c, p in enumerate(pk_cell)])
print(f"window centred on each mask's own peak (frames {pk_cell.min()} to {pk_cell.max()}, median {np.median(pk_cell):.0f}): "
f"stimulus minus blank {(np.nanmean(rc[:, lab != 1]) - np.nanmean(rc[:, lab == 1])) * 100:.2f}% (circular: the window is placed on the same trials)")
# responsiveness index of the Methods per mask, without the neuropil requirement
n = np.array([np.sum(lab == k) for k in range(1, 12)])
mb, sb = R[:, lab == 1].mean(1), R[:, lab == 1].std(1, ddof=1) / np.sqrt(n[0])
idx = np.stack([(R[:, lab == k].mean(1) - mb) / (R[:, lab == k].std(1, ddof=1) / np.sqrt(n[k - 1]) + sb)
for k in range(2, 12)], 1)
print("example masks with index >= 1 for some binocular condition:", int((idx[:, :8] >= 1).any(1).sum()),
"of 50; for some monocular condition:", int((idx[:, 8:] >= 1).any(1).sum()),
"(the descriptor calls them a mixture of responsive and non-responsive cells)")
fig, ax = plt.subplots(1, 2, figsize=(10, 3.2))
ax[0].plot(avg_stim, label="stimulus trials")
ax[0].plot(avg_blank, label="blank trials")
ax[0].axvspan(win.start, win.stop - 1, color="0.9")
ax[0].set_xlabel("frames after onset"); ax[0].set_ylabel("mean dF/F (%)"); ax[0].legend()
ax[1].plot(shifts, cs, "o-")
ax[1].axhspan(np.percentile(null, 2.5), np.percentile(null, 97.5), color="0.9")
ax[1].set_xlabel("onset shift (frames)"); ax[1].set_ylabel("stimulus minus blank (%)")
plt.tight_layout(); plt.show()
print(f"plotted ranges: left {min(avg_stim.min(), avg_blank.min()):.2f} to {max(avg_stim.max(), avg_blank.max()):.2f}%; "
f"right {min(cs):.2f} to {max(cs):.2f}%; nothing outside the axes")
streamed 9435 frames (2.42 GB) in 170 s, 14.3 MB/s; peak memory 0.32 GB raw trace range 97.8 to 1681.8 mean dF/F over cells and stimulus trials peaks at frame 52 after onset, 2.46%; blank trials at that frame -0.40% mean dF/F (%) every 6 frames, stimulus trials: [-0.16, 0.04, -0.19, -0.11, 0.48, 1.41, 2.11, 1.94, 2.07, 2.17, 1.92, 1.93, 1.77, 2.13, 1.78, 1.28, 0.89, 0.44, 0.28, 0.2] mean dF/F (%) every 6 frames, blank trials: [-0.2, -0.58, 0.2, -0.61, -0.77, -0.11, -0.32, -0.45, -0.41, -0.2, -1.22, -0.69, -1.5, -0.69, -0.46, -0.9, -0.44, -0.57, -0.85, -1.04]
stimulus minus blank in the window (frames 45 to 59): 2.59% dF/F; with shuffled labels 95% range -1.12 to 1.15, p = 0.005 onsets moved by -118 frames: stimulus minus blank -0.76% onsets moved by -90 frames: stimulus minus blank -0.36% onsets moved by -60 frames: stimulus minus blank 0.57% onsets moved by -30 frames: stimulus minus blank 1.15% onsets moved by +0 frames: stimulus minus blank 2.59% onsets moved by +30 frames: stimulus minus blank 1.67% onsets moved by +60 frames: stimulus minus blank -1.42% onsets moved by +90 frames: stimulus minus blank -2.13% window of 13 frames (0.5 s at 26.2 Hz): stimulus minus blank 2.60% window centred on each mask's own peak (frames 26 to 115, median 51): stimulus minus blank 2.83% (circular: the window is placed on the same trials) example masks with index >= 1 for some binocular condition: 47 of 50; for some monocular condition: 15 (the descriptor calls them a mixture of responsive and non-responsive cells)
/tmp/ipykernel_2332/1382330692.py:31: RuntimeWarning: Mean of empty slice r = np.nanmean(xx[:, :, win], axis=2)
plotted ranges: left -1.98 to 2.46%; right -2.13 to 2.59%; nothing outside the axes
Red channel of the example masks¶
The descriptor says the red channel "can be used to identify if the cell is parvalbumin positive or
not", but gives no labels. The mean red intensity in each example mask over the first 160 frames
(the number examplecode.m averages) shows what a reader would have to threshold, with no rule from
the paper or the data set to do it.
mv = pvc10.Movie(M, D, "red")
red, rsecs = pvc10.mask_traces(mv, masks, range(160))
red_img = np.mean([mv.frame(i) for i in range(0, 160, 8)], axis=0)
mv.close()
r = red.mean(1)
print(f"red mean in the 50 masks: {r.min():.1f} to {r.max():.1f} (median {np.median(r):.1f}); "
f"whole-frame median {np.median(red_img) - pvc10.DARKNOISE:.1f}")
print("masks sorted by red intensity:", np.round(np.sort(r), 0).astype(int).tolist())
red mean in the 50 masks: 179.0 to 887.5 (median 266.3); whole-frame median 187.7 masks sorted by red intensity: [179, 192, 204, 205, 209, 215, 218, 218, 231, 233, 239, 239, 246, 247, 251, 251, 253, 256, 256, 257, 259, 260, 262, 265, 265, 267, 268, 273, 279, 279, 284, 285, 286, 288, 290, 291, 294, 295, 297, 297, 299, 300, 302, 307, 309, 310, 311, 314, 489, 887]
Size of a full re-analysis¶
Re-running the paper's analysis would need the cells identified anew in all 58 planes (by hand, in the paper) and both channels streamed. The rate measured above gives the time to stream the movies alone.
movie_bytes = sum(s for k, s in live_data if k.endswith("green.mat") or k.endswith("red.mat"))
rate = size_gb * 1e9 / secs
print(f"{sum(1 for k, _ in live_data if k.endswith(('green.mat', 'red.mat')))} movies, {movie_bytes / 1e9:.0f} GB; "
f"at {rate / 1e6:.1f} MB/s, {movie_bytes / rate / 3600:.1f} h to stream once, against a 1 h notebook limit")
print(f"notebook time so far {(time.time() - T0) / 60:.1f} min")
116 movies, 252 GB; at 14.3 MB/s, 4.9 h to stream once, against a 1 h notebook limit notebook time so far 5.6 min
Claims¶
Blocked without analysis: fig1e-pv-tdtomato-colocalization (no histology), the three CaMKIIa claims (no CaMKIIa animals), cell-counts-responsive (the structs hold a selection of the cells, see the data check, and the published folder holds no masks), figs3-pv-distinct-from-neuropil and figs5-neuropil-no-relation (no neuropil patches; the structs hold one neuropil region per plane, shown above, and no non-responsive PV+ cells). The other claims are tested on the structs of mice 8, 9 and 10, the three animals with both populations, against six in the paper.
Readings used throughout, each from the Methods (Data Imaging Analysis) or the claims file, with the choices this attempt makes named as such:
- Visually responsive (
resp).L, the main reading: the cells in thebinocmonocindslists. This is an assumption. The lists are undocumented, but their name reads as cells responsive to binocular and monocular stimuli, which is the Methods' joint criterion; 235 of their 270 cells in the structs (77 of 81 PV+, 158 of 189 PV-) pass the joint criterion on the stored index (data check); they hold fewer cells than that criterion alone gives, as the Methods' further neuropil test and check "by eye" would remove; and their totals over the six mice, 109 PV+ and 769 PV-, are 5% and 19% below the paper's monocular-responsive counts (115 PV+, 944 PV-).N: the Methods' criterion applied here, at least one monocular and one binocular stimulus with index >= 1, each also above the plane's neuropil response (mean + 1.96 SE, a reading of "> 95% confidence interval").W: the same without the neuropil test. - L decides every outcome; where a criterion says "under one reading", that ranges over the claims file's readings within L. The cell set is not chosen claim by claim. L is the set whose counts are closest to the paper's; N, built here with a neuropil test the Methods do not define, keeps about half as many cells (in the Figure 3 pool 41 PV+ and 92 PV- joint, 47 and 103 monocular, against L's 81 and 189). N and W are shown for every claim as the sensitivity of each outcome to this choice. Under L the claims file's cell readings (joint, and monocular-responsive) give the same cells, and the lists' totals are nearest the counts of the monocular-responsive reading.
- Denominator (
den, claims file):joint(cells passing the criterion) ormono(cells with a monocular stimulus passing it; for disparity,bino). - Responses for ODI: the mean dF/F minus the blank mean, negatives set to zero (main; the stored DSI is computed on blank-subtracted responses, shown above). Variants: as measured (no blank subtraction), and blank subtracted without setting negatives to zero.
- DSI and preference: the stored values, which are the vector strength of the blank-subtracted responses with negatives set to zero (data check). Variant: blank subtracted, negatives kept (claims file, "as measured").
- Cells for the population comparisons of Figure 3: PV+ cells of mice 7 to 10 and PV- cells of mice 8 to 10 (main, every cell the structs hold, pooled as the paper pools cells across animals); mice 8 to 10 only as a variant. Per-animal and local analyses use mice 8 to 10.
- Local analysis: open readings (1) to (9) of the claims file; main reading (2a), (3a), (6) unweighted, (7a) 300 um along each axis, (8a), and both (1a) and (1b), (5) one- and two-sided, (9a) and (9b) shown. 1000 bootstrap resamples and 1000 shuffles (standard choice, reading 4).
from scipy.stats import mannwhitneyu, pearsonr
T = pvc10.cell_table({k: v for k, v in S.items() if k[0] in (8, 9, 10)})
T7 = pvc10.cell_table(S) # adds mouse 7 PV+ cells, used only as a variant
L_SET = {(m, pv): set(pvc10.binocmonocinds(m, pv)) for m in (7, 8, 9, 10) for pv in (True, False)}
def resp_sets(TT, resp):
"""Boolean selections per denominator for a responsiveness reading N, W or L."""
if resp == "L":
lst = np.array([i in L_SET[(m, pv)] for m, pv, i in zip(TT["mouse"], TT["pv"], TT["idx"])])
return dict(joint=lst, mono=lst, bino=lst)
return pvc10.responsive(TT, neuropil=(resp == "N"))
POOLS = {"mice 7-10 PV+, 8-10 PV-": T7, "mice 8-10": T}
ODI_READINGS = {"blank-subtracted, negatives to 0": (True, True), "as measured, negatives to 0": (False, True),
"blank-subtracted, as measured": (True, False)}
print("cells in mice 8 to 10:", {f"{'PV+' if pv else 'PV-'}": int(np.sum(T["pv"] == pv)) for pv in (True, False)})
for resp in "LNW":
R = resp_sets(T, resp)
print(f"resp {resp}: " + "; ".join(f"{den} PV+ {np.sum(R[den] & T['pv'])} PV- {np.sum(R[den] & ~T['pv'])}"
for den in ("joint", "mono", "bino")))
cells in mice 8 to 10: {'PV+': 58, 'PV-': 421}
resp L: joint PV+ 26 PV- 189; mono PV+ 26 PV- 189; bino PV+ 26 PV- 189
resp N: joint PV+ 12 PV- 92; mono PV+ 13 PV- 103; bino PV+ 45 PV- 297
resp W: joint PV+ 42 PV- 230; mono PV+ 42 PV- 233; bino PV+ 58 PV- 400
fig3abc-pv-more-binocular-fraction¶
A larger proportion of PV+ cells than PV- cells respond to both eyes (64% against 45% with -0.5 < ODI < 0.5).
Expected 64 +/- 6.4% (PV+) and 45 +/- 4.5% (PV-); holds when both are within tolerance under one denominator reading. The same table gives the median ODI (fig3c-contralateral-bias) and MI (fig3-pv-lower-monocularity).
def fig3_row(TT, sel, o):
out = {}
for pv in (True, False):
x = o[sel & (TT["pv"] == pv) & np.isfinite(o)]
out[pv] = x
a, b = np.abs(out[True]), np.abs(out[False])
p = mannwhitneyu(a, b, alternative="two-sided").pvalue
return out, p
fig3 = {}
for pool, TT in POOLS.items():
print(pool)
print(f"{'resp':4s} {'den':5s} {'responses':34s} {'nPV+':>4s} {'nPV-':>4s} {'binoc PV+':>9s} {'PV-':>5s} "
f"{'medODI+':>7s} {'medODI-':>7s} {'MI+ med':>7s} {'mean':>6s} {'SD':>5s} {'MI- med':>7s} {'mean':>6s} {'SD':>5s} {'p MW':>7s}")
for resp in "LNW":
R = resp_sets(TT, resp)
for den in (("joint", "mono") if resp != "L" else ("joint",)):
for oname, (bl, cl) in ODI_READINGS.items():
o = pvc10.odi(TT, bl, cl)
out, p = fig3_row(TT, R[den], o)
fig3[(pool, resp, den, oname)] = (out, p)
fr = {pv: 100 * np.mean(np.abs(out[pv]) < 0.5) for pv in out}
mi = {pv: np.abs(out[pv]) for pv in out}
print(f"{resp:4s} {den:5s} {oname:34s} {len(out[True]):4d} {len(out[False]):4d} {fr[True]:9.1f} {fr[False]:5.1f} "
f"{np.median(out[True]):7.3f} {np.median(out[False]):7.3f} {np.median(mi[True]):7.3f} {mi[True].mean():6.3f} "
f"{mi[True].std(ddof=1):5.2f} {np.median(mi[False]):7.3f} {mi[False].mean():6.3f} {mi[False].std(ddof=1):5.2f} {p:7.4f}")
print()
print("per animal, main reading (L, main responses): n, binocular %, median ODI")
o = pvc10.odi(T7)
R = resp_sets(T7, "L")
for m in (7, 8, 9, 10):
for pv in (True, False):
x = o[R["joint"] & (T7["mouse"] == m) & (T7["pv"] == pv) & np.isfinite(o)]
print(f" mouse{m} {'PV+' if pv else 'PV-'}: n {len(x)}, {100 * np.mean(np.abs(x) < 0.5) if len(x) else np.nan:.0f}%, "
f"median ODI {np.median(x) if len(x) else np.nan:.2f}")
o_main = fig3[("mice 7-10 PV+, 8-10 PV-", "L", "joint", "blank-subtracted, negatives to 0")][0]
fig, ax = plt.subplots(1, 2, figsize=(9, 3))
for pv, c in ((False, "tab:blue"), (True, "tab:red")):
ax[0].hist(o_main[pv], bins=np.linspace(-1, 1, 21), histtype="step", density=True, color=c, label="PV+" if pv else "PV-")
ax[1].plot(np.sort(o_main[pv]), np.linspace(0, 1, len(o_main[pv])), color=c)
ax[0].set_xlabel("ODI"); ax[0].legend(); ax[1].set_xlabel("ODI"); ax[1].set_ylabel("cumulative fraction")
plt.tight_layout(); plt.show()
print("plotted: ODI of the main reading (L, mice 7-10 PV+, 8-10 PV-), all values in [-1, 1]")
mice 7-10 PV+, 8-10 PV- resp den responses nPV+ nPV- binoc PV+ PV- medODI+ medODI- MI+ med mean SD MI- med mean SD p MW L joint blank-subtracted, negatives to 0 81 189 60.5 45.5 -0.341 -0.442 0.370 0.452 0.31 0.524 0.590 0.33 0.0019 L joint as measured, negatives to 0 81 189 35.8 39.2 -0.630 -0.455 0.713 0.627 0.33 0.664 0.642 0.32 0.5847 L joint blank-subtracted, as measured 81 189 60.5 45.5 -0.341 -0.410 0.370 0.519 0.48 0.524 1.069 2.44 0.0013 N joint blank-subtracted, negatives to 0 41 92 58.5 44.6 -0.388 -0.421 0.417 0.470 0.33 0.555 0.589 0.33 0.0643 N joint as measured, negatives to 0 41 92 36.6 42.4 -0.527 -0.444 0.683 0.610 0.36 0.644 0.629 0.32 0.6703 N joint blank-subtracted, as measured 41 92 58.5 44.6 -0.388 -0.421 0.417 0.671 1.03 0.555 0.757 0.65 0.0710 N mono blank-subtracted, negatives to 0 47 103 61.7 42.7 -0.321 -0.388 0.388 0.442 0.32 0.575 0.596 0.33 0.0092 N mono as measured, negatives to 0 47 103 40.4 41.7 -0.511 -0.433 0.598 0.573 0.36 0.644 0.627 0.31 0.2697 N mono blank-subtracted, as measured 47 103 61.7 42.7 -0.321 -0.388 0.388 0.618 0.97 0.575 0.748 0.63 0.0107 W joint blank-subtracted, negatives to 0 118 230 65.3 51.3 -0.313 -0.390 0.340 0.419 0.30 0.487 0.534 0.34 0.0040 W joint as measured, negatives to 0 118 230 43.2 39.6 -0.491 -0.468 0.606 0.580 0.34 0.686 0.635 0.34 0.0883 W joint blank-subtracted, as measured 118 230 65.3 51.3 -0.313 -0.390 0.340 0.545 0.78 0.487 0.756 0.95 0.0038 W mono blank-subtracted, negatives to 0 118 233 65.3 50.6 -0.313 -0.391 0.340 0.419 0.30 0.494 0.536 0.33 0.0031 W mono as measured, negatives to 0 118 233 43.2 39.5 -0.491 -0.455 0.606 0.580 0.34 0.670 0.634 0.34 0.0965 W mono blank-subtracted, as measured 118 233 65.3 50.6 -0.313 -0.391 0.340 0.545 0.78 0.494 0.755 0.95 0.0029 mice 8-10 resp den responses nPV+ nPV- binoc PV+ PV- medODI+ medODI- MI+ med mean SD MI- med mean SD p MW L joint blank-subtracted, negatives to 0 26 189 57.7 45.5 -0.331 -0.442 0.343 0.473 0.32 0.524 0.590 0.33 0.0920 L joint as measured, negatives to 0 26 189 38.5 39.2 -0.498 -0.455 0.631 0.623 0.31 0.664 0.642 0.32 0.5819 L joint blank-subtracted, as measured 26 189 57.7 45.5 -0.331 -0.410 0.343 0.557 0.50 0.524 1.069 2.44 0.0789 N joint blank-subtracted, negatives to 0 12 92 58.3 44.6 -0.119 -0.421 0.381 0.450 0.33 0.555 0.589 0.33 0.1872 N joint as measured, negatives to 0 12 92 41.7 42.4 -0.088 -0.444 0.555 0.514 0.33 0.644 0.629 0.32 0.2049 N joint blank-subtracted, as measured 12 92 58.3 44.6 -0.119 -0.421 0.381 0.544 0.54 0.555 0.757 0.65 0.2016 N mono blank-subtracted, negatives to 0 13 103 61.5 42.7 -0.013 -0.388 0.336 0.424 0.33 0.575 0.596 0.33 0.0825 N mono as measured, negatives to 0 13 103 46.2 41.7 -0.019 -0.433 0.511 0.483 0.34 0.644 0.627 0.31 0.1091 N mono blank-subtracted, as measured 13 103 61.5 42.7 -0.013 -0.388 0.336 0.511 0.53 0.575 0.748 0.63 0.0912 W joint blank-subtracted, negatives to 0 42 230 69.0 51.3 -0.234 -0.390 0.309 0.398 0.31 0.487 0.534 0.34 0.0158 W joint as measured, negatives to 0 42 230 50.0 39.6 -0.290 -0.468 0.498 0.531 0.34 0.686 0.635 0.34 0.0427 W joint blank-subtracted, as measured 42 230 69.0 51.3 -0.234 -0.390 0.309 0.448 0.44 0.487 0.756 0.95 0.0130 W mono blank-subtracted, negatives to 0 42 233 69.0 50.6 -0.234 -0.391 0.309 0.398 0.31 0.494 0.536 0.33 0.0137 W mono as measured, negatives to 0 42 233 50.0 39.5 -0.290 -0.455 0.498 0.531 0.34 0.670 0.634 0.34 0.0451 W mono blank-subtracted, as measured 42 233 69.0 50.6 -0.234 -0.391 0.309 0.448 0.44 0.494 0.755 0.95 0.0113 per animal, main reading (L, main responses): n, binocular %, median ODI mouse7 PV+: n 55, 62%, median ODI -0.38 mouse7 PV-: n 0, nan%, median ODI nan mouse8 PV+: n 10, 70%, median ODI -0.23 mouse8 PV-: n 31, 45%, median ODI -0.31 mouse9 PV+: n 13, 46%, median ODI -0.54 mouse9 PV-: n 137, 45%, median ODI -0.48 mouse10 PV+: n 3, 67%, median ODI 0.14 mouse10 PV-: n 21, 48%, median ODI 0.20
plotted: ODI of the main reading (L, mice 7-10 PV+, 8-10 PV-), all values in [-1, 1]
Result: reproduced, resting on the assumption that the binocmonocinds lists are the paper's visually responsive cells. In the main reading (L, PV+ cells of mice 7 to 10 and PV- cells of mice 8 to 10, blank-subtracted responses with negatives set to zero), 60.5% of 81 PV+ cells and 45.5% of 189 PV- cells have -0.5 < ODI < 0.5, both within tolerance (57.6 to 70.4%, 40.5 to 49.5%). With mice 8 to 10 only, 57.7% and 45.5%. The reading N gives 58.5% and 44.6% (joint) and 61.7% and 42.7% (mono), also within. The reading W puts the PV- fraction outside (51.3%, 50.6%), and responses taken without the blank subtracted put the PV+ fraction outside under every cell set (35.8% to 50.0%). The PV+ counts per animal are small (3 to 13 in mice 8 to 10).
fig3c-contralateral-bias¶
Both PV+ and PV- populations are biased toward the contralateral eye.
Reproduced when the median ODI is below 0 in both populations (table above, columns medODI).
Result: reproduced. The median ODI is below 0 for both populations in every reading and cell pool in the table: -0.341 (PV+) and -0.442 (PV-) in the main reading, and from -0.630 to -0.013 (PV+) and -0.468 to -0.388 (PV-) across all rows.
fig3-pv-lower-monocularity¶
PV+ interneurons are significantly more binocular than PV- neurons (MI median 0.36, mean 0.41 +/- 0.29 SD, against median 0.57, mean 0.58 +/- 0.32 SD; p = 0.01, Mann-Whitney).
Expected medians and means within 10%, and a two-sided Mann-Whitney p <= 0.01 with PV+ lower (table above, columns MI and p MW).
Result: partially reproduced, resting on the assumption about the binocmonocinds lists. In the main reading PV+ cells are more binocular than PV- cells (two-sided Mann-Whitney p = 0.0019, 81 against 189 cells), the PV+ median MI is 0.370 (tolerance 0.324 to 0.396), the PV- median 0.524 (0.513 to 0.627) and mean 0.590 (0.522 to 0.638), but the PV+ mean is 0.452, just above its tolerance (0.369 to 0.451); the criterion's partial case (test holds, a value outside). The reading N with monocular-responsive cells gives all four values within tolerance and p = 0.0092 (47 PV+, 103 PV-). Within mice 8 to 10 only, the main reading gives p = 0.092 (26 PV+ cells): the significance in the main pool depends on the 55 PV+ cells of mouse 7, which has no PV- struct. The outcome is judged on L, as every claim is (see the readings above). N with monocular-responsive cells would meet the reproduced case, on 47 PV+ and 103 PV- cells against L's 81 and 189, with a neuropil test that is this attempt's reading of an undefined one.
mi-per-animal¶
The monocularity difference holds animal by animal; across the 6 animals the mean PV- MI is 0.58 +/- 0.04 SD and the mean PV+ MI 0.43 +/- 0.08 SD.
Three animals here.
for resp in "LNW":
R = resp_sets(T, resp)
for den in (("joint", "mono") if resp != "L" else ("joint",)):
o = pvc10.odi(T)
per = {pv: [] for pv in (True, False)}
txt = []
for m in (8, 9, 10):
v = {}
for pv in (True, False):
x = np.abs(o[R[den] & (T["mouse"] == m) & (T["pv"] == pv) & np.isfinite(o)])
v[pv] = (x.mean() if len(x) else np.nan, len(x))
per[pv].append(v[pv][0])
txt.append(f"m{m} PV+ {v[True][0]:.2f} (n {v[True][1]}) PV- {v[False][0]:.2f} (n {v[False][1]})")
a, b = np.array(per[True]), np.array(per[False])
print(f"{resp} {den:5s}: mean over animals PV- {np.nanmean(b):.2f} +/- {np.nanstd(b, ddof=1):.2f} SD, "
f"PV+ {np.nanmean(a):.2f} +/- {np.nanstd(a, ddof=1):.2f} SD; PV+ below PV- in {np.sum(a < b)} of 3 | " + "; ".join(txt))
L joint: mean over animals PV- 0.59 +/- 0.01 SD, PV+ 0.44 +/- 0.13 SD; PV+ below PV- in 3 of 3 | m8 PV+ 0.35 (n 10) PV- 0.60 (n 31); m9 PV+ 0.59 (n 13) PV- 0.59 (n 137); m10 PV+ 0.40 (n 3) PV- 0.57 (n 21) N joint: mean over animals PV- 0.56 +/- 0.09 SD, PV+ 0.45 +/- 0.05 SD; PV+ below PV- in 3 of 3 | m8 PV+ 0.50 (n 5) PV- 0.62 (n 19); m9 PV+ 0.39 (n 4) PV- 0.60 (n 63); m10 PV+ 0.45 (n 3) PV- 0.45 (n 10) N mono : mean over animals PV- 0.59 +/- 0.05 SD, PV+ 0.43 +/- 0.08 SD; PV+ below PV- in 3 of 3 | m8 PV+ 0.50 (n 5) PV- 0.63 (n 20); m9 PV+ 0.34 (n 5) PV- 0.60 (n 69); m10 PV+ 0.45 (n 3) PV- 0.53 (n 14) W joint: mean over animals PV- 0.52 +/- 0.07 SD, PV+ 0.38 +/- 0.07 SD; PV+ below PV- in 3 of 3 | m8 PV+ 0.39 (n 18) PV- 0.57 (n 41); m9 PV+ 0.45 (n 16) PV- 0.55 (n 150); m10 PV+ 0.30 (n 8) PV- 0.43 (n 39) W mono : mean over animals PV- 0.52 +/- 0.07 SD, PV+ 0.38 +/- 0.07 SD; PV+ below PV- in 3 of 3 | m8 PV+ 0.39 (n 18) PV- 0.57 (n 41); m9 PV+ 0.45 (n 16) PV- 0.55 (n 153); m10 PV+ 0.30 (n 8) PV- 0.43 (n 39)
Result: reproduced on 3 of the paper's 6 animals, resting on the assumption about the binocmonocinds lists. In the main reading the mean over mice 8 to 10 of the per-animal mean MI is 0.59 +/- 0.01 SD for PV- (tolerance 0.522 to 0.638) and 0.44 +/- 0.13 SD for PV+ (0.387 to 0.473), with PV+ below PV- in 3 of 3 animals (in mouse 9 by 0.59 against 0.59, with 13 PV+ cells; mouse 10 has 3). The reading N gives 0.56 and 0.45 (joint) or 0.59 and 0.43 (mono), within; W gives 0.52 and 0.38, outside.
fig3def-pv-weaker-disparity-selectivity¶
PV+ interneurons have weaker disparity selectivity than PV- neurons (DSI median 0.09, mean 0.12 +/- 0.10 SD, against median 0.26, mean 0.26 +/- 0.17 SD; p = 0.0001, Mann-Whitney).
Readings (claims file): cells (a) joint, (b) binocular-responsive; negative responses (a) as measured, (b) set to zero (the stored DSI, data check).
for pool, TT in POOLS.items():
d_meas, _ = pvc10.dsi_pref(TT, True, False)
DSI_READINGS = {"stored (negatives to 0)": TT["dsi"], "as measured": d_meas}
print(pool)
print(f"{'resp':4s} {'den':5s} {'DSI':24s} {'nPV+':>4s} {'nPV-':>4s} {'PV- med':>7s} {'mean':>5s} {'SD':>5s} "
f"{'PV+ med':>7s} {'mean':>5s} {'SD':>5s} {'p MW':>9s}")
for resp in "LNW":
R = resp_sets(TT, resp)
for den in (("joint", "bino") if resp != "L" else ("joint",)):
for dn, dv in DSI_READINGS.items():
a = dv[R[den] & TT["pv"] & np.isfinite(dv)]
b = dv[R[den] & ~TT["pv"] & np.isfinite(dv)]
p = mannwhitneyu(a, b, alternative="two-sided").pvalue
print(f"{resp:4s} {den:5s} {dn:24s} {len(a):4d} {len(b):4d} {np.median(b):7.3f} {b.mean():5.3f} {b.std(ddof=1):5.3f} "
f"{np.median(a):7.3f} {a.mean():5.3f} {a.std(ddof=1):5.3f} {p:9.2e}")
print("range of the DSI values:", round(np.nanmin(TT["dsi"]), 3), "to", round(np.nanmax(TT["dsi"]), 3),
"(stored);", round(np.nanmin(d_meas), 3), "to", round(np.nanmax(d_meas), 3), "(as measured; above 1 when negative responses enter)")
print()
mice 7-10 PV+, 8-10 PV- resp den DSI nPV+ nPV- PV- med mean SD PV+ med mean SD p MW L joint stored (negatives to 0) 81 189 0.230 0.255 0.169 0.088 0.101 0.067 7.20e-17 L joint as measured 81 189 0.227 0.747 5.152 0.088 0.101 0.068 6.03e-16 N joint stored (negatives to 0) 41 92 0.201 0.230 0.163 0.089 0.125 0.099 2.37e-04 N joint as measured 41 92 0.201 0.458 2.025 0.089 0.131 0.120 3.26e-04 N bino stored (negatives to 0) 105 297 0.260 0.295 0.189 0.103 0.143 0.122 1.21e-16 N bino as measured 105 297 0.269 0.423 1.227 0.103 0.150 0.143 8.42e-16 W joint stored (negatives to 0) 118 230 0.194 0.219 0.137 0.097 0.111 0.082 6.54e-16 W joint as measured 118 230 0.195 0.325 1.294 0.097 0.113 0.091 1.30e-15 W bino stored (negatives to 0) 157 400 0.243 0.280 0.183 0.104 0.144 0.122 8.88e-21 W bino as measured 157 400 0.237 0.383 1.159 0.104 0.154 0.150 8.39e-19 range of the DSI values: 0.006 to 1.0 (stored); -7.242 to 68.208 (as measured; above 1 when negative responses enter) mice 8-10 resp den DSI nPV+ nPV- PV- med mean SD PV+ med mean SD p MW L joint stored (negatives to 0) 26 189 0.230 0.255 0.169 0.099 0.110 0.061 9.07e-07 L joint as measured 26 189 0.227 0.747 5.152 0.099 0.111 0.065 2.25e-06 N joint stored (negatives to 0) 12 92 0.201 0.230 0.163 0.139 0.174 0.120 3.26e-01 N joint as measured 12 92 0.201 0.458 2.025 0.139 0.193 0.170 3.68e-01 N bino stored (negatives to 0) 45 297 0.260 0.295 0.189 0.120 0.150 0.113 3.88e-08 N bino as measured 45 297 0.269 0.423 1.227 0.121 0.163 0.146 1.96e-07 W joint stored (negatives to 0) 42 230 0.194 0.219 0.137 0.102 0.118 0.084 2.63e-07 W joint as measured 42 230 0.195 0.325 1.294 0.102 0.125 0.108 5.57e-07 W bino stored (negatives to 0) 58 400 0.243 0.280 0.183 0.110 0.143 0.109 3.06e-10 W bino as measured 58 400 0.237 0.383 1.159 0.120 0.154 0.136 4.89e-09 range of the DSI values: 0.006 to 1.0 (stored); -7.242 to 68.208 (as measured; above 1 when negative responses enter)
Result: partially reproduced. PV+ cells have much weaker disparity selectivity in every reading (two-sided Mann-Whitney p from 7.2e-17 to 2.4e-04 in the main pool, PV+ lower), but no reading puts all four values within tolerance. In the main reading the PV- median is 0.230 (tolerance 0.234 to 0.286) and mean 0.255 (0.234 to 0.286), the PV+ median 0.088 (0.081 to 0.099) and mean 0.101 (0.108 to 0.132). The N and W readings with binocular-responsive cells give PV- medians of 0.260 and 0.243 and a W PV- mean of 0.280 within tolerance, but an N PV- mean of 0.295 and PV+ medians and means of 0.103 to 0.144, outside. Within mice 8 to 10 only, the reading N with joint cells (12 PV+) gives p = 0.33. In the main reading, DSI taken as measured (negatives kept) changes only the PV- mean (to 0.747, as some values exceed 1); under N and W it also moves some PV- medians and PV+ means (for example W with binocular-responsive cells, PV+ mean 0.144 to 0.154).
mi-dsi-relation¶
Monocularity and disparity selectivity are unrelated in PV+ neurons (mean slope 0.04 +/- 0.02 SE, bootstrapped PCA); in PV- neurons there is a weak positive relation (mean slope 0.16 +/- 0.03 SE) that accounts for little variance (r2 = 0.08).
Readings (claims file): (a) DSI on MI, (b) MI on DSI; cells with an MI among the DSI cells.
rng = np.random.default_rng(301)
for pool, TT in POOLS.items():
print(pool)
print(f"{'resp':4s} {'den':5s} {'axis':10s} {'PV+ n':>5s} {'slope':>6s} {'SE':>6s} {'PV- n':>5s} {'slope':>6s} {'SE':>6s} {'PV- r2':>6s} {'PV+ r2':>6s}")
o = pvc10.odi(TT)
for resp in "LNW":
R = resp_sets(TT, resp)
for den in (("joint", "bino") if resp != "L" else ("joint",)):
for axis in ("DSI on MI", "MI on DSI"):
row = []
r2 = {}
for pv in (True, False):
k = R[den] & (TT["pv"] == pv) & np.isfinite(o) & np.isfinite(TT["dsi"])
mi, d = np.abs(o[k]), TT["dsi"][k]
x, y = (mi, d) if axis == "DSI on MI" else (d, mi)
b = pvc10.boot_slopes(x, y, rng)
b = b[np.isfinite(b)]
row.append((k.sum(), b.mean(), b.std(ddof=1)))
r2[pv] = pearsonr(mi, d)[0] ** 2
print(f"{resp:4s} {den:5s} {axis:10s} {row[0][0]:5d} {row[0][1]:6.3f} {row[0][2]:6.3f} {row[1][0]:5d} "
f"{row[1][1]:6.3f} {row[1][2]:6.3f} {r2[False]:6.4f} {r2[True]:6.4f}")
print()
mice 7-10 PV+, 8-10 PV- resp den axis PV+ n slope SE PV- n slope SE PV- r2 PV+ r2
L joint DSI on MI 81 0.013 0.025 189 0.178 0.050 0.0723 0.0033 L joint MI on DSI 81 -70.888 2426.093 189 6.115 2.308 0.0723 0.0033 N joint DSI on MI 41 0.059 0.063 92 0.151 0.066 0.0543 0.0311 N joint MI on DSI 41 -5.614 887.419 92 9.024 115.682 0.0543 0.0311
N bino DSI on MI 104 0.100 0.043 275 0.190 0.043 0.0799 0.0711 N bino MI on DSI 104 15.362 50.757 275 5.567 1.496 0.0799 0.0711 W joint DSI on MI 118 0.044 0.034 230 0.080 0.032 0.0288 0.0225 W joint MI on DSI 118 38.014 419.174 230 15.845 27.381 0.0288 0.0225 W bino DSI on MI 152 0.104 0.039 371 0.177 0.032 0.0884 0.0736 W bino MI on DSI 152 18.017 188.934 371 5.809 1.085 0.0884 0.0736 mice 8-10 resp den axis PV+ n slope SE PV- n slope SE PV- r2 PV+ r2 L joint DSI on MI 26 -0.006 0.035 189 0.177 0.051 0.0723 0.0006 L joint MI on DSI 26 -70.715 1409.326 189 6.070 2.336 0.0723 0.0006 N joint DSI on MI 12 0.179 0.142 92 0.148 0.067 0.0543 0.2378 N joint MI on DSI 12 3.777 74.220 92 16.201 129.709 0.0543 0.2378 N bino DSI on MI 45 0.135 0.065 275 0.189 0.043 0.0799 0.1408 N bino MI on DSI 45 11.350 59.744 275 5.521 1.418 0.0799 0.1408 W joint DSI on MI 42 0.065 0.064 230 0.085 0.032 0.0288 0.0489 W joint MI on DSI 42 45.244 1071.081 230 12.331 45.279 0.0288 0.0489 W bino DSI on MI 57 0.112 0.056 371 0.177 0.032 0.0884 0.1104 W bino MI on DSI 57 12.517 51.288 371 5.773 1.148 0.0884 0.1104
Result: not reproduced, resting on the assumption about the binocmonocinds lists. In the main reading, with DSI on MI (reading a), the PV- slope is 0.178 +/- 0.050 (tolerance 0.13 to 0.19) and the PV- r2 0.0723 (0.072 to 0.088), but the PV+ slope is 0.013 +/- 0.025, below its tolerance of 0.02 to 0.06; the criterion's partial case needs the PV+ slope within tolerance. PV+ MI and DSI are unrelated here too (r2 0.0033). The reading N with joint cells gives a PV+ slope of 0.059 and a PV- slope of 0.151 within tolerance but r2 0.054, outside (partial); W with joint cells gives 0.044 and 0.080 (partial). Reading (b), MI on DSI, gives unstable slopes (SE above 1) in every case. The outcome is judged on L, as every claim is (see the readings above); the N and W cases meeting the partial case rest on other cell sets (41 PV+ and 92 PV- cells for N joint, against L's 81 and 189).
pv-larger-dff-low-dsi¶
Among cells with comparable weak disparity selectivity (DSI < 0.1), PV+ interneurons have larger responses than PV- neurons (median dF/F over all binocular stimuli 6.2% against 4.3%; to the best binocular stimulus 8.7% against 6.6%; both p < 0.001, Mann-Whitney).
Responses are the mean dF/F per condition as stored (peaks, not blank subtracted). Readings
(claims file): "all binocular" (a) each cell's mean over the eight conditions, (b) all
cell-by-condition responses pooled; "best" each cell's largest binocular mean. DSI is the stored
value; cells as in fig3def (joint, and binocular-responsive).
for pool, TT in POOLS.items():
print(pool)
print(f"{'resp':4s} {'den':5s} {'nPV+':>4s} {'nPV-':>4s} | (a) PV+ {'med%':>5s} PV- {'med%':>5s} {'p':>8s} | "
f"(b) PV+ {'med%':>5s} PV- {'med%':>5s} {'p':>8s} | best PV+ {'med%':>5s} PV- {'med%':>5s} {'p':>8s}")
for resp in "LNW":
R = resp_sets(TT, resp)
for den in (("joint", "bino") if resp != "L" else ("joint",)):
g = {}
for pv in (True, False):
k = R[den] & (TT["pv"] == pv) & (TT["dsi"] < 0.1)
bm = TT["mu"][k, 1:9] * 100
g[pv] = (bm.mean(1), bm.ravel(), bm.max(1), k.sum())
pa = mannwhitneyu(g[True][0], g[False][0], alternative="two-sided").pvalue
pb = mannwhitneyu(g[True][1], g[False][1], alternative="two-sided").pvalue
pc = mannwhitneyu(g[True][2], g[False][2], alternative="two-sided").pvalue
print(f"{resp:4s} {den:5s} {g[True][3]:4d} {g[False][3]:4d} | {np.median(g[True][0]):12.2f} {np.median(g[False][0]):9.2f} {pa:8.1e} | "
f"{np.median(g[True][1]):12.2f} {np.median(g[False][1]):9.2f} {pb:8.1e} | {np.median(g[True][2]):13.2f} "
f"{np.median(g[False][2]):9.2f} {pc:8.1e}")
print()
mice 7-10 PV+, 8-10 PV- resp den nPV+ nPV- | (a) PV+ med% PV- med% p | (b) PV+ med% PV- med% p | best PV+ med% PV- med% p L joint 51 32 | 6.94 5.02 8.9e-03 | 6.91 5.22 1.7e-09 | 9.23 7.47 1.7e-02 N joint 24 25 | 8.72 5.87 3.4e-03 | 8.70 6.00 9.2e-12 | 12.09 8.53 6.0e-03 N bino 51 38 | 7.14 5.02 5.3e-03 | 7.27 5.38 2.7e-09 | 9.60 7.98 1.4e-02 W joint 66 44 | 6.26 3.97 6.6e-03 | 6.20 4.50 3.4e-10 | 8.87 6.91 2.2e-02 W bino 76 53 | 6.08 3.92 9.2e-04 | 6.09 4.40 6.6e-14 | 8.75 6.87 7.4e-03 mice 8-10 resp den nPV+ nPV- | (a) PV+ med% PV- med% p | (b) PV+ med% PV- med% p | best PV+ med% PV- med% p L joint 14 32 | 5.18 5.02 9.7e-01 | 5.12 5.22 4.9e-01 | 7.26 7.47 6.8e-01 N joint 4 25 | 5.88 5.87 9.8e-01 | 5.70 6.00 5.2e-01 | 9.19 8.53 9.3e-01 N bino 17 38 | 4.98 5.02 5.8e-01 | 5.12 5.38 2.1e-02 | 7.38 7.98 3.1e-01 W joint 21 44 | 4.33 3.97 7.1e-01 | 4.35 4.50 1.5e-01 | 6.77 6.91 3.8e-01 W bino 24 53 | 4.24 3.92 8.4e-01 | 4.19 4.40 2.0e-01 | 6.91 6.87 4.8e-01
Result: not reproduced. No reading gives both tests at p < 0.001 with PV+ larger, as the criterion requires. In the main pool PV+ responses are larger in every reading (main reading: medians 6.94% against 5.02% over all binocular conditions per cell, p = 0.0089; 6.91% against 5.22% pooled, p = 1.7e-09; best condition 9.23% against 7.47%, p = 0.017; 51 PV+ and 32 PV- cells with DSI < 0.1), and the medians are mostly above the paper's (PV- 3.92% to 5.87% against 4.3%). Within mice 8 to 10 only, no reading gives a difference at p < 0.001 (p from 0.021 to 0.98; the lowest, N with binocular-responsive cells and responses pooled, has PV- larger), and PV+ and PV- medians are within 0.7 percentage points of each other, so the difference in the main pool comes from the PV+ cells of mouse 7.
Local network analysis: positions¶
Positions in um: the mask centroid scaled by 300 um per 455 columns and per 256 rows (reading 7a) or 300/455 um per pixel on both axes (7b), plus depth. Individual cells must lie 50 um or more from the image edges. Populations come from the same mouse, the 50 um sphere and the shells to 150 um, at least 3 cells, the individual left out.
pos = {sq: pvc10.positions_um(T, sq) for sq in (False, True)}
edge = {sq: pvc10.edge_ok(T, sq) for sq in (False, True)}
for sq in (False, True):
print(f"scale {'7b square pixels' if sq else '7a 300 um per axis'}: x {pos[sq][:, 0].min():.0f} to {pos[sq][:, 0].max():.0f} um, "
f"y {pos[sq][:, 1].min():.0f} to {pos[sq][:, 1].max():.0f} um; cells 50 um from the edges: "
f"PV+ {np.sum(edge[sq] & T['pv'])} of {np.sum(T['pv'])}, PV- {np.sum(edge[sq] & ~T['pv'])} of {np.sum(~T['pv'])}")
print("depths per mouse:", {m: sorted(set(T["depth"][T["mouse"] == m].astype(int))) for m in (8, 9, 10)})
OD_CONFIGS = {"main (L, 7a, 3a)": dict(resp="L", den="joint", sq=False, drop_all=False),
"N (neuropil test), joint": dict(resp="N", den="joint", sq=False, drop_all=False),
"N, mono (reading 2b)": dict(resp="N", den="mono", sq=False, drop_all=False),
"W (no neuropil test), joint": dict(resp="W", den="joint", sq=False, drop_all=False),
"W, mono": dict(resp="W", den="mono", sq=False, drop_all=False),
"L, square pixels (7b)": dict(resp="L", den="joint", sq=True, drop_all=False),
"L, all radii (3b)": dict(resp="L", den="joint", sq=False, drop_all=True)}
def run_od(ind_pv, cfg, axis, seed, ind_filter=None, pop_filter=None, plane="all"):
R = resp_sets(T, cfg["resp"])
o = pvc10.odi(T)
base = R[cfg["den"]] & np.isfinite(o)
ind = base & (T["pv"] == ind_pv) & edge[cfg["sq"]]
pop = base & ~T["pv"]
if ind_filter is not None:
ind &= ind_filter(o)
if pop_filter is not None:
pop &= pop_filter(o)
return pvc10.od_local(T, np.nonzero(ind)[0], np.nonzero(pop)[0], o, pos[cfg["sq"]],
np.random.default_rng(seed), axis=axis, drop_all=cfg["drop_all"], plane=plane)
def show(res, label):
cells = []
for r in res:
if "slope" not in r:
cells.append(f"{r['radius']}: n {r['n']}")
continue
cells.append(f"{r['radius']}: n {r['n']} {r['slope']:.2f}+/-{r['se']:.2f} sh {r['shuf_mean']:.2f} "
f"p1 {r['p_one']:.3f} p2 {r['p_two']:.3f}")
print(f"{label:40s} | " + " | ".join(cells))
scale 7a 300 um per axis: x 28 to 257 um, y 14 to 273 um; cells 50 um from the edges: PV+ 55 of 58, PV- 382 of 421
scale 7b square pixels: x 28 to 257 um, y 8 to 154 um; cells 50 um from the edges: PV+ 36 of 58, PV- 292 of 421
depths per mouse: {8: [np.int64(205), np.int64(220), np.int64(235), np.int64(250), np.int64(265), np.int64(280)], 9: [np.int64(150), np.int64(170), np.int64(190), np.int64(210), np.int64(230), np.int64(250), np.int64(270)], 10: [np.int64(125), np.int64(150), np.int64(175), np.int64(200), np.int64(225), np.int64(275)]}
fig4ag-salt-and-pepper¶
Mouse V1 has no functional organization for ocular dominance or disparity preference; response similarity is unrelated to distance between cells (MI, bootstrapped PCA slope 0.01, p = 1; disparity, circular-linear correlation 0, p = 1, cells with DSI > 0.1).
A claim of absence at p < 0.05. Pairs of visually responsive cells (PV+ and PV-) within a mouse, 3D distance in um. MI reading (a): |MI difference| against distance, major-axis slope, p (i) from the bootstrap (two-sided, against zero), (ii) against slopes with positions shuffled within the mouse. Disparity: preference difference against distance, CircStat circ_corrcl.
rng = np.random.default_rng(401)
def pairs(sel, sq, pos_override=None):
P = pos[sq] if pos_override is None else pos_override
I, J = [], []
for m in (8, 9, 10):
idx = np.nonzero(sel & (T["mouse"] == m))[0]
a, b = np.triu_indices(len(idx), 1)
I.append(idx[a]); J.append(idx[b])
I, J = np.concatenate(I), np.concatenate(J)
return I, J, np.linalg.norm(P[I] - P[J], axis=1)
for name, cfg in [("main (L, 7a)", ("L", "joint", False)), ("N", ("N", "joint", False)),
("W", ("W", "joint", False)), ("L, square pixels (7b)", ("L", "joint", True))]:
resp, den, sq = cfg
R = resp_sets(T, resp)
o = pvc10.odi(T)
sel = R[den] & np.isfinite(o)
I, J, dist = pairs(sel, sq)
dmi = np.abs(np.abs(o[I]) - np.abs(o[J]))
b = pvc10.boot_slopes(dist, dmi, rng)
b = b[np.isfinite(b)]
p_boot = min(1.0, 2 * min(np.mean(b <= 0), np.mean(b >= 0)))
sh = []
for _ in range(1000):
P = pos[sq].copy()
for m in (8, 9, 10):
k = np.nonzero(sel & (T["mouse"] == m))[0]
P[k] = P[rng.permutation(k)]
_, _, ds = pairs(sel, sq, P)
sh.append(pvc10.ma_slope(ds, dmi))
sh = np.array(sh)
m_ = b.mean()
p_sh = (np.sum(np.abs(sh - sh.mean()) >= abs(m_ - sh.mean())) + 1) / (len(sh) + 1)
print(f"MI {name:20s}: {len(I)} pairs ({sel.sum()} cells), slope {m_:.2e} per um ({m_ * 100:.4f} per 100 um) +/- {b.std(ddof=1):.1e}; "
f"Pearson r {np.corrcoef(dist, dmi)[0, 1]:.3f}; p (i) bootstrap {p_boot:.3f}, (ii) shuffle {p_sh:.3f}")
ds_sel = sel & (T["dsi"] > 0.1)
I, J, dist = pairs(ds_sel, sq)
dpref = np.deg2rad(T["pref"][I] - T["pref"][J])
rho, p = pvc10.circ_corrcl(dpref, dist)
print(f" disparity: {len(I)} pairs ({ds_sel.sum()} cells with DSI > 0.1), circ_corrcl rho {rho:.3f}, p {p:.3f}")
MI main (L, 7a) : 12271 pairs (215 cells), slope -1.40e-05 per um (-0.0014 per 100 um) +/- 6.5e-05; Pearson r -0.002; p (i) bootstrap 0.818, (ii) shuffle 0.870 disparity: 7952 pairs (169 cells with DSI > 0.1), circ_corrcl rho 0.010, p 0.690
MI N : 2565 pairs (104 cells), slope -1.14e-04 per um (-0.0114 per 100 um) +/- 1.2e-04; Pearson r -0.018; p (i) bootstrap 0.356, (ii) shuffle 0.490 disparity: 1309 pairs (75 cells with DSI > 0.1), circ_corrcl rho 0.017, p 0.821
MI W : 16487 pairs (272 cells), slope 2.87e-05 per um (0.0029 per 100 um) +/- 5.8e-05; Pearson r 0.004; p (i) bootstrap 0.624, (ii) shuffle 0.703 disparity: 10119 pairs (207 cells with DSI > 0.1), circ_corrcl rho 0.018, p 0.211
MI L, square pixels (7b): 12271 pairs (215 cells), slope 4.12e-05 per um (0.0041 per 100 um) +/- 7.1e-05; Pearson r 0.005; p (i) bootstrap 0.546, (ii) shuffle 0.706 disparity: 7952 pairs (169 cells with DSI > 0.1), circ_corrcl rho 0.014, p 0.451
Result: reproduced. The absence holds in every reading at p < 0.05. Main reading: the |MI difference| of 12,271 pairs of 215 cells against their distance has a major-axis slope of -1.4e-05 per um, p = 0.818 (bootstrap) and 0.870 (shuffle); the difference in disparity preference of 7,952 pairs of 169 cells with DSI > 0.1 against distance gives circ_corrcl rho = 0.010, p = 0.690. Across the other readings p is 0.211 or more. The pairs are not independent, so these p-values, like the paper's, are optimistic; it does not change the absence.
fig4d-pv-od-matches-local-50um, fig4f-pv-od-spatial-decay, fig4f-od-length-constant¶
PV+ interneuron ocular dominance closely matches the average ocular dominance of local PV- cells within 50 um (mean slope 0.78 +/- 0.25 SE, n = 86, bootstrapped PCA).
The match between PV+ ocular dominance and the local population average decreases with distance and is significant against shuffled populations only for the nearest populations (50 and 75 um, p < 0.01).
An exponential fit to the PV+ ocular dominance slopes across radii gives a spatial length constant of 71.4 um (r2 = 0.80).
Each row: per radius, n, mean bootstrap slope +/- SE, the shuffled slopes' mean, and p one-sided (p1) and two-sided (p2) against the shuffles. Axis (1a) individual on population, (1b) population on individual.
OD_PV = {}
for i, (name, cfg) in enumerate(OD_CONFIGS.items()):
for axis in "ab":
res = run_od(True, cfg, axis, 500 + 10 * i + (axis == "b"))
OD_PV[(name, axis)] = res
show(res, f"{name} ({'1' + axis})")
print()
r_ = np.array(pvc10.RADII, float)
print("exponential fits y = a exp(-r / lambda) to the five mean slopes (unweighted; weighted by SE):")
for (name, axis), res in OD_PV.items():
if all("slope" in r for r in res):
y = np.array([r["slope"] for r in res]); se = np.array([r["se"] for r in res])
a, lam, r2 = pvc10.exp_fit(r_, y)
aw, lamw, r2w = pvc10.exp_fit(r_, y, sigma=se)
print(f" {name:28s} 1{axis}: lambda {lam:8.1f} um, r2 {r2:6.2f}; weighted lambda {lamw:8.1f}, r2 {r2w:6.2f}")
else:
print(f" {name:28s} 1{axis}: a radius has fewer than 3 cells, no fit")
print()
print("criteria per reading (p1 one-sided, p2 two-sided):")
for (name, axis), res in OD_PV.items():
if not all("slope" in r for r in res):
print(f" {name:28s} 1{axis}: a radius has fewer than 3 cells")
continue
s50 = res[0]
sig1 = [r["radius"] for r in res if r["p_one"] < 0.01]
sig2 = [r["radius"] for r in res if r["p_two"] < 0.01]
sig05 = [r["radius"] for r in res if r["p_one"] < 0.05]
largest = s50["slope"] == max(r["slope"] for r in res)
print(f" {name:28s} 1{axis}: fig4d slope within {abs(s50['slope'] - 0.78) <= 0.25}, count within "
f"{abs(s50['n'] - 86) <= 8.6}, p1 < 0.01 {s50['p_one'] < 0.01} | fig4f p1 < 0.01 at {sig1}, p2 < 0.01 at {sig2}, "
f"p1 < 0.05 at {sig05}, 50 um largest {largest}; pattern {sig1 == [50, 75] and largest}, "
f"only 50 um {sig1 == [50]}, pattern at p < 0.05 only {sig05 == [50, 75] and largest}")
main (L, 7a, 3a) (1a) | 50: n 18 3.87+/-27.60 sh 3.59 p1 0.465 p2 0.920 | 75: n 22 3.77+/-11.95 sh 5.55 p1 0.543 p2 0.678 | 100: n 25 16.13+/-305.35 sh 4.93 p1 0.049 p2 0.080 | 125: n 25 2.04+/-25.73 sh 6.43 p1 0.912 p2 0.176 | 150: n 21 19.40+/-666.58 sh 3.38 p1 0.035 p2 0.064
main (L, 7a, 3a) (1b) | 50: n 18 0.56+/-0.28 sh 0.21 p1 0.015 p2 0.032 | 75: n 22 0.45+/-0.26 sh 0.23 p1 0.091 p2 0.187 | 100: n 25 0.13+/-0.12 sh 0.26 p1 0.814 p2 0.391 | 125: n 25 0.62+/-1.77 sh 0.26 p1 0.009 p2 0.016 | 150: n 21 -0.11+/-0.36 sh 0.28 p1 0.989 p2 0.018
N (neuropil test), joint (1a) | 50: n 5 3.61+/-2.22 sh -2.34 p1 0.244 p2 0.414 | 75: n 8 1.78+/-0.40 sh 0.40 p1 0.804 p2 0.969 | 100: n 8 5.32+/-98.35 sh 6.54 p1 0.338 p2 0.914 | 125: n 9 -0.76+/-22.88 sh 3.52 p1 0.759 p2 0.399 | 150: n 6 -5.43+/-29.53 sh -2.93 p1 0.698 p2 0.797
N (neuropil test), joint (1b) | 50: n 5 0.40+/-0.27 sh -0.12 p1 0.039 p2 0.074 | 75: n 8 0.56+/-0.08 sh 0.19 p1 0.020 p2 0.070 | 100: n 8 0.03+/-0.20 sh -0.03 p1 0.405 p2 0.738 | 125: n 9 -0.07+/-1.36 sh 0.19 p1 0.825 p2 0.367 | 150: n 6 -0.45+/-0.43 sh -0.00 p1 0.964 p2 0.050
N, mono (reading 2b) (1a) | 50: n 5 3.07+/-2.18 sh 10.57 p1 0.309 p2 0.757 | 75: n 8 1.80+/-0.38 sh 7.15 p1 0.807 p2 0.268 | 100: n 8 -10.86+/-635.79 sh 18.42 p1 0.790 p2 0.252 | 125: n 10 3.17+/-160.75 sh 3.10 p1 0.312 p2 0.973 | 150: n 7 -1.92+/-16.03 sh 1.91 p1 0.604 p2 0.682
N, mono (reading 2b) (1b) | 50: n 5 0.52+/-0.39 sh -0.10 p1 0.012 p2 0.021 | 75: n 8 0.57+/-0.09 sh 0.30 p1 0.127 p2 0.238 | 100: n 8 0.04+/-0.16 sh -0.03 p1 0.377 p2 0.711 | 125: n 10 0.27+/-3.41 sh 0.43 p1 0.807 p2 0.407 | 150: n 7 -0.28+/-4.51 sh 0.03 p1 0.900 p2 0.191
W (no neuropil test), joint (1a) | 50: n 28 5.92+/-2.94 sh -139.05 p1 0.653 p2 0.663 | 75: n 36 3.45+/-1.51 sh 6.96 p1 0.820 p2 0.311 | 100: n 39 17.02+/-265.83 sh 5.69 p1 0.019 p2 0.020 | 125: n 39 6.47+/-30.55 sh 5.21 p1 0.195 p2 0.625 | 150: n 29 7.58+/-62.93 sh 3.06 p1 0.004 p2 0.004
W (no neuropil test), joint (1b) | 50: n 28 0.20+/-0.07 sh 0.11 p1 0.162 p2 0.323 | 75: n 36 0.33+/-0.22 sh 0.21 p1 0.089 p2 0.168 | 100: n 39 0.12+/-0.09 sh 0.21 p1 0.903 p2 0.201 | 125: n 39 0.22+/-0.10 sh 0.24 p1 0.539 p2 0.894 | 150: n 29 0.28+/-0.20 sh 0.34 p1 0.795 p2 0.412
W, mono (1a) | 50: n 28 5.69+/-4.25 sh 17.36 p1 0.665 p2 0.451 | 75: n 36 3.44+/-1.73 sh 14.74 p1 0.828 p2 0.204 | 100: n 39 15.73+/-137.50 sh 14.08 p1 0.025 p2 0.989 | 125: n 39 7.26+/-59.38 sh 6.19 p1 0.159 p2 0.829 | 150: n 29 5.00+/-19.82 sh 3.11 p1 0.038 p2 0.038
W, mono (1b) | 50: n 28 0.20+/-0.08 sh 0.10 p1 0.133 p2 0.287 | 75: n 36 0.33+/-0.10 sh 0.20 p1 0.099 p2 0.188 | 100: n 39 0.12+/-0.09 sh 0.21 p1 0.876 p2 0.238 | 125: n 39 0.23+/-0.10 sh 0.23 p1 0.505 p2 0.951 | 150: n 29 0.29+/-0.18 sh 0.35 p1 0.760 p2 0.474
L, square pixels (7b) (1a) | 50: n 17 1.09+/-1.24 sh -1.95 p1 0.776 p2 0.937 | 75: n 16 23.44+/-1737.28 sh 4.99 p1 0.077 p2 0.177 | 100: n 17 1.81+/-27.15 sh 7.81 p1 0.742 p2 0.328 | 125: n 16 -18.80+/-455.13 sh -0.35 p1 0.936 p2 0.126 | 150: n 10 -0.20+/-69.60 sh 2.27 p1 0.963 p2 0.263
L, square pixels (7b) (1b) | 50: n 17 1.42+/-1.94 sh 0.19 p1 0.003 p2 0.003 | 75: n 16 0.16+/-0.33 sh 0.16 p1 0.478 p2 0.986 | 100: n 17 -0.02+/-0.97 sh 0.30 p1 0.887 p2 0.222 | 125: n 16 -1.08+/-11.51 sh 0.18 p1 0.996 p2 0.011 | 150: n 10 0.12+/-0.35 sh 0.36 p1 0.867 p2 0.267
L, all radii (3b) (1a) | 50: n 14 -5.60+/-111.86 sh 2.72 p1 0.821 p2 0.321 | 75: n 14 91.04+/-1737.20 sh 8.64 p1 0.016 p2 0.031 | 100: n 14 -1.72+/-369.09 sh 0.03 p1 0.804 p2 0.999 | 125: n 14 -2.82+/-98.23 sh 5.61 p1 0.853 p2 0.304 | 150: n 14 1.74+/-56.61 sh -0.23 p1 0.817 p2 0.994
L, all radii (3b) (1b) | 50: n 14 0.53+/-0.37 sh 0.15 p1 0.036 p2 0.061 | 75: n 14 0.10+/-0.09 sh 0.14 p1 0.584 p2 0.802 | 100: n 14 -0.03+/-0.24 sh 0.16 p1 0.891 p2 0.224 | 125: n 14 0.17+/-0.18 sh 0.14 p1 0.428 p2 0.851 | 150: n 14 -0.56+/-0.87 sh 0.15 p1 1.000 p2 0.001 exponential fits y = a exp(-r / lambda) to the five mean slopes (unweighted; weighted by SE): main (L, 7a, 3a) 1a: lambda 2500082118.3 um, r2 -0.00; weighted lambda 134.6, r2 -0.81 main (L, 7a, 3a) 1b: lambda 79.0 um, r2 0.31; weighted lambda 36.1, r2 0.11 N (neuropil test), joint 1a: lambda 37.4 um, r2 0.25; weighted lambda 35.4, r2 0.25 N (neuropil test), joint 1b: lambda 32.4 um, r2 0.44; weighted lambda 58.3, r2 0.02 N, mono (reading 2b) 1a: lambda 9.6 um, r2 0.04; weighted lambda 46.5, r2 -0.10 N, mono (reading 2b) 1b: lambda 42.3 um, r2 0.55; weighted lambda 40.4, r2 0.29 W (no neuropil test), joint 1a: lambda 1136300649.5 um, r2 -0.00; weighted lambda 47.3, r2 -1.75 W (no neuropil test), joint 1b: lambda 341395742.5 um, r2 -0.00; weighted lambda 593032507.0, r2 -0.26 W, mono 1a: lambda 659885497.8 um, r2 -0.00; weighted lambda 52.9, r2 -1.52 W, mono 1b: lambda 1063712222.3 um, r2 -0.00; weighted lambda 2603.7, r2 -0.07 L, square pixels (7b) 1a: lambda 41.2 um, r2 0.09; weighted lambda 480686988.0, r2 -0.00 L, square pixels (7b) 1b: lambda 10.3 um, r2 0.62; weighted lambda 11.3, r2 0.62 L, all radii (3b) 1a: lambda -171015627.8 um, r2 -0.00; weighted lambda -152616099.1, r2 -0.20 L, all radii (3b) 1b: lambda 13.8 um, r2 0.45; weighted lambda 15.1, r2 0.45 criteria per reading (p1 one-sided, p2 two-sided): main (L, 7a, 3a) 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [100, 150], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False main (L, 7a, 3a) 1b: fig4d slope within True, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [125], p2 < 0.01 at [], p1 < 0.05 at [50, 125], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False N (neuropil test), joint 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False N (neuropil test), joint 1b: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [50, 75], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False N, mono (reading 2b) 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False N, mono (reading 2b) 1b: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [50], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False W (no neuropil test), joint 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [150], p2 < 0.01 at [150], p1 < 0.05 at [100, 150], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False W (no neuropil test), joint 1b: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False W, mono 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [100, 150], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False W, mono 1b: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False L, square pixels (7b) 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False L, square pixels (7b) 1b: fig4d slope within False, count within False, p1 < 0.01 True | fig4f p1 < 0.01 at [50], p2 < 0.01 at [50], p1 < 0.05 at [50], 50 um largest True; pattern False, only 50 um True, pattern at p < 0.05 only False L, all radii (3b) 1a: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [], p1 < 0.05 at [75], 50 um largest False; pattern False, only 50 um False, pattern at p < 0.05 only False L, all radii (3b) 1b: fig4d slope within False, count within False, p1 < 0.01 False | fig4f p1 < 0.01 at [], p2 < 0.01 at [150], p1 < 0.05 at [50], 50 um largest True; pattern False, only 50 um False, pattern at p < 0.05 only False
Result: not reproduced. In the main reading with population on individual (reading 1b), the 50 um slope is 0.56 +/- 0.28, within the paper's 0.78 +/- 0.25, and it exceeds the shuffled slopes at p = 0.015 (one-sided) or 0.032 (two-sided), not at the p < 0.01 the criterion asks; the count is 18 PV+ cells against 86 +/- 8.6, from 3 of the 6 animals. Reading 1a (individual on population) gives 3.87 +/- 27.60, outside. Among the other readings N gives 0.40 +/- 0.27 (joint) and 0.52 +/- 0.39 (mono) from 5 cells each, and W gives 0.20 +/- 0.07 from 28 cells; none is significant at p < 0.01. The criterion has only a reproduced case, and the criteria check above shows the count failing under every reading, and the slope and p < 0.01 never met together (the one reading with p < 0.01 at 50 um, 7b with 1b, gives 1.42 +/- 1.94 from 17 cells), so by the criterion the claim is not reproduced. The outcome was partially reproduced until the third verification round, which agreed that the criterion gives not reproduced.
Result: partially reproduced. In the main reading (1b) the slopes at 50, 75, 100, 125 and 150 um are 0.56, 0.45, 0.13, 0.62 and -0.11, with one-sided shuffle p = 0.015, 0.091, 0.814, 0.009 and 0.989: neither 50 nor 75 um is significant at p < 0.01, 125 um is, and the 50 um slope is not the largest. At p < 0.05, 50 and 125 um are significant, which is not the pattern either. Reading 1a gives no slope significant at p < 0.01. No reading gives the full pattern (criteria check above). Under square pixels (7b) with population on individual (1b), only the 50 um slope is significant: 1.42 +/- 1.94 from 17 cells, p1 = 0.003 and p2 = 0.003, with p1 from 0.478 to 0.996 and p2 from 0.011 to 0.986 at 75 to 150 um. That is the criterion's partial case ("only the 50 um slope is significant"), under one reading as the criterion allows. The 50 um mean slope has an SE of 1.94, so the case rests on a fragile value, and p2 at 125 um (0.011) is just above 0.01, so it holds only narrowly under the two-sided reading. The shuffle test compares the mean of the bootstrap slopes with single shuffled slopes, as the Methods describe; with 17 cells that mean may sit above the slope of the data, which would make p1 too favourable. The slope of the data is not printed here. The outcome was not reproduced until the third verification round, which agreed with the change.
Result: not reproduced. Fitted to the main reading's five slopes (1b), the exponential gives lambda = 79.0 um with r2 = 0.31 (tolerance 64.3 to 78.5 um and 0.72 to 0.88); weighted by SE, 36.1 um and r2 0.11. Reading 1a gives no usable fit (lambda in the millions of um). Across all readings, r2 is at most 0.62 (L with square pixels, lambda 10.3 um).
fig4ef-pvminus-od-unrelated¶
Individual PV- ODI and local population averages are generally unrelated; there is a weak but significant relation within 50 um (mean slope 0.10 +/- 0.02, n = 717, p < 0.01), and none at other distances (p > 0.5), with no spatial dependence.
Result: partially reproduced, resting on the assumption about the binocmonocinds lists and on reading 3b. Under reading 1a (individual on population) the slopes are not usable (6.70 +/- 6.19 at 50 um, SEs up to 419.80), so the outcome is judged on 1b, which gives slopes of the size the paper reports. Under 1b with a cell dropped from all radii when one radius has fewer than 3 neighbours (3b), the 50 um slope is 0.09 +/- 0.04, within 0.10 +/- 0.02, but with one-sided p = 0.013, not the p < 0.01 asked, and from 127 PV- cells against 717; no radius from 75 to 150 um is significant at p < 0.01 (p1 0.165 to 0.953, p2 0.105 to 0.561). The absence holds and the 50 um values fall short: the criterion's partial case. W with 1b gives the same case (50 um 0.15 +/- 0.04, p1 = 0.233 with joint cells; no larger radius significant). In the main reading with 1b the 50 um slope is 0.17 +/- 0.06 (outside 0.08 to 0.12) and significant (p1 = 0.002), but 100 um is significant too (p1 = 0.002), so the absence fails there; that reading alone would give not reproduced.
figs6ab-pvminus-pv-like-od¶
PV- cells with ODI similar to PV+ neurons (-0.5 < ODI < 0) show no spatial dependence of ocular dominance, indistinguishable from shuffled populations (p > 0.10).
A claim of absence at p < 0.10 (two-sided, p2, as "indistinguishable" has no direction; p1 is shown). Populations (a) unrestricted, (b) restricted to the same ODI range.
like = lambda o: (o > -0.5) & (o < 0)
S6 = {}
for i, (name, cfg) in enumerate(OD_CONFIGS.items()):
for pr in ("a", "b"):
for axis in "ab":
res = run_od(False, cfg, axis, 700 + 10 * i + 2 * (pr == "b") + (axis == "b"), ind_filter=like,
pop_filter=like if pr == "b" else None)
S6[(name, pr, axis)] = res
show(res, f"{name} pop {pr} ({'1' + axis})")
print()
print("per reading: radii with p2 < 0.10, and the largest bootstrap SE (far above 1 marks an unstable orientation)")
for (name, pr, axis), res in S6.items():
ok = [r for r in res if "slope" in r]
print(f" {name:28s} pop {pr} 1{axis}: {[r['radius'] for r in ok if r['p_two'] < 0.10]}, largest SE {max(r['se'] for r in ok):.2f}")
main (L, 7a, 3a) pop a (1a) | 50: n 54 0.19+/-0.15 sh 0.04 p1 0.121 p2 0.236 | 75: n 56 0.15+/-0.61 sh 0.02 p1 0.178 p2 0.338 | 100: n 57 0.22+/-0.94 sh -0.03 p1 0.048 p2 0.105 | 125: n 55 -0.16+/-2.20 sh -0.01 p1 0.857 p2 0.297 | 150: n 47 -0.23+/-0.46 sh -0.08 p1 0.704 p2 0.541
main (L, 7a, 3a) pop a (1b) | 50: n 54 -4.21+/-293.90 sh -12.38 p1 0.660 p2 0.787 | 75: n 56 111.23+/-3117.32 sh -14.84 p1 0.028 p2 0.050 | 100: n 57 -13.10+/-294.29 sh 16.21 p1 0.803 p2 0.270 | 125: n 55 24.75+/-1389.91 sh 21.66 p1 0.117 p2 0.973 | 150: n 47 4.57+/-421.14 sh -1.78 p1 0.206 p2 0.448
main (L, 7a, 3a) pop b (1a) | 50: n 38 3.60+/-308.00 sh 48.82 p1 0.277 p2 0.778 | 75: n 49 14.50+/-109.54 sh -26.91 p1 0.228 p2 0.288 | 100: n 48 -7.53+/-4.29 sh -6.75 p1 0.299 p2 0.974 | 125: n 45 25.87+/-185.37 sh -10.32 p1 0.230 p2 0.417 | 150: n 40 -15.80+/-114.90 sh -10.78 p1 0.632 p2 0.757
main (L, 7a, 3a) pop b (1b) | 50: n 38 -0.04+/-0.06 sh -0.04 p1 0.501 p2 0.992 | 75: n 49 0.11+/-0.06 sh -0.04 p1 0.028 p2 0.051 | 100: n 48 -0.15+/-0.06 sh -0.03 p1 0.983 p2 0.036 | 125: n 45 0.08+/-0.04 sh -0.02 p1 0.006 p2 0.019 | 150: n 40 -0.09+/-0.05 sh -0.02 p1 0.827 p2 0.349
N (neuropil test), joint pop a (1a) | 50: n 19 0.14+/-0.13 sh 0.10 p1 0.208 p2 0.882 | 75: n 20 0.33+/-4.12 sh 0.04 p1 0.140 p2 0.306 | 100: n 21 -0.32+/-4.17 sh -0.12 p1 0.715 p2 0.473 | 125: n 18 0.61+/-43.45 sh 1.31 p1 0.080 p2 0.943 | 150: n 16 -0.00+/-2.02 sh 0.23 p1 0.485 p2 0.765
N (neuropil test), joint pop a (1b) | 50: n 19 5.32+/-33.31 sh -6.08 p1 0.263 p2 0.359 | 75: n 20 2.57+/-52.21 sh -4.39 p1 0.406 p2 0.533 | 100: n 21 -5.86+/-16.53 sh -0.79 p1 0.767 p2 0.350 | 125: n 18 -28.08+/-610.98 sh -2.57 p1 0.957 p2 0.099 | 150: n 16 2.17+/-491.01 sh 0.39 p1 0.241 p2 0.551
N (neuropil test), joint pop b (1a) | 50: n 8 -14.28+/-333.99 sh 21.06 p1 0.803 p2 0.254 | 75: n 11 -99.59+/-2377.77 sh 0.09 p1 0.967 p2 0.065 | 100: n 13 6.79+/-477.96 sh -13.84 p1 0.238 p2 0.302 | 125: n 13 -1.82+/-27.46 sh -92.30 p1 0.318 p2 0.334 | 150: n 8 0.52+/-307.86 sh 6.03 p1 0.361 p2 0.826
N (neuropil test), joint pop b (1b) | 50: n 8 -0.09+/-1.04 sh -0.06 p1 0.593 p2 0.820 | 75: n 11 -0.17+/-0.27 sh -0.06 p1 0.806 p2 0.402 | 100: n 13 0.05+/-0.11 sh -0.06 p1 0.278 p2 0.548 | 125: n 13 -0.29+/-0.19 sh -0.07 p1 0.961 p2 0.083 | 150: n 8 0.04+/-0.45 sh -0.07 p1 0.237 p2 0.459
N, mono (reading 2b) pop a (1a) | 50: n 19 0.15+/-0.12 sh -0.09 p1 0.095 p2 0.180 | 75: n 20 0.48+/-13.18 sh 0.07 p1 0.099 p2 0.243 | 100: n 21 12.44+/-406.10 sh -0.24 p1 0.001 p2 0.002 | 125: n 19 0.38+/-5.22 sh -0.11 p1 0.005 p2 0.012 | 150: n 16 -0.08+/-2.19 sh -0.37 p1 0.490 p2 0.748
N, mono (reading 2b) pop a (1b) | 50: n 19 24.80+/-607.98 sh -0.34 p1 0.081 p2 0.156 | 75: n 20 0.31+/-19.40 sh -14.85 p1 0.499 p2 0.545 | 100: n 21 -4.48+/-16.95 sh 8.49 p1 0.585 p2 0.454 | 125: n 19 20.35+/-1410.33 sh -7.81 p1 0.052 p2 0.109 | 150: n 16 6.11+/-277.60 sh -1.45 p1 0.073 p2 0.121
N, mono (reading 2b) pop b (1a) | 50: n 8 -3.45+/-328.16 sh 9.39 p1 0.412 p2 0.723 | 75: n 11 -21.65+/-613.30 sh -25.00 p1 0.868 p2 0.969 | 100: n 13 15.38+/-448.94 sh -117.28 p1 0.128 p2 0.138 | 125: n 13 -0.68+/-123.09 sh -11.90 p1 0.305 p2 0.424 | 150: n 8 0.28+/-86.12 sh -3.10 p1 0.369 p2 0.742
N, mono (reading 2b) pop b (1b) | 50: n 8 0.02+/-1.53 sh -0.06 p1 0.290 p2 0.577 | 75: n 11 -0.16+/-0.24 sh -0.05 p1 0.808 p2 0.392 | 100: n 13 0.05+/-0.12 sh -0.06 p1 0.269 p2 0.536 | 125: n 13 -0.29+/-0.27 sh -0.07 p1 0.959 p2 0.086 | 150: n 8 0.02+/-0.72 sh -0.05 p1 0.290 p2 0.589
W (no neuropil test), joint pop a (1a) | 50: n 73 0.25+/-0.10 sh 0.20 p1 0.284 p2 0.629 | 75: n 74 0.55+/-1.55 sh 0.24 p1 0.029 p2 0.036 | 100: n 76 -0.08+/-9.15 sh 0.17 p1 0.995 p2 0.020 | 125: n 72 0.06+/-0.14 sh 0.10 p1 0.619 p2 0.724 | 150: n 65 0.02+/-0.14 sh 0.11 p1 0.853 p2 0.285
W (no neuropil test), joint pop a (1b) | 50: n 73 5.18+/-9.72 sh -0.89 p1 0.466 p2 0.514 | 75: n 74 5.24+/-68.05 sh 10.14 p1 0.312 p2 0.729 | 100: n 76 3.47+/-84.42 sh 4.04 p1 0.848 p2 0.835 | 125: n 72 1.46+/-171.55 sh 10.54 p1 0.826 p2 0.320 | 150: n 65 10.72+/-204.72 sh 9.35 p1 0.279 p2 0.869
W (no neuropil test), joint pop b (1a) | 50: n 60 11.43+/-372.38 sh 32.14 p1 0.376 p2 0.752 | 75: n 67 -74.84+/-2313.06 sh -103.76 p1 0.908 p2 0.953 | 100: n 65 -46.56+/-610.50 sh -156.09 p1 0.803 p2 0.843 | 125: n 57 -1.41+/-586.36 sh 7.90 p1 0.385 p2 0.956 | 150: n 47 -78.27+/-2473.80 sh 25.58 p1 0.936 p2 0.101
W (no neuropil test), joint pop b (1b) | 50: n 60 0.06+/-0.05 sh -0.01 p1 0.123 p2 0.235 | 75: n 67 0.01+/-0.05 sh -0.02 p1 0.289 p2 0.568 | 100: n 65 -0.04+/-0.06 sh -0.01 p1 0.738 p2 0.524 | 125: n 57 0.01+/-0.04 sh -0.01 p1 0.299 p2 0.590 | 150: n 47 -0.03+/-0.06 sh -0.04 p1 0.449 p2 0.882
W, mono pop a (1a) | 50: n 73 0.25+/-0.11 sh 0.20 p1 0.294 p2 0.628 | 75: n 74 0.61+/-0.81 sh 0.26 p1 0.020 p2 0.025 | 100: n 76 1.98+/-55.91 sh 0.17 p1 0.001 p2 0.001 | 125: n 72 0.05+/-0.38 sh 0.11 p1 0.689 p2 0.554 | 150: n 65 0.01+/-0.14 sh 0.11 p1 0.848 p2 0.314
W, mono pop a (1b) | 50: n 73 4.58+/-7.83 sh 8.72 p1 0.567 p2 0.538 | 75: n 74 -3.51+/-99.29 sh 4.13 p1 0.983 p2 0.071 | 100: n 76 -16.68+/-624.24 sh -0.56 p1 0.964 p2 0.138 | 125: n 72 12.05+/-207.45 sh 8.62 p1 0.272 p2 0.679 | 150: n 65 11.03+/-272.89 sh 3.24 p1 0.256 p2 0.383
W, mono pop b (1a) | 50: n 60 11.82+/-140.22 sh 17.25 p1 0.374 p2 0.877 | 75: n 67 -3.52+/-643.23 sh -77.75 p1 0.370 p2 0.422 | 100: n 65 35.03+/-1269.02 sh -172.80 p1 0.201 p2 0.235 | 125: n 57 13.81+/-660.37 sh 21.16 p1 0.360 p2 0.897 | 150: n 47 14.66+/-316.76 sh -13.30 p1 0.197 p2 0.353
W, mono pop b (1b) | 50: n 60 0.06+/-0.06 sh -0.01 p1 0.110 p2 0.214 | 75: n 67 0.01+/-0.05 sh -0.02 p1 0.283 p2 0.570 | 100: n 65 -0.03+/-0.07 sh -0.00 p1 0.722 p2 0.563 | 125: n 57 0.01+/-0.04 sh -0.01 p1 0.297 p2 0.585 | 150: n 47 -0.04+/-0.06 sh -0.05 p1 0.451 p2 0.864
L, square pixels (7b) pop a (1a) | 50: n 41 0.18+/-0.22 sh 0.25 p1 0.463 p2 0.767 | 75: n 42 0.10+/-1.52 sh -0.01 p1 0.356 p2 0.528 | 100: n 39 0.31+/-1.14 sh 0.13 p1 0.195 p2 0.355 | 125: n 38 -0.14+/-0.37 sh -0.04 p1 0.774 p2 0.631 | 150: n 28 -0.11+/-0.12 sh -1.29 p1 0.685 p2 0.691
L, square pixels (7b) pop a (1b) | 50: n 41 16.56+/-257.62 sh 7.35 p1 0.118 p2 0.243 | 75: n 42 -3.96+/-591.71 sh 0.21 p1 0.675 p2 0.801 | 100: n 39 5.00+/-41.69 sh 4.97 p1 0.430 p2 0.996 | 125: n 38 -5.25+/-65.36 sh 25.35 p1 0.684 p2 0.362 | 150: n 28 -3.21+/-82.80 sh 2.80 p1 0.630 p2 0.554
L, square pixels (7b) pop b (1a) | 50: n 36 22.91+/-1107.88 sh -15.34 p1 0.170 p2 0.269 | 75: n 35 -30.44+/-815.59 sh -9.43 p1 0.775 p2 0.468 | 100: n 34 -59.09+/-932.78 sh -14.14 p1 0.823 p2 0.407 | 125: n 30 21.86+/-442.55 sh -3.05 p1 0.189 p2 0.373 | 150: n 14 -21.66+/-697.97 sh -4.57 p1 0.889 p2 0.273
L, square pixels (7b) pop b (1b) | 50: n 36 0.04+/-0.07 sh -0.04 p1 0.134 p2 0.279 | 75: n 35 -0.01+/-0.07 sh -0.04 p1 0.331 p2 0.665 | 100: n 34 -0.04+/-0.04 sh -0.02 p1 0.664 p2 0.675 | 125: n 30 0.02+/-0.07 sh -0.03 p1 0.278 p2 0.551 | 150: n 14 -0.15+/-0.51 sh -0.03 p1 0.760 p2 0.483
L, all radii (3b) pop a (1a) | 50: n 45 0.25+/-1.35 sh 0.00 p1 0.150 p2 0.386 | 75: n 45 -4.12+/-85.85 sh -10.97 p1 0.935 p2 0.951 | 100: n 45 1.27+/-14.59 sh 1.43 p1 0.271 p2 0.985 | 125: n 45 -1.25+/-33.15 sh 0.84 p1 0.793 p2 0.376 | 150: n 45 -0.49+/-0.85 sh 1.00 p1 0.793 p2 0.281
L, all radii (3b) pop a (1b) | 50: n 45 4.22+/-60.26 sh 5.40 p1 0.306 p2 0.911 | 75: n 45 21.99+/-654.63 sh -0.64 p1 0.031 p2 0.063 | 100: n 45 -21.14+/-615.64 sh 1.75 p1 0.978 p2 0.044 | 125: n 45 -3.67+/-3.09 sh -1.10 p1 0.835 p2 0.330 | 150: n 45 -6.52+/-14.33 sh -0.45 p1 0.821 p2 0.354
L, all radii (3b) pop b (1a) | 50: n 30 -40.92+/-1036.73 sh -12.80 p1 0.872 p2 0.380 | 75: n 30 -245.45+/-8579.02 sh -7.04 p1 0.980 p2 0.035 | 100: n 30 -23.93+/-315.05 sh -25.02 p1 0.696 p2 0.976 | 125: n 30 12.37+/-711.00 sh -21.89 p1 0.312 p2 0.470 | 150: n 30 -5.88+/-293.04 sh 20.99 p1 0.373 p2 0.746
L, all radii (3b) pop b (1b) | 50: n 30 -0.05+/-0.06 sh -0.02 p1 0.624 p2 0.755 | 75: n 30 0.08+/-0.06 sh -0.02 p1 0.105 p2 0.204 | 100: n 30 -0.03+/-0.05 sh -0.02 p1 0.596 p2 0.786 | 125: n 30 0.02+/-0.03 sh -0.02 p1 0.164 p2 0.334 | 150: n 30 -0.07+/-0.06 sh -0.02 p1 0.762 p2 0.476 per reading: radii with p2 < 0.10, and the largest bootstrap SE (far above 1 marks an unstable orientation) main (L, 7a, 3a) pop a 1a: [], largest SE 2.20 main (L, 7a, 3a) pop a 1b: [75], largest SE 3117.32 main (L, 7a, 3a) pop b 1a: [], largest SE 308.00 main (L, 7a, 3a) pop b 1b: [75, 100, 125], largest SE 0.06 N (neuropil test), joint pop a 1a: [], largest SE 43.45 N (neuropil test), joint pop a 1b: [125], largest SE 610.98 N (neuropil test), joint pop b 1a: [75], largest SE 2377.77 N (neuropil test), joint pop b 1b: [125], largest SE 1.04 N, mono (reading 2b) pop a 1a: [100, 125], largest SE 406.10 N, mono (reading 2b) pop a 1b: [], largest SE 1410.33 N, mono (reading 2b) pop b 1a: [], largest SE 613.30 N, mono (reading 2b) pop b 1b: [125], largest SE 1.53 W (no neuropil test), joint pop a 1a: [75, 100], largest SE 9.15 W (no neuropil test), joint pop a 1b: [], largest SE 204.72 W (no neuropil test), joint pop b 1a: [], largest SE 2473.80 W (no neuropil test), joint pop b 1b: [], largest SE 0.06 W, mono pop a 1a: [75, 100], largest SE 55.91 W, mono pop a 1b: [75], largest SE 624.24 W, mono pop b 1a: [], largest SE 1269.02 W, mono pop b 1b: [], largest SE 0.07 L, square pixels (7b) pop a 1a: [], largest SE 1.52 L, square pixels (7b) pop a 1b: [], largest SE 591.71 L, square pixels (7b) pop b 1a: [], largest SE 1107.88 L, square pixels (7b) pop b 1b: [], largest SE 0.51 L, all radii (3b) pop a 1a: [], largest SE 85.85 L, all radii (3b) pop a 1b: [75, 100], largest SE 654.63 L, all radii (3b) pop b 1a: [75], largest SE 8579.02 L, all radii (3b) pop b 1b: [], largest SE 0.06
Result: reproduced, resting on the assumption about the binocmonocinds lists and on two further choices: unrestricted populations (reading a) and, for them, reading 1a. The claims file leaves open whether the populations are restricted (b) as well as the individual cells; this attempt takes (a), as the Results restrict the individual cells ("Limiting our analysis to PV- cells") and say nothing of the populations. Judged at the paper's p < 0.10 on the two-sided shuffle p (p2), the main reading with (a) and 1a gives no radius below 0.10 (p2 0.236, 0.338, 0.105, 0.297, 0.541; 47 to 57 cells), and 1a is the stable orientation for (a) (largest SE 2.20, against 3117.32 under 1b). With restricted populations (b) the stable orientation is 1b (SEs 0.04 to 0.06), and there 75, 100 and 125 um give p2 = 0.051, 0.036 and 0.019, so under (b) the claim would not be reproduced. The 1a values for (b) (p2 0.288 to 0.974) come from slopes with SEs of 4.29 to 308.00 and do not support the outcome. With (a) and 1a, N with joint cells also gives no p2 below 0.10 (lowest 0.306), but N with monocular cells (100 um, p2 = 0.002) and W with joint cells (75 and 100 um, p2 = 0.036 and 0.020) do not, so the outcome depends on the cell set as well.
figs4-same-plane-control¶
PV+ interneurons still match population ocular dominance at small radii when neighbours in the same focal plane are excluded, and PV+ cells also show a distance-dependent relation with populations drawn from their own focal plane only.
for i, (name, cfg) in enumerate(OD_CONFIGS.items()):
for plane in ("other", "same"):
for axis in "ab":
res = run_od(True, cfg, axis, 800 + 10 * i + 2 * (plane == "same") + (axis == "b"), plane=plane)
show(res, f"{name} {plane} plane ({'1' + axis})")
main (L, 7a, 3a) other plane (1a) | 50: n 17 5.73+/-37.25 sh 3.86 p1 0.306 p2 0.628 | 75: n 21 1.47+/-1.24 sh -6.45 p1 0.820 p2 0.899 | 100: n 24 12.63+/-177.43 sh 12.20 p1 0.077 p2 0.996 | 125: n 25 2.55+/-14.05 sh 23.95 p1 0.755 p2 0.267 | 150: n 21 11.88+/-363.28 sh -0.42 p1 0.103 p2 0.153
main (L, 7a, 3a) other plane (1b) | 50: n 17 0.16+/-0.08 sh 0.16 p1 0.483 p2 0.984 | 75: n 21 0.74+/-0.24 sh 0.19 p1 0.020 p2 0.021 | 100: n 24 0.14+/-0.17 sh 0.27 p1 0.761 p2 0.472 | 125: n 25 0.12+/-18.48 sh 0.22 p1 0.748 p2 0.518 | 150: n 21 -0.16+/-0.41 sh 0.24 p1 0.989 p2 0.039
main (L, 7a, 3a) same plane (1a) | 50: n 13 2.00+/-1.52 sh 1.09 p1 0.157 p2 0.569 | 75: n 14 2.64+/-5.77 sh 2.93 p1 0.295 p2 0.943 | 100: n 8 1.59+/-7.54 sh -5.66 p1 0.608 p2 0.632 | 125: n 9 1.79+/-54.25 sh 1.24 p1 0.594 p2 0.640 | 150: n 6 2.20+/-2.02 sh -4.94 p1 0.426 p2 0.451
main (L, 7a, 3a) same plane (1b) | 50: n 13 0.57+/-0.24 sh 1.28 p1 0.513 p2 0.743 | 75: n 14 0.38+/-0.20 sh 0.81 p1 0.494 p2 0.594 | 100: n 8 1.07+/-3.37 sh 0.19 p1 0.035 p2 0.061 | 125: n 9 0.35+/-0.16 sh 0.51 p1 0.740 p2 0.509 | 150: n 6 0.74+/-0.40 sh 0.28 p1 0.155 p2 0.209
N (neuropil test), joint other plane (1a) | 50: n 4 11.98+/-39.25 sh 2.28 p1 0.081 p2 0.239 | 75: n 7 1.78+/-6.98 sh -0.60 p1 0.626 p2 0.878 | 100: n 7 -0.31+/-85.20 sh 11.82 p1 0.477 p2 0.601 | 125: n 8 3.36+/-94.58 sh 1.20 p1 0.317 p2 0.660 | 150: n 5 -2.84+/-26.01 sh 1.43 p1 0.627 p2 0.682
N (neuropil test), joint other plane (1b) | 50: n 4 0.44+/-0.22 sh -0.10 p1 0.053 p2 0.112 | 75: n 7 0.51+/-0.14 sh 0.12 p1 0.091 p2 0.188 | 100: n 7 0.11+/-0.27 sh -0.02 p1 0.298 p2 0.565 | 125: n 8 -0.52+/-3.62 sh 0.16 p1 0.973 p2 0.078 | 150: n 5 -0.26+/-2.06 sh 0.05 p1 0.915 p2 0.183
N (neuropil test), joint same plane (1a) | 50: n 2 | 75: n 2 | 100: n 0 | 125: n 0 | 150: n 1
N (neuropil test), joint same plane (1b) | 50: n 2 | 75: n 2 | 100: n 0 | 125: n 0 | 150: n 1
N, mono (reading 2b) other plane (1a) | 50: n 4 1.83+/-1.66 sh -6.73 p1 0.352 p2 0.442 | 75: n 7 1.90+/-2.71 sh 3.50 p1 0.532 p2 0.695 | 100: n 7 404.80+/-8346.14 sh 1.23 p1 0.008 p2 0.013 | 125: n 10 2.28+/-79.66 sh -166.05 p1 0.415 p2 0.416 | 150: n 6 -2.79+/-60.75 sh -7.23 p1 0.642 p2 0.757
N, mono (reading 2b) other plane (1b) | 50: n 4 0.68+/-0.57 sh -0.08 p1 0.016 p2 0.029 | 75: n 7 0.52+/-0.11 sh 0.13 p1 0.113 p2 0.232 | 100: n 7 0.11+/-0.18 sh -0.03 p1 0.277 p2 0.509 | 125: n 10 0.01+/-2.68 sh 0.47 p1 0.958 p2 0.084 | 150: n 6 -0.48+/-2.76 sh 0.07 p1 0.980 p2 0.050
N, mono (reading 2b) same plane (1a) | 50: n 2 | 75: n 2 | 100: n 0 | 125: n 0 | 150: n 1
N, mono (reading 2b) same plane (1b) | 50: n 2 | 75: n 2 | 100: n 0 | 125: n 0 | 150: n 1
W (no neuropil test), joint other plane (1a) | 50: n 26 6.43+/-10.85 sh 3.97 p1 0.550 p2 0.817 | 75: n 32 4.30+/-14.69 sh 14.06 p1 0.690 p2 0.388 | 100: n 37 1.56+/-439.51 sh 7.97 p1 0.981 p2 0.125 | 125: n 37 7.79+/-38.41 sh 5.53 p1 0.159 p2 0.447 | 150: n 27 3.19+/-7.60 sh 3.24 p1 0.374 p2 0.969
W (no neuropil test), joint other plane (1b) | 50: n 26 0.19+/-0.07 sh 0.05 p1 0.108 p2 0.212 | 75: n 32 0.26+/-0.14 sh 0.16 p1 0.159 p2 0.327 | 100: n 37 0.05+/-0.08 sh 0.18 p1 0.914 p2 0.179 | 125: n 37 0.18+/-0.11 sh 0.25 p1 0.724 p2 0.567 | 150: n 27 0.39+/-0.17 sh 0.34 p1 0.318 p2 0.617
W (no neuropil test), joint same plane (1a) | 50: n 20 1.58+/-30.24 sh 0.96 p1 0.484 p2 0.772 | 75: n 21 5.67+/-30.20 sh 11.69 p1 0.122 p2 0.907 | 100: n 14 3.03+/-17.32 sh 2.88 p1 0.273 p2 0.947 | 125: n 13 1.58+/-0.43 sh 1.45 p1 0.268 p2 0.687 | 150: n 7 1.18+/-0.52 sh 1.55 p1 0.735 p2 0.416
W (no neuropil test), joint same plane (1b) | 50: n 20 0.44+/-0.16 sh 0.44 p1 0.344 p2 0.995 | 75: n 21 0.28+/-0.16 sh 0.50 p1 0.716 p2 0.536 | 100: n 14 0.68+/-0.38 sh 0.54 p1 0.290 p2 0.689 | 125: n 13 0.69+/-0.22 sh 0.75 p1 0.613 p2 0.732 | 150: n 7 0.96+/-0.43 sh 0.75 p1 0.140 p2 0.306
W, mono other plane (1a) | 50: n 26 6.10+/-3.27 sh 38.21 p1 0.559 p2 0.490 | 75: n 32 5.57+/-38.61 sh 7.89 p1 0.519 p2 0.672 | 100: n 37 37.31+/-921.63 sh 13.98 p1 0.017 p2 0.048 | 125: n 37 8.92+/-96.83 sh 6.34 p1 0.114 p2 0.560 | 150: n 27 2.96+/-2.29 sh 3.27 p1 0.509 p2 0.757
W, mono other plane (1b) | 50: n 26 0.19+/-0.07 sh 0.06 p1 0.099 p2 0.189 | 75: n 32 0.26+/-0.12 sh 0.16 p1 0.180 p2 0.358 | 100: n 37 0.06+/-0.08 sh 0.18 p1 0.917 p2 0.163 | 125: n 37 0.18+/-0.11 sh 0.24 p1 0.706 p2 0.599 | 150: n 27 0.38+/-0.16 sh 0.34 p1 0.294 p2 0.610
W, mono same plane (1a) | 50: n 20 2.63+/-3.59 sh 24.15 p1 0.359 p2 0.664 | 75: n 21 3.52+/-46.05 sh -5.96 p1 0.216 p2 0.239 | 100: n 15 2.19+/-83.98 sh 2.78 p1 0.436 p2 0.772 | 125: n 13 1.57+/-0.49 sh 1.44 p1 0.262 p2 0.694 | 150: n 7 1.02+/-3.51 sh 1.66 p1 0.875 p2 0.193
W, mono same plane (1b) | 50: n 20 0.43+/-0.15 sh 0.02 p1 0.361 p2 0.431 | 75: n 21 0.28+/-0.15 sh 0.40 p1 0.690 p2 0.702 | 100: n 15 0.74+/-1.74 sh 0.53 p1 0.241 p2 0.522 | 125: n 13 0.67+/-0.19 sh 0.75 p1 0.670 p2 0.650 | 150: n 7 0.98+/-0.42 sh 0.65 p1 0.148 p2 0.183
L, square pixels (7b) other plane (1a) | 50: n 16 1.18+/-14.80 sh 4.25 p1 0.738 p2 0.475 | 75: n 16 1.69+/-29.61 sh 17.82 p1 0.661 p2 0.385 | 100: n 17 0.41+/-9.17 sh 4.50 p1 0.869 p2 0.232 | 125: n 16 -1.40+/-27.74 sh 5.37 p1 0.698 p2 0.383 | 150: n 10 -0.18+/-60.34 sh 5.63 p1 0.938 p2 0.134
L, square pixels (7b) other plane (1b) | 50: n 16 0.85+/-0.62 sh 0.17 p1 0.027 p2 0.045 | 75: n 16 0.22+/-0.60 sh 0.12 p1 0.335 p2 0.682 | 100: n 17 0.50+/-9.99 sh 0.51 p1 0.308 p2 0.990 | 125: n 16 -1.53+/-25.74 sh 0.23 p1 0.998 p2 0.009 | 150: n 10 0.13+/-0.35 sh 0.36 p1 0.816 p2 0.380
L, square pixels (7b) same plane (1a) | 50: n 13 3.81+/-11.65 sh -1.08 p1 0.161 p2 0.225 | 75: n 11 1.09+/-52.89 sh 1.52 p1 0.674 p2 0.724 | 100: n 5 0.23+/-0.69 sh 1.54 p1 0.953 p2 0.230 | 125: n 2 | 150: n 1
L, square pixels (7b) same plane (1b) | 50: n 13 0.38+/-1.80 sh 0.71 p1 0.524 p2 0.668 | 75: n 11 0.13+/-28.28 sh 2.05 p1 0.786 p2 0.248 | 100: n 5 0.57+/-32.30 sh 0.64 p1 0.453 p2 0.836 | 125: n 2 | 150: n 1
L, all radii (3b) other plane (1a) | 50: n 13 17.64+/-492.45 sh -3.36 p1 0.104 p2 0.167 | 75: n 13 25.41+/-602.02 sh -4.07 p1 0.086 p2 0.168 | 100: n 13 3.92+/-190.54 sh -2.52 p1 0.276 p2 0.669 | 125: n 13 -2.88+/-148.15 sh -12.72 p1 0.275 p2 0.448 | 150: n 13 -24.00+/-588.63 sh 644.07 p1 0.875 p2 0.129
L, all radii (3b) other plane (1b) | 50: n 13 0.06+/-0.10 sh -0.08 p1 0.273 p2 0.513 | 75: n 13 0.06+/-0.15 sh -0.08 p1 0.169 p2 0.338 | 100: n 13 -0.25+/-0.52 sh -0.09 p1 0.904 p2 0.186 | 125: n 13 -0.06+/-0.14 sh -0.08 p1 0.487 p2 0.805 | 150: n 13 -1.08+/-1.04 sh -0.08 p1 0.997 p2 0.004
L, all radii (3b) same plane (1a) | 50: n 0 | 75: n 0 | 100: n 0 | 125: n 0 | 150: n 0
L, all radii (3b) same plane (1b) | 50: n 0 | 75: n 0 | 100: n 0 | 125: n 0 | 150: n 0
Result: not reproduced. (A) With neighbours in the individual's own plane excluded, the main reading gives no slope significant at p < 0.01 at 50 or 75 um (1b: 0.16, p = 0.483; 0.74, p = 0.020; 1a: p 0.306 and 0.820). (B) Within the individual's plane, the 1b slopes (0.57, 0.38, 1.07, 0.35, 0.74) do not decrease from 50 to 150 um and the 50 um slope is not significant (p = 0.513). No reading in the table gives a 50 or 75 um slope significant at p < 0.01 in (A).
fig4i-pv-disparity-matches-local, fig4k-pv-disparity-length-constant¶
Despite their weak selectivity, PV+ interneurons' disparity preferences are similar to those of nearby populations, significantly correlated with the 50 um population vector angle (shuffle-corrected r = 0.19 +/- 0.07 SE, n = 63).
PV+ disparity preference shows a spatial dependence in its correlation with population vector angles; an exponential fit gives a length constant of 78.7 um (r2 = 0.63).
Individuals with DSI >= 0.1 and 50 um from the edges; populations of visually responsive PV- cells (8a) or those with DSI >= 0.1 (8b); correlation (9a) as printed in the Methods or (9b) CircStat circ_corrcc. Per radius: n, the shuffle-corrected value +/- bootstrap SE, the true value, and p of the true value against the shuffles (one-sided).
DISP_CONFIGS = {"main (L, 7a, 8a)": dict(resp="L", den="joint", sq=False, pop_dsi=False),
"N (neuropil test), joint": dict(resp="N", den="joint", sq=False, pop_dsi=False),
"N, bino": dict(resp="N", den="bino", sq=False, pop_dsi=False),
"W (no neuropil test), joint": dict(resp="W", den="joint", sq=False, pop_dsi=False),
"W, bino": dict(resp="W", den="bino", sq=False, pop_dsi=False),
"L, square pixels (7b)": dict(resp="L", den="joint", sq=True, pop_dsi=False),
"L, populations DSI >= 0.1 (8b)": dict(resp="L", den="joint", sq=False, pop_dsi=True)}
def run_disp(ind_pv, cfg, corr, seed, ind_filter=None, pop_filter=None):
R = resp_sets(T, cfg["resp"])
base = R[cfg["den"]] & np.isfinite(T["dsi"])
ind = base & (T["pv"] == ind_pv) & edge[cfg["sq"]] & (T["dsi"] >= 0.1)
pop = base & ~T["pv"]
if cfg["pop_dsi"]:
pop &= T["dsi"] >= 0.1
if ind_filter is not None:
ind &= ind_filter(T["dsi"])
if pop_filter is not None:
pop &= pop_filter(T["dsi"])
return pvc10.disp_local(T, np.nonzero(ind)[0], np.nonzero(pop)[0], T["dsi"], T["pref"], pos[cfg["sq"]],
np.random.default_rng(seed), corr=corr)
def show_d(res, label):
cells = []
for r in res:
if "corr" not in r:
cells.append(f"{r['radius']}: n {r['n']}")
continue
sig = "*" if r["p_one"] < 0.05 else ""
sig += "+" if r["corrected"] > 1.96 * r["se"] else ""
cells.append(f"{r['radius']}: n {r['n']} {r['corrected']:.2f}+/-{r['se']:.2f} (r {r['corr']:.2f}) p {r['p_one']:.3f}{sig}")
print(f"{label:44s} | " + " | ".join(cells))
print("* p < 0.05 against the shuffles (reading a); + corrected value above 1.96 SE (reading b)")
D_PV = {}
for i, (name, cfg) in enumerate(DISP_CONFIGS.items()):
for corr in ("printed", "corrcc"):
res = run_disp(True, cfg, corr, 900 + 10 * i + (corr == "corrcc"))
D_PV[(name, corr)] = res
show_d(res, f"{name} ({'9a' if corr == 'printed' else '9b'})")
print()
print("exponential fits to the five shuffle-corrected values (unweighted; weighted by SE):")
for (name, corr), res in D_PV.items():
if all("corr" in r for r in res):
y = np.array([r["corrected"] for r in res]); se = np.array([r["se"] for r in res])
a, lam, r2 = pvc10.exp_fit(r_, y)
aw, lamw, r2w = pvc10.exp_fit(r_, y, sigma=se)
dec = "decreases 50 to 150 um" if y[0] > y[-1] else "does not decrease 50 to 150 um"
print(f" {name:36s} {corr:7s}: lambda {lam:8.1f} um, r2 {r2:6.2f}; weighted lambda {lamw:8.1f}, r2 {r2w:6.2f}; {dec}")
else:
print(f" {name:36s} {corr:7s}: a radius has fewer than 3 cells, no fit")
* p < 0.05 against the shuffles (reading a); + corrected value above 1.96 SE (reading b)
main (L, 7a, 8a) (9a) | 50: n 9 -0.04+/-0.20 (r 0.35) p 0.570 | 75: n 10 -0.17+/-0.16 (r 0.25) p 0.828 | 100: n 11 0.22+/-0.13 (r 0.67) p 0.085 | 125: n 12 0.05+/-0.14 (r 0.54) p 0.371 | 150: n 10 -0.01+/-0.14 (r 0.45) p 0.517
main (L, 7a, 8a) (9b) | 50: n 9 -0.63+/-0.62 (r -0.57) p 0.954 | 75: n 10 -0.22+/-0.45 (r -0.03) p 0.747 | 100: n 11 0.48+/-0.29 (r 0.79) p 0.039* | 125: n 12 0.08+/-0.27 (r 0.49) p 0.444 | 150: n 10 0.42+/-0.45 (r 0.66) p 0.127
N (neuropil test), joint (9a) | 50: n 4 0.07+/-0.24 (r 0.51) p 0.353 | 75: n 4 -0.11+/-0.26 (r 0.34) p 0.654 | 100: n 5 -0.13+/-0.23 (r 0.27) p 0.707 | 125: n 7 -0.23+/-0.19 (r 0.11) p 0.934 | 150: n 4 -0.14+/-0.24 (r 0.31) p 0.734
/home/runner/work/encore/encore/entries/scholl-2015/pvc10.py:456: RuntimeWarning: invalid value encountered in scalar divide return float(np.sum(sa * sb) / np.sqrt(np.sum(sa ** 2) * np.sum(sb ** 2)))
N (neuropil test), joint (9b) | 50: n 4 -0.29+/-nan (r -0.39) p 0.671 | 75: n 4 -0.37+/-nan (r -0.43) p 0.669 | 100: n 5 -0.93+/-nan (r -0.91) p 0.985 | 125: n 7 0.11+/-0.48 (r 0.16) p 0.417 | 150: n 4 -0.77+/-nan (r -0.82) p 0.882
N, bino (9a) | 50: n 23 -0.05+/-0.12 (r 0.21) p 0.651 | 75: n 25 0.32+/-0.10 (r 0.62) p 0.002*+ | 100: n 25 -0.14+/-0.11 (r 0.18) p 0.913 | 125: n 25 -0.06+/-0.12 (r 0.27) p 0.704 | 150: n 23 -0.22+/-0.10 (r 0.07) p 0.973
N, bino (9b) | 50: n 23 0.19+/-0.27 (r 0.32) p 0.192 | 75: n 25 0.30+/-0.30 (r 0.59) p 0.014* | 100: n 25 -0.02+/-0.32 (r 0.31) p 0.575 | 125: n 25 -0.01+/-0.23 (r 0.28) p 0.578 | 150: n 23 -0.24+/-0.25 (r -0.09) p 0.867
W (no neuropil test), joint (9a) | 50: n 14 0.03+/-0.15 (r 0.30) p 0.397 | 75: n 15 0.12+/-0.16 (r 0.39) p 0.196 | 100: n 18 -0.01+/-0.14 (r 0.25) p 0.530 | 125: n 19 0.02+/-0.13 (r 0.25) p 0.409 | 150: n 14 -0.16+/-0.13 (r 0.08) p 0.912
W (no neuropil test), joint (9b) | 50: n 14 0.21+/-0.36 (r 0.04) p 0.243 | 75: n 15 -0.40+/-0.39 (r -0.15) p 0.918 | 100: n 18 0.04+/-0.32 (r 0.30) p 0.460 | 125: n 19 0.08+/-0.36 (r 0.24) p 0.391 | 150: n 14 0.15+/-0.30 (r 0.15) p 0.319
W, bino (9a) | 50: n 27 0.05+/-0.11 (r 0.28) p 0.326 | 75: n 31 0.30+/-0.10 (r 0.53) p 0.001*+ | 100: n 31 -0.14+/-0.10 (r 0.12) p 0.935 | 125: n 31 -0.11+/-0.10 (r 0.16) p 0.868 | 150: n 27 -0.17+/-0.09 (r 0.09) p 0.932
W, bino (9b) | 50: n 27 0.03+/-0.27 (r 0.15) p 0.471 | 75: n 31 0.03+/-0.36 (r 0.29) p 0.439 | 100: n 31 -0.09+/-0.26 (r 0.21) p 0.759 | 125: n 31 -0.08+/-0.25 (r 0.17) p 0.722 | 150: n 27 -0.04+/-0.29 (r 0.07) p 0.612
L, square pixels (7b) (9a) | 50: n 10 -0.02+/-0.19 (r 0.42) p 0.539 | 75: n 9 0.15+/-0.12 (r 0.59) p 0.193 | 100: n 10 0.11+/-0.12 (r 0.58) p 0.244 | 125: n 10 -0.13+/-0.19 (r 0.32) p 0.766 | 150: n 6 -0.04+/-0.14 (r 0.50) p 0.578
L, square pixels (7b) (9b) | 50: n 10 -0.39+/-0.47 (r -0.08) p 0.825 | 75: n 9 -0.02+/-0.43 (r 0.22) p 0.526 | 100: n 10 0.42+/-0.30 (r 0.72) p 0.098 | 125: n 10 -0.46+/-0.43 (r -0.14) p 0.898 | 150: n 6 -0.69+/-0.45 (r -0.47) p 0.858
L, populations DSI >= 0.1 (8b) (9a) | 50: n 9 -0.04+/-0.19 (r 0.35) p 0.546 | 75: n 9 -0.10+/-0.18 (r 0.33) p 0.699 | 100: n 11 0.20+/-0.13 (r 0.65) p 0.093 | 125: n 12 0.07+/-0.14 (r 0.55) p 0.350 | 150: n 10 0.01+/-0.15 (r 0.47) p 0.488
L, populations DSI >= 0.1 (8b) (9b) | 50: n 9 -0.56+/-0.60 (r -0.50) p 0.904 | 75: n 9 -0.29+/-0.42 (r -0.20) p 0.789 | 100: n 11 0.46+/-0.31 (r 0.78) p 0.029* | 125: n 12 0.07+/-0.27 (r 0.50) p 0.449 | 150: n 10 0.36+/-0.39 (r 0.64) p 0.168 exponential fits to the five shuffle-corrected values (unweighted; weighted by SE): main (L, 7a, 8a) printed: lambda 20.7 um, r2 0.05; weighted lambda 131618651.8, r2 -0.04; does not decrease 50 to 150 um main (L, 7a, 8a) corrcc : lambda 12.2 um, r2 0.49; weighted lambda 404843485.7, r2 -0.10; does not decrease 50 to 150 um N (neuropil test), joint printed: lambda 2.2 um, r2 -1.10; weighted lambda 2.2, r2 -1.10; decreases 50 to 150 um N (neuropil test), joint corrcc : lambda 640681399.9 um, r2 -0.00; weighted lambda 70.0, r2 -1.49; decreases 50 to 150 um N, bino printed: lambda 34.9 um, r2 -0.01; weighted lambda 35.7, r2 -0.03; decreases 50 to 150 um N, bino corrcc : lambda 32.3 um, r2 0.38; weighted lambda 30.0, r2 0.38; decreases 50 to 150 um W (no neuropil test), joint printed: lambda 34.5 um, r2 0.11; weighted lambda 31.1, r2 0.11; decreases 50 to 150 um W (no neuropil test), joint corrcc : lambda 1.9 um, r2 0.18; weighted lambda 127926155.3, r2 -0.01; decreases 50 to 150 um W, bino printed: lambda 29.1 um, r2 0.09; weighted lambda 26.5, r2 0.09; decreases 50 to 150 um W, bino corrcc : lambda 12.4 um, r2 -0.30; weighted lambda 9.9, r2 -0.30; decreases 50 to 150 um L, square pixels (7b) printed: lambda 59.0 um, r2 0.05; weighted lambda 69.9, r2 -0.09; decreases 50 to 150 um L, square pixels (7b) corrcc : lambda 730924283.1 um, r2 -0.00; weighted lambda 296700085.2, r2 -0.10; decreases 50 to 150 um L, populations DSI >= 0.1 (8b) printed: lambda 270006765.1 um, r2 -0.00; weighted lambda 228420484.6, r2 -0.05; does not decrease 50 to 150 um L, populations DSI >= 0.1 (8b) corrcc : lambda 14.5 um, r2 0.46; weighted lambda 991968971.3, r2 -0.09; does not decrease 50 to 150 um
/home/runner/work/encore/encore/entries/scholl-2015/pvc10.py:474: OptimizeWarning: Covariance of the parameters could not be estimated (a, lam), _ = curve_fit(f, r, y, p0=(max(y[0], 1e-3) * 2, 70.0), sigma=sigma, maxfev=20000)
Result: not reproduced. In the main reading 9 PV+ cells with DSI >= 0.1 have a 50 um population; the shuffle-corrected correlation is -0.04 +/- 0.20 (printed formula, 9a; p = 0.570) or -0.63 +/- 0.62 (CircStat, 9b; p = 0.954), against 0.19 +/- 0.07 with 63 cells. No reading gives a 50 um value that is significant under either test of significance; the one significant value in the main rows is at 100 um (9b, p = 0.039).
Result: not reproduced. The main reading's corrected correlations do not decrease from 50 to 150 um (9a: -0.04, -0.17, 0.22, 0.05, -0.01), and the fits give lambda = 20.7 um with r2 = 0.05 (9a) and 12.2 um with r2 = 0.49 (9b), against 78.7 um and 0.63. No reading has lambda and r2 within tolerance.
fig4jk-pvminus-disparity-weak¶
PV- neurons' disparity preferences show little relation to population biases; the shuffle-corrected circular correlation is significant only for the nearest neighbours (50 um, r = 0.05 +/- 0.02, n = 1,090).
D_PVM = {}
for i, (name, cfg) in enumerate(DISP_CONFIGS.items()):
for corr in ("printed", "corrcc"):
res = run_disp(False, cfg, corr, 1000 + 10 * i + (corr == "corrcc"))
D_PVM[(name, corr)] = res
show_d(res, f"{name} ({'9a' if corr == 'printed' else '9b'})")
main (L, 7a, 8a) (9a) | 50: n 130 -0.02+/-0.05 (r 0.06) p 0.658 | 75: n 136 -0.05+/-0.04 (r 0.03) p 0.891 | 100: n 141 -0.04+/-0.05 (r 0.05) p 0.779 | 125: n 137 0.02+/-0.05 (r 0.11) p 0.288 | 150: n 119 0.02+/-0.05 (r 0.10) p 0.335
main (L, 7a, 8a) (9b) | 50: n 130 -0.04+/-0.09 (r -0.01) p 0.666 | 75: n 136 -0.12+/-0.10 (r -0.10) p 0.945 | 100: n 141 0.09+/-0.10 (r 0.11) p 0.115 | 125: n 137 -0.05+/-0.11 (r -0.02) p 0.697 | 150: n 119 -0.04+/-0.10 (r -0.04) p 0.692
N (neuropil test), joint (9a) | 50: n 41 -0.05+/-0.08 (r 0.08) p 0.757 | 75: n 49 -0.11+/-0.07 (r 0.03) p 0.963 | 100: n 49 -0.01+/-0.08 (r 0.12) p 0.540 | 125: n 42 -0.08+/-0.07 (r 0.05) p 0.906 | 150: n 44 -0.07+/-0.07 (r 0.05) p 0.878
N (neuropil test), joint (9b) | 50: n 41 0.23+/-0.23 (r 0.18) p 0.071 | 75: n 49 0.03+/-0.15 (r -0.06) p 0.423 | 100: n 49 -0.01+/-0.25 (r -0.06) p 0.519 | 125: n 42 -0.18+/-0.29 (r -0.24) p 0.883 | 150: n 44 0.04+/-0.14 (r -0.01) p 0.402
N, bino (9a) | 50: n 208 0.03+/-0.04 (r 0.10) p 0.229 | 75: n 223 0.06+/-0.04 (r 0.13) p 0.046* | 100: n 224 0.00+/-0.04 (r 0.07) p 0.414 | 125: n 225 -0.06+/-0.03 (r 0.00) p 0.995 | 150: n 207 -0.01+/-0.04 (r 0.04) p 0.652
N, bino (9b) | 50: n 208 0.08+/-0.10 (r 0.15) p 0.091 | 75: n 223 0.11+/-0.10 (r 0.18) p 0.022* | 100: n 224 -0.01+/-0.08 (r 0.04) p 0.587 | 125: n 225 0.01+/-0.07 (r 0.03) p 0.448 | 150: n 207 -0.20+/-0.11 (r -0.23) p 0.998
W (no neuropil test), joint (9a) | 50: n 160 -0.02+/-0.04 (r 0.05) p 0.715 | 75: n 168 0.02+/-0.05 (r 0.09) p 0.291 | 100: n 172 -0.06+/-0.04 (r 0.01) p 0.978 | 125: n 163 0.01+/-0.05 (r 0.08) p 0.329 | 150: n 142 -0.04+/-0.04 (r 0.04) p 0.824
W (no neuropil test), joint (9b) | 50: n 160 0.03+/-0.09 (r 0.08) p 0.369 | 75: n 168 -0.14+/-0.11 (r -0.09) p 0.978 | 100: n 172 -0.04+/-0.09 (r 0.04) p 0.701 | 125: n 163 0.14+/-0.13 (r 0.20) p 0.042* | 150: n 142 -0.07+/-0.12 (r -0.03) p 0.732
W, bino (9a) | 50: n 299 0.02+/-0.04 (r 0.09) p 0.245 | 75: n 310 0.04+/-0.04 (r 0.10) p 0.107 | 100: n 312 -0.06+/-0.03 (r 0.01) p 0.993 | 125: n 311 -0.02+/-0.03 (r 0.04) p 0.752 | 150: n 285 0.00+/-0.03 (r 0.06) p 0.404
W, bino (9b) | 50: n 299 0.04+/-0.06 (r 0.10) p 0.230 | 75: n 310 -0.02+/-0.06 (r 0.05) p 0.636 | 100: n 312 -0.04+/-0.07 (r 0.02) p 0.793 | 125: n 311 -0.04+/-0.06 (r 0.00) p 0.808 | 150: n 285 -0.00+/-0.11 (r -0.00) p 0.522
L, square pixels (7b) (9a) | 50: n 102 -0.10+/-0.05 (r 0.02) p 0.985 | 75: n 107 -0.02+/-0.06 (r 0.09) p 0.652 | 100: n 102 0.01+/-0.06 (r 0.12) p 0.429 | 125: n 96 -0.01+/-0.06 (r 0.08) p 0.557 | 150: n 69 -0.08+/-0.06 (r 0.04) p 0.909
L, square pixels (7b) (9b) | 50: n 102 -0.16+/-0.10 (r -0.14) p 0.948 | 75: n 107 0.10+/-0.10 (r 0.09) p 0.131 | 100: n 102 0.02+/-0.16 (r 0.02) p 0.414 | 125: n 96 0.07+/-0.10 (r 0.03) p 0.228 | 150: n 69 -0.01+/-0.13 (r -0.03) p 0.560
L, populations DSI >= 0.1 (8b) (9a) | 50: n 127 -0.04+/-0.05 (r 0.05) p 0.767 | 75: n 136 -0.04+/-0.04 (r 0.04) p 0.865 | 100: n 138 -0.04+/-0.04 (r 0.05) p 0.803 | 125: n 131 0.02+/-0.06 (r 0.11) p 0.299 | 150: n 116 0.01+/-0.06 (r 0.10) p 0.379
L, populations DSI >= 0.1 (8b) (9b) | 50: n 127 -0.05+/-0.09 (r -0.02) p 0.732 | 75: n 136 -0.10+/-0.10 (r -0.07) p 0.899 | 100: n 138 0.07+/-0.09 (r 0.09) p 0.198 | 125: n 131 -0.10+/-0.11 (r -0.08) p 0.880 | 150: n 116 -0.04+/-0.10 (r -0.03) p 0.664
Result: not reproduced. In the main reading the 50 um corrected correlation for 130 PV- cells is -0.02 +/- 0.05 (9a, p = 0.658) or -0.04 +/- 0.09 (9b, p = 0.666), against 0.05 +/- 0.02 with 1,090 cells, and it is not significant, so neither the values nor the pattern of significance hold. No radius is significant in the main rows.
figs6cd-pvminus-pv-like-disparity¶
The lack of relation between PV- disparity preference and local populations is more evident for PV- cells with disparity tuning comparable to PV+ interneurons (0.1 < DSI < 0.2).
A claim of absence at p < 0.05: individuals PV- with 0.1 < DSI < 0.2; populations (a) unrestricted, (b) restricted to the same range.
dlike = lambda d: (d > 0.1) & (d < 0.2)
for i, (name, cfg) in enumerate(DISP_CONFIGS.items()):
for pr in ("a", "b"):
for corr in ("printed", "corrcc"):
res = run_disp(False, cfg, corr, 1100 + 10 * i + 2 * (pr == "b") + (corr == "corrcc"), ind_filter=dlike,
pop_filter=dlike if pr == "b" else None)
show_d(res, f"{name} pop {pr} ({'9a' if corr == 'printed' else '9b'})")
print(f"notebook time {(time.time() - T0) / 60:.1f} min; peak memory {resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6:.2f} GB")
main (L, 7a, 8a) pop a (9a) | 50: n 46 0.05+/-0.09 (r 0.20) p 0.242 | 75: n 48 -0.06+/-0.08 (r 0.09) p 0.777 | 100: n 50 0.02+/-0.09 (r 0.19) p 0.401 | 125: n 49 0.11+/-0.08 (r 0.27) p 0.066 | 150: n 44 -0.05+/-0.08 (r 0.10) p 0.743
main (L, 7a, 8a) pop a (9b) | 50: n 46 -0.01+/-0.20 (r 0.00) p 0.531 | 75: n 48 -0.07+/-0.15 (r -0.05) p 0.724 | 100: n 50 0.20+/-0.18 (r 0.25) p 0.047* | 125: n 49 -0.05+/-0.20 (r 0.02) p 0.650 | 150: n 44 0.13+/-0.20 (r 0.17) p 0.170
main (L, 7a, 8a) pop b (9a) | 50: n 32 -0.12+/-0.08 (r 0.04) p 0.952 | 75: n 38 0.02+/-0.09 (r 0.16) p 0.393 | 100: n 41 0.07+/-0.09 (r 0.22) p 0.198 | 125: n 37 0.03+/-0.10 (r 0.17) p 0.334 | 150: n 31 0.17+/-0.10 (r 0.32) p 0.023*
main (L, 7a, 8a) pop b (9b) | 50: n 32 0.02+/-0.29 (r -0.04) p 0.446 | 75: n 38 -0.22+/-0.17 (r -0.28) p 0.903 | 100: n 41 0.16+/-0.24 (r 0.09) p 0.173 | 125: n 37 -0.13+/-0.19 (r -0.20) p 0.772 | 150: n 31 0.52+/-0.18 (r 0.47) p 0.002*+
N (neuropil test), joint pop a (9a) | 50: n 12 -0.16+/-0.14 (r 0.10) p 0.901 | 75: n 15 0.14+/-0.13 (r 0.41) p 0.171 | 100: n 17 0.06+/-0.13 (r 0.27) p 0.285 | 125: n 12 -0.02+/-0.16 (r 0.26) p 0.513 | 150: n 15 -0.16+/-0.12 (r 0.09) p 0.904
N (neuropil test), joint pop a (9b) | 50: n 12 0.23+/-0.36 (r 0.24) p 0.233 | 75: n 15 0.65+/-0.45 (r 0.66) p 0.020* | 100: n 17 0.14+/-0.37 (r 0.17) p 0.305 | 125: n 12 -0.68+/-0.26 (r -0.70) p 0.962 | 150: n 15 -0.05+/-0.27 (r -0.07) p 0.565
N (neuropil test), joint pop b (9a) | 50: n 2 | 75: n 4 -0.18+/-0.25 (r 0.33) p 0.758 | 100: n 7 -0.09+/-0.18 (r 0.24) p 0.677 | 125: n 9 -0.02+/-0.17 (r 0.27) p 0.500 | 150: n 3 -0.04+/-0.20 (r 0.56) p 0.563
N (neuropil test), joint pop b (9b) | 50: n 2 | 75: n 4 -0.69+/-nan (r -0.82) p 0.861 | 100: n 7 -0.08+/-0.51 (r -0.16) p 0.533 | 125: n 9 -0.02+/-0.41 (r -0.14) p 0.500 | 150: n 3 -0.94+/-nan (r -1.00) p 0.983
N, bino pop a (9a) | 50: n 59 0.02+/-0.07 (r 0.12) p 0.324 | 75: n 62 0.02+/-0.07 (r 0.11) p 0.353 | 100: n 61 -0.06+/-0.06 (r 0.02) p 0.939 | 125: n 62 -0.05+/-0.06 (r 0.04) p 0.854 | 150: n 59 -0.04+/-0.06 (r 0.05) p 0.824
N, bino pop a (9b) | 50: n 59 -0.08+/-0.17 (r -0.06) p 0.762 | 75: n 62 0.22+/-0.20 (r 0.23) p 0.034* | 100: n 61 0.03+/-0.14 (r 0.03) p 0.374 | 125: n 62 -0.09+/-0.14 (r -0.08) p 0.797 | 150: n 59 -0.03+/-0.16 (r -0.05) p 0.581
N, bino pop b (9a) | 50: n 43 0.01+/-0.09 (r 0.14) p 0.402 | 75: n 48 -0.04+/-0.08 (r 0.10) p 0.695 | 100: n 49 -0.04+/-0.08 (r 0.12) p 0.652 | 125: n 48 -0.02+/-0.08 (r 0.12) p 0.558 | 150: n 45 -0.04+/-0.08 (r 0.09) p 0.686
N, bino pop b (9b) | 50: n 43 -0.10+/-0.20 (r -0.11) p 0.713 | 75: n 48 -0.21+/-0.26 (r -0.21) p 0.892 | 100: n 49 -0.11+/-0.19 (r -0.15) p 0.747 | 125: n 48 -0.23+/-0.23 (r -0.26) p 0.945 | 150: n 45 0.12+/-0.19 (r 0.12) p 0.221
W (no neuropil test), joint pop a (9a) | 50: n 68 -0.08+/-0.06 (r 0.04) p 0.940 | 75: n 72 0.04+/-0.07 (r 0.15) p 0.267 | 100: n 73 0.02+/-0.08 (r 0.13) p 0.341 | 125: n 70 0.01+/-0.07 (r 0.12) p 0.405 | 150: n 60 0.00+/-0.08 (r 0.13) p 0.429
W (no neuropil test), joint pop a (9b) | 50: n 68 -0.04+/-0.14 (r 0.00) p 0.643 | 75: n 72 -0.15+/-0.13 (r -0.09) p 0.920 | 100: n 73 0.16+/-0.16 (r 0.25) p 0.056 | 125: n 70 0.06+/-0.15 (r 0.16) p 0.295 | 150: n 60 -0.04+/-0.25 (r 0.01) p 0.613
W (no neuropil test), joint pop b (9a) | 50: n 50 -0.08+/-0.07 (r 0.04) p 0.927 | 75: n 61 -0.11+/-0.06 (r 0.01) p 0.992 | 100: n 60 0.00+/-0.07 (r 0.13) p 0.460 | 125: n 56 -0.04+/-0.07 (r 0.09) p 0.671 | 150: n 45 -0.04+/-0.08 (r 0.11) p 0.668
W (no neuropil test), joint pop b (9b) | 50: n 50 0.03+/-0.23 (r 0.02) p 0.390 | 75: n 61 -0.28+/-0.19 (r -0.33) p 0.979 | 100: n 60 0.16+/-0.19 (r 0.17) p 0.121 | 125: n 56 -0.06+/-0.17 (r -0.09) p 0.645 | 150: n 45 -0.25+/-0.26 (r -0.24) p 0.909
W, bino pop a (9a) | 50: n 98 -0.03+/-0.05 (r 0.07) p 0.704 | 75: n 101 -0.01+/-0.06 (r 0.08) p 0.557 | 100: n 101 -0.01+/-0.06 (r 0.08) p 0.598 | 125: n 101 -0.00+/-0.06 (r 0.09) p 0.478 | 150: n 94 0.05+/-0.07 (r 0.14) p 0.154
W, bino pop a (9b) | 50: n 98 -0.10+/-0.11 (r -0.07) p 0.869 | 75: n 101 -0.05+/-0.11 (r -0.02) p 0.740 | 100: n 101 0.06+/-0.11 (r 0.11) p 0.238 | 125: n 101 0.02+/-0.11 (r 0.06) p 0.432 | 150: n 94 0.16+/-0.15 (r 0.19) p 0.039*
W, bino pop b (9a) | 50: n 85 -0.03+/-0.06 (r 0.06) p 0.738 | 75: n 93 -0.02+/-0.06 (r 0.07) p 0.652 | 100: n 91 -0.03+/-0.05 (r 0.06) p 0.724 | 125: n 88 -0.02+/-0.05 (r 0.06) p 0.664 | 150: n 71 0.05+/-0.07 (r 0.14) p 0.156
W, bino pop b (9b) | 50: n 85 -0.06+/-0.12 (r -0.05) p 0.750 | 75: n 93 -0.05+/-0.12 (r -0.08) p 0.645 | 100: n 91 -0.09+/-0.15 (r -0.10) p 0.772 | 125: n 88 -0.06+/-0.12 (r -0.06) p 0.713 | 150: n 71 0.11+/-0.15 (r 0.12) p 0.164
L, square pixels (7b) pop a (9a) | 50: n 40 -0.03+/-0.09 (r 0.12) p 0.664 | 75: n 43 -0.09+/-0.08 (r 0.07) p 0.890 | 100: n 40 -0.03+/-0.09 (r 0.13) p 0.628 | 125: n 41 -0.02+/-0.08 (r 0.11) p 0.579 | 150: n 31 0.05+/-0.10 (r 0.21) p 0.249
L, square pixels (7b) pop a (9b) | 50: n 40 -0.10+/-0.17 (r -0.06) p 0.784 | 75: n 43 -0.08+/-0.18 (r -0.02) p 0.719 | 100: n 40 0.15+/-0.21 (r 0.23) p 0.162 | 125: n 41 -0.13+/-0.18 (r -0.10) p 0.821 | 150: n 31 0.31+/-0.24 (r 0.34) p 0.025*
L, square pixels (7b) pop b (9a) | 50: n 31 -0.00+/-0.09 (r 0.14) p 0.473 | 75: n 36 -0.00+/-0.09 (r 0.14) p 0.462 | 100: n 32 0.03+/-0.10 (r 0.16) p 0.285 | 125: n 32 0.03+/-0.10 (r 0.16) p 0.324 | 150: n 19 0.14+/-0.14 (r 0.34) p 0.092
L, square pixels (7b) pop b (9b) | 50: n 31 -0.40+/-0.31 (r -0.46) p 0.990 | 75: n 36 -0.26+/-0.30 (r -0.36) p 0.944 | 100: n 32 0.32+/-0.24 (r 0.25) p 0.024* | 125: n 32 -0.10+/-0.24 (r -0.17) p 0.721 | 150: n 19 0.34+/-0.29 (r 0.29) p 0.079
L, populations DSI >= 0.1 (8b) pop a (9a) | 50: n 45 0.03+/-0.09 (r 0.18) p 0.338 | 75: n 48 -0.04+/-0.08 (r 0.11) p 0.667 | 100: n 49 0.02+/-0.09 (r 0.18) p 0.382 | 125: n 46 0.09+/-0.08 (r 0.25) p 0.143 | 150: n 43 -0.05+/-0.08 (r 0.11) p 0.735
L, populations DSI >= 0.1 (8b) pop a (9b) | 50: n 45 -0.03+/-0.20 (r -0.02) p 0.582 | 75: n 48 -0.01+/-0.15 (r 0.00) p 0.540 | 100: n 49 0.11+/-0.17 (r 0.17) p 0.212 | 125: n 46 -0.09+/-0.20 (r -0.05) p 0.741 | 150: n 43 0.10+/-0.21 (r 0.16) p 0.233
L, populations DSI >= 0.1 (8b) pop b (9a) | 50: n 32 -0.12+/-0.08 (r 0.04) p 0.955 | 75: n 38 0.01+/-0.09 (r 0.16) p 0.408 | 100: n 41 0.07+/-0.10 (r 0.22) p 0.188 | 125: n 37 0.03+/-0.09 (r 0.17) p 0.356 | 150: n 31 0.17+/-0.09 (r 0.32) p 0.026*
L, populations DSI >= 0.1 (8b) pop b (9b) | 50: n 32 0.02+/-0.29 (r -0.04) p 0.463 | 75: n 38 -0.22+/-0.17 (r -0.28) p 0.916 | 100: n 41 0.17+/-0.22 (r 0.09) p 0.164 | 125: n 37 -0.12+/-0.19 (r -0.20) p 0.749 | 150: n 31 0.51+/-0.17 (r 0.47) p 0.002*+ notebook time 7.5 min; peak memory 1.10 GB
Result: reproduced, resting on the assumption about the binocmonocinds lists, and on unrestricted populations (a) and the printed formula (9a) as the paper's test. With individuals restricted to 0.1 < DSI < 0.2, populations unrestricted (a) and the printed formula (9a), the main reading gives no radius significant at p < 0.05 under either test of significance (p 0.066 to 0.777 against the shuffles; no corrected value above 1.96 SE, the largest 0.11 +/- 0.08 at 125 um), and the same holds for N and W with joint or binocular cells. The other readings do not all agree: with CircStat (9b) 100 um gives p = 0.047 in the main reading (and 75 or 150 um is significant in four of the six other configurations), and with populations restricted (b) 150 um gives p = 0.023 (9a) and 0.002 (9b). The outcome rests on (a) and (9a), the Methods' printed formula, as the paper's test.
Summary¶
| Claim | Outcome |
|---|---|
| fig1e-pv-tdtomato-colocalization | blocked, data_missing (histology) |
| cell-counts-responsive | blocked, data_missing (identified cells of the six mice) |
| figs3-pv-distinct-from-neuropil, figs5-neuropil-no-relation | blocked, data_missing (neuropil patches; no non-responsive PV+ cells) |
| fig5-camkii-responsive, fig5e-camkii-od-unrelated, fig5f-camkii-disparity-unrelated | blocked, data_missing (CaMKIIa animals) |
| fig3abc-pv-more-binocular-fraction, mi-per-animal, figs6ab-pvminus-pv-like-od, figs6cd-pvminus-pv-like-disparity | reproduced (assumed) |
| fig3c-contralateral-bias, fig4ag-salt-and-pepper | reproduced |
| fig3-pv-lower-monocularity, fig3def-pv-weaker-disparity-selectivity, fig4ef-pvminus-od-unrelated | partially reproduced (assumed) |
| fig4f-pv-od-spatial-decay | partially reproduced |
| mi-dsi-relation, fig4d-pv-od-matches-local-50um | not reproduced (assumed) |
| pv-larger-dff-low-dsi, fig4f-od-length-constant, figs4-same-plane-control, fig4i-pv-disparity-matches-local, fig4k-pv-disparity-length-constant, fig4jk-pvminus-disparity-weak | not reproduced |
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.
Changed after the third verification round, which agreed with both: fig4d-pv-od-matches-local-50um from partially reproduced to not reproduced (the criterion has no partial case), and fig4f-pv-od-spatial-decay from not reproduced to partially reproduced (only the 50 um slope is significant under readings 7b and 1b, 1.42 +/- 1.94, p = 0.003, a fragile value).
How the analysis differs from the paper's:
- The per-cell data come from structs outside the published folder, for mice 8 to 10 (and the PV+ cells of mouse 7), against the paper's 6 mice. Counts of cells in the analyses are therefore about half the paper's or less (for example 18 PV+ cells at 50 um against 86), which bears on every test of significance.
- The visually responsive cells are taken as the
binocmonocindslists (an assumption); the Methods' criterion is also applied with and without a neuropil test, and the outcomes that differ under those cell sets are marked as assumed. The lists decide every outcome; the other sets are shown as the sensitivity to this choice. - ODI uses blank-subtracted responses with negatives set to zero, the form the stored DSI takes.
- The local analysis runs the claims file's open readings; reading 1a (individual on population) gives major-axis slopes with bootstrap SEs far above 1 in most cases, as population averages vary little, while 1b gives slopes of the size the paper reports.
What was found about the data set, from the outputs above:
- The published folder holds raw movies (green and red), stimulus tables and plane shifts for 58 planes of 6 mice, and 50 example masks for one plane. It holds none of the per-cell data that its descriptor says it contains, and no masks or PV+/PV- labels for the paper's cells.
- The folder
original/to_remove/, not in the file list or checksums, holds those per-cell data as MATLAB structs, one entry per cell: for mice 8, 9 and 10 (PV+ and PV-) and mouse 7 (PV+ only); the three mouse 7 PV- files are truncated, and mice 5 and 6 have index lists only. TheirFtraceequals the mask mean of the published movie exactly (9 cells of mouse 8, depth 205), and their trial counts per condition equal the stim files' repeats or one fewer. The stored DSI is the vector strength of blank-subtracted responses with negatives set to zero for all 578 cells; the stored responsiveness index matches its recomputation frompeaksfor 279 of 578 cells only. The structs hold only cells already selected (every PV+ cell passes the binocular index), so the paper's counts of identified cells cannot be checked. Nothing documents the structs, thebinocmonocindslists or their fields; the mouse 7 plane shift is stored as (-70, 157) where stats.mat gives (157, -70). - The CaMKIIa-nls-tdTomato mice, the neuropil patches and the anti-PV histology are not in the data set; the structs hold one neuropil region per plane.
- The descriptor gives frames of 255 by 456 pixels; the files hold 256 by 455, as the paper says.
- No frame rate is given. At the paper's 30 Hz, the onset intervals give cycles of 3.93 s in mouse 5 and 4.37 to 4.43 s in mice 7 to 10, against the 4.5 s and 5 s of the stimulus plus a 3 s blank in the Methods; either the frame rate or the blank differs in five of six mice.
- In four planes the last stimulus cycle runs past the last frame. Eight planes have fewer than the 6 to 7 repeats the paper states (all six planes of mouse 10 have 4 or 5), and mouse 10 has a plane at 125 um, above the Methods' 150 um.
- No recording was found deposited twice.
- On the example plane, stimulus trials differ from blank trials after onset, and the difference falls when onsets are moved, so the stimulus table is consistent with the movie's clock there.