Reproducing Saez and Friedlander (2016) from CRCNS pvc-9¶
Paper. Saez I, Friedlander MJ (2016). Role of GABAA-mediated inhibition and functional assortment of
synapses onto individual layer 4 neurons in regulating plasticity expression in visual cortex. PLoS One
11(2): e0147642. doi:10.1371/journal.pone.0147642. The
claims file (claims/saez-2016.yaml) was written from the version of record (PMC4739708, open access):
main text, Methods and the legends of Figures 1 to 3. The paper has no supplement and links no code.
Data set. CRCNS pvc-9, doi:10.6080/K00V89R6, streamed from the
public S3 bucket (crcnsarchive/pvc-9/live/data.tar.gz, MD5 217a64766d19e7ad87efa4e339b82295 in the data
set's checksums.md5). CRCNS data sets are not versioned (docs/archives.md), so the version is recorded
as unversioned. This is the only published copy: the bucket holds one data file, under live/, and no
old/ folder; the paper cites the data set's DOI and no version. The MD5 above lets a later change be seen.
What the data set holds. Whole-cell recordings (Axon ABF files, 20 kHz) of layer 4 cells in guinea pig
V1 slices: extracellular stimulation at 0.2 Hz before and after a pairing protocol, in three folders,
current clamp control (Data_ECS_IC), voltage clamp control (Data_ECS_VC) and voltage clamp with
bicuculline (Data_ECS_VCB), one subfolder per recording. Three Excel files mark which recordings the
paper included (green) and which it excluded (red), and hold the authors' own per-sweep amplitudes and
per-cell changes. The single-cell stimulation (SCS) data of the paper's reference 17, which Figure 3 uses,
are not in it.
Method. The claims file fixes the per-cell measure (peak amplitude of the evoked response less a 10 ms
pre-stimulus baseline, searched from the end of the stimulus artifact to 50 ms), the pre-pairing epoch
(120 sweeps), the classification (Student's t-test p < 0.05 and a change beyond 15%), and names the open
details as readings: the post-pairing window (P) (a) all post-pairing sweeps, (b) the first 120, (c) the
last 120; and the per-cell t-test (T) (a) on sweep amplitudes, (b) on 1-min bin means. Every reading is run.
Details taken from the paper or chosen here are in pvc9.py and listed in the summary. No random numbers
are used.
Revision after round 1 of verification. Each sweep is now aligned on the onset of the stimulus artifact (the first version used its largest step, which fell on either phase of the artifact from sweep to sweep), and sweeps without a stimulus artifact are dropped (four post-pairing sweeps of IC13, with spikes or no stimulus, had been measured as responses, and one VCB19 sweep pinned at the amplifier's limit). The data check adds VCB17's traces, IC13 against its sheet, the alignment and baseline variants, the fill of every Summary sheet row, and a per-cell table of the control cells.
| Claim | Tested? |
|---|---|
| dataset-size | tested |
| fig1c-control-outcomes | tested, on 20 of 28 control cells (see the data check) |
| fig1-control-no-net-plasticity | tested, on 20 of 28 |
| fig1-control-mean-change | tested, on 20 of 28 |
| fig1-vc-ic-same | tested, on 20 of 28 |
| fig1fh-control-no-dependence-on-initial | tested, on 20 of 28 |
| fig1d-example-nc | tested |
| fig2a-bicuculline-outcomes | tested |
| bicuculline-increases-plastic-fraction | tested |
| fig2-subgroup-changes | tested |
| fig2-mean-unchanged-variance-increased | tested |
| fig2cd-example-ltp-ltd | tested |
| fig2f-bicuculline-no-dependence-on-initial | tested |
| fig3a-ks-scs-vs-ecs | blocked: the SCS data of reference 17 are not public |
| fig3c-random-mixing-narrower | blocked: the SCS data of reference 17 are not public |
| fig3b-segregation-near-complete | blocked: the SCS data of reference 17 are not public |
import resource
import time
import warnings
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from scipy import stats
import pvc9
pd.set_option("display.width", 220)
pd.set_option("display.max_columns", 40)
pd.set_option("display.max_rows", 300)
warnings.filterwarnings("ignore", category=RuntimeWarning)
started = time.time()
files, extra = pvc9.stream_dataset()
sheets, members = extra["sheets"], extra["members"]
print(f"streamed {pvc9.DATA_URL} ({pvc9.DATASET}, doi:{pvc9.DATASET_DOI}) in {time.time() - started:.0f} s; "
f"{len(members)} tar members, {len(files)} ABF files reduced, Excel files: {sorted(sheets)}")
print(f"peak memory {resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1024:.0f} MB")
streamed https://crcnsarchive.s3-us-west-2.amazonaws.com/pvc-9/live/data.tar.gz (crcns:pvc-9/unversioned, doi:10.6080/K00V89R6) in 77 s; 460 tar members, 335 ABF files reduced, Excel files: ['ECS_IC.xls', 'ECS_VC.xls', 'ECS_VCB.xls'] peak memory 489 MB
Data check¶
Each check of the description against the values is stated under its output.
m = members.copy()
m["ext"] = m.name.str.extract(r"\.([A-Za-z]+)$")[0].fillna("(folder)")
m["top"] = m.name.str.split("/").str[1]
print("Tar members by folder and extension:")
print(pd.crosstab(m.top.fillna(""), m.ext).to_string())
cells_dirs = m[~m.is_file & (m.name.str.count("/") == 2)].name.str.split("/").str[2]
print("\nRecording folders per group:", cells_dirs.str.extract(r"^([A-Z]+)")[0].value_counts().to_dict())
print("Descriptor: VC n=17, ICS n=21, VCB n=38.")
empty = [d for d in cells_dirs if not (files.folder == d).any()]
print("Folders without an ABF file:", empty)
Tar members by folder and extension:
ext (folder) abf bak sta tmp xls
top
1 0 0 0 0 0
Data_ECS_IC 22 98 0 13 0 0
Data_ECS_VC 18 70 0 6 0 0
Data_ECS_VCB 39 167 1 19 3 0
ECS_IC.xls 0 0 0 0 0 1
ECS_VC.xls 0 0 0 0 0 1
ECS_VCB.xls 0 0 0 0 0 1
Recording folders per group: {'VCB': 38, 'IC': 21, 'VC': 17}
Descriptor: VC n=17, ICS n=21, VCB n=38.
Folders without an ABF file: ['IC6']
The archive matches the descriptor's three folders, with 21 IC, 17 VC and 38 VCB recording folders. Besides
ABF files it holds Clampfit .sta files, three .tmp files and one .bak file, which the descriptor does
not mention and which are not used.
f = files
print("Sampling rate (Hz):", f.rate.value_counts().to_dict())
print("Sweep length (s):", f.sweep_s.round(3).value_counts().to_dict())
print("Sweep start-to-start interval (s) by protocol:")
print(f.groupby("protocol", dropna=False).interval_s.value_counts().to_string())
print("\nUnits of channel 0 by group and protocol:")
print(pd.crosstab([f.group_dir, f.protocol.fillna("(none)")], f.units).to_string())
Sampling rate (Hz): {20000: 331, 10000: 4}
Sweep length (s): {0.5: 275, 0.6: 51, 1.0: 4, 0.594: 2, 0.0: 2, 0.506: 1}
Sweep start-to-start interval (s) by protocol:
protocol interval_s
Alternate stim 5.0 11
Alternate stim Iclamp 5.0 63
ECStim 5.0 165
Extracellular pairing 10.0 89
None 0.5 1
Units of channel 0 by group and protocol:
units mV pA
group_dir protocol
Data_ECS_IC Alternate stim 1 0
Alternate stim Iclamp 63 0
Extracellular pairing 33 0
None 1 0
Data_ECS_VC Alternate stim 0 11
ECStim 0 40
Extracellular pairing 19 0
Data_ECS_VCB ECStim 0 127
Extracellular pairing 37 3
The descriptor gives 20 kHz and 500 ms sweeps "triggered once every 10 seconds". Most files are 20 kHz with
0.5 s sweeps, but the test sweeps are every 5 s (0.2 Hz), as the Methods state; the 10 s interval is that of
the pairing files ("Extracellular pairing", 60 trials at 0.1 Hz, Methods). The descriptor's 10 s is wrong for
the test sweeps (a finding). A few files are at 10 kHz with 1 s sweeps: they are the derived *_PRE/*_POST
files, not used. Current clamp files are in mV and voltage clamp files in pA, except the pairing files,
which are recorded in current clamp (mV), as the Methods describe.
cells = pvc9.cell_table(files, sheets)
cells["n_pre_sweeps"] = [int(files.loc[r, "n_sweeps"].sum()) for r in cells.pre_rows]
cells["n_post_sweeps"] = [int(files.loc[r, "n_sweeps"].sum()) for r in cells.post_rows]
cells["files_pre"] = [" ".join(files.loc[r, "file"].str[:8]) for r in cells.pre_rows]
cells["file_pair"] = [" ".join(files.loc[r, "file"].str[:8]) for r in cells.pair_rows]
cells["files_post"] = [" ".join(files.loc[r, "file"].str[:8]) for r in cells.post_rows]
print("Recordings listed in the Summary sheets, by group and inclusion (red fill = excluded):")
print(pd.crosstab(cells.group, cells.excluded.map({False: "included", True: "excluded"})).to_string())
print("Paper: included 14 IC, 14 VC, 26 bicuculline; discarded 9 IC, 11 VC, 12 bicuculline (Methods).")
inc = cells[~cells.excluded]
print("\nIncluded recordings, with the files used for each epoch:")
print(inc[["group", "cell", "folder_exists", "source", "files_pre", "n_pre_sweeps", "file_pair", "files_post",
"n_post_sweeps", "has_data", "rejected_files"]].to_string(index=False))
print("\nIncluded recordings with a complete baseline, pairing and post-pairing recording:")
print(inc.groupby("group").has_data.agg(["sum", "count"]).rename(columns={"sum": "complete", "count": "included"}).to_string())
Recordings listed in the Summary sheets, by group and inclusion (red fill = excluded):
excluded excluded included
group
IC 9 14
VC 11 14
VCB 12 26
Paper: included 14 IC, 14 VC, 26 bicuculline; discarded 9 IC, 11 VC, 12 bicuculline (Methods).
Included recordings, with the files used for each epoch:
group cell folder_exists source files_pre n_pre_sweeps file_pair files_post n_post_sweeps has_data rejected_files
IC IC2 True sheet FILES block 07228018 125 07228019 07228020 250 True []
IC IC3 True sheet FILES block 07301005 160 07301006 07301007 120 True []
IC IC4 True sheet FILES block 07301009 130 07301010 07301011 160 True []
IC IC5 True sheet FILES block 07305002 120 07305003 07305004 120 True []
IC IC6 False sheet FILES block 07305008 220 07305009 07305010 122 True []
IC IC7 True sheet FILES block 07305013 125 07305014 0 False [07305017.abf]
IC IC8 True sheet FILES block 07305020 250 07305021 07305022 200 True []
IC IC11 True sheet FILES block 07315001 07315002 435 0 False [07315003.abf, 07315004.abf]
IC IC13 True sheet FILES block 07321004 07321005 162 07321006 07321007 77 True []
IC IC14 True sheet FILES block 07322006 265 07322007 07322008 240 True []
IC IC16 True sheet FILES block 07326001 211 07326002 07326003 240 True []
IC IC19 True sheet FILES block 07327002 248 07327004 07327005 212 True []
IC IC22 False sheet FILES block 0 0 False []
IC IC23 False sheet FILES block 0 0 False []
VC VC5 True folder 07802006 07802007 07802008 388 07802009 07802010 110 True []
VC VC7 True folder 07806007 120 07806008 07806009 200 True []
VC VC8 True folder 07806011 07806012 291 07806013 07806014 200 True []
VC VC9 True folder 07806018 150 07806019 07806020 200 True []
VC VC10 True folder 07806021 07806022 220 07806023 0 False []
VC VC11 True folder 07806025 196 07806026 07806027 07806028 240 True []
VC VC12 True folder 07807010 07807011 205 07807012 07807013 125 True []
VC VC13 True folder 07807014 07807015 235 07807016 07807017 150 True []
VC VC14 True folder 07807018 156 07807019 07807020 150 True []
VC VC15 True folder 07807021 160 07807022 07807023 07807024 180 True []
VC VC16 True folder 07807025 175 07807026 07807027 183 True []
VC VC17 True folder 07807031 120 07807032 0 False []
VC VC21 False folder 0 0 False []
VC VC25 False folder 0 0 False []
VCB VCB2 True folder 07808003 146 07808004 07808005 149 True []
VCB VCB3 True folder 07808006 131 07808007 07808008 151 True []
VCB VCB5 True folder 07808014 07808015 322 07808016 07808017 07808018 191 True []
VCB VCB6 True folder 07809007 07809008 328 07809009 07809011 112 True []
VCB VCB7 True folder 07809012 120 07809013 07809014 140 True []
VCB VCB9 True folder 07810006 07810007 260 07810008 07810009 07810010 287 True []
VCB VCB10 True folder 07810011 163 07810012 07810013 07810014 114 True []
VCB VCB11 True folder 07810019 150 07810020 07810021 119 True []
VCB VCB14 True folder 07813015 07813016 277 07813017 07813019 180 True []
VCB VCB15 True folder 07814000 07814001 215 07814002 07814003 200 True []
VCB VCB16 True folder 07814004 120 07814005 07814007 200 True []
VCB VCB17 True folder 07815004 200 07815005 07815006 200 True []
VCB VCB18 True folder 07815016 136 07815017 07815018 200 True []
VCB VCB19 True folder 07820001 152 07820002 07820003 120 True []
VCB VCB25 True folder 07822011 07822012 195 07822013 07822014 200 True []
VCB VCB26 True folder 07823005 140 07823006 07823007 07823008 217 True []
VCB VCB27 True folder 07823010 120 07823011 07823012 187 True []
VCB VCB28 True folder 07823016 120 07823017 07823018 07823019 275 True []
VCB VCB29 True folder 07824000 158 07824001 07824002 200 True []
VCB VCB30 True folder 07824006 07824007 288 07824008 07824009 200 True []
VCB VCB31 True folder 07827004 180 07827005 07827006 200 True []
VCB VCB33 True folder 07827014 175 07827015 07827016 07827017 287 True []
VCB VCB34 True folder 07828001 07828002 400 07828003 07828004 187 True []
VCB VCB36 True folder 07828013 130 07828014 07828015 200 True []
VCB VCB37 True folder 07829000 07829001 231 07829002 07829003 180 True []
VCB VCB38 True folder 07829004 120 07829005 07829006 200 True []
Included recordings with a complete baseline, pairing and post-pairing recording:
complete included
group
IC 10 14
VC 10 14
VCB 26 26
missing = inc[~inc.has_data]
print("Included recordings without usable post-pairing data, and the change their Summary sheet lists:")
for _, c in missing.iterrows():
folder = files[files.folder == c.cell]
why = ("no folder" if not c.folder_exists and not c.pre_rows else
"no post-pairing test file" if not c.post_rows else "no pairing file")
print(f" {c.cell:5s} {why:28s} files in folder: {' '.join(folder.file) or '-':60s} sheet change {100 * c.sheet_change:+.1f}%")
print("\nIC sheets whose FILES block names a file whose header does not fit the epoch:")
print(inc[inc.rejected_files.str.len() > 0][["cell", "listed_files", "rejected_files"]].to_string(index=False))
for name in ["07315003.abf", "07315004.abf", "07305017.abf", "07305013.abf"]:
r = files[files.file == name].iloc[0]
print(f" {r.folder}/{name}: protocol {r.protocol}, {r.n_sweeps} sweeps, interval {r.interval_s} s, units {r.units}, "
f"start {r.start}, stimulus found at median {np.median(r.stim_ms):.1f} ms, median amplitude {np.median(r.amp50):.2f} mV")
print("\nFolder IC7 holds the files of both the IC6 and the IC7 sheets:")
print(files[files.folder == "IC7"][["folder", "file", "protocol", "n_sweeps", "start"]].to_string(index=False))
Included recordings without usable post-pairing data, and the change their Summary sheet lists: IC7 no post-pairing test file files in folder: 07305007.abf 07305008.abf 07305009.abf 07305010.abf 07305011.abf 07305012.abf 07305013.abf 07305014.abf 07305017.abf sheet change -12.3% IC11 no post-pairing test file files in folder: 07315000.abf 07315001.abf 07315002.abf 07315003.abf 07315004.abf sheet change +2.5% IC22 no folder files in folder: - sheet change -8.1% IC23 no folder files in folder: - sheet change -24.6% VC10 no post-pairing test file files in folder: 07806021.abf 07806022.abf 07806023.abf Concatenate000.abf sheet change +5.3% VC17 no post-pairing test file files in folder: 07807031.abf 07807032.abf sheet change -13.4% VC21 no folder files in folder: - sheet change -5.8% VC25 no folder files in folder: - sheet change +5.4% IC sheets whose FILES block names a file whose header does not fit the epoch: cell listed_files rejected_files IC7 [07305013, 07305014, 07305017] [07305017.abf] IC11 [07315001, 07315002, 07315003, 07315004] [07315003.abf, 07315004.abf] IC11/07315003.abf: protocol Extracellular pairing, 1 sweeps, interval nan s, units mV, start 2007-03-15 12:55:56.083000, stimulus found at median 55.8 ms, median amplitude 68.22 mV IC11/07315004.abf: protocol Extracellular pairing, 60 sweeps, interval 10.0 s, units mV, start 2007-03-15 12:56:11.781000, stimulus found at median 58.6 ms, median amplitude 60.43 mV IC7/07305017.abf: protocol None, 75 sweeps, interval 0.5 s, units mV, start 0001-01-01 00:00:00, stimulus found at median 140.8 ms, median amplitude 2.93 mV IC7/07305013.abf: protocol Alternate stim Iclamp, 125 sweeps, interval 5.0 s, units mV, start 2007-03-05 16:17:13.217000, stimulus found at median 107.8 ms, median amplitude 4.21 mV Folder IC7 holds the files of both the IC6 and the IC7 sheets: folder file protocol n_sweeps start IC7 07305007.abf Alternate stim Iclamp 21 2007-03-05 15:23:14.680 IC7 07305008.abf Alternate stim Iclamp 220 2007-03-05 15:25:13.680 IC7 07305009.abf Extracellular pairing 60 2007-03-05 15:44:03.400 IC7 07305010.abf Alternate stim Iclamp 122 2007-03-05 15:53:57.522 IC7 07305011.abf Extracellular pairing 34 2007-03-05 16:05:14.282 IC7 07305012.abf Alternate stim Iclamp 20 2007-03-05 16:14:45.041 IC7 07305013.abf Alternate stim Iclamp 125 2007-03-05 16:17:13.217 IC7 07305014.abf Extracellular pairing 60 2007-03-05 16:27:59.849 IC7 07305017.abf None 75 0001-01-01 00:00:00.000
The Summary sheets mark exactly the paper's 14 IC, 14 VC and 26 bicuculline recordings as included, and 9, 11 and 12 as excluded, the Methods' discard counts. The recordings themselves are incomplete for eight included control cells. IC22, IC23, VC21 and VC25 have no folder (the archive has folders IC1 to IC21 and VC1 to VC17, matching the descriptor's counts of 21 and 17, which are smaller than the sheets' 23 and 25). The folders VC10 and VC17 end with the pairing file and hold no post-pairing recording. The IC11 sheet names a one-sweep file as the pairing and the real pairing file (60 trials) as the post-pairing recording, so its post-pairing recording is not in the folder. The IC7 sheet names 07305017 as post-pairing; that file has no protocol name, no recording date, a 0.5 s sweep interval and no stimulus artifact near 108 ms (its largest step is at about 141 ms, against 107.9 ms in IC7's baseline file 07305013), so it is not a post-pairing test recording. The folder IC6 is empty, and its files (07305007 to 07305011, as the IC6 sheet lists them) are in the folder IC7; IC6 is analysed from them. So 10 of 14 IC, 10 of 14 VC and 26 of 26 bicuculline recordings are complete: 20 of the 28 control cells. All of this is a finding about the data.
# Files deposited more than once: the derived files (Concatenate*, *_PRE, *_POST) against the original
# recordings, by an MD5 of each sweep's samples.
orig = files[~pvc9.is_derived(files.file)]
by_md5 = {}
for i, r in orig.iterrows():
for k, h in enumerate(r.sweep_md5):
by_md5.setdefault(h, []).append((r.folder, r.file, k))
rows = []
for _, r in files[pvc9.is_derived(files.file)].iterrows():
hits = [by_md5.get(h, []) for h in r.sweep_md5]
src = sorted({f"{x[0]}/{x[1]}" for h in hits for x in h})
rows.append(dict(folder=r.folder, file=r.file, sweeps=r.n_sweeps, units=r.units, rate=r.rate,
sweeps_found_in_originals=sum(bool(h) for h in hits), originals=" ".join(s.split("/")[1][:8] for s in src)))
dup = pd.DataFrame(rows)
print(dup.to_string(index=False))
same = [(k, v) for k, v in by_md5.items() if len({(x[0], x[1]) for x in v}) > 1]
print("\nSweeps shared by two original recordings:", len(same))
for h, v in same:
print(" ", v)
dr = files[pvc9.is_derived(files.file)]
print("Derived files whose header gives 10 kHz:", dr[dr.rate == 10000].file.tolist(), "; samples per sweep:",
sorted({int(round(x)) for x in (dr[dr.rate == 10000].sweep_s * dr[dr.rate == 10000].rate)}),
"; originals:", sorted({int(round(x)) for x in (orig[orig.rate == 20000].sweep_s * 20000) if x == 10000}))
for h, v in same:
for folder, fname, k in v:
r = files[(files.folder == folder) & (files.file == fname)].iloc[0]
print(f" {folder}/{fname} sweep {k}: amplitude {r.amp50[k]:.2f}, baseline {r.base[k]:.2f} {r.units}")
sat = sum(int((files.loc[i, "base"] <= -1999).sum()) for c in ["pre_rows", "post_rows"]
for rows_ in inc[inc.has_data][c] for i in rows_)
print("Sweeps pinned at -2000 pA within the analysed pre- and post-pairing epochs (all kept):", sat)
folder file sweeps units rate sweeps_found_in_originals originals
VC10 Concatenate000.abf 220 pA 20000 220 07806021 07806022
VC11 Concatenate000.abf 240 pA 20000 240 07806027 07806028
VC13 Concatenate000.abf 235 pA 20000 235 07807014 07807015
VC15 Concatenate000.abf 180 pA 20000 180 07807023 07807024
VC5 Concatenate000.abf 388 pA 20000 388 07802006 07802007 07802008
VC6 Concatenate000.abf 90 pA 20000 90 07802014 07802015
VC8 Concatenate000.abf 291 pA 20000 291 07806011 07806012
VCB10 Concatenate000.abf 114 pA 20000 114 07810013 07810014
VCB12 VCB12_PRE.abf 328 pA 20000 328 07810024 07810025
VCB12 VCB12_POST.abf 206 pA 10000 206 07810027 07810028 07810029
VCB13 Concatenate000.abf 180 pA 20000 180 07813004 07813005
VCB13 Concatenate001.abf 121 pA 20000 121 07813007 07813008
VCB13 VCB13_PRE.abf 180 pA 10000 180 07813004 07813005
VCB13 VCB13_Post.abf 121 pA 10000 121 07813007 07813008
VCB14 Concatenate000.abf 277 pA 20000 277 07813015 07813016
VCB14 VCB14_PRE.abf 277 pA 20000 277 07813015 07813016
VCB15 Concatenate000.abf 215 pA 20000 215 07814000 07814001
VCB15 VCB15_PRE.abf 215 pA 10000 215 07814000 07814001
VCB21 Concatenate000.abf 218 pA 20000 218 07821005 07821006
VCB21 Concatenate001.abf 215 pA 20000 80 07821009
VCB25 Concatenate000.abf 195 pA 20000 195 07822011 07822012
VCB26 Concatenate000.abf 218 pA 20000 217 07823007 07823008
VCB28 Concatenate000.abf 275 pA 20000 275 07823018 07823019
VCB30 Concatenate000.abf 288 pA 20000 288 07824006 07824007
VCB32 Concatenate000.abf 220 pA 20000 220 07827008 07827009
VCB34 Concatenate000.abf 400 pA 20000 400 07828001 07828002
VCB37 Concatenate000.abf 231 pA 20000 231 07829000 07829001
VCB6 Concatenate000.abf 328 pA 20000 328 07809007 07809008
VCB9 Concatenate000.abf 260 pA 20000 260 07810006 07810007
VCB9 Concatenate001.abf 287 pA 20000 287 07810009 07810010
Sweeps shared by two original recordings: 1
[('VC2', '07227007.abf', 41), ('VC3', '07228002.abf', 123), ('VCB19', '07820003.abf', 119)]
Derived files whose header gives 10 kHz: ['VCB12_POST.abf', 'VCB13_PRE.abf', 'VCB13_Post.abf', 'VCB15_PRE.abf'] ; samples per sweep: [10000] ; originals: [10000]
VC2/07227007.abf sweep 41: amplitude -0.00, baseline -2000.00 pA
VC3/07228002.abf sweep 123: amplitude -0.00, baseline -2000.00 pA
VCB19/07820003.abf sweep 119: amplitude -0.00, baseline -2000.00 pA
Sweeps pinned at -2000 pA within the analysed pre- and post-pairing epochs (all kept): 1
The Concatenate*, *_PRE and *_POST files are copies of original recordings joined end to end: their
sweeps are found in the originals one for one (all but 1 of 218 in VCB26, 80 of 215 in VCB21/Concatenate001,
an excluded cell), so each recording is counted once and only the originals are used. Four of the copies
(VCB12_POST, VCB13_PRE, VCB13_Post, VCB15_PRE) hold the same 10000 samples per sweep as the originals but their
headers give 10 kHz and 1 s sweeps, half the true rate (a finding). One sweep is identical in three
recordings of different days (VC2, VC3 and VCB19): it is pinned at -2000 pA, the amplifier's limit, with no
response, so it is not a recording deposited twice. Within the analysed epochs such sweeps are counted above
and kept, with an amplitude of 0, as the paper names no rule for dropping sweeps.
used = sorted({i for col in ["pre_rows", "pair_rows", "post_rows"] for r in inc[inc.has_data][col] for i in r})
test_rows = sorted({i for col in ["pre_rows", "post_rows"] for r in inc[inc.has_data][col] for i in r})
st = np.concatenate([files.loc[i, "stim_ms"] for i in test_rows])
mx = np.concatenate([files.loc[i, "stim_maxstep_ms"] for i in test_rows])
okk = np.concatenate([files.loc[i, "stim_ok"] for i in test_rows])
vc_ = pd.Series(np.round(st, 2)).value_counts().sort_index()
print(f"Onset of the stimulus artifact per sweep, over {len(st)} test sweeps of the analysed cells, at the sampling "
f"resolution (0.05 ms); times held by at least 20 sweeps:")
print(vc_[vc_ >= 20].to_string())
print(f"Other times: {int(vc_[vc_ < 20].sum())} sweeps")
dev = []
for i in test_rows:
o = files.loc[i, "stim_ms"][files.loc[i, "stim_ok"]]
o = o[(o > 105) & (o < 110)]
if len(o):
dev.append(np.round(o - pd.Series(o).mode()[0], 2))
print("\nOnset less the file's most common onset, sweeps near 108 ms (ms: sweeps):",
pd.Series(np.concatenate(dev)).value_counts().sort_index().to_dict())
print("Largest step less the onset (ms: sweeps), where the first version of this entry aligned each sweep:",
pd.Series(np.round(mx - st, 2)).value_counts().sort_index().to_dict())
mixed = [files.loc[i, "file"] for i in test_rows
if len(set(np.round(files.loc[i, "stim_maxstep_ms"] - files.loc[i, "stim_ms"], 2)[files.loc[i, "stim_ok"]])) > 1]
print(f"Files whose largest step falls at different places in the artifact in different sweeps: {len(mixed)} of {len(test_rows)}")
early = [(files.loc[i, "folder"], files.loc[i, "file"], float(np.mean(files.loc[i, "stim_ms"] < 105)))
for i in test_rows if np.mean(files.loc[i, "stim_ms"] < 105) > 0]
print("\nFiles with sweeps whose stimulus is before 105 ms (fraction of sweeps):")
for e in early:
print(f" {e[0]}/{e[1]}: {e[2]:.2f}")
print(f"\nSweeps without a stimulus artifact, dropped: {int((~okk).sum())} of {len(okk)}")
for i in test_rows:
f = files.loc[i]
for k in np.where(~f.stim_ok)[0]:
print(f" {f.folder}/{f.file} sweep {k}: onset {f.stim_ms[k]:.2f} ms, onset step {f.stim_step[k]:+.1f} "
f"(file median {np.median(f.stim_step):+.1f}), largest step at {f.stim_maxstep_ms[k]:.2f} ms {f.units}")
ae = pd.Series({files.loc[i, "file"]: files.loc[i, "artifact_end_ms"] for i in test_rows})
print("\nEnd of the stimulus artifact per file (ms after the onset):", ae.describe().round(2).to_dict())
lat = np.concatenate([files.loc[i, "lat50"][files.loc[i, "stim_ok"]] for i in test_rows])
print(f"Peak latency (ms after stimulus): median {np.median(lat):.1f}, 5th to 95th percentile "
f"{np.percentile(lat, 5):.1f} to {np.percentile(lat, 95):.1f}; at the window's first sample: "
f"{np.mean(lat <= ae.min() + 0.05):.3f}")
Onset of the stimulus artifact per sweep, over 17319 test sweeps of the analysed cells, at the sampling resolution (0.05 ms); times held by at least 20 sweeps:
87.85 71
89.45 126
90.25 97
93.40 116
96.65 48
97.45 109
99.05 31
107.80 3052
107.85 13653
Other times: 16 sweeps
Onset less the file's most common onset, sweeps near 108 ms (ms: sweeps): {-1.35: 1, -0.05: 120, 0.0: 16351, 0.05: 234, 0.1: 4}
Largest step less the onset (ms: sweeps), where the first version of this entry aligned each sweep: {0.0: 1573, 0.05: 9244, 0.1: 4196, 0.15: 2305, 0.2: 1}
Files whose largest step falls at different places in the artifact in different sweeps: 41 of 115
Files with sweeps whose stimulus is before 105 ms (fraction of sweeps):
IC13/07321007.abf: 0.03
VCB19/07820003.abf: 0.01
VCB27/07823010.abf: 0.40
VCB27/07823012.abf: 0.58
VCB30/07824007.abf: 0.81
VCB30/07824009.abf: 0.63
VCB33/07827017.abf: 0.89
VCB34/07828002.abf: 0.48
VCB6/07809008.abf: 0.01
VCB6/07809011.abf: 0.02
VCB7/07809012.abf: 0.26
VCB7/07809014.abf: 0.02
Sweeps without a stimulus artifact, dropped: 5 of 17319
IC13/07321007.abf sweep 73: onset 175.80 ms, onset step -0.3 (file median -28.5), largest step at 176.00 ms mV
IC13/07321007.abf sweep 74: onset 54.00 ms, onset step +7.0 (file median -28.5), largest step at 54.05 ms mV
IC13/07321007.abf sweep 75: onset 60.70 ms, onset step +6.7 (file median -28.5), largest step at 60.80 ms mV
IC13/07321007.abf sweep 76: onset 123.95 ms, onset step +71.0 (file median -28.5), largest step at 123.95 ms mV
VCB19/07820003.abf sweep 119: onset 50.00 ms, onset step +0.0 (file median -1461.7), largest step at 50.00 ms pA
End of the stimulus artifact per file (ms after the onset): {'count': 115.0, 'mean': 0.76, 'std': 0.47, 'min': 0.55, '25%': 0.55, '50%': 0.55, '75%': 0.62, 'max': 2.55}
Peak latency (ms after stimulus): median 5.2, 5th to 95th percentile 2.8 to 12.2; at the window's first sample: 0.000
The descriptor puts the stimulus "typically around 100 ms into the recordings". The artifact's onset is at 107.80 or 107.85 ms in 16705 of 17319 test sweeps; within a file, 16351 sweeps near 108 ms share the file's most common onset, 354 are one sample (0.05 ms) away (120 before, 234 after) and 5 further. In seven files 26 to 89% of the sweeps have it at 87 to 99 ms and in three more 1 or 2% do, ten files in all, which is why it is found per sweep. IC13 and VCB19 also appear in the list of files with sweeps before 105 ms, but only through their sweeps with no stimulus (onset at 50 to 60 ms), which are dropped below. The artifact is biphasic and its largest step falls 0 to 0.2 ms after the onset, at different places in different sweeps of 41 of 115 files: aligning on the largest step, as the first version of this entry did, shifted sweeps by up to 0.2 ms against each other. Aligning on the onset removes this. Five sweeps hold no stimulus artifact and are dropped: four post-pairing sweeps of IC13 (one with no step, three whose largest step is a spike's upstroke, at 54 to 124 ms) and the VCB19 sweep pinned at -2000 pA. The artifact ends 0.55 to 2.55 ms after the onset (median 0.55), and no peak falls on the first sample of its window.
# Time-locking: the measured response after the stimulus against the same measure on a stretch of equal
# length ending 5 ms before it (where no evoked response can be), per cell, in the pre-pairing epoch.
rows = []
for _, c in inc[inc.has_data].iterrows():
a = pvc9.epoch_amplitudes(files, c.pre_rows)[-pvc9.N_PRE:]
b = pvc9.epoch_amplitudes(files, c.pre_rows, key="amp_prestim")[-pvc9.N_PRE:]
rows.append(dict(group=c.group, cell=c.cell, after_stim=np.median(a), before_stim=np.median(b),
ratio=np.median(a) / np.median(b)))
tl = pd.DataFrame(rows)
print(tl.groupby("group")[["after_stim", "before_stim", "ratio"]].median().round(2).to_string())
print("Cells whose response after the stimulus is less than twice the reference:", tl[tl.ratio < 2].cell.tolist())
print("Units: IC in mV, VC and VCB in pA.")
fig, axes = plt.subplots(1, 3, figsize=(13, 3.2))
t = np.arange(len(files.loc[test_rows[0], "median_trace"])) / 20.0 - 15
for ax, g in zip(axes, ["IC", "VC", "VCB"]):
for _, c in inc[inc.has_data & (inc.group == g)].iterrows():
tr = files.loc[c.pre_rows[-1], "median_trace"]
tr = tr - np.median(tr[:200])
ax.plot(t, tr, lw=0.6)
ax.set_xlim(-15, 60)
ax.set_title(f"{g}: median pre-pairing sweep, aligned on the stimulus")
ax.set_xlabel("ms from stimulus")
lims = {"IC": (-5, 15), "VC": (-700, 150), "VCB": (-800, 150)}[g]
ax.set_ylim(*lims)
ax.set_ylabel("mV" if g == "IC" else "pA")
plt.tight_layout()
plt.show()
print("Axes are clipped; the stimulus artifact (at 0 ms) runs beyond them in every trace.")
after_stim before_stim ratio group IC 7.63 0.15 54.35 VC 224.99 12.72 15.36 VCB 206.98 12.34 17.49 Cells whose response after the stimulus is less than twice the reference: ['VCB17'] Units: IC in mV, VC and VCB in pA.
Axes are clipped; the stimulus artifact (at 0 ms) runs beyond them in every trace.
In every analysed cell but VCB17 the response after the stimulus is at least twice the same measure taken before it, and the group medians are 15 to 54 times, so the evoked responses are locked to the stimulus in each sweep (there are no trial tables; each sweep is one stimulus). The traces show the evoked EPSPs (IC, depolarizing) and EPSCs (VC, VCB, inward) after the artifact. VCB17 is examined next.
# VCB17: its pre-pairing response, measured per sweep, is less than twice the same measure before the stimulus
# (above). Its median traces, holding current and amplitudes, pre and post.
c17 = inc[inc.cell == "VCB17"].iloc[0]
z0, sr = 300, 20 # median_trace starts 15 ms (300 samples) before the stimulus; 20 samples/ms
rows = []
fig, axes = plt.subplots(1, 3, figsize=(13, 3.2))
for name, key in [("pre", "pre_rows"), ("post", "post_rows")]:
f = files.loc[c17[key][-1] if name == "pre" else c17[key][0]]
tr = f.median_trace - f.median_trace[z0 - 10 * sr:z0].mean()
end = int(round(f.artifact_end_ms * sr))
seg = -tr[z0 + end:z0 + 50 * sr + 1]
ep = {k: pvc9.epoch_amplitudes(files, c17[key], key=k) for k in ["amp50", "amp_prestim", "amp50_base50", "base"]}
if name == "pre": # the analysed epoch: the last 120 baseline sweeps
ep = {k: x[-pvc9.N_PRE:] for k, x in ep.items()}
rows.append(dict(epoch=name, file=f.file, sweeps=len(ep["amp50"]),
median_trace_peak_pA=seg.max(), peak_ms=(end + seg.argmax()) / sr,
sweep_amp_median=np.median(ep["amp50"]), sweep_amp_mean=ep["amp50"].mean(),
prestim_reference_median=np.median(ep["amp_prestim"]),
amp_50ms_baseline_mean=ep["amp50_base50"].mean(),
holding_median_pA=np.median(ep["base"]), holding_sd_pA=np.std(ep["base"])))
axes[0].plot(np.arange(len(tr)) / sr - 15, tr, lw=0.8, label=f"{name} (median of the file's {f.n_sweeps} sweeps)")
axes[1].plot(ep["amp50"], ".", ms=3, label=name)
axes[1].plot(ep["amp_prestim"], ".", ms=2, c="grey", label="before the stimulus" if name == "pre" else None)
axes[2].plot(ep["base"], ".", ms=3, label=name)
v = pd.DataFrame(rows).set_index("epoch")
print(v.round(1).T.to_string())
print(f"\nChange from the median traces: {100 * (v.median_trace_peak_pA['post'] / v.median_trace_peak_pA['pre'] - 1):+.0f}%; "
f"from the sweep means: {100 * (v.sweep_amp_mean['post'] / v.sweep_amp_mean['pre'] - 1):+.0f}%; "
f"with the 50 ms baseline: {100 * (v.amp_50ms_baseline_mean['post'] / v.amp_50ms_baseline_mean['pre'] - 1):+.0f}%")
print(f"Sheet: pre {c17.sheet_pre:.1f} pA, post {c17.sheet_post:.1f} pA, change {100 * c17.sheet_change:+.1f}%; "
f"the sheet less the median holding current: pre {c17.sheet_pre - v.holding_median_pA['pre']:.1f}, "
f"post {c17.sheet_post - v.holding_median_pA['post']:.1f} pA, change "
f"{100 * ((c17.sheet_post - v.holding_median_pA['post']) / (c17.sheet_pre - v.holding_median_pA['pre']) - 1):+.0f}%")
axes[0].set_xlim(-15, 50); axes[0].set_ylim(-600, 200); axes[0].set_xlabel("ms from stimulus"); axes[0].set_ylabel("pA")
axes[0].set_title("VCB17 median sweep (baseline 0)")
axes[1].set_xlabel("sweep"); axes[1].set_ylabel("amplitude (pA)"); axes[1].set_title("amplitude per sweep")
axes[2].set_xlabel("sweep"); axes[2].set_ylabel("pA"); axes[2].set_title("holding current (10 ms before stimulus)")
for ax in axes: ax.legend(fontsize=7)
plt.tight_layout(); plt.show()
print("The artifact runs beyond the first panel's axes; the other panels show every analysed sweep.")
epoch pre post file 07815004.abf 07815006.abf sweeps 120 200 median_trace_peak_pA 93.0 472.799988 peak_ms 3.0 2.8 sweep_amp_median 94.3 485.7 sweep_amp_mean 100.1 490.8 prestim_reference_median 49.5 35.6 amp_50ms_baseline_mean 100.4 490.7 holding_median_pA -485.5 -484.0 holding_sd_pA 26.6 47.3 Change from the median traces: +408%; from the sweep means: +390%; with the 50 ms baseline: +388% Sheet: pre -579.2 pA, post -943.3 pA, change +62.9%; the sheet less the median holding current: pre -93.7, post -459.3 pA, change +390%
The artifact runs beyond the first panel's axes; the other panels show every analysed sweep.
VCB17 has a stimulus-locked inward current before pairing: its median trace peaks at 93 pA, 3 ms after the stimulus, and the median of its per-sweep amplitudes (94.3 pA) is 1.9 times the same measure before the stimulus (median 49.5 pA), which is why it is listed above as below 2: the per-sweep peak carries some noise, and the response is shown by the median traces. After pairing the median trace peaks at 473 pA. The change is +408% from the median traces, +390% from the sweep means and +388% with a 50 ms baseline, so it does not depend on the baseline window. The holding current is steady over the analysed sweeps (median -486 and -484 pA). The sheet's amplitudes (-579 and -943 pA) less the holding current give -94 and -459 pA, a change of +390%, the value measured here: the sheet's +62.9% is computed on amplitudes that include the holding current. VCB17 is kept, as a cell the paper included whose response is measurable; its change is a large potentiation by every estimate.
# The measure against the authors' own per-cell changes in the Summary sheets.
res = pvc9.classify_all(files, cells)
wide = res[res["T"] == "a"].pivot(index="cell", columns="P", values="change")
cmp_ = inc[inc.has_data].set_index("cell")[["group", "sheet_change", "sheet_pre"]].join(wide)
cmp_["sheet_change"] *= 100
pre_a = res[(res.P == "a") & (res["T"] == "a")].set_index("cell")
cmp_["pre_mean"] = pre_a.pre_mean
print(cmp_.round(2).to_string())
for P in "abc":
d = (cmp_[P] - cmp_.sheet_change).abs()
print(f"reading (P)({P}): |this change - sheet change| median {d.median():.2f} points; within 5 points: "
f"{int((d < 5).sum())} of {len(d)}; Pearson r = {stats.pearsonr(cmp_[P], cmp_.sheet_change)[0]:.3f}")
d = (cmp_["c"] - cmp_.sheet_change).abs()
print("Cells more than 5 points from the sheet under (P)(c):", d[d >= 5].index.tolist())
print("\nPre-pairing amplitude, this measure against the sheet's (absolute values, VC sheets are signed):")
r_amp = stats.pearsonr(cmp_.pre_mean, cmp_.sheet_pre.abs())
print(f"Pearson r = {r_amp[0]:.3f}; median ratio {np.median(cmp_.pre_mean / cmp_.sheet_pre.abs()):.3f}")
group sheet_change sheet_pre a b c pre_mean cell IC2 IC 11.62 5.14 13.14 8.81 14.83 5.09 IC3 IC -11.03 5.57 -10.32 -10.32 -10.32 5.56 IC4 IC -12.49 10.92 -12.54 -13.33 -13.86 10.94 IC5 IC -8.51 9.06 -8.60 -8.60 -8.60 9.06 IC6 IC -0.92 9.59 -0.93 -0.74 -1.06 9.61 IC8 IC -4.33 6.23 -5.55 -16.44 4.48 6.22 IC13 IC -12.84 5.42 -10.86 -10.86 -10.86 5.32 IC14 IC 8.39 9.49 16.40 12.90 19.90 9.50 IC16 IC 0.20 4.70 4.99 15.09 -5.12 4.71 IC19 IC -8.64 10.92 -10.32 -2.59 -16.19 10.92 VC5 VC 15.48 -537.74 15.38 15.38 15.38 547.64 VC7 VC 1.43 -140.71 -2.52 -6.62 2.39 146.21 VC8 VC -16.43 -104.42 -20.32 -17.42 -21.87 112.10 VC9 VC -2.61 -291.52 -7.93 -12.17 -3.52 307.67 VC11 VC -10.24 -252.53 -9.23 -9.63 -8.84 281.27 VC12 VC -18.78 -111.73 -17.16 -17.62 -16.72 127.90 VC13 VC 10.15 -262.84 1.67 -1.73 4.79 287.17 VC14 VC -30.57 -184.51 -24.44 -21.76 -28.55 195.43 VC15 VC 13.41 -257.78 26.05 36.22 12.54 269.16 VC16 VC 2.75 -81.74 5.97 9.73 4.10 91.49 VCB2 VCB 21.35 -249.17 22.06 23.88 19.46 257.04 VCB3 VCB 37.84 -72.93 32.44 39.86 33.84 81.84 VCB5 VCB 1.20 -228.36 -0.04 4.16 -1.57 240.30 VCB6 VCB 32.34 -222.49 35.57 35.57 35.57 230.57 VCB7 VCB -36.53 -231.75 -36.37 -39.03 -35.31 236.62 VCB9 VCB -23.77 -93.43 -24.36 -26.14 -25.61 100.67 VCB10 VCB -44.40 -197.29 -36.68 -36.68 -36.68 205.84 VCB11 VCB -77.60 -55.18 -58.26 -58.26 -58.26 66.92 VCB14 VCB -26.60 -74.45 -18.71 -15.74 -23.30 81.66 VCB15 VCB 2.26 -80.47 16.08 25.33 1.86 93.57 VCB16 VCB 31.40 -94.87 35.73 33.66 27.54 100.40 VCB17 VCB 62.87 -579.19 390.39 383.92 387.82 100.08 VCB18 VCB -11.43 -453.20 -11.66 -10.91 -12.46 462.95 VCB19 VCB -4.97 -48.03 -6.18 -6.18 -6.18 64.76 VCB25 VCB -3.88 -247.35 -3.14 -0.08 -4.20 252.92 VCB26 VCB -17.31 -317.72 -17.09 -12.78 -21.37 332.28 VCB27 VCB -34.02 -277.92 -23.01 -10.45 -19.08 327.71 VCB28 VCB 1.45 -222.53 3.90 3.44 6.04 227.99 VCB29 VCB 56.75 -176.04 56.06 61.12 50.54 185.79 VCB30 VCB -64.18 -126.93 -62.29 -63.68 -61.25 134.35 VCB31 VCB 8.77 -483.06 6.26 5.20 8.99 490.94 VCB33 VCB -22.05 -203.66 -16.17 -16.31 -14.49 206.41 VCB34 VCB 36.50 -266.41 35.87 40.50 34.88 270.24 VCB36 VCB -11.95 -538.54 -8.46 -9.76 -9.86 535.56 VCB37 VCB 2.67 -174.79 2.71 -2.27 2.81 178.18 VCB38 VCB -14.35 -153.77 -14.03 -10.38 -15.58 157.31 reading (P)(a): |this change - sheet change| median 1.93 points; within 5 points: 33 of 46; Pearson r = 0.686 reading (P)(b): |this change - sheet change| median 3.68 points; within 5 points: 30 of 46; Pearson r = 0.692 reading (P)(c): |this change - sheet change| median 2.04 points; within 5 points: 34 of 46; Pearson r = 0.679 Cells more than 5 points from the sheet under (P)(c): ['IC8', 'IC14', 'IC16', 'IC19', 'VC8', 'VC13', 'VCB10', 'VCB11', 'VCB17', 'VCB27', 'VCB29', 'VCB33'] Pre-pairing amplitude, this measure against the sheet's (absolute values, VC sheets are signed): Pearson r = 0.885; median ratio 1.034
The data set's own per-cell changes (Summary sheets, computed by the authors in Excel from Clampfit measurements) agree with this measure for most cells (34 of 46 within 5 points under (P)(c), and the pre-pairing amplitudes within a median 3.4%), which supports the measure and the epochs. The larger differences may come from the sweeps the authors selected (each sheet marks its sweeps in green) or, for VCB17, from an amplitude that includes the holding current (above). The sheet values are shown for comparison only; every result below is computed from the recordings.
# IC13: the measured sweeps against the values in its sheet. Column 9 ("Peak Amp (mV)") holds the authors'
# per-sweep amplitudes; the 120 green cells are the pre-pairing sweeps they used, and the values below them the
# post-pairing sweeps.
c13 = inc[inc.cell == "IC13"].iloc[0]
col = pvc9.read_sheet_column(sheets["ECS_IC.xls"], "IC13", 9)
green = col[col.fill == "green"]
after = col[col.row > green.row.max()]
pre13 = pvc9.epoch_amplitudes(files, c13.pre_rows)
post13 = pvc9.epoch_amplitudes(files, c13.post_rows)
print(f"Sheet column 9: {len(col)} values, {len(green)} green (rows {green.row.min()} to {green.row.max()}), "
f"{len(after)} after them (rows {after.row.min()} to {after.row.max()})")
print(f"Measured: {len(pre13)} baseline sweeps, {len(post13)} post-pairing sweeps with a stimulus")
g, a_ = green.value.values, after.value.values
r_pre = stats.pearsonr(pre13[-len(g):], g)
r_post = stats.pearsonr(post13[:len(a_)], a_)
print(f"Last {len(g)} measured baseline sweeps against the green values: r = {r_pre[0]:.3f}, "
f"mean difference {np.mean(pre13[-len(g):] - g):+.3f} mV")
print(f"First {len(a_)} measured post-pairing sweeps against the values after them: r = {r_post[0]:.3f}, "
f"mean difference {np.mean(post13[:len(a_)] - a_):+.3f} mV")
fpost = files.loc[c13.post_rows[0]]
drop = np.where(~fpost.stim_ok)[0]
print(f"\nSweeps of {fpost.file} without a stimulus artifact (dropped): {drop.tolist()} of {fpost.n_sweeps}")
for k in drop:
print(f" sweep {k}: largest step at {fpost.stim_maxstep_ms[k]:.2f} ms, onset step {fpost.stim_step[k]:+.1f} mV "
f"(the file's median onset step {np.median(fpost.stim_step):+.1f} mV), amplitude if measured {fpost.amp50[k]:.1f} mV")
pre_mean = pre13[-pvc9.N_PRE:].mean()
print(f"Change with the dropped sweeps kept (the first version of this entry): "
f"{100 * (np.concatenate([files.loc[i, 'amp50'] for i in c13.post_rows]).mean() / pre_mean - 1):+.1f}%; "
f"without them: {100 * (post13.mean() / pre_mean - 1):+.1f}%; sheet: {100 * c13.sheet_change:+.1f}%")
fig, ax = plt.subplots(figsize=(9, 3))
ax.plot(np.arange(len(pre13)), pre13, ".", ms=3, c="grey", label="measured, baseline")
ax.plot(np.arange(len(pre13) - len(g), len(pre13)), g, ".", ms=3, c="tab:green", label="sheet, green")
x = np.arange(len(pre13) + 5, len(pre13) + 5 + len(post13))
ax.plot(x, post13, ".", ms=3, c="k", label="measured, post-pairing")
ax.plot(x[:len(a_)], a_, ".", ms=3, c="tab:orange", label="sheet, after the green rows")
ax.set_xlabel("sweep (pairing omitted)"); ax.set_ylabel("EPSP amplitude (mV)"); ax.set_title("IC13"); ax.legend(fontsize=7)
plt.tight_layout(); plt.show()
print(f"Plotted amplitudes {min(pre13.min(), post13.min()):.1f} to {max(pre13.max(), post13.max()):.1f} mV")
Sheet column 9: 193 values, 120 green (rows 1 to 120), 73 after them (rows 181 to 253) Measured: 162 baseline sweeps, 73 post-pairing sweeps with a stimulus Last 120 measured baseline sweeps against the green values: r = 0.998, mean difference -0.006 mV First 73 measured post-pairing sweeps against the values after them: r = 0.995, mean difference +0.023 mV Sweeps of 07321007.abf without a stimulus artifact (dropped): [73, 74, 75, 76] of 77 sweep 73: largest step at 176.00 ms, onset step -0.3 mV (the file's median onset step -28.5 mV), amplitude if measured 3.0 mV sweep 74: largest step at 54.05 ms, onset step +7.0 mV (the file's median onset step -28.5 mV), amplitude if measured 43.1 mV sweep 75: largest step at 60.80 ms, onset step +6.7 mV (the file's median onset step -28.5 mV), amplitude if measured 51.4 mV sweep 76: largest step at 123.95 ms, onset step +71.0 mV (the file's median onset step -28.5 mV), amplitude if measured 50.7 mV Change with the dropped sweeps kept (the first version of this entry): +20.6%; without them: -10.9%; sheet: -12.8%
Plotted amplitudes 1.5 to 10.1 mV
IC13's sheet holds its per-sweep amplitudes: the 120 green values are the last 120 measured baseline sweeps (r = 0.998, mean difference -0.006 mV), and the 73 values after them are the first 73 post-pairing sweeps (r = 0.995, +0.023 mV). The post-pairing file has 77 sweeps; the last four hold no stimulus artifact (one has no step at all, three a spike, measured at 43 to 51 mV), and the sheet leaves them out. Measured with them, as in the first version of this entry, IC13 changed by +20.6%; without them it changes by -10.9%, against -12.8% in its sheet, and is NC in every reading.
# The alignment and the baseline: the per-cell change with the first version's alignment (each sweep on its
# largest step), with the 10 ms baseline ending 1 ms before the stimulus, and with a 50 ms baseline.
rows = []
for k in ["amp50_maxstep", "amp50_guard", "amp50_base50"]:
m = res.merge(pvc9.classify_all(files, cells, key=k), on=["cell", "P", "T"], suffixes=("", "_v"))
d = (m.change - m.change_v).abs()
rows.append(dict(variant=k, median_abs_diff=d.median(), max_abs_diff=d.max(), cell_of_max=m.cell[d.idxmax()],
class_changes=int((m.cls != m.cls_v).sum()),
which=", ".join(sorted({f"{c} ({P},{T}) {a}->{b}" for c, P, T, a, b in
zip(m.cell, m.P, m["T"], m.cls, m.cls_v) if a != b}))))
print(pd.DataFrame(rows).round(3).to_string(index=False))
variant median_abs_diff max_abs_diff cell_of_max class_changes which amp50_maxstep 0.216 10.105 VCB17 4 VCB33 (a,a) LTD->NC, VCB33 (a,b) LTD->NC, VCB33 (b,a) LTD->NC, VCB33 (b,b) LTD->NC amp50_guard 0.020 0.257 VCB19 0 amp50_base50 0.089 1.911 VCB17 2 IC16 (b,a) LTP->NC, IC16 (b,b) LTP->NC
Aligning on the largest step (the first version) moves the per-cell change by a median 0.22 points (at most 10 points, VCB17's +390%) and changes one cell's class: VCB33 is LTD after onset alignment and NC under readings (a) and (b) after largest-step alignment. Ending the 10 ms baseline 1 ms before the stimulus moves the change by a median 0.02 points (at most 0.26) and changes no class, so no artifact sample enters the baseline. A 50 ms baseline moves it by a median 0.09 points and changes IC16's class in reading (b), where its change is +15.1%, at the threshold.
print("Pre-pairing sweeps available per analysed cell (the last 120 are used; Methods, 120 stimuli):")
an = inc[inc.has_data]
print(an.groupby("group").n_pre_sweeps.describe()[["min", "50%", "max"]].to_string())
print("Cells with fewer than 120 pre-pairing sweeps:", an[an.n_pre_sweeps < 120].cell.tolist())
print("\nPost-pairing sweeps per analysed cell (Methods: at least 10 more minutes, 120 sweeps):")
print(an.groupby("group").n_post_sweeps.describe()[["min", "50%", "max"]].to_string())
print("Cells with fewer than 120 post-pairing sweeps:", an[an.n_post_sweeps < 120][["cell", "n_post_sweeps"]].values.tolist())
print("\nCells with a second pairing (only the first is used):", an[an.pair2_rows.str.len() > 0].cell.tolist())
gap = [(c.cell, (files.loc[c.post_rows[0], "start"] - files.loc[c.pair_rows[0], "start"]).total_seconds() / 60)
for _, c in an.iterrows()]
gap = pd.DataFrame(gap, columns=["cell", "min"])
print(f"Minutes from the start of pairing to the start of the post-pairing recording: "
f"{gap['min'].min():.1f} to {gap['min'].max():.1f} (60 trials at 0.1 Hz take 10 min)")
# Which 120 baseline sweeps: the sheets' mean pre-pairing amplitude against the first and the last 120.
rows = []
for _, c in an.iterrows():
pre = pvc9.epoch_amplitudes(files, c.pre_rows)
rows.append(dict(cell=c.cell, n_pre=len(pre), sheet=abs(c.sheet_pre), last120=pre[-120:].mean(), first120=pre[:120].mean()))
pw = pd.DataFrame(rows)
pw = pw[pw.n_pre > 130]
for k in ["last120", "first120"]:
e = 100 * (pw[k] / pw.sheet - 1)
print(f"{k}: median |difference from the sheet's pre-pairing mean| {e.abs().median():.1f}% over {len(pw)} cells with more than 130 baseline sweeps")
print("cells where the last 120 are closer:", int(((pw.last120 - pw.sheet).abs() < (pw.first120 - pw.sheet).abs()).sum()), "of", len(pw))
tcmp = inc.traces_compared.map(lambda v: "no entry" if v is None or v == "" else v)
print("\nThe sheets' 'Traces compared' (PARAMETERS block):", tcmp.value_counts().to_dict())
Pre-pairing sweeps available per analysed cell (the last 120 are used; Methods, 120 stimuli):
min 50% max
group
IC 120.0 186.5 265.0
VC 120.0 185.5 388.0
VCB 120.0 160.5 400.0
Cells with fewer than 120 pre-pairing sweeps: []
Post-pairing sweeps per analysed cell (Methods: at least 10 more minutes, 120 sweeps):
min 50% max
group
IC 77.0 180.0 250.0
VC 110.0 181.5 240.0
VCB 112.0 200.0 287.0
Cells with fewer than 120 post-pairing sweeps: [['IC13', 77], ['VC5', 110], ['VCB6', 112], ['VCB10', 114], ['VCB11', 119]]
Cells with a second pairing (only the first is used): ['IC2', 'IC4', 'IC5', 'IC6', 'IC14']
Minutes from the start of pairing to the start of the post-pairing recording: 9.8 to 12.4 (60 trials at 0.1 Hz take 10 min)
last120: median |difference from the sheet's pre-pairing mean| 4.5% over 36 cells with more than 130 baseline sweeps
first120: median |difference from the sheet's pre-pairing mean| 24.3% over 36 cells with more than 130 baseline sweeps
cells where the last 120 are closer: 26 of 36
The sheets' 'Traces compared' (PARAMETERS block): {120.0: 40}
Every analysed cell has at least 120 pre-pairing sweeps, and most have more (up to 400). Five have fewer than 120 post-pairing sweeps (73 to 119 measured); for them readings (P)(b) and (P)(c) use every post-pairing sweep, the same as (a). Post-pairing recordings start 9.8 to 12.4 min after the pairing begins, as 60 trials at 0.1 Hz require. Five IC cells had a second pairing; only the first and the recording before the second are used.
Which 120 baseline sweeps form the pre-pairing epoch is not fixed by the claims file. The Methods say pairing began "after the pre-pairing epoch was complete (120 stimuli at 0.2 Hz)", which reads as the 120 sweeps just before pairing, and the data set's own sheets agree: their mean pre-pairing amplitudes match the last 120 sweeps (median difference 4.5%) and not the first 120 (24.3%). The last 120 are used, as an assumption; the first 120 are run as a variant in each claim.
The post-pairing window (P) is a reading the claims file names. Where the readings of a claim of absence give different outcomes, the claims file has the author adopt one. This entry adopts (P)(c), the last 120 post-pairing sweeps: the Methods give "at least 10 more minutes of testing" after pairing, the 40 VC and VCB sheets that state it compared 120 traces ("Traces compared", 120), and of the two 120-sweep readings (c) is closer to the sheets' changes (34 of 46 cells within 5 points, median 2.0 points; (b) 30 of 46, 3.7 points).
Claims¶
Every per-cell result below comes from pvc9.classify_all, run once for each reading of (P) and (T). The
control group is the 20 complete control recordings (10 IC, 10 VC); the bicuculline group is the 26 VCB
recordings.
res = pvc9.classify_all(files, cells)
res_first = pvc9.classify_all(files, cells, pre_reading="first") # variant: first 120 baseline sweeps
res_w30 = pvc9.classify_all(files, cells, window=30) # variant of (M): 30 ms window
res_var = {k: pvc9.classify_all(files, cells, key=k) for k in ["amp50_maxstep", "amp50_guard"]} # alignment variants
res["control"] = res.group.isin(["IC", "VC"])
for r in (res_first, res_w30, *res_var.values()):
r["control"] = r.group.isin(["IC", "VC"])
def counts(r, mask):
out = r[mask].groupby(["P", "T"]).cls.value_counts().unstack(fill_value=0)
for k in ["LTP", "LTD", "NC"]:
if k not in out:
out[k] = 0
out = out[["LTP", "LTD", "NC"]]
out["n"] = out.sum(axis=1)
return out
print("Rows:", len(res), "=", res.cell.nunique(), "cells x 3 readings of (P) x 2 of (T)")
Rows: 276 = 46 cells x 3 readings of (P) x 2 of (T)
dataset-size¶
Plasticity was analysed in 28 control cells (14 in voltage clamp, 14 in current clamp) and 26 cells with 2 uM bicuculline in the bath.
Criterion: counts of the included cells, zero tolerance; the bicuculline cells are voltage clamp; 27 would be partially reproduced; the discarded recordings (9 IC, 11 VC, 12 bicuculline) are counted where the data set holds them.
tab = pd.DataFrame({
"marked included (Summary sheet)": cells[~cells.excluded].groupby("group").size(),
"marked excluded": cells[cells.excluded].groupby("group").size(),
"included, with a folder or listed files": inc[inc.folder_exists | (inc.pre_rows.str.len() > 0)].groupby("group").size(),
"included, complete recording": inc[inc.has_data].groupby("group").size(),
})
print(tab.to_string())
print("\nPaper: 14 IC, 14 VC, 26 bicuculline included; 9 IC, 11 VC, 12 bicuculline discarded.")
print("Clamp mode of the VCB test files:", files[files.group_dir.eq("Data_ECS_VCB") &
files.protocol.ne("Extracellular pairing")].units.value_counts().to_dict())
print("\nFill of the name cell of each row of the three Summary sheets:")
print(pd.crosstab(cells.group, cells.fill).to_string())
print("Rows counted as included (not red), by fill:", cells[~cells.excluded].fill.value_counts().to_dict())
marked included (Summary sheet) marked excluded included, with a folder or listed files included, complete recording
group
IC 14 9 12 10
VC 14 11 12 10
VCB 26 12 26 26
Paper: 14 IC, 14 VC, 26 bicuculline included; 9 IC, 11 VC, 12 bicuculline discarded.
Clamp mode of the VCB test files: {'pA': 127}
Fill of the name cell of each row of the three Summary sheets:
fill green none red
group
IC 0 14 9
VC 14 0 11
VCB 0 26 12
Rows counted as included (not red), by fill: {'none': 40, 'green': 14}
Result: reproduced. The Summary sheets mark exactly 14 IC, 14 VC and 26 bicuculline recordings as included and 9, 11 and 12 as excluded, the paper's numbers, and every bicuculline test file is in voltage clamp (pA), as the Methods and Figure 2 say and the Dataset paragraph's "I-clamp" does not. The included rows are unfilled (IC, VCB) or green (VC), and every excluded row is red. The deposit holds complete recordings for all 26 bicuculline cells but for only 10 of the 14 IC and 10 of the 14 VC control cells; this limits the claims below, not the count of cells the paper analysed, which the sheets give with a row and per-sweep amplitudes for each.
fig1c-control-outcomes¶
With inhibition intact, few cells showed plasticity after pairing; 1 of 28 underwent LTP, 3 of 28 LTD and 24 of 28 no change.
Criterion: reproduced when, under one reading of (P) and (T), the counts are 1 LTP, 3 LTD, 24 NC; partially when LTP plus LTD number 2 to 6 and NC is within 2.4 of 24. Only 20 of the 28 cells have complete recordings. For seven of the other eight the Summary sheet lists a change below 15% in size, which makes them NC under the paper's rule whatever the t-test gives; IC23's -24.6% leaves it LTD or NC. The counts out of 28 are therefore given as the 20 measured cells plus 7 NC, with IC23 either way (a deviation: the classes of the eight are bounded from the data set's own sheet values, not measured).
c20 = counts(res, res.control)
print("Measured, 20 control cells:")
print(c20.to_string())
by_group = res[res.control].groupby(["P", "T", "group"]).cls.value_counts().unstack(fill_value=0)
print("\nBy clamp mode:")
print(by_group.to_string())
miss = inc[~inc.has_data & inc.group.isin(["IC", "VC"])]
forced_nc = miss[miss.sheet_change.abs() < 0.15].cell.tolist()
open_ = miss[miss.sheet_change.abs() >= 0.15][["cell", "sheet_change"]].values.tolist()
print("\nMissing control cells NC by their sheet change (|change| < 15%):", forced_nc)
print("Missing control cells that could be plastic:", open_)
rows = []
for (P, T), r in c20.iterrows():
for ic23 in ["NC", "LTD"]:
ltp, ltd, nc = r.LTP, r.LTD + (ic23 == "LTD"), r.NC + len(forced_nc) + (ic23 == "NC")
exact = (ltp, ltd, nc) == (1, 3, 24)
partial = 2 <= ltp + ltd <= 6 and abs(nc - 24) <= 2.4
rows.append(dict(P=P, T=T, IC23=ic23, LTP=ltp, LTD=ltd, NC=nc, n=ltp + ltd + nc,
exact=exact, partial=partial))
b28 = pd.DataFrame(rows)
print("\nOut of 28 (20 measured + 7 NC by sheet + IC23):")
print(b28.to_string(index=False))
print("\nVariant, first 120 baseline sweeps:")
print(counts(res_first, res_first.control).to_string())
print("\nVariant, 30 ms search window:")
print(counts(res_w30, res_w30.control).to_string())
for k in ["amp50_maxstep", "amp50_guard"]:
print(f"\nVariant, {k}:")
print(counts(res_var[k], res_var[k].control).to_string())
print("\nVariant, one-sided t-test (the sheets' 'p (one-tail)'):")
res_1s = pvc9.classify_all(files, cells, alternative="one-sided")
res_1s["control"] = res_1s.group.isin(["IC", "VC"])
print(counts(res_1s, res_1s.control).to_string())
plastic = res[res.control & (res.cls != "NC")]
print("\nPlastic control cells per reading:")
print(plastic.groupby(["P", "T"]).apply(lambda d: ", ".join(f"{c} {k} {x:+.1f}% p={p:.2g}" for c, k, x, p in
zip(d.cell, d.cls, d.change, d.p))).to_string())
# Every control cell: the sheet's change and p, the class the sheet's change allows, and the measured classes.
ctl = inc[inc.group.isin(["IC", "VC"])].set_index("cell")
pc = ctl[["group", "has_data"]].copy()
pc["sheet_change"] = 100 * ctl.sheet_change
pc["sheet_p"] = ctl.sheet_p.map(lambda v: "no label" if v is None or (isinstance(v, float) and np.isnan(v))
else ("empty" if v == "" else v))
pc["sheet_allows"] = np.where(pc.sheet_change.abs() < 15, "NC", "NC, LTP or LTD")
for P in "abc":
for T in "ab":
pc[f"class_{P}{T}"] = res[(res.P == P) & (res["T"] == T)].set_index("cell").cls
aa = res[(res.P == "a") & (res["T"] == "a")].set_index("cell")
pc["change_aa"], pc["p_aa"] = aa.change, aa.p
print("\nEvery included control cell (classes measured on the 20 complete recordings):")
print(pc.round(4).to_string())
meas = pc[pc.has_data]
plastic_some = meas.filter(like="class_").ne("NC").any(axis=1)
print("Sheet p cells holding a number:", int(pc.sheet_p.map(lambda v: isinstance(v, float)).sum()), "of", len(pc),
"; label without a value:", int((pc.sheet_p == "empty").sum()), "; no label:", int((pc.sheet_p == "no label").sum()))
print("Measured cells plastic in some reading although the sheet's change is below 15%:",
meas[plastic_some & (meas.sheet_change.abs() < 15)].index.tolist())
print("Measured cells NC in every reading although the sheet's change is 15% or more:",
meas[~plastic_some & (meas.sheet_change.abs() >= 15)].index.tolist())
Measured, 20 control cells:
cls LTP LTD NC n
P T
a a 3 3 14 20
b 3 3 14 20
b a 3 4 13 20
b 3 4 13 20
c a 2 4 14 20
b 1 4 15 20
By clamp mode:
cls LTD LTP NC
P T group
a a IC 0 1 9
VC 3 2 5
b IC 0 1 9
VC 3 2 5
b a IC 1 1 8
VC 3 2 5
b IC 1 1 8
VC 3 2 5
c a IC 1 1 8
VC 3 1 6
b IC 1 0 9
VC 3 1 6
Missing control cells NC by their sheet change (|change| < 15%): ['IC7', 'IC11', 'IC22', 'VC10', 'VC17', 'VC21', 'VC25']
Missing control cells that could be plastic: [['IC23', -0.24647615561324343]]
Out of 28 (20 measured + 7 NC by sheet + IC23):
P T IC23 LTP LTD NC n exact partial
a a NC 3 3 22 28 False True
a a LTD 3 4 21 28 False False
a b NC 3 3 22 28 False True
a b LTD 3 4 21 28 False False
b a NC 3 4 21 28 False False
b a LTD 3 5 20 28 False False
b b NC 3 4 21 28 False False
b b LTD 3 5 20 28 False False
c a NC 2 4 22 28 False True
c a LTD 2 5 21 28 False False
c b NC 1 4 23 28 False True
c b LTD 1 5 22 28 False True
Variant, first 120 baseline sweeps:
cls LTP LTD NC n
P T
a a 2 8 10 20
b 2 7 11 20
b a 2 9 9 20
b 2 8 10 20
c a 1 8 11 20
b 1 7 12 20
Variant, 30 ms search window:
cls LTP LTD NC n
P T
a a 2 3 15 20
b 2 3 15 20
b a 3 4 13 20
b 3 4 13 20
c a 1 4 15 20
b 1 4 15 20
Variant, amp50_maxstep:
cls LTP LTD NC n
P T
a a 3 3 14 20
b 3 3 14 20
b a 3 4 13 20
b 3 4 13 20
c a 2 4 14 20
b 1 4 15 20
Variant, amp50_guard:
cls LTP LTD NC n
P T
a a 3 3 14 20
b 3 3 14 20
b a 3 4 13 20
b 3 4 13 20
c a 2 4 14 20
b 1 4 15 20
Variant, one-sided t-test (the sheets' 'p (one-tail)'):
cls LTP LTD NC n
P T
a a 3 3 14 20
b 3 3 14 20
b a 3 4 13 20
b 3 4 13 20
c a 2 4 14 20
b 2 4 14 20
Plastic control cells per reading:
P T
a a IC14 LTP +16.4% p=0.011, VC5 LTP +15.4% p=4.7e...
b IC14 LTP +16.4% p=0.026, VC5 LTP +15.4% p=0.00...
b a IC8 LTD -16.4% p=7e-12, IC16 LTP +15.1% p=3.6e...
b IC8 LTD -16.4% p=0.0029, IC16 LTP +15.1% p=0.0...
c a IC14 LTP +19.9% p=0.027, IC19 LTD -16.2% p=1.4...
b IC19 LTD -16.2% p=0.0014, VC5 LTP +15.4% p=0.0...
Every included control cell (classes measured on the 20 complete recordings):
group has_data sheet_change sheet_p sheet_allows class_aa class_ab class_ba class_bb class_ca class_cb change_aa p_aa
cell
IC2 IC True 11.6216 no label NC NC NC NC NC NC NC 13.1444 0.0008
IC3 IC True -11.0330 no label NC NC NC NC NC NC NC -10.3175 0.0002
IC4 IC True -12.4865 no label NC NC NC NC NC NC NC -12.5369 0.0000
IC5 IC True -8.5097 no label NC NC NC NC NC NC NC -8.5971 0.0000
IC6 IC True -0.9157 no label NC NC NC NC NC NC NC -0.9277 0.4697
IC7 IC False -12.2696 no label NC NaN NaN NaN NaN NaN NaN NaN NaN
IC8 IC True -4.3315 no label NC NC NC LTD LTD NC NC -5.5475 0.0189
IC11 IC False 2.5356 no label NC NaN NaN NaN NaN NaN NaN NaN NaN
IC13 IC True -12.8398 no label NC NC NC NC NC NC NC -10.8643 0.0011
IC14 IC True 8.3929 no label NC LTP LTP NC NC LTP NC 16.4036 0.0106
IC16 IC True 0.1974 no label NC NC NC LTP LTP NC NC 4.9872 0.0214
IC19 IC True -8.6424 no label NC NC NC NC NC LTD LTD -10.3238 0.0000
IC22 IC False -8.0904 no label NC NaN NaN NaN NaN NaN NaN NaN NaN
IC23 IC False -24.6476 no label NC, LTP or LTD NaN NaN NaN NaN NaN NaN NaN NaN
VC5 VC True 15.4794 empty NC, LTP or LTD LTP LTP LTP LTP LTP LTP 15.3794 0.0000
VC7 VC True 1.4318 empty NC NC NC NC NC NC NC -2.5192 0.1708
VC8 VC True -16.4335 empty NC, LTP or LTD LTD LTD LTD LTD LTD LTD -20.3203 0.0000
VC9 VC True -2.6115 empty NC NC NC NC NC NC NC -7.9269 0.0003
VC10 VC False 5.2532 empty NC NaN NaN NaN NaN NaN NaN NaN NaN
VC11 VC True -10.2446 empty NC NC NC NC NC NC NC -9.2321 0.0000
VC12 VC True -18.7762 empty NC, LTP or LTD LTD LTD LTD LTD LTD LTD -17.1564 0.0000
VC13 VC True 10.1549 empty NC NC NC NC NC NC NC 1.6696 0.4110
VC14 VC True -30.5713 empty NC, LTP or LTD LTD LTD LTD LTD LTD LTD -24.4411 0.0000
VC15 VC True 13.4077 empty NC LTP LTP LTP LTP NC NC 26.0502 0.0000
VC16 VC True 2.7487 empty NC NC NC NC NC NC NC 5.9668 0.0319
VC17 VC False -13.4381 empty NC NaN NaN NaN NaN NaN NaN NaN NaN
VC21 VC False -5.8292 empty NC NaN NaN NaN NaN NaN NaN NaN NaN
VC25 VC False 5.4323 empty NC NaN NaN NaN NaN NaN NaN NaN NaN
Sheet p cells holding a number: 0 of 28 ; label without a value: 14 ; no label: 14
Measured cells plastic in some reading although the sheet's change is below 15%: ['IC8', 'IC14', 'IC16', 'IC19', 'VC15']
Measured cells NC in every reading although the sheet's change is 15% or more: []
Result: partially reproduced, resting on assumptions. No reading gives 1 LTP, 3 LTD and 24 NC. On the 20 complete control cells the readings give 1 to 3 LTP and 3 to 4 LTD (5 to 7 plastic cells, 25 to 35%, against 4 of 28, 14%, in the paper). Adding the seven missing cells that the sheets put below 15% as NC, the counts out of 28 meet the partial criterion (plastic 2 to 6, NC within 2.4 of 24) under (a,a), (a,b), (c,a) and (c,b) if IC23 is NC (3 LTP, 3 LTD, 22 NC under (a,a)), and under (c,b) if IC23 is LTD. This rests on the sheets as a bound for the missing cells, and the bound is not tight: of the 16 measured cells whose sheet change is below 15%, five (IC8, IC14, IC16, IC19, VC15) are plastic in some reading, two of them under (a,a). The sheets store no p values (the 14 VC sheets' "p (one-tail)" cells are empty, the IC sheets have none). The outcome also rests on the last 120 baseline sweeps: with the first 120, 8 to 11 of the 20 cells are plastic, mostly LTD.
fig1-control-no-net-plasticity¶
Over the 28 control cells, pairing gave no net plasticity of EPSPs or EPSCs.
Criterion: a claim of absence; a one-sample t-test of the per-cell percent changes against 0 at p < 0.05, in each reading of (P). Reproduced when no reading reaches p < 0.05.
rows = []
for P in "abc":
x = res[res.control & (res.P == P) & (res["T"] == "a")].change.values
t = stats.ttest_1samp(x, 0.0)
rows.append(dict(P=P, n=len(x), mean=x.mean(), sd=x.std(ddof=1), t=t.statistic, p=t.pvalue))
for g in ["IC", "VC"]:
y = res[(res.group == g) & (res.P == P) & (res["T"] == "a")].change.values
tg = stats.ttest_1samp(y, 0.0)
rows.append(dict(P=P + " " + g, n=len(y), mean=y.mean(), sd=y.std(ddof=1), t=tg.statistic, p=tg.pvalue))
print(pd.DataFrame(rows).round(4).to_string(index=False))
print("\nPaper: n = 28, p > 0.8 (Student's t-test).")
for P in "abc":
x = res_first[res_first.control & (res_first.P == P) & (res_first["T"] == "a")].change.values
print(f"Variant, first 120 baseline sweeps, ({P}): mean {x.mean():+.2f}, p = {stats.ttest_1samp(x, 0.0).pvalue:.4f}")
P n mean sd t p a 20 -2.8555 13.1989 -0.9675 0.3454 a IC 10 -2.4580 10.5414 -0.7374 0.4797 a VC 10 -3.2530 16.0095 -0.6425 0.5365 b 20 -2.5842 14.7082 -0.7858 0.4417 b IC 10 -2.6065 11.3399 -0.7269 0.4858 b VC 10 -2.5619 18.1137 -0.4473 0.6653 c 20 -3.3544 13.1671 -1.1393 0.2687 c IC 10 -2.6788 12.2229 -0.6931 0.5058 c VC 10 -4.0299 14.6832 -0.8679 0.4080 Paper: n = 28, p > 0.8 (Student's t-test). Variant, first 120 baseline sweeps, (a): mean -12.69, p = 0.0217 Variant, first 120 baseline sweeps, (b): mean -12.32, p = 0.0364 Variant, first 120 baseline sweeps, (c): mean -13.25, p = 0.0133
Result: reproduced, resting on an assumption. On the 20 complete control cells the mean change is -2.6% to -3.4% and the one-sample t-test gives p = 0.27 to 0.44 in every reading of (P), so no reading finds net plasticity (the paper's p > 0.8 is not expected to be matched; the claims file explains why). With the first 120 baseline sweeps the mean is -12.3% to -13.3% and every reading reaches p < 0.05 (0.013 to 0.036), so the outcome rests on the choice of the last 120. Eight of the 28 cells are missing.
fig1-control-mean-change¶
The mean change in PSR after pairing was -5.67 +/- 9.47% in voltage clamp, -1.41 +/- 10.92% in current clamp, and -3.53 +/- 10.26% over all 28 control cells.
Criterion: under one reading of (P), all four values within tolerance (V-clamp mean -5.67 +/- 2.53, I-clamp mean -1.41 +/- 2.92, combined mean -3.53 +/- 1.94, combined SD 10.26 +/- 1.03); partially when the three means are.
rows = []
for P in "abc":
r = res[res.control & (res.P == P) & (res["T"] == "a")]
vc, ic, al = r[r.group == "VC"].change, r[r.group == "IC"].change, r.change
vals = [vc.mean(), ic.mean(), al.mean(), al.std(ddof=1)]
ok = [abs(vals[0] + 5.67) <= 2.53, abs(vals[1] + 1.41) <= 2.92, abs(vals[2] + 3.53) <= 1.94, abs(vals[3] - 10.26) <= 1.03]
rows.append(dict(P=P, vc_mean=vals[0], vc_sd=vc.std(ddof=1), ic_mean=vals[1], ic_sd=ic.std(ddof=1),
all_mean=vals[2], all_sd=vals[3], n=len(r), within=" ".join("y" if o else "n" for o in ok)))
print(pd.DataFrame(rows).round(2).to_string(index=False))
print("\nPaper: VC -5.67 +/- 9.47, IC -1.41 +/- 10.92, all -3.53 +/- 10.26 (n = 14, 14, 28).")
sh = inc[inc.group.isin(["IC", "VC"])]
print("\nThe Summary sheets' own changes, all 28 included control cells:")
for g in ["VC", "IC"]:
v = 100 * sh[sh.group == g].sheet_change
print(f" {g}: mean {v.mean():+.2f}, SD {v.std(ddof=1):.2f}, n = {v.notna().sum()}")
v = 100 * sh.sheet_change
print(f" all: mean {v.mean():+.2f}, SD {v.std(ddof=1):.2f}, n = {v.notna().sum()}")
for P in "abc":
r = res_first[res_first.control & (res_first.P == P) & (res_first["T"] == "a")]
print(f"Variant, first 120 baseline sweeps, ({P}): VC {r[r.group == 'VC'].change.mean():+.2f}, "
f"IC {r[r.group == 'IC'].change.mean():+.2f}, all {r.change.mean():+.2f} +/- {r.change.std(ddof=1):.2f}")
v20 = 100 * sh[sh.has_data].sheet_change
print(f" the 20 complete cells, sheet values: mean {v20.mean():+.2f}, SD {v20.std(ddof=1):.2f}")
print("\nVariant, the paper's V-clamp and I-clamp values exchanged (a question to a reader; see the attempt record):")
for P in "abc":
r = res[res.control & (res.P == P) & (res["T"] == "a")]
vc, ic = r[r.group == "VC"].change.mean(), r[r.group == "IC"].change.mean()
print(f" ({P}) VC {vc:+.2f} within -1.41 +/- 2.92: {abs(vc + 1.41) <= 2.92}; IC {ic:+.2f} within -5.67 +/- 2.53: {abs(ic + 5.67) <= 2.53}")
P vc_mean vc_sd ic_mean ic_sd all_mean all_sd n within a -3.25 16.01 -2.46 10.54 -2.86 13.20 20 y y y n b -2.56 18.11 -2.61 11.34 -2.58 14.71 20 n y y n c -4.03 14.68 -2.68 12.22 -3.35 13.17 20 y y y n Paper: VC -5.67 +/- 9.47, IC -1.41 +/- 10.92, all -3.53 +/- 10.26 (n = 14, 14, 28). The Summary sheets' own changes, all 28 included control cells: VC: mean -3.14, SD 13.40, n = 14 IC: mean -5.79, SD 9.51, n = 14 all: mean -4.46, SD 11.48, n = 28 Variant, first 120 baseline sweeps, (a): VC -13.36, IC -12.01, all -12.69 +/- 22.69 Variant, first 120 baseline sweeps, (b): VC -12.81, IC -11.84, all -12.32 +/- 24.48 Variant, first 120 baseline sweeps, (c): VC -14.06, IC -12.44, all -13.25 +/- 21.69 the 20 complete cells, sheet values: mean -3.70, SD 12.01 Variant, the paper's V-clamp and I-clamp values exchanged (a question to a reader; see the attempt record): (a) VC -3.25 within -1.41 +/- 2.92: True; IC -2.46 within -5.67 +/- 2.53: False (b) VC -2.56 within -1.41 +/- 2.92: True; IC -2.61 within -5.67 +/- 2.53: False (c) VC -4.03 within -1.41 +/- 2.92: True; IC -2.68 within -5.67 +/- 2.53: False
Result: partially reproduced, resting on an assumption. Under readings (P)(a) and (P)(c) the three means are within tolerance ((a): VC -3.25%, IC -2.46%, all -2.86%; (c): -4.03%, -2.68%, -3.35%; against -5.67 +/- 2.53, -1.41 +/- 2.92 and -3.53 +/- 1.94) and the SD over cells (13.20% and 13.17%) is outside 10.26 +/- 1.03; reading (b) also misses the VC mean (-2.56%). These are means over 10 VC and 10 IC cells, not 14 and 14. With the first 120 baseline sweeps every mean is -11.8% to -14.1% and none is within tolerance. The sheets' own changes for all 28 cells give VC -3.14 +/- 13.40% and IC -5.79 +/- 9.51%: the sheets' IC values are close to the paper's VC values. Whether the paper's two labels are exchanged is asked of a reader; with them exchanged the IC mean is outside tolerance in every reading.
fig1-vc-ic-same¶
Voltage-clamp and current-clamp control outcomes did not differ; both were Gaussian, and their means and variances did not differ, so the two were combined.
Criterion: claims of absence; Shapiro-Wilk on each group, a two-sample Student's t-test and a two-sided F-test of the variances, at p < 0.05, in each reading of (P). Reproduced when no reading has any test reach p < 0.05; not reproduced when every reading has one that does.
def ftest(x, y):
"""Two-sided F-test of the ratio of variances, var(x) / var(y)."""
F = np.var(x, ddof=1) / np.var(y, ddof=1)
p = 2 * min(stats.f.cdf(F, len(x) - 1, len(y) - 1), stats.f.sf(F, len(x) - 1, len(y) - 1))
return F, min(p, 1.0)
rows = []
for P in "abc":
r = res[res.control & (res.P == P) & (res["T"] == "a")]
vc, ic = r[r.group == "VC"].change.values, r[r.group == "IC"].change.values
F, pF = ftest(vc, ic)
rows.append(dict(P=P, shapiro_vc=stats.shapiro(vc).pvalue, shapiro_ic=stats.shapiro(ic).pvalue,
t_p=stats.ttest_ind(vc, ic).pvalue, mean_diff=vc.mean() - ic.mean(), F=F, F_p=pF))
out = pd.DataFrame(rows)
out["any_p_below_0.05"] = out[["shapiro_vc", "shapiro_ic", "t_p", "F_p"]].min(axis=1) < 0.05
print(out.round(4).to_string(index=False))
print("\nPaper: Shapiro-Wilk p = 0.79 (VC), 0.85 (IC); t-test p = 0.28; F-test p = 0.61.")
for P in "abc":
r = res_first[res_first.control & (res_first.P == P) & (res_first["T"] == "a")]
vc, ic = r[r.group == "VC"].change.values, r[r.group == "IC"].change.values
print(f"Variant, first 120 baseline sweeps, ({P}): Shapiro VC p = {stats.shapiro(vc).pvalue:.3f}, IC p = {stats.shapiro(ic).pvalue:.3f}, "
f"t p = {stats.ttest_ind(vc, ic).pvalue:.3f}, F p = {ftest(vc, ic)[1]:.3f}")
P shapiro_vc shapiro_ic t_p mean_diff F F_p any_p_below_0.05 a 0.8593 0.0497 0.8971 -0.7950 2.3065 0.2291 True b 0.1821 0.2441 0.9948 0.0446 2.5515 0.1791 False c 0.6820 0.1993 0.8256 -1.3511 1.4431 0.5936 False Paper: Shapiro-Wilk p = 0.79 (VC), 0.85 (IC); t-test p = 0.28; F-test p = 0.61. Variant, first 120 baseline sweeps, (a): Shapiro VC p = 0.762, IC p = 0.422, t p = 0.899, F p = 0.444 Variant, first 120 baseline sweeps, (b): Shapiro VC p = 0.803, IC p = 0.154, t p = 0.933, F p = 0.578 Variant, first 120 baseline sweeps, (c): Shapiro VC p = 0.197, IC p = 0.777, t p = 0.873, F p = 0.397
Result: reproduced, resting on an assumption. Under the adopted reading (P)(c) none of the four tests reaches p < 0.05: Shapiro-Wilk p = 0.68 (VC) and 0.20 (IC), t-test p = 0.83, F-test p = 0.59, on 10 cells per mode; (P)(b) agrees (smallest p 0.18). Under (P)(a) the Shapiro-Wilk test of the IC changes gives p = 0.0497, just below 0.05, so the readings differ and the outcome rests on the adopted reading (see the data check). The first-120 variant has no test below 0.05 in any reading (smallest p 0.15).
fig1fh-control-no-dependence-on-initial¶
In control cells the plasticity outcome did not depend on the initial synaptic strength, in current clamp or in voltage clamp.
Criterion: Pearson correlation of the pre-pairing mean amplitude against the percent change, per clamp mode, at p < 0.05 (Spearman as a variant). Reproduced when neither mode reaches p < 0.05. Judged in each reading of (P), as the claims file's rule for absence says.
rows = []
for P in "abc":
for g in ["IC", "VC"]:
r = res[(res.group == g) & (res.P == P) & (res["T"] == "a")]
pr, sr = stats.pearsonr(r.pre_mean, r.change), stats.spearmanr(r.pre_mean, r.change)
rows.append(dict(P=P, group=g, n=len(r), pearson_r=pr[0], pearson_p=pr[1], spearman_rho=sr[0], spearman_p=sr[1],
initial_range=f"{r.pre_mean.min():.1f} to {r.pre_mean.max():.1f}"))
print(pd.DataFrame(rows).round(4).to_string(index=False))
print("Initial amplitude in mV (IC) and pA (VC). Paper: IC p > 0.9, VC p > 0.1.")
for P in "abc":
for g in ["IC", "VC"]:
r = res_first[(res_first.group == g) & (res_first.P == P) & (res_first["T"] == "a")]
print(f"Variant, first 120 baseline sweeps, ({P}) {g}: Pearson p = {stats.pearsonr(r.pre_mean, r.change)[1]:.3f}")
fig, axes = plt.subplots(1, 2, figsize=(9, 3.2))
for ax, g in zip(axes, ["IC", "VC"]):
r = res[(res.group == g) & (res.P == "a") & (res["T"] == "a")]
ax.scatter(r.pre_mean, r.change, s=14, c=r.cls.map({"LTP": "tab:red", "LTD": "tab:blue", "NC": "grey"}))
ax.axhline(15, ls="--", c="grey", lw=0.6); ax.axhline(-15, ls="--", c="grey", lw=0.6)
ax.set_xlabel("pre-pairing amplitude (" + ("mV" if g == "IC" else "pA") + ")"); ax.set_ylabel("change (%)")
ax.set_title(f"{g} control, reading (P)(a)")
plt.tight_layout(); plt.show()
P group n pearson_r pearson_p spearman_rho spearman_p initial_range a IC 10 -0.2124 0.5558 -0.3818 0.2763 4.7 to 10.9 a VC 10 0.4862 0.1542 0.3212 0.3655 91.5 to 547.6 b IC 10 -0.1448 0.6898 -0.2848 0.4250 4.7 to 10.9 b VC 10 0.3955 0.2579 0.2848 0.4250 91.5 to 547.6 c IC 10 -0.2054 0.5692 -0.3455 0.3282 4.7 to 10.9 c VC 10 0.5408 0.1065 0.4545 0.1869 91.5 to 547.6 Initial amplitude in mV (IC) and pA (VC). Paper: IC p > 0.9, VC p > 0.1. Variant, first 120 baseline sweeps, (a) IC: Pearson p = 0.447 Variant, first 120 baseline sweeps, (a) VC: Pearson p = 0.693 Variant, first 120 baseline sweeps, (b) IC: Pearson p = 0.461 Variant, first 120 baseline sweeps, (b) VC: Pearson p = 0.681 Variant, first 120 baseline sweeps, (c) IC: Pearson p = 0.469 Variant, first 120 baseline sweeps, (c) VC: Pearson p = 0.697
Result: reproduced. The Pearson correlation of initial amplitude and change does not reach p < 0.05 in either mode in any reading (IC p = 0.56 to 0.69, r = -0.14 to -0.21; VC p = 0.11 to 0.26, r = 0.40 to 0.54), nor with Spearman's correlation (p of 0.19 or more) or the first 120 baseline sweeps (p of 0.45 or more), on 10 cells per mode. The paper's IC p > 0.9 is not matched.
fig1d-example-nc¶
A representative current-clamp control cell showed no plasticity (EPSP change -1 +/- 0.1%, p = 0.48).
Criterion: reproduced when, under one reading of (P) and (T), at least one included I-clamp control cell has a change within -1 +/- 0.1% and a t-test p of 0.05 or more; the closest cell is reported either way.
ic = res[res.group == "IC"].copy()
ic["dist"] = (ic.change + 1.0).abs()
best = ic.sort_values("dist").groupby(["P", "T"]).head(1)
print(best[["P", "T", "cell", "change", "p", "cls"]].round(4).to_string(index=False))
hit = ic[(ic.dist <= 0.1) & (ic.p >= 0.05)]
icf = res_first[res_first.group == "IC"]
print("Variant, first 120 baseline sweeps, IC6:", icf[icf.cell == "IC6"][["P", "T", "change", "p"]].round(3).values.tolist())
print("\nIC cells within -1 +/- 0.1% with p >= 0.05:")
print(hit[["P", "T", "cell", "change", "p"]].round(4).to_string(index=False) if len(hit) else "none")
P T cell change p cls c b IC6 -1.0591 0.6461 NC c a IC6 -1.0591 0.4116 NC a a IC6 -0.9277 0.4697 NC a b IC6 -0.9277 0.7380 NC b b IC6 -0.7397 0.7380 NC b a IC6 -0.7397 0.5652 NC Variant, first 120 baseline sweeps, IC6: [['a', 'a', -22.071, 0.0], ['a', 'b', -22.071, 0.0], ['b', 'a', -21.923, 0.0], ['b', 'b', -21.923, 0.0], ['c', 'a', -22.174, 0.0], ['c', 'b', -22.174, 0.0]] IC cells within -1 +/- 0.1% with p >= 0.05: P T cell change p a a IC6 -0.9277 0.4697 a b IC6 -0.9277 0.7380 c a IC6 -1.0591 0.4116 c b IC6 -1.0591 0.6461
Result: reproduced, resting on an assumption. IC6 changes by -0.93% with t-test p = 0.47 under (P)(a) and (T)(a), and by -1.06% with p = 0.41 under (P)(c): within -1 +/- 0.1% with p of 0.05 or more, close to the paper's p = 0.48. With the first 120 baseline sweeps IC6 changes by -22% and no IC cell matches.
fig2a-bicuculline-outcomes¶
With GABAA receptors blocked by 2 uM bicuculline, more cells changed after pairing (16 of 26), with outcomes of both signs; 7 of 26 underwent LTP, 9 of 26 LTD and 10 of 26 no change.
Criterion: reproduced when, under one reading of (P) and (T), the counts are 7, 9 and 10; partially when LTP and LTD are each within 2 of the paper and both are present.
cb = counts(res, res.group == "VCB")
cb["exact"] = (cb.LTP == 7) & (cb.LTD == 9) & (cb.NC == 10)
cb["partial"] = ((cb.LTP - 7).abs() <= 2) & ((cb.LTD - 9).abs() <= 2) & (cb.LTP > 0) & (cb.LTD > 0)
print(cb.to_string())
print("\nVariant, first 120 baseline sweeps:")
print(counts(res_first, res_first.group == "VCB").to_string())
print("\nVariant, 30 ms search window:")
print(counts(res_w30, res_w30.group == "VCB").to_string())
for k in ["amp50_maxstep", "amp50_guard"]:
print(f"\nVariant, {k}:")
print(counts(res_var[k], res_var[k].group == "VCB").to_string())
print("\nVariant, one-sided t-test:")
print(counts(res_1s, res_1s.group == "VCB").to_string())
cls = res[res.group == "VCB"].pivot_table(index="cell", columns=["P", "T"], values="cls", aggfunc="first")
cls.columns = [f"class_{p}{t}" for p, t in cls.columns]
chg = res[(res.group == "VCB") & (res["T"] == "a")].pivot(index="cell", columns="P", values="change").round(1)
chg.columns = [f"change_{c}" for c in chg.columns]
print("\nClass of each bicuculline cell per reading, with its change under each (P):")
print(cls.join(chg).to_string())
cls LTP LTD NC n exact partial
P T
a a 8 9 9 26 False True
b 7 8 11 26 False True
b a 8 7 11 26 False True
b 8 6 12 26 False False
c a 7 8 11 26 False True
b 7 8 11 26 False True
Variant, first 120 baseline sweeps:
cls LTP LTD NC n
P T
a a 6 13 7 26
b 6 12 8 26
b a 6 11 9 26
b 6 11 9 26
c a 6 14 6 26
b 6 14 6 26
Variant, 30 ms search window:
cls LTP LTD NC n
P T
a a 8 9 9 26
b 7 8 11 26
b a 8 7 11 26
b 8 6 12 26
c a 7 8 11 26
b 7 8 11 26
Variant, amp50_maxstep:
cls LTP LTD NC n
P T
a a 8 8 10 26
b 7 7 12 26
b a 8 6 12 26
b 8 5 13 26
c a 7 8 11 26
b 7 8 11 26
Variant, amp50_guard:
cls LTP LTD NC n
P T
a a 8 9 9 26
b 7 8 11 26
b a 8 7 11 26
b 8 6 12 26
c a 7 8 11 26
b 7 8 11 26
Variant, one-sided t-test:
cls LTP LTD NC n
P T
a a 8 9 9 26
b 7 8 11 26
b a 8 7 11 26
b 8 6 12 26
c a 7 8 11 26
b 7 8 11 26
Class of each bicuculline cell per reading, with its change under each (P):
class_aa class_ab class_ba class_bb class_ca class_cb change_a change_b change_c
cell
VCB10 LTD LTD LTD LTD LTD LTD -36.7 -36.7 -36.7
VCB11 LTD LTD LTD LTD LTD LTD -58.3 -58.3 -58.3
VCB14 LTD LTD LTD NC LTD LTD -18.7 -15.7 -23.3
VCB15 LTP NC LTP LTP NC NC 16.1 25.3 1.9
VCB16 LTP LTP LTP LTP LTP LTP 35.7 33.7 27.5
VCB17 LTP LTP LTP LTP LTP LTP 390.4 383.9 387.8
VCB18 NC NC NC NC NC NC -11.7 -10.9 -12.5
VCB19 NC NC NC NC NC NC -6.2 -6.2 -6.2
VCB2 LTP LTP LTP LTP LTP LTP 22.1 23.9 19.5
VCB25 NC NC NC NC NC NC -3.1 -0.1 -4.2
VCB26 LTD LTD NC NC LTD LTD -17.1 -12.8 -21.4
VCB27 LTD NC NC NC NC NC -23.0 -10.4 -19.1
VCB28 NC NC NC NC NC NC 3.9 3.4 6.0
VCB29 LTP LTP LTP LTP LTP LTP 56.1 61.1 50.5
VCB3 LTP LTP LTP LTP LTP LTP 32.4 39.9 33.8
VCB30 LTD LTD LTD LTD LTD LTD -62.3 -63.7 -61.2
VCB31 NC NC NC NC NC NC 6.3 5.2 9.0
VCB33 LTD LTD LTD LTD NC NC -16.2 -16.3 -14.5
VCB34 LTP LTP LTP LTP LTP LTP 35.9 40.5 34.9
VCB36 NC NC NC NC NC NC -8.5 -9.8 -9.9
VCB37 NC NC NC NC NC NC 2.7 -2.3 2.8
VCB38 NC NC NC NC LTD LTD -14.0 -10.4 -15.6
VCB5 NC NC NC NC NC NC -0.0 4.2 -1.6
VCB6 LTP LTP LTP LTP LTP LTP 35.6 35.6 35.6
VCB7 LTD LTD LTD LTD LTD LTD -36.4 -39.0 -35.3
VCB9 LTD LTD LTD LTD LTD LTD -24.4 -26.1 -25.6
Result: partially reproduced, resting on an assumption. No reading gives exactly 7 LTP, 9 LTD and 10 NC. Readings (a,a) (8, 9, 9), (a,b) (7, 8, 11), (b,a) (8, 7, 11), (c,a) and (c,b) (7, 8, 11) have LTP and LTD each within 2 of the paper and both present; (b,b) has 6 LTD. Every reading has 14 to 17 plastic cells of 26, of both signs. The 30 ms window, the 1 ms baseline gap and the one-sided test give the same counts; largest-step alignment gives 8, 8, 10 under (a,a). The first 120 baseline sweeps give 6 LTP and 11 to 14 LTD, outside the partial criterion.
bicuculline-increases-plastic-fraction¶
Blocking GABAA inhibition raised the fraction of cells with plasticity from 4 of 28 to 16 of 26, showing that inhibition limits plasticity induction onto L4 cells.
Criterion: reproduced when, under the same reading for both groups, the bicuculline fraction of plastic cells is larger than the control fraction and both counts are within tolerance (4 +/- 0.4, 16 +/- 1.6); partially when the fraction is larger but a count is outside tolerance. Fisher's exact test as a variant. The control count is out of the 20 measured cells and, as in fig1c-control-outcomes, out of 28 with the eight missing cells bounded from their sheet values.
rows = []
for (P, T), r in c20.iterrows():
pc = r.LTP + r.LTD
rb = cb.loc[(P, T)]
pb = rb.LTP + rb.LTD
for ic23 in ["NC", "LTD"]:
pc28 = pc + (ic23 == "LTD")
odds, pf = stats.fisher_exact([[pb, 26 - pb], [pc28, 28 - pc28]])
rows.append(dict(P=P, T=T, IC23=ic23, control_plastic=f"{pc}/20, {pc28}/28", control_frac=pc28 / 28,
bic_plastic=f"{pb}/26", bic_frac=pb / 26, larger=pb / 26 > pc28 / 28,
control_in_tol=abs(pc28 - 4) <= 0.4, bic_in_tol=abs(pb - 16) <= 1.6, fisher_p=pf))
print(pd.DataFrame(rows).round(4).to_string(index=False))
print("\nOn the 20 measured control cells alone:")
for (P, T), r in c20.iterrows():
pc, pb = r.LTP + r.LTD, cb.loc[(P, T)].LTP + cb.loc[(P, T)].LTD
print(f" ({P},{T}) control {pc}/20 = {pc / 20:.2f}, bicuculline {pb}/26 = {pb / 26:.2f}, "
f"Fisher p = {stats.fisher_exact([[pb, 26 - pb], [pc, 20 - pc]])[1]:.4f}")
P T IC23 control_plastic control_frac bic_plastic bic_frac larger control_in_tol bic_in_tol fisher_p a a NC 6/20, 6/28 0.2143 17/26 0.6538 True False True 0.0021 a a LTD 6/20, 7/28 0.2500 17/26 0.6538 True False True 0.0056 a b NC 6/20, 6/28 0.2143 15/26 0.5769 True False True 0.0113 a b LTD 6/20, 7/28 0.2500 15/26 0.5769 True False True 0.0258 b a NC 7/20, 7/28 0.2500 15/26 0.5769 True False True 0.0258 b a LTD 7/20, 8/28 0.2857 15/26 0.5769 True False True 0.0530 b b NC 7/20, 7/28 0.2500 14/26 0.5385 True False False 0.0498 b b LTD 7/20, 8/28 0.2857 14/26 0.5385 True False False 0.0958 c a NC 6/20, 6/28 0.2143 15/26 0.5769 True False True 0.0113 c a LTD 6/20, 7/28 0.2500 15/26 0.5769 True False True 0.0258 c b NC 5/20, 5/28 0.1786 15/26 0.5769 True False True 0.0043 c b LTD 5/20, 6/28 0.2143 15/26 0.5769 True False True 0.0113 On the 20 measured control cells alone: (a,a) control 6/20 = 0.30, bicuculline 17/26 = 0.65, Fisher p = 0.0361
(a,b) control 6/20 = 0.30, bicuculline 15/26 = 0.58, Fisher p = 0.0791 (b,a) control 7/20 = 0.35, bicuculline 15/26 = 0.58, Fisher p = 0.1490 (b,b) control 7/20 = 0.35, bicuculline 14/26 = 0.54, Fisher p = 0.2436 (c,a) control 6/20 = 0.30, bicuculline 15/26 = 0.58, Fisher p = 0.0791 (c,b) control 5/20 = 0.25, bicuculline 15/26 = 0.58, Fisher p = 0.0375
Result: partially reproduced, resting on assumptions. In every reading the plastic fraction is larger in bicuculline (14 to 17 of 26, 54 to 65%) than in control (5 to 7 of the 20 measured, 5 to 8 of 28 with the missing cells bounded). The bicuculline count is within 16 +/- 1.6 in every reading but (b,b) (14), but the control count is never within 4 +/- 0.4. Fisher's exact test gives p = 0.002 to 0.096 against the bounded 28 (p = 0.036 to 0.24 against the 20 measured).
fig2-subgroup-changes¶
In bicuculline, LTP cells changed by +39.9 +/- 14.7%, LTD cells by -38.5 +/- 20.4%, and NC cells by -3.0 +/- 7.6% on average.
Criterion: means over the cells of each class, under the same reading as fig2a-bicuculline-outcomes; tolerances 5.56, 6.8 and 2.4. Reproduced when all three are within tolerance under one reading; partially when two are.
rows = []
exp = {"LTP": (39.9, 5.56), "LTD": (-38.5, 6.8), "NC": (-3.0, 2.4)}
for (P, T), r in res[res.group == "VCB"].groupby(["P", "T"]):
row = dict(P=P, T=T)
k = 0
for c, (v, tol) in exp.items():
x = r[r.cls == c].change
row[f"{c}_n"] = len(x)
row[f"{c}_mean"] = x.mean()
row[f"{c}_sd"] = x.std(ddof=1)
ok = abs(x.mean() - v) <= tol if len(x) else False
row[f"{c}_ok"] = ok
k += ok
row["within"] = k
rows.append(row)
print(pd.DataFrame(rows).round(2).to_string(index=False))
print("\nPaper: LTP +39.9 +/- 14.7 (n = 7), LTD -38.5 +/- 20.4 (n = 9), NC -3.0 +/- 7.6 (n = 10).")
print("\nVariant, without VCB17 (change near +400%, see the data check):")
for (P, T), r in res[(res.group == "VCB") & (res.cell != "VCB17")].groupby(["P", "T"]):
x = r[r.cls == "LTP"].change
print(f" ({P},{T}) LTP n = {len(x)}, mean {x.mean():+.2f}, SD {x.std(ddof=1):.2f}, within 5.56 of 39.9: {abs(x.mean() - 39.9) <= 5.56}")
print("\nVariant, first 120 baseline sweeps:")
for (P, T), r in res_first[res_first.group == "VCB"].groupby(["P", "T"]):
print(f" ({P},{T}) " + ", ".join(f"{c} n = {(r.cls == c).sum()} mean {r[r.cls == c].change.mean():+.1f}" for c in exp))
P T LTP_n LTP_mean LTP_sd LTP_ok LTD_n LTD_mean LTD_sd LTD_ok NC_n NC_mean NC_sd NC_ok within a a 8 78.03 126.76 False 9 -32.55 17.44 True 9 -3.40 7.16 True 2 a b 7 86.87 134.22 False 8 -33.74 18.25 True 11 -3.41 10.83 True 2 b a 8 80.48 123.15 False 7 -36.55 18.99 True 11 -4.55 6.83 True 2 b b 8 80.48 123.15 False 6 -40.02 18.22 True 12 -5.48 7.27 False 1 c a 7 84.23 134.20 False 8 -34.67 16.99 True 11 -4.38 8.96 True 2 c b 7 84.23 134.20 False 8 -34.67 16.99 True 11 -4.38 8.96 True 2 Paper: LTP +39.9 +/- 14.7 (n = 7), LTD -38.5 +/- 20.4 (n = 9), NC -3.0 +/- 7.6 (n = 10). Variant, without VCB17 (change near +400%, see the data check): (a,a) LTP n = 7, mean +33.40, SD 12.64, within 5.56 of 39.9: False (a,b) LTP n = 6, mean +36.29, SD 11.04, within 5.56 of 39.9: True (b,a) LTP n = 7, mean +37.13, SD 12.41, within 5.56 of 39.9: True (b,b) LTP n = 7, mean +37.13, SD 12.41, within 5.56 of 39.9: True (c,a) LTP n = 6, mean +33.64, SD 10.29, within 5.56 of 39.9: False (c,b) LTP n = 6, mean +33.64, SD 10.29, within 5.56 of 39.9: False Variant, first 120 baseline sweeps: (a,a) LTP n = 6 mean +57.8, LTD n = 13 mean -39.8, NC n = 7 mean -3.9 (a,b) LTP n = 6 mean +57.8, LTD n = 12 mean -41.2, NC n = 8 mean -6.3 (b,a) LTP n = 6 mean +59.2, LTD n = 11 mean -43.5, NC n = 9 mean -4.3 (b,b) LTP n = 6 mean +59.2, LTD n = 11 mean -43.5, NC n = 9 mean -4.3 (c,a) LTP n = 6 mean +55.1, LTD n = 14 mean -38.5, NC n = 6 mean -2.8 (c,b) LTP n = 6 mean +55.1, LTD n = 14 mean -38.5, NC n = 6 mean -2.8
Result: partially reproduced, resting on an assumption. In every reading but (b,b) the LTD mean (-32.6 to -36.6%) and the NC mean (-3.4 to -4.6%) are within tolerance and the LTP mean (+78 to +87%) is not; (b,b) has only the LTD mean within. The LTP mean is raised by VCB17, whose EPSC grows by about +390% (the data check shows this is a real response, and that the sheet's +63% includes the holding current). Without it the LTP mean is +33.4 to +37.1%, within tolerance under (a,b), (b,a) and (b,b).
fig2-mean-unchanged-variance-increased¶
The mean change over all cells did not differ between bicuculline (-3.8 +/- 34.3%) and control (-3.5 +/- 10.3%), but the variance of plasticity outcomes was significantly larger in bicuculline.
Criterion: two-sample Student's t-test of the means, judged as absence in each reading of (P); a two-sided F-test of the variances with p < 0.01 and the bicuculline variance larger, in the same reading; the bicuculline mean (-3.8 +/- 6.73) and SD (34.3 +/- 3.43) within tolerance. Reproduced when all hold; partially when the two tests hold but a value is outside tolerance.
rows = []
for P in "abc":
b = res[(res.group == "VCB") & (res.P == P) & (res["T"] == "a")].change.values
c = res[res.control & (res.P == P) & (res["T"] == "a")].change.values
F, pF = ftest(b, c)
rows.append(dict(P=P, n_bic=len(b), bic_mean=b.mean(), bic_sd=b.std(ddof=1), n_ctl=len(c), ctl_mean=c.mean(),
ctl_sd=c.std(ddof=1), t_p=stats.ttest_ind(b, c).pvalue, F=F, F_p=pF,
mean_in_tol=abs(b.mean() + 3.8) <= 6.73, sd_in_tol=abs(b.std(ddof=1) - 34.3) <= 3.43))
print(pd.DataFrame(rows).round(4).to_string(index=False))
print("\nPaper: bicuculline -3.8 +/- 34.3 (n = 26), control -3.5 +/- 10.3 (n = 28); t-test p = 0.97; Fisher's test p < 0.01.")
sb = 100 * inc[inc.group == "VCB"].sheet_change
print(f"The VCB Summary sheet's own changes: mean {sb.mean():+.2f}, SD {sb.std(ddof=1):.2f}, n = {sb.notna().sum()}")
print("\nVariant, without VCB17:")
for P in "abc":
b = res[(res.group == "VCB") & (res.cell != "VCB17") & (res.P == P) & (res["T"] == "a")].change.values
c = res[res.control & (res.P == P) & (res["T"] == "a")].change.values
F, pF = ftest(b, c)
print(f" ({P}) n = {len(b)}, mean {b.mean():+.2f}, SD {b.std(ddof=1):.2f}, t-test p = {stats.ttest_ind(b, c).pvalue:.3f}, "
f"F = {F:.2f}, F-test p = {pF:.2g}")
print("Variant, first 120 baseline sweeps:")
for P in "abc":
b = res_first[(res_first.group == "VCB") & (res_first.P == P) & (res_first["T"] == "a")].change.values
c = res_first[res_first.control & (res_first.P == P) & (res_first["T"] == "a")].change.values
F, pF = ftest(b, c)
print(f" ({P}) mean {b.mean():+.2f}, SD {b.std(ddof=1):.2f}, t-test p = {stats.ttest_ind(b, c).pvalue:.3f}, F-test p = {pF:.2g}")
fig, ax = plt.subplots(figsize=(6, 3.2))
bins = np.arange(-100, 105, 10)
for g, col in [("control", "grey"), ("VCB", "tab:green")]:
x = res[(res.control if g == "control" else res.group == "VCB") & (res.P == "a") & (res["T"] == "a")].change
ax.hist(np.clip(x, -100, 100), bins=bins, alpha=0.6, color=col, label=f"{g} (n = {len(x)})")
ax.set_xlabel("change after pairing (%), reading (P)(a)"); ax.legend()
plt.tight_layout(); plt.show()
x = res[(res.P == "a") & (res["T"] == "a")].change
print(f"Changes clipped to +/-100% in the plot: {int((x.abs() > 100).sum())} cell(s), largest {x.abs().max():.1f}%")
P n_bic bic_mean bic_sd n_ctl ctl_mean ctl_sd t_p F F_p mean_in_tol sd_in_tol a 26 11.5625 82.5057 20 -2.8555 13.1989 0.4442 39.0745 0.0 False False b 26 12.9991 81.4342 20 -2.5842 14.7082 0.4037 30.6543 0.0 False False c 26 10.1599 81.8998 20 -3.3544 13.1671 0.4699 38.6887 0.0 False False Paper: bicuculline -3.8 +/- 34.3 (n = 26), control -3.5 +/- 10.3 (n = 28); t-test p = 0.97; Fisher's test p < 0.01. The VCB Summary sheet's own changes: mean -3.76, SD 34.25, n = 26 Variant, without VCB17: (a) n = 25, mean -3.59, SD 29.53, t-test p = 0.918, F = 5.01, F-test p = 0.00071 (b) n = 25, mean -1.84, SD 30.75, t-test p = 0.921, F = 4.37, F-test p = 0.0018 (c) n = 25, mean -4.95, SD 28.40, t-test p = 0.818, F = 4.65, F-test p = 0.0012 Variant, first 120 baseline sweeps: (a) mean -7.61, SD 48.87, t-test p = 0.670, F-test p = 0.0011 (b) mean -6.22, SD 48.79, t-test p = 0.612, F-test p = 0.0031 (c) mean -8.70, SD 48.37, t-test p = 0.698, F-test p = 0.00071
Changes clipped to +/-100% in the plot: 1 cell(s), largest 390.4%
Result: partially reproduced. In every reading of (P) the means do not differ (t-test p = 0.40 to 0.47) and the bicuculline variance is larger (F = 31 to 39, p < 0.01), so both tests hold; but the bicuculline mean (+10.2 to +13.0%) and SD (81.4 to 82.5%) are outside -3.8 +/- 6.73 and 34.3 +/- 3.43, because of VCB17 (+390%). Without VCB17 the mean is -1.8 to -5.0% and the SD 28.4 to 30.8%, and the tests still hold (t-test p = 0.82 to 0.92, F-test p = 0.0007 to 0.002). The control group is 20 of 28 cells. The first 120 baseline sweeps give the same tests (t-test p of 0.61 to 0.70, F-test p of 0.0007 to 0.003).
fig2cd-example-ltp-ltd¶
Representative bicuculline cells underwent LTP (+59.4 +/- 26%, p < 0.001) and LTD (-37.6 +/- 19.9%, p < 0.001).
Criterion: reproduced when, under one reading of (P) and (T), one included bicuculline cell has a change within 59.4 +/- 5.94% and another within -37.6 +/- 3.76%, each with p < 0.001; partially when one is found.
vb = res[res.group == "VCB"].copy()
for name, (v, tol) in {"LTP": (59.4, 5.94), "LTD": (-37.6, 3.76)}.items():
vb["dist"] = (vb.change - v).abs()
print(f"{name} example ({v} +/- {tol}%), closest cell per reading:")
print(vb.sort_values("dist").groupby(["P", "T"]).head(1)[["P", "T", "cell", "change", "p"]].to_string(index=False))
h = vb[(vb.dist <= tol) & (vb.p < 0.001)]
print(" matches with p < 0.001:", sorted(set(zip(h.cell, h.P, h["T"]))))
rf = res_first[res_first.group == "VCB"]
hf = rf[((rf.change - v).abs() <= tol) & (rf.p < 0.001)]
print(" variant, first 120 baseline sweeps, matches:", sorted(set(zip(hf.cell, hf.P, hf["T"]))))
ex = []
for cell in ["VCB29", "VCB7", "VCB10"]:
c = inc[inc.cell == cell].iloc[0]
ep = pvc9.cell_epochs(files, c)
ex.append(dict(cell=cell, pre_mean=ep["pre"].mean(), pre_sd=ep["pre"].std(ddof=1),
post_mean=ep["post"]["a"].mean(), post_sd=ep["post"]["a"].std(ddof=1),
sweep_sd_pct_of_pre=100 * ep["post"]["a"].std(ddof=1) / ep["pre"].mean()))
print("\nSpread over sweeps of the closest cells (pA), reading (P)(a):")
print(pd.DataFrame(ex).round(1).to_string(index=False))
LTP example (59.4 +/- 5.94%), closest cell per reading:
P T cell change p
b b VCB29 61.119082 6.562593e-12
b a VCB29 61.119082 3.909610e-58
a b VCB29 56.055886 5.435338e-14
a a VCB29 56.055886 5.005747e-65
c b VCB29 50.535768 3.552350e-11
c a VCB29 50.535768 2.816813e-49
matches with p < 0.001: [('VCB29', 'a', 'a'), ('VCB29', 'a', 'b'), ('VCB29', 'b', 'a'), ('VCB29', 'b', 'b')]
variant, first 120 baseline sweeps, matches: [('VCB29', 'b', 'a'), ('VCB29', 'b', 'b')]
LTD example (-37.6 +/- 3.76%), closest cell per reading:
P T cell change p
a a VCB10 -36.679205 1.353324e-34
a b VCB10 -36.679205 1.651625e-06
c a VCB10 -36.679205 1.353324e-34
c b VCB10 -36.679205 1.651625e-06
b a VCB10 -36.679205 1.353324e-34
b b VCB10 -36.679205 1.651625e-06
matches with p < 0.001: [('VCB10', 'a', 'a'), ('VCB10', 'a', 'b'), ('VCB10', 'b', 'a'), ('VCB10', 'b', 'b'), ('VCB10', 'c', 'a'), ('VCB10', 'c', 'b'), ('VCB7', 'a', 'a'), ('VCB7', 'a', 'b'), ('VCB7', 'b', 'a'), ('VCB7', 'b', 'b'), ('VCB7', 'c', 'a'), ('VCB7', 'c', 'b')]
variant, first 120 baseline sweeps, matches: [('VCB10', 'a', 'a'), ('VCB10', 'a', 'b'), ('VCB10', 'b', 'a'), ('VCB10', 'b', 'b'), ('VCB10', 'c', 'a'), ('VCB10', 'c', 'b'), ('VCB5', 'b', 'a'), ('VCB5', 'b', 'b'), ('VCB7', 'a', 'a'), ('VCB7', 'a', 'b'), ('VCB7', 'b', 'a'), ('VCB7', 'b', 'b'), ('VCB7', 'c', 'a'), ('VCB7', 'c', 'b')]
Spread over sweeps of the closest cells (pA), reading (P)(a):
cell pre_mean pre_sd post_mean post_sd sweep_sd_pct_of_pre
VCB29 185.8 34.7 289.9 44.9 24.2
VCB7 236.6 42.9 150.5 54.4 23.0
VCB10 205.8 41.3 130.3 37.7 18.3
Result: reproduced. VCB29 changes by +56.1% (p = 5.0e-65 under (a,a)), within 59.4 +/- 5.94%, and VCB10 by -36.7% (p = 1.4e-34), within -37.6 +/- 3.76%, as is VCB7 in every reading, all with p < 0.001. The sweep-to-sweep SDs of these cells (18 to 24% of the pre-pairing mean) are of the order of the paper's +/- 26 and 19.9%. The match holds with the first 120 baseline sweeps under (P)(b).
fig2f-bicuculline-no-dependence-on-initial¶
In bicuculline the plasticity outcome did not depend on the initial synaptic strength.
Criterion: Pearson correlation of the pre-pairing mean EPSC against the percent change, p < 0.05 (Spearman as a variant). Reproduced when p is 0.05 or more, judged in each reading of (P).
rows = []
for P in "abc":
r = res[(res.group == "VCB") & (res.P == P) & (res["T"] == "a")]
pr, sr = stats.pearsonr(r.pre_mean, r.change), stats.spearmanr(r.pre_mean, r.change)
rows.append(dict(P=P, n=len(r), pearson_r=pr[0], pearson_p=pr[1], spearman_rho=sr[0], spearman_p=sr[1]))
print(pd.DataFrame(rows).round(4).to_string(index=False))
r = res[(res.group == "VCB") & (res.P == "a") & (res["T"] == "a")]
print(f"Initial EPSC {r.pre_mean.min():.1f} to {r.pre_mean.max():.1f} pA. Paper: p > 0.5 (Results), p > 0.3 (legend).")
for P in "abc":
r = res_first[(res_first.group == "VCB") & (res_first.P == P) & (res_first["T"] == "a")]
print(f"Variant, first 120 baseline sweeps, ({P}): Pearson p = {stats.pearsonr(r.pre_mean, r.change)[1]:.3f}")
P n pearson_r pearson_p spearman_rho spearman_p a 26 -0.1572 0.4432 0.0291 0.8879 b 26 -0.1575 0.4422 0.0297 0.8853 c 26 -0.1449 0.4801 0.0694 0.7362 Initial EPSC 64.8 to 535.6 pA. Paper: p > 0.5 (Results), p > 0.3 (legend). Variant, first 120 baseline sweeps, (a): Pearson p = 0.494 Variant, first 120 baseline sweeps, (b): Pearson p = 0.481 Variant, first 120 baseline sweeps, (c): Pearson p = 0.547
Result: reproduced. The Pearson correlation of initial EPSC and change over the 26 bicuculline cells is r = -0.14 to -0.16, p = 0.44 to 0.48 in every reading (Spearman p = 0.74 to 0.89); p is above 0.3, the legend's bound, and just below the Results' 0.5.
fig3a-ks-scs-vs-ecs, fig3c-random-mixing-narrower, fig3b-segregation-near-complete¶
These three claims need the single-cell stimulation (SCS) data of the paper's reference 17 (per-connection
strengths before and after pairing, n = 42 or 43). The data set does not hold them (the archive's listing
above has only the three ECS folders and their sheets), the paper gives no location, and no CRCNS data set
of these authors holds them (the bucket's pvc-1 to pvc-13 were listed while preparing this entry; only
pvc-9 is theirs). They are blocked as data_missing.
print("Archive folders:", sorted(members.name.str.split("/").str[1].dropna().unique()))
print("Excel sheets:", {k: len(v) for k, v in sheets.items()}, "bytes")
Archive folders: ['Data_ECS_IC', 'Data_ECS_VC', 'Data_ECS_VCB', 'ECS_IC.xls', 'ECS_VC.xls', 'ECS_VCB.xls']
Excel sheets: {'ECS_IC.xls': 2988544, 'ECS_VCB.xls': 4198400, 'ECS_VC.xls': 6210560} bytes
Result: blocked (data missing). The SCS data of reference 17, which all three Figure 3 claims need, are not in the data set and not public anywhere found.
Summary¶
| Claim | Outcome |
|---|---|
| dataset-size | reproduced |
| fig1c-control-outcomes | partially reproduced (assumed) |
| fig1-control-no-net-plasticity | reproduced (assumed) |
| fig1-control-mean-change | partially reproduced (assumed) |
| fig1-vc-ic-same | reproduced (assumed) |
| fig1fh-control-no-dependence-on-initial | reproduced |
| fig1d-example-nc | reproduced (assumed) |
| fig2a-bicuculline-outcomes | partially reproduced (assumed) |
| bicuculline-increases-plastic-fraction | partially reproduced (assumed) |
| fig2-subgroup-changes | partially reproduced (assumed) |
| fig2-mean-unchanged-variance-increased | partially reproduced |
| fig2cd-example-ltp-ltd | reproduced |
| fig2f-bicuculline-no-dependence-on-initial | reproduced |
| fig3a-ks-scs-vs-ecs | blocked: data missing |
| fig3c-random-mixing-narrower | blocked: data missing |
| fig3b-segregation-near-complete | blocked: data missing |
A failure to reproduce here may be a failure of this attempt, not of the paper: see the reasoning and the differences from the paper's method.
How the analysis differs from the paper's. The paper measured amplitudes in Clampfit, on sweeps it selected, and gives no peak window, baseline, post-pairing window or form of t-test. Here the claims file's measure is used on every sweep that holds a stimulus artifact, with each sweep aligned on the artifact's onset and the end of the artifact found per file; the post-pairing window and the t-test are run under every reading. The pre-pairing epoch is the last 120 baseline sweeps, an assumption supported by the Methods' wording and by the data set's own sheets; the first 120 change several outcomes and are shown as a variant. Where readings of the post-pairing window disagree on a claim of absence, the last 120 sweeps are adopted. Cells with two pairings use the first. The control group is 20 of the paper's 28 cells, as 8 have no complete recording.
What was found about the data set.
- Eight of the 28 included control recordings are missing or incomplete: IC22, IC23, VC21 and VC25 have no folder; VC10 and VC17 have no post-pairing recording; IC11's post-pairing recording is not in its folder (its sheet names the pairing file as the post-pairing one); IC7's listed post-pairing file (07305017) has no protocol, no date and no evoked response at the usual time.
- Folder IC6 is empty and the IC6 recording is in folder IC7, with IC7's own.
- The descriptor says sweeps are "triggered once every 10 seconds"; test sweeps are every 5 s (0.2 Hz), as the Methods say; only pairing trials are every 10 s.
- The derived files (
Concatenate*,*_PRE,*_POST) duplicate the original recordings; four give half the true sampling rate in their headers. The archive also holds.sta,.tmpand.bakfiles that the descriptor does not mention. - The stimulus falls 9 to 20 ms earlier in some sweeps of 10 files.
- The sheets store no p values (the VC sheets' "p (one-tail)" cells are empty).
- The Summary sheets' per-cell changes reproduce the paper's bicuculline mean and SD (-3.76 +/- 34.25%), but their IC and VC values (-5.79 +/- 9.51%, -3.14 +/- 13.40%) do not match the paper's I-clamp and V-clamp values (-1.41 +/- 10.92%, -5.67 +/- 9.47%); the IC values are close to the paper's V-clamp ones.
- For VCB17 the sheet's amplitudes include the holding current: less the holding current they give the +390% change measured here, not the sheet's +62.9%, which enters the bicuculline mean and SD that the sheets share with the paper.