Rozsa et al. (2023) on DANDI:000341, part 2: RAF induction recordings¶

Paper: Rozsa, Toth, Olah, Baka, Lakovics, Barzo and Tamas (2023), Sci. Adv. 9, eade4511, doi:10.1126/sciadv.ade4511. Claims file: claims/rozsa-2023.yaml, written from the version of record (Europe PMC full text) and its supplement.

Dataset: DANDI:000341, version 0.241220.1312 (doi:10.48324/dandi.000341/0.241220.1312), the only published version; the paper cites the dandiset without a version.

This notebook covers the folders Human_persistent_RAF (313 files) and Rat_persistent_RAF (132 files), the RAF induction recordings. Each file is taken as one cell (checked for repeats below).

Revised after the first verification round: the threshold is found on a trace smoothed to the Methods' 10 kHz filter, artefact APs are removed before any analysis, RA-APs must have no positive current in absolute terms (holding current included), the mixture is fitted on robustly scaled features, and each result is also shown without the drug-treated files and without the cells that fire spontaneously before induction.

Claim Here
fig1ab-raf-patterns tested
fig1c-ra-lower-threshold-slope tested
fig1d-human-raf-proportion tested
fig1f-human-raf-ngfc blocked, metadata_insufficient (no cell class in the files)
figs1b-rat-raf-proportion tested
figs1d-rat-raf-values tested
fig1g-rat-raf-ngfc blocked, metadata_insufficient
fig2e-sag-species tested
fig2e-sag-raf-smaller tested
fig2il-kcl-induces-ra-aps blocked, data_missing (no KCl application in any file's metadata)
In [1]:
import zlib, time, resource, collections
import numpy as np
import pandas as pd
from scipy import stats
import matplotlib.pyplot as plt
import raf

%matplotlib inline
pd.set_option("display.width", 200)
pd.set_option("display.max_columns", 30)
PAPER = "rozsa-2023"


def seed(claim):
    return zlib.crc32(f"{PAPER}/{claim}".encode())


T0 = time.time()
assets = raf.list_assets()
groups = collections.defaultdict(list)
for a in assets:
    groups[a["path"].split("/")[0]].append(a)
res = {}
for g in ("Human_persistent_RAF", "Rat_persistent_RAF"):
    t = time.time()
    res[g] = raf.process_group(groups[g], workers=4)
    print(f"{g}: {len(res[g])} files, {sum(a['size'] for a in groups[g]) / 1e9:.0f} GB in "
          f"{(time.time() - t) / 60:.1f} min; peak memory "
          f"{resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6:.1f} GB")
Human_persistent_RAF: 313 files, 147 GB in 16.0 min; peak memory 0.9 GB
Rat_persistent_RAF: 132 files, 113 GB in 11.4 min; peak memory 1.2 GB

Per-cell reduction¶

For each file: the induction sweeps (raf.induction_sweeps: shorter than 1 s, one positive step of 50 to 300 ms), AIS-APs (APs during positive current steps) and RA-APs by reading (c) of the claims file's header (raf.ra_aps_induction: APs after the first induction sweep with at most 5 pA of current at threshold, both relative to the holding level and in absolute terms, rebound APs within 0.3 s of a hyperpolarizing step left out). Artefact APs (threshold outside -80 to -10 mV or peak above 100 mV, raf.plausible) are removed first. cont marks the RA-APs of the continuous recording (sweeps without any step), which is what the Methods count ("number of RA-APs during continuous recording"). The baseline is the APs without current in the sweeps before the first induction sweep (raf.spontaneous_before). Sag from the sweeps with one hyperpolarizing step, taken before the first induction sweep where there are any.

In [2]:
def drugs_of(m):
    return sorted({v for k, v in m["pharmacology"].items() if "Name" in k and v != "NaN"})


cells = []
for g, sp in (("Human_persistent_RAF", "human"), ("Rat_persistent_RAF", "rat")):
    for p, (m, aps, sw, _) in res[g].items():
        n_main = int(aps.main.sum()) if len(aps) else 0
        aps = aps[aps.main & raf.plausible(aps)] if len(aps) else aps
        ais, ra, t0, runs = raf.ra_aps_induction(aps, sw)
        _, ra_rel, _, _ = raf.ra_aps_induction(aps, sw, absolute=False)
        stepless = set(sw[sw.nsteps == 0].series)
        ra = ra.assign(cont=ra.series.isin(stepless)) if len(ra) else ra.assign(cont=[])
        n_pre, n_pre_cont, pre_s = raf.spontaneous_before(aps, sw, t0)
        sag = sw.dropna(subset=["sag_a"]) if "sag_a" in sw else sw.iloc[:0]
        if len(sag) and np.isfinite(t0) and (sag.start < t0).any():
            sag = sag[sag.start < t0]
        v = sw[sw.chan.str.startswith("Vm")].sort_values("start")
        post = v[(v.start >= t0) & (v.nsteps == 0)] if np.isfinite(t0) else v.iloc[:0]
        cells.append(dict(species=sp, file=p.split("/")[-1], subject=m["subject_subject_id"], meta=m,
                          aps=aps, ais=ais, ra=ra, t0=t0, runs=runs, sag=sag,
                          n_main=n_main, n_art=n_main - len(aps), n_ra_rel=len(ra_rel),
                          n_pre=n_pre, n_pre_cont=n_pre_cont, pre_s=pre_s,
                          hold_post=float(post.hold.median()) if len(post) else np.nan,
                          hold_post_max=float(post.hold.max()) if len(post) else np.nan,
                          post_s=float((post.n / post.rate).sum()),
                          drugs=drugs_of(m), ca=m["pharmacology"].get("Ca (mM)", "NaN"),
                          mg=m["pharmacology"].get("Mg (mM)", "NaN"),
                          n_ind=len(raf.induction_sweeps(sw)), n_sweeps=len(v),
                          fingerprint=(len(v), tuple(v.vmed.round(3).head(20))),
                          rates=sorted(set(v.rate.round())), n_stim_pA=int(sw.get("stim_in_pA", pd.Series([False])).sum()),
                          n_stim_bad=int(sw.get("stim_bad", pd.Series([False])).sum()),
                          n_nostim_aps=int(aps.i_thr.isna().sum()) if len(aps) else 0))
for c in cells:
    c["clean"] = not c["drugs"]
    c["quiet_before"] = c["n_pre"] == 0
print(len(cells), "cells")
445 cells

Data check¶

In [3]:
C = pd.DataFrame([{k: v for k, v in c.items() if k in ("species", "file", "subject", "t0", "n_ind", "n_sweeps",
                                                       "n_stim_pA", "n_stim_bad", "n_main", "n_art", "n_nostim_aps",
                                                       "n_pre", "n_pre_cont", "pre_s", "hold_post", "hold_post_max",
                                                       "post_s", "clean", "ca", "mg")}
                  | {"n_ais": len(c["ais"]), "n_ra": len(c["ra"]), "n_ra_rel": c["n_ra_rel"], "n_sag": len(c["sag"])}
                  for c in cells])
for sp, d in C.groupby("species"):
    print(f"{sp}: files {len(d)}, subjects {d.subject.nunique()}, files with induction sweeps "
          f"{int((d.n_ind > 0).sum())}, with sag sweeps {int((d.n_sag > 0).sum())}; sweeps per file median "
          f"{d.n_sweeps.median():.0f}; stimulus stored in pA in {int((d.n_stim_pA > 0).sum())} files, "
          f"unusable in {int((d.n_stim_bad > 0).sum())}")
    print(f"   APs (peak > 0 mV) {d.n_main.sum()}, of which artefacts removed (threshold outside -80 to -10 mV "
          f"or peak above 100 mV) {d.n_art.sum()}; APs in sweeps without a stimulus series (never RA-APs or "
          f"AIS-APs) {d.n_nostim_aps.sum()}")
rates = collections.Counter(r for c in cells for r in c["rates"])
print("sampling rates present (files):", dict(rates))
allaps = pd.concat([c["aps"].assign(species=c["species"], cell=i) for i, c in enumerate(cells) if len(c["aps"])],
                   ignore_index=True)
print(f"APs kept: {len(allaps)}; threshold {allaps.thr.min():.1f} to {allaps.thr.max():.1f} mV, "
      f"peak {allaps.peak.min():.1f} to {allaps.peak.max():.1f} mV, slope {allaps.slope.min():.1f} to {allaps.slope.max():.1f} mV/ms")
fp = collections.defaultdict(list)
for c in cells:
    fp[c["fingerprint"]].append(c["file"])
print("files with identical sweep fingerprints (same sweep count and median Vm of 20 sweeps):",
      [v for v in fp.values() if len(v) > 1] or "none")
words = collections.Counter(d for c in cells for d in c["drugs"])
print("drugs named in general/pharmacology (files):", dict(words))
print("files with any drug named:", dict(C.assign(drug=~C.clean).groupby("species").drug.sum()))
print("Ca and Mg of the bath (mM), files:", dict(collections.Counter((c["species"], c["ca"], c["mg"]) for c in cells)))
kcl = [c["file"] for c in cells if any(("kcl" in str(v).lower() or "potassium" in str(v).lower() or "k+" in str(v).lower())
                                       for v in list(c["meta"]["pharmacology"].values()) + [c["meta"].get("session_description"), c["meta"].get("experiment_description")])]
print("files whose metadata mention KCl or potassium:", kcl or "none")
ctype = [c["file"] for c in cells if any(k.lower().startswith(("celltype", "anatomy")) for k in c["meta"]["pharmacology"])]
print("files with a cell class field:", len(ctype))
print("session descriptions:", dict(collections.Counter(c["meta"]["session_description"] for c in cells)))
print("subject descriptions:", dict(collections.Counter(str(c["meta"].get("subject_description")) for c in cells).most_common(8)))
# Session identifiers that also occur in the active-slice folders (the same cell deposited twice?).
import re
ses = lambda p: re.search(r"ses-([^_]+)_icephys", p).group(1)
active = {ses(a["path"]) for g in ("In_vitro_oscillation_Rat", "In_vitro_Human_elevated_neuronal_activity") for a in groups[g]}
shared = [c for c in cells if ses(c["file"]) in active]
for c in cells:
    c["in_active_folder"] = ses(c["file"]) in active
print(f"induction files whose session identifier also names an active-slice file: {len(shared)} "
      f"({sum(c['species'] == 'human' for c in shared)} human, {sum(c['species'] == 'rat' for c in shared)} rat); "
      f"with a drug named: {sum(not c['clean'] for c in shared)}")
size = collections.defaultdict(list)
for a in groups["Human_persistent_RAF"] + groups["Rat_persistent_RAF"]:
    size[a["size"]].append(a["path"].split("/")[-1])
same = [v for v in size.values() if len(v) > 1]
fpd = {c["file"]: c["fingerprint"] for c in cells}
print("induction files of identical size:", same or "none",
      "; identical fingerprints among them:", [v for v in same if len({fpd.get(f) for f in v}) == 1] or "none")
human: files 313, subjects 50, files with induction sweeps 307, with sag sweeps 312; sweeps per file median 953; stimulus stored in pA in 13 files, unusable in 0
   APs (peak > 0 mV) 2571112, of which artefacts removed (threshold outside -80 to -10 mV or peak above 100 mV) 33639; APs in sweeps without a stimulus series (never RA-APs or AIS-APs) 0
rat: files 132, subjects 62, files with induction sweeps 118, with sag sweeps 129; sweeps per file median 1005; stimulus stored in pA in 8 files, unusable in 0
   APs (peak > 0 mV) 1265113, of which artefacts removed (threshold outside -80 to -10 mV or peak above 100 mV) 9185; APs in sweeps without a stimulus series (never RA-APs or AIS-APs) 0
sampling rates present (files): {5000.0: 3, 16667.0: 220, 25000.0: 129, 100000.0: 419, 50000.0: 338, 200000.0: 14, 20000.0: 15, 10000.0: 1, 28571.0: 1}
APs kept: 3793401; threshold -80.0 to -10.0 mV, peak 0.0 to 99.8 mV, slope -120.1 to 100.5 mV/ms
files with identical sweep fingerprints (same sweep count and median Vm of 20 sweeps): none
drugs named in general/pharmacology (files): {'carbenoxolone': 3, 'AP5': 5, 'CGP35348': 1, 'CGP52432': 1, 'GBZ': 1, 'NBQX': 7, 'PPADS': 4, 'SCH23390': 54, 'TRAM': 2, 'nifedipine': 4, 'Calcium': 39, 'FFA': 2, 'FFA-fail': 1, 'TEA': 5, 'PPNDS': 1, 'Riluzole': 4, 'Cadmium': 5, 'Apamin': 1, 'Trimming_process_1': 1, 'Trimming_process_1_in_5_rounds': 1, 'Trimming_process_2_in_3_rounds': 1, 'NPS568': 12, 'Charbachol': 42, 'NPS568_fresh': 2, 'NPS568_old': 1, 'OGB1': 1, 'LowGlucose': 1, 'lowca': 1, 'MRS2179': 6, 'A803467': 3, 'carbachol': 12, 'Caesium': 4, 'NPS568_onceused': 1, 'NPS2143': 4, 'diltiazem': 2, 'R568': 1, 'Dichlorobenzamil': 1, 'Gabazine': 7, 'Kainic-acid': 2, 'gabazine': 1, '4,9-TTX': 2, 'TTXwashout': 1, 'SCH23391': 1, '4-AP': 5}
files with any drug named: {'human': np.int64(58), 'rat': np.int64(94)}
Ca and Mg of the bath (mM), files: {('human', '3.0', '1.5'): 28, ('human', '1.0', '1.0'): 144, ('human', '1.2', '1.2'): 45, ('human', '1.2', '1.0'): 96, ('rat', '3.0', '1.5'): 21, ('rat', '1.0', '1.0'): 35, ('rat', '1.0', '1.5'): 4, ('rat', '1.2', '1.2'): 6, ('rat', '1.2', '1.0'): 66}
files whose metadata mention KCl or potassium: none
files with a cell class field: 0
session descriptions: {'RAF Human L1 interneurons': 313, 'RAF Rat L1 interneurons': 132}
subject descriptions: {'Brain region: Somatosensory cortex, Species: Wistar Rat': 132, 'Tumor Right Temporal': 38, 'nan nan': 28, 'Tumor Right Frontal': 21, 'Tumor Rigth Occipital': 20, 'Tumor Left Temporal': 18, 'Hydrocephalus, Ductus craniopharyngealis Right Frontal': 18, 'R9000 Left Temporal': 14}
induction files whose session identifier also names an active-slice file: 18 (2 human, 16 rat); with a drug named: 16
induction files of identical size: [['sub-141212_ses-1412122rm-2-6-3_icephys.nwb', 'sub-141212_ses-1412122rm-3-1-4_icephys.nwb']] ; identical fingerprints among them: none

Holding current and spontaneous firing before induction (verifier, round 1). hold_post is the median holding current of the stepless sweeps after the first induction sweep, hold_post_max its maximum; n_pre the APs without current before the first induction sweep (n_pre_cont of them in stepless sweeps), over pre_s seconds of stepless recording. n_ra_rel is the RA-AP count when the current is taken relative to the holding level only (the rule of the first round), n_ra with the absolute current also at most 5 pA.

In [4]:
for sp, d in C.groupby("species"):
    t = d[d.n_ind > 0]
    print(f"{sp}: {len(t)} files with induction; holding current after induction (median per file) "
          f"{t.hold_post.min():.0f} to {t.hold_post.max():.0f} pA, median {t.hold_post.median():.0f}; files with a "
          f"positive holding current (> 5 pA) at any point after induction {int((t.hold_post_max > 5).sum())}; "
          f"RA-APs {t.n_ra_rel.sum()} by the relative rule, {t.n_ra.sum()} by the absolute rule")
    print(f"   files with spontaneous APs before induction {int((t.n_pre > 0).sum())} (in stepless sweeps "
          f"{int((t.n_pre_cont > 0).sum())}); stepless recording before induction median {t.pre_s.median():.0f} s; "
          f"pre-induction rate in those files median "
          f"{(t.n_pre_cont / t.pre_s.where(t.pre_s > 0))[t.n_pre_cont > 0].median():.3f} Hz")
with pd.option_context("display.max_rows", 500):
    print(C[C.n_ind > 0][["species", "file", "clean", "hold_post", "hold_post_max", "n_pre", "n_pre_cont", "pre_s",
                          "post_s", "n_ais", "n_ra_rel", "n_ra"]].round(1).to_string())
human: 307 files with induction; holding current after induction (median per file) -1004 to 60 pA, median -20; files with a positive holding current (> 5 pA) at any point after induction 31; RA-APs 553193 by the relative rule, 506805 by the absolute rule
   files with spontaneous APs before induction 124 (in stepless sweeps 105); stepless recording before induction median 26 s; pre-induction rate in those files median 0.147 Hz
rat: 118 files with induction; holding current after induction (median per file) -380 to 4 pA, median 0; files with a positive holding current (> 5 pA) at any point after induction 24; RA-APs 132796 by the relative rule, 125026 by the absolute rule
   files with spontaneous APs before induction 33 (in stepless sweeps 30); stepless recording before induction median 71 s; pre-induction rate in those files median 0.085 Hz
    species                                                file  clean  hold_post  hold_post_max  n_pre  n_pre_cont   pre_s  post_s  n_ais  n_ra_rel   n_ra
0     human          sub-120615_ses-1206152rm-5-1-4_icephys.nwb   True        0.6            0.6      0           0     0.9   540.0   4966       873    873
2     human          sub-141029_ses-1410292rm-1-1-4_icephys.nwb   True        0.0            0.0      1           1   232.2   110.0     58         0      0
3     human          sub-141029_ses-1410292rm-1-3-3_icephys.nwb   True        0.0            0.0      0           0    21.8   247.4   6270         9      9
4     human         sub-141029_ses-1410291rm-1-12-3_icephys.nwb   True        0.0            0.0      0           0    80.6  3687.9  13895     41456  41456
5     human          sub-141029_ses-1410292rm-2-1-4_icephys.nwb   True        0.0            0.0     27          27   788.4   354.7   7018        23     23
6     human          sub-141029_ses-1410292rm-2-2-3_icephys.nwb   True        0.0            0.0      3           3   304.4   791.4   5327        10     10
7     human          sub-141029_ses-1410292rm-2-4-2_icephys.nwb   True      -20.0          -20.0    211         211   915.4   278.6   1815       614    614
8     human          sub-141029_ses-1410292rm-3-1-4_icephys.nwb   True      -50.0            0.0     86          62   101.8   240.0   1482       469    469
9     human        sub-141029_ses-1410291rm-1-1,2-4_icephys.nwb   True        0.0           10.0      0           0    71.8  3317.1   8634      7485   7485
10    human          sub-141118_ses-1411181rm-2-2-3_icephys.nwb   True        0.0            0.0      0           0   141.4   280.0   6606         9      9
11    human          sub-141029_ses-1410293rm-2-3-4_icephys.nwb  False        0.0            2.9      3           3    41.8  4933.1   8588     46415  46415
12    human          sub-141118_ses-1411181rm-1-7-3_icephys.nwb   True        0.0            0.0    243         243  1129.2   285.1   2044         2      2
13    human          sub-141118_ses-1411181rm-1-1-4_icephys.nwb   True        0.0            0.0      2           2   346.7   954.6  18127        38     38
14    human        sub-141118_ses-1411181rm-3-1,2-4_icephys.nwb   True        0.0            0.0    225         225   258.8  1199.0  12588        20     20
15    human          sub-141118_ses-1411182rm-3-4-3_icephys.nwb   True      -30.0            0.0    150         150   275.0   797.5   9668      1865   1865
16    human          sub-141118_ses-1411181rm-3-3-3_icephys.nwb   True        0.0            0.0      0           0   112.8  1580.8   3486      3424   3424
17    human        sub-141125_ses-1411251rm-1-1,4-4_icephys.nwb   True      -52.1           -0.2    514         514   482.8   979.6   6372      2463   2463
18    human          sub-141125_ses-1411251rm-1-7-3_icephys.nwb   True        0.0            0.0      7           6  1062.7    90.0   2213         9      9
19    human         sub-141118_ses-1411182rm-7-13-3_icephys.nwb   True        0.0            0.0      3           3   208.5   803.5  17479        73     73
20    human        sub-141118_ses-1411182rm-7-1,3-4_icephys.nwb   True        0.0            0.0     13          12    81.8  1310.1  18278       116    116
21    human      sub-141125_ses-1411251rm-3-1,2,8-4_icephys.nwb   True        0.0            0.0      1           1   254.6   529.8   5911         6      6
22    human          sub-141125_ses-1411251rm-3-7-3_icephys.nwb   True        0.0            0.0      0           0   293.4   341.4   1974         3      3
23    human          sub-141125_ses-1411252rm-1-1-4_icephys.nwb   True        0.0            0.0      1           1   261.0  1143.1   8614       410    410
24    human        sub-141128_ses-1411283rm-2-1,4-4_icephys.nwb  False      -94.3          -47.2    150         150    42.7  3420.6   2278     17487  17487
25    human          sub-141128_ses-1411282rm-2-1-3_icephys.nwb  False      -50.0          -10.0      3           3     0.9  3030.4   2609      2123   2123
26    human          sub-141128_ses-1411281rm-2-1-3_icephys.nwb  False        0.0            0.0      0           0   183.7  4058.3   4149         7      7
27    human        sub-141128_ses-1411281rm-1-2,3-4_icephys.nwb  False      -80.0            0.0      0           0   279.4  5669.5  16552      3294   3294
28    human        sub-141212_ses-1412121rm-7-1,4-4_icephys.nwb  False      -90.5          -32.7    247         247   463.6  2752.1   4822      7018   7018
29    human          sub-141212_ses-1412122rm-1-1-4_icephys.nwb   True      -50.0          -20.0     56          56   237.3   657.5   4959       234    234
30    human          sub-141212_ses-1412122rm-1-5-3_icephys.nwb   True      -30.0            0.0      0           0   134.5   488.4   8021       338    338
31    human          sub-141212_ses-1412121rm-7-6-3_icephys.nwb  False      -40.0            0.0     40          40   130.9  2507.7  11172     10373  10373
32    human          sub-141212_ses-1412122rm-2-6-3_icephys.nwb   True        0.0            0.0      0           0    61.9   640.3   6071        19     19
33    human          sub-141128_ses-1411282rm-1-1-4_icephys.nwb  False        0.0            0.0     38          38   784.5  6365.4  29617      5240   5240
34    human          sub-141212_ses-1412122rm-3-1-4_icephys.nwb   True      -20.0            0.0      2           2   195.4   459.5   6172        43     43
35    human          sub-141212_ses-1412122rm-4-6-3_icephys.nwb   True      -50.0          -20.0     50          50   140.9  1494.5   2835      1802   1802
36    human        sub-141212_ses-1412122rm-4-1,2-4_icephys.nwb   True      -90.0          -20.0     13          12   294.5  1331.0   4432      3934   3934
37    human         sub-141212_ses-1412123rm-1-18-2_icephys.nwb   True      -40.0          -20.0    296         296    90.9   832.4   9439       507    507
38    human          sub-141212_ses-1412123rm-2-4-3_icephys.nwb  False      -40.0          -40.0      0           0    50.9   720.0   4968      3189   3189
39    human          sub-141212_ses-1412123rm-2-1-4_icephys.nwb  False     -134.0         -134.0      0           0   321.4   723.7    165         1      1
40    human          sub-141212_ses-1412123rm-1-6-3_icephys.nwb   True     -119.9         -109.9    850         849   818.2   472.6   3827       526    526
41    human          sub-141212_ses-1412123rm-1-1-4_icephys.nwb   True      -20.0            0.0      1           0    30.9  1748.2  10617      2110   2110
42    human          sub-150415_ses-1504152rm-3-2-3_icephys.nwb  False      -40.0          -40.0      0           0    18.6  1497.6   4236         6      6
43    human          sub-150415_ses-1504152rm-3-1-4_icephys.nwb  False      -40.0          -40.0      0           0    36.5  1497.1  21503       273    273
44    human          sub-150304_ses-1503044rm-1-1-4_icephys.nwb  False      -40.0           50.0      0           0    40.9  2420.0  24615      7865   7532
45    human          sub-150415_ses-1504152rm-3-3-2_icephys.nwb  False       -0.0           -0.0      0           0     0.9  1511.4  16778       171    171
46    human      sub-151105_ses-1511052rm-1-1,2,3-4_icephys.nwb   True      -93.8          -93.8    289         246   603.5   181.2   3260        13     13
47    human          sub-151015_ses-1510152rm-1-1-4_icephys.nwb  False        0.0            0.0      9           8   562.9    42.0    900         5      5
49    human          sub-150304_ses-1503042rm-2-5-4_icephys.nwb  False        0.0            0.0      0           0    80.9  4460.9  18139      4484   4484
50    human          sub-151125_ses-1511251rm-1-3-3_icephys.nwb   True       -5.6           14.4      0           0    74.9   493.6   1457        11      7
51    human          sub-151125_ses-1511251rm-2-1-4_icephys.nwb   True       18.1           28.1      0           0    10.9   164.8   4890         8      7
52    human         sub-151125_ses-1511251rm-2-13-3_icephys.nwb   True        NaN            NaN     75          75    49.8     0.0   1937         3      3
53    human        sub-151125_ses-1511251rm-1-1,2-4_icephys.nwb   True      -53.9          -23.9      0           0   185.2   380.4   1806       662    662
54    human         sub-151125_ses-1511252rm-1-11-3_icephys.nwb   True      -24.1          -24.1      1           0     0.9    68.5   2097         5      5
55    human          sub-151125_ses-1511252rm-1-1-4_icephys.nwb   True     -110.4          -50.0      0           0     0.9   206.4   2326        29     29
56    human          sub-150403_ses-1504032rm-3-2-3_icephys.nwb  False     -150.0          -80.0    217         213  1602.0  6210.0  13818      8060   8060
57    human          sub-151125_ses-1511252rm-2-1-4_icephys.nwb   True      -20.0          -20.0      3           3    96.8   170.0   2787         3      3
58    human          sub-151125_ses-1511252rm-2-3-3_icephys.nwb   True      -40.0          -40.0      0           0    30.9   187.6   3092        17     17
59    human         sub-151125_ses-1511253rm-3-21-3_icephys.nwb   True      -60.0            0.0      0           0     0.9   294.1   5036        82     82
60    human          sub-151125_ses-1511253rm-3-1-4_icephys.nwb   True      -77.7          -50.7      5           0    10.9   700.8   7362       368    368
61    human        sub-160112_ses-1601121rm-1-1,3-3_icephys.nwb   True      -40.3          -40.3      0           0   132.0    56.9   1615         0      0
62    human          sub-160112_ses-1601121rm-2-1-4_icephys.nwb   True     -129.2          -79.2      1           1    17.4   122.8   2587       178    178
63    human        sub-160226_ses-1602261rm-2-1,4-4_icephys.nwb   True        0.0            0.0      0           0    62.3    55.0   3737        29     29
64    human        sub-160112_ses-1601121rm-3-1,6-3_icephys.nwb   True      -88.4          -37.2      0           0   118.2    33.0   2407        44     44
65    human        sub-160112_ses-1601121rm-6-1,2-3_icephys.nwb   True      -35.2          -35.2      5           0    57.7   247.5   4353        10     10
66    human          sub-160112_ses-1601121rm-6-8-4_icephys.nwb   True      -60.0            0.0      5           5    98.1   169.3   5252       505    505
67    human         sub-160226_ses-1602261rm-2-16-3_icephys.nwb   True        0.0            0.0      0           0    22.9    44.0   3698         5      5
68    human        sub-160226_ses-1602261rm-4-2,4-4_icephys.nwb   True    -1004.4          -31.4     57          56    84.3    27.5   1651         2      2
69    human      sub-160226_ses-1602261rm-3-1,3,6-4_icephys.nwb   True        0.0            0.0      2           1   170.1    55.0   3302        17     17
70    human          sub-160226_ses-1602261rm-3-5-3_icephys.nwb   True      -41.9          -30.0     22          22    42.2   142.6   4188         6      6
71    human          sub-160226_ses-1602262rm-4-1-4_icephys.nwb   True        1.0            1.0      1           1    83.4    59.5   2244         9      9
72    human          sub-160226_ses-1602261rm-5-3-3_icephys.nwb   True        0.0            0.0      0           0    28.4   391.7   3994        17     17
73    human        sub-160226_ses-1602262rm-1-1,5-4_icephys.nwb   True        0.0            0.0      0           0    80.8    98.2   4410        13     13
74    human          sub-160226_ses-1602262rm-1-3-3_icephys.nwb   True      -30.0          -30.0      1           1    36.7   194.2   3314         9      9
75    human          sub-160226_ses-1602261rm-5-1-4_icephys.nwb   True      -40.0            0.0      8           8   110.8   328.5   5804       401    401
76    human          sub-160226_ses-1602262rm-4-3-3_icephys.nwb   True      -50.0          -50.0     19          18    28.4    64.5   1782         2      2
77    human          sub-160226_ses-1602262rm-5-1-4_icephys.nwb   True        0.0            0.0      0           0    29.3    11.0   1819         2      2
78    human          sub-160226_ses-1602263rm-1-1-4_icephys.nwb   True        0.0            0.0      0           0    88.9    25.7   1948         4      4
79    human          sub-160226_ses-1602263rm-1-3-3_icephys.nwb   True        0.0            0.0      0           0    28.4    64.3   1430         0      0
80    human          sub-160302_ses-1603021rm-2-1-4_icephys.nwb   True      -30.0          -30.0      0           0    22.9    16.5   2710         9      9
81    human          sub-160226_ses-1602263rm-2-3-3_icephys.nwb   True        0.0            0.0      0           0    22.9    85.0   3137        17     17
82    human          sub-160226_ses-1602263rm-2-1-4_icephys.nwb   True        0.0            0.0      1           0   108.8    38.5   3960        19     19
83    human          sub-160302_ses-1603021rm-3-1-4_icephys.nwb   True      -40.0          -40.0      1           1    22.9    11.0   1266         4      4
84    human          sub-160302_ses-1603021rm-4-1-4_icephys.nwb   True      -30.0          -30.0      2           2    28.4    34.8   3129        18     18
85    human      sub-160303_ses-1603031rm-1-1,2,4-4_icephys.nwb   True      -20.0          -20.0      3           3    66.0     5.5   2224         1      1
86    human          sub-160302_ses-1603021rm-9-1-4_icephys.nwb   True      -30.0            0.0      4           4    17.4    28.4   1978         1      1
87    human          sub-160303_ses-1603031rm-2-8-3_icephys.nwb   True        0.0            0.0      2           2    72.3    27.5   4173         8      8
88    human          sub-160303_ses-1603031rm-3-1-4_icephys.nwb   True        0.0            0.0      2           2    33.9    11.0   1305         0      0
89    human       sub-160302_ses-1603021rm-11-1,4-4_icephys.nwb  False        0.0           30.0      0           0    13.7  2097.3  22738       124     95
90    human      sub-160303_ses-1603031rm-2-1,4,9-4_icephys.nwb   True        0.0            0.0    196         196    45.8   110.6   5351        15     15
91    human      sub-160302_ses-1603021rm-5-3,4,5-4_icephys.nwb  False      -80.0           30.0      1           1    25.7   913.9  11202      2542   2539
92    human         sub-160303_ses-1603031rm-5-11-3_icephys.nwb   True      -20.0          -20.0     99          99    33.9    11.0   5189        13     13
93    human          sub-160303_ses-1603031rm-5-1-4_icephys.nwb   True      -20.0            0.0      0           0    11.9   133.4   4917         9      9
94    human        sub-160303_ses-1603031rm-6-1,4-4_icephys.nwb   True        0.0            0.0      2           1    13.7    11.0   2942        14     14
95    human          sub-160304_ses-1603041rm-1-1-4_icephys.nwb   True      -40.0            0.0      0           0    22.9    22.9   4164         9      9
96    human          sub-160304_ses-1603041rm-4-1-4_icephys.nwb   True      -40.0            0.0      1           0    11.9   469.6   5306        28     28
97    human        sub-160304_ses-1603041rm-2-1,2-4_icephys.nwb   True      -20.0          -20.0      1           0    29.3    94.4   3352        26     26
98    human          sub-160303_ses-1603031rm-8-1-2_icephys.nwb  False      -25.8          -10.0      0           0    61.4   665.5   7683       350    350
99    human          sub-160304_ses-1603041rm-6-1-4_icephys.nwb   True        NaN            NaN      0           0     6.4     0.0   2841         5      5
100   human          sub-160303_ses-1603031rm-7-7-3_icephys.nwb  False      -20.0            5.0      0           0    17.4   818.2  13344        50     49
101   human          sub-160304_ses-1603041rm-5-1-4_icephys.nwb   True      -20.0          -20.0      5           4    37.5    16.5   5224         5      5
102   human          sub-160304_ses-1603041rm-4-5-3_icephys.nwb   True     -160.3         -100.3     77          67    28.4   385.9   2319      4068   4068
103   human        sub-160303_ses-1603031rm-7-1,3-4_icephys.nwb  False       -0.0           40.0      0           0    45.8   903.4  13090        56     25
104   human          sub-160310_ses-1603101rm-3-3-3_icephys.nwb   True      -50.0          -50.0      2           2    33.9     5.5   1552         7      7
105   human          sub-160304_ses-1603041rm-7-1-4_icephys.nwb   True        0.0            0.0      0           0    11.9    16.5   5702        14     14
106   human          sub-160310_ses-1603101rm-2-1-4_icephys.nwb   True      -10.0          -10.0      0           0    96.8    33.9   2983         4      4
107   human          sub-160310_ses-1603101rm-2-2-3_icephys.nwb   True      -30.0          -30.0      0           0    22.9   102.8   4176        12     12
108   human          sub-160310_ses-1603101rm-3-1-4_icephys.nwb   True        NaN            NaN      1           0    92.0     0.0   1459         1      1
109   human          sub-160310_ses-1603101rm-4-7-3_icephys.nwb   True      -80.0          -80.0      0           0    22.9    11.0   2158         1      1
110   human          sub-160310_ses-1603102rm-4-1-4_icephys.nwb   True        0.0            0.0      0           0    10.8    20.2   2397        67     67
111   human        sub-160310_ses-1603101rm-4-1,2-4_icephys.nwb   True        0.0           34.1      0           0     7.3    81.8   4535         6      6
112   human        sub-160405_ses-1604051rm-1-1,2-4_icephys.nwb   True     -155.6         -155.6     24          24    38.2    59.3    854         0      0
113   human      sub-160310_ses-1603102rm-7-6,7,8-4_icephys.nwb  False     -132.0         -117.0    323         142    46.0  1682.9   2041     16504  16504
114   human        sub-160405_ses-1604051rm-3-1,2-4_icephys.nwb   True       -3.2           -3.2      0           0    29.8     7.3   1796         1      1
115   human          sub-160405_ses-1604051rm-1-3-3_icephys.nwb   True      -60.0          -60.0     11           0     7.0    57.9   2736        11     11
116   human          sub-160405_ses-1604051rm-4-3-3_icephys.nwb   True        0.0            0.0      0           0    14.3    31.7   7460        10     10
117   human          sub-160310_ses-1603103rm-3-1-4_icephys.nwb  False       -0.0          170.0      0           0    44.3  1822.4  13698      9215   4432
118   human          sub-160405_ses-1604051rm-4-1-4_icephys.nwb   True        0.0            0.0      0           0    58.3    31.4   6216        10     10
119   human         sub-160405_ses-1604052rm-1-12-3_icephys.nwb   True      -10.0          -10.0      0           0     0.9   127.5   2537         4      4
120   human          sub-160405_ses-1604052rm-1-1-4_icephys.nwb   True       -1.5           18.5      0           0     5.7   245.8   3814       895    895
121   human      sub-160405_ses-1604052rm-2-2,3,4-4_icephys.nwb   True      -50.0          -50.0      6           3     2.7   293.7   2826       154    154
122   human          sub-160405_ses-1604052rm-3-4-3_icephys.nwb   True      -20.0          -20.0      0           0    16.1   100.2   3765         9      9
123   human          sub-160405_ses-1604052rm-3-3-4_icephys.nwb   True      -10.0          -10.0      0           0    92.9    34.4   4005        12     12
124   human          sub-160405_ses-1604053rm-4-1-4_icephys.nwb   True     -101.4         -101.4      0           0    11.3     6.7   3312         6      6
125   human        sub-160405_ses-1604052rm-4-1,3-4_icephys.nwb   True     -167.7         -167.7      0           0     1.8    70.0   3993        19     19
126   human          sub-160405_ses-1604052rm-5-1-4_icephys.nwb   True      -66.6          -46.6      0           0    14.9    11.5   4102        15     15
127   human          sub-160405_ses-1604053rm-1-1-4_icephys.nwb   True     -102.3         -102.3      0           0    11.9     7.9   3388         5      5
128   human          sub-160405_ses-1604053rm-2-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9    19.5   3555         5      5
129   human          sub-160405_ses-1604053rm-6-1-4_icephys.nwb   True        0.0            0.0      0           0    23.8    16.6   3292         2      2
130   human          sub-160504_ses-1605041rm-1-2-3_icephys.nwb   True        NaN            NaN      0           0    55.7     0.0   2180         2      2
131   human          sub-160405_ses-1604053rm-5-1-4_icephys.nwb   True     -111.1          -30.0      0           0     5.2   102.1   7048        10     10
132   human          sub-160405_ses-1604053rm-7-1-4_icephys.nwb   True      -10.0          -10.0      0           0    14.9    34.8   4003        24     24
133   human          sub-160504_ses-1605041rm-2-1-3_icephys.nwb   True        0.0            0.0      0           0    39.1   150.9   2849         2      2
134   human          sub-160504_ses-1605041rm-3-2-3_icephys.nwb   True        NaN            NaN      0           0    43.5     0.0   1132         3      3
135   human          sub-160504_ses-1605041rm-4-9-3_icephys.nwb   True        NaN            NaN      0           0     0.9     0.0   2046         2      2
136   human          sub-160504_ses-1605041rm-3-1-4_icephys.nwb   True        NaN            NaN      6           6   152.1     0.0   1224         2      2
137   human          sub-160504_ses-1605041rm-2-2-4_icephys.nwb   True        0.0            0.0      1           1   145.1    42.6   4623         9      9
138   human          sub-160504_ses-1605041rm-4-1-4_icephys.nwb   True      -44.0            0.0      0           0    15.2    68.0   3838         6      6
139   human          sub-160504_ses-1605041rm-5-1-4_icephys.nwb   True       -4.7            0.0     36          35   171.0   229.4    521        20     20
140   human        sub-160504_ses-1605042rm-1-1,3-4_icephys.nwb   True     -100.0          -60.0      0           0    44.2    62.2    388        83     83
141   human        sub-160504_ses-1605041rm-5-4,8-3_icephys.nwb   True      -52.3           -0.1      1           1    16.1   257.7   3870      1173   1173
142   human         sub-160506_ses-1605061rm-3-10-3_icephys.nwb   True        0.0            0.0      0           0    21.0     7.7   3296         6      6
143   human          sub-160504_ses-1605042rm-1-5-3_icephys.nwb   True       40.0           75.0      0           0     0.9   413.2   9598      2304    139
144   human          sub-160506_ses-1605061rm-3-2-4_icephys.nwb   True        0.0            0.0      0           0    13.0   109.1   7115        89     89
145   human          sub-160506_ses-1605062rm-1-1-4_icephys.nwb   True      -40.0          -40.0      0           0    26.0    53.4   2952         8      8
146   human          sub-160506_ses-1605062rm-1-2-3_icephys.nwb   True      -20.0          -20.0      0           0    15.6    20.1   4944         6      6
147   human          sub-160506_ses-1605063rm-2-1-4_icephys.nwb   True     -480.9         -480.9    225         208    24.8    28.5    712       910    910
148   human          sub-160506_ses-1605062rm-2-9-3_icephys.nwb   True        0.0            0.0      0           0    16.6   187.8   5599        16     16
149   human          sub-160506_ses-1605062rm-2-1-4_icephys.nwb   True        0.0            0.0      4           3    24.5   303.6   8692        39     39
150   human          sub-160506_ses-1605063rm-4-1-4_icephys.nwb   True      -30.0          -30.0    188         188   200.3     6.3   2334         7      7
151   human          sub-160506_ses-1605063rm-5-6-3_icephys.nwb   True      -50.0          -50.0      0           0     9.5    13.5   4188         3      3
152   human          sub-160506_ses-1605062rm-4-1-4_icephys.nwb  False      -40.0            0.0      0           0    11.9  1463.6   8243     17923  17923
153   human          sub-160506_ses-1605063rm-6-1-4_icephys.nwb   True        NaN            NaN      0           0    14.7     0.0   1427         1      1
154   human          sub-160506_ses-1605063rm-7-1-4_icephys.nwb   True     -191.9         -131.9      3           0     7.1   163.7   2038      2742   2742
155   human          sub-160506_ses-1605063rm-5-1-4_icephys.nwb   True        0.0            0.0      0           0    10.8    56.1   5175        13     13
156   human        sub-160510_ses-1605101rm-1-2,4-4_icephys.nwb   True        NaN            NaN      0           0    31.0     0.0   1393         3      3
157   human          sub-160506_ses-1605061rm-4-1-4_icephys.nwb  False       54.8          280.0      0           0     9.6  2116.9  32475     14314   4452
158   human          sub-160510_ses-1605101rm-4-1-4_icephys.nwb   True        NaN            NaN    278         278    51.6     0.0   1770        10     10
159   human        sub-160510_ses-1605101rm-3-1,2-4_icephys.nwb   True      -52.2          -42.2      6           6    49.2   109.1   5503        34     34
160   human          sub-160510_ses-1605101rm-5-7-3_icephys.nwb   True      -20.0          -20.0     24          23    51.2    23.8   3192         9      9
161   human          sub-160510_ses-1605101rm-2-1-4_icephys.nwb   True      -30.0            0.0      0           0    17.2   130.7   5020         4      4
162   human          sub-160510_ses-1605101rm-3-7-3_icephys.nwb   True      -10.0          -10.0      0           0    28.9    37.2   8075        26     26
163   human          sub-160510_ses-1605101rm-5-1-4_icephys.nwb   True      -35.4          -30.0      0           0    28.4   114.8   5992        11     11
164   human          sub-160510_ses-1605102rm-2-1-4_icephys.nwb   True        NaN            NaN      0           0     8.2     0.0   1727         2      2
165   human          sub-160510_ses-1605102rm-1-8-3_icephys.nwb   True      -10.0          -10.0      0           0    22.7    15.5   3786         3      3
166   human          sub-160510_ses-1605102rm-1-1-4_icephys.nwb   True      -17.6          -17.6      2           2    40.2    51.3   4612         6      6
167   human          sub-160510_ses-1605101rm-6-5-3_icephys.nwb   True        0.0            0.0      0           0     0.9    25.0   5436        35     35
168   human          sub-160510_ses-1605102rm-3-1-4_icephys.nwb   True      -10.9            0.0      0           0     7.6   406.7   3719         7      7
169   human          sub-160510_ses-1605103rm-4-1-4_icephys.nwb   True     -250.0            0.0     13          13    34.5   188.4   3081      3122   3122
170   human          sub-160510_ses-1605103rm-5-5-3_icephys.nwb   True        NaN            NaN      0           0     6.2     0.0   2748         3      3
171   human         sub-160510_ses-1605103rm-1-29-3_icephys.nwb   True      -50.0            0.0      2           0    20.1   146.8  17152        24     24
172   human          sub-160510_ses-1605102rm-4-1-4_icephys.nwb   True       -0.1           60.0      0           0     0.9    80.3  10839        95     65
173   human          sub-160510_ses-1605102rm-3-9-3_icephys.nwb   True        0.0           90.1      0           0    10.2   595.1  17992      5606   2399
174   human        sub-160510_ses-1605103rm-1-1,3-4_icephys.nwb   True     -174.4            0.0     26          24    17.3  1033.8   6464      3650   3650
175   human          sub-160511_ses-1605112rm-1-9-3_icephys.nwb   True      -67.5            0.0      0           0    14.7    22.4   7351        16     16
176   human          sub-160511_ses-1605112rm-1-2-4_icephys.nwb   True     -208.9         -201.9      0           0     7.3    79.1   6827         9      9
177   human         sub-160511_ses-1605111rm-1-26-3_icephys.nwb   True      -24.9          -24.9      0           0    60.3   190.9   2789        60     60
178   human          sub-160511_ses-1605112rm-2-1-4_icephys.nwb   True      -25.0           -5.0      0           0    23.0   112.5   5321         5      5
179   human          sub-160511_ses-1605112rm-2-7-3_icephys.nwb   True      -20.0          -20.0      0           0    20.0    21.0   5360         6      6
180   human         sub-160511_ses-1605112rm-3-12-3_icephys.nwb   True      -70.0          -70.0      0           0    15.9    27.1   5118         3      3
181   human          sub-160511_ses-1605113rm-1-7-3_icephys.nwb   True      -15.0          -10.0      1           1    17.9    18.2   7894        43     43
182   human          sub-160511_ses-1605112rm-3-1-4_icephys.nwb   True     -115.1          -70.0      0           0     8.5   110.8   7934        12     12
183   human          sub-160511_ses-1605113rm-1-1-4_icephys.nwb   True      -20.0            0.0      0           0     8.7   149.7   5503        12     12
184   human          sub-160511_ses-1605111rm-1-1-4_icephys.nwb  False      -50.0           20.0      0           0    67.3   604.8  28864      2067   1965
185   human          sub-160511_ses-1605113rm-3-1-4_icephys.nwb   True      -31.0           20.0     22          21    42.8   223.8   8594       518    444
186   human         sub-160511_ses-1605113rm-3-26-3_icephys.nwb   True      -60.2          -60.2      1           1    15.7    28.9   6030        15     15
187   human          sub-160628_ses-1606281rm-4-1-4_icephys.nwb   True      -18.1          -18.1     12          12    99.3     8.6   3060         6      6
188   human          sub-160628_ses-1606281rm-4-2-3_icephys.nwb   True      -77.3          -47.3      1           0    43.8    60.0   2594         8      8
189   human          sub-160628_ses-1606281rm-5-1-4_icephys.nwb   True      -39.3           -9.3      0           0    29.0   143.3   4018         3      3
190   human          sub-160511_ses-1605113rm-4-1-4_icephys.nwb  False      -82.5          -57.0      7           4    17.1  1008.3  13784     10504  10504
191   human          sub-160628_ses-1606281rm-2-1-3_icephys.nwb   True      -20.0            0.0      0           0    55.0   251.5   9887        28     28
192   human        sub-160628_ses-1606281rm-1-1,2-4_icephys.nwb   True      -20.0          -20.0      0           0   289.3   209.6   4753         6      6
193   human          sub-160628_ses-1606281rm-5-6-3_icephys.nwb   True      -26.5          -26.5      0           0    28.8    69.2   2831         5      5
194   human         sub-160628_ses-1606281rm-6-14-3_icephys.nwb   True      -50.0          -50.0      9           8    34.5   306.5   2769        39     39
195   human        sub-160628_ses-1606281rm-6-1,4-4_icephys.nwb   True      -44.0            0.0      0           0    32.9   256.1   5177         8      8
196   human          sub-160812_ses-1608121rm-2-1-4_icephys.nwb   True        0.0            0.0      0           0    22.8    54.3   4584         9      9
197   human      sub-160812_ses-1608122rm-1-1,3,4-4_icephys.nwb   True      -38.5          -38.5      0           0    16.0    10.6   2968        11     11
198   human       sub-160812_ses-1608121rm-1-9,10-3_icephys.nwb   True      -24.5          -24.5     30          30    22.9   592.0   2167         3      3
199   human        sub-160812_ses-1608121rm-4-1,2-4_icephys.nwb   True      -60.8          -60.8      0           0     9.7    37.9   4406         4      4
200   human         sub-160812_ses-1608121rm-4-11-3_icephys.nwb   True      -40.0          -40.0      0           0     0.9    11.3   4315         4      4
201   human        sub-160812_ses-1608121rm-1-1,3-4_icephys.nwb   True        0.0           60.0      0           0    46.8   353.8  13812      4595   4418
202   human          sub-160812_ses-1608123rm-3-1-4_icephys.nwb   True     -169.5         -169.5      0           0    12.0    12.1   2648         2      2
203   human          sub-160824_ses-1608241rm-1-1-4_icephys.nwb   True     -507.6            0.0      0           0    21.1    35.8   2448        13     13
204   human         sub-160812_ses-1608123rm-1-16-3_icephys.nwb   True        0.0            0.0      0           0    13.9    10.5   4525         6      6
205   human          sub-160812_ses-1608122rm-3-1-4_icephys.nwb   True        0.0           30.0      0           0    18.7    95.4   7377        38     24
206   human          sub-160812_ses-1608123rm-1-1-4_icephys.nwb   True        0.0            0.0      0           0    17.1    61.4  10673        48     48
207   human        sub-160824_ses-1608241rm-3-2,6-3_icephys.nwb   True      -15.0            0.0      0           0    17.7    45.3   2258       411    411
208   human      sub-160824_ses-1608241rm-2-1,2,4-4_icephys.nwb   True      -29.3          -29.3      0           0    24.4    40.8   7680        71     71
209   human          sub-160824_ses-1608241rm-2-3-3_icephys.nwb   True      -50.0          -50.0      0           0    21.7    40.8   5471         8      8
210   human          sub-160824_ses-1608241rm-6-1-4_icephys.nwb   True      -10.0          -10.0      0           0    15.4    73.1   5064        64     64
211   human        sub-160824_ses-1608241rm-7-1,3-4_icephys.nwb   True      -10.0          -10.0      1           1    22.1    18.5   3800         7      7
212   human          sub-160824_ses-1608241rm-6-7-3_icephys.nwb   True      -40.0           -4.7      0           0    18.4    69.7   6287       147    147
213   human          sub-160824_ses-1608241rm-7-4-3_icephys.nwb   True      -20.0          -20.0      0           0    13.9    18.5   4557         9      9
214   human        sub-160825_ses-1608251rm-2-1,2-4_icephys.nwb   True     -346.2          -50.0      0           0     1.8    56.2   2258         3      3
215   human          sub-160824_ses-1608241rm-5-1-4_icephys.nwb   True       -8.9            0.0      0           0    27.0   699.8   5128        29     26
216   human        sub-160824_ses-1608241rm-5-8,9-3_icephys.nwb   True      -10.0            0.0      0           0     1.8    30.2  19635      1083   1082
217   human          sub-160825_ses-1608251rm-5-1-4_icephys.nwb   True        0.0            0.0      0           0    16.3    52.9   2908         7      7
218   human          sub-160825_ses-1608251rm-2-8-3_icephys.nwb   True      -18.1          -10.0      0           0    34.1    53.0   6784         8      8
219   human         sub-160825_ses-1608251rm-4-11-3_icephys.nwb   True      -10.0          -10.0      0           0    15.5    49.8   5173        11     11
220   human        sub-160825_ses-1608251rm-4-1,2-4_icephys.nwb   True        0.0            0.0      0           0     7.8    98.7   7377        12     12
221   human          sub-160825_ses-1608251rm-6-1-4_icephys.nwb   True     -409.3          -10.0      0           0    15.5    59.8   3185        10     10
222   human        sub-160909_ses-1609091rm-3-2,3-3_icephys.nwb   True     -168.6         -168.6     40           0     1.8    58.1   4529         8      8
223   human          sub-160909_ses-1609091rm-3-1-4_icephys.nwb   True       60.0           60.0      0           0    29.3   109.8  12732      2865   2857
224   human          sub-160909_ses-1609091rm-4-1-4_icephys.nwb   True      -10.0          -10.0     22          22    27.7    40.0   5260        10     10
225   human       sub-160824_ses-1608242rm-2-1,26-4_icephys.nwb  False      -10.0           20.0      0           0    14.1   563.7  12077     12089  10742
226   human        sub-160909_ses-1609091rm-5-1,2-4_icephys.nwb   True      -60.0          -60.0      0           0    11.0    18.3   4595         3      3
227   human          sub-160909_ses-1609091rm-4-4-3_icephys.nwb   True       -0.0           -0.0      0           0     2.7    40.0   6204        13     13
229   human          sub-160909_ses-1609091rm-6-1-4_icephys.nwb   True        0.0            0.0      0           0    94.2     5.8   2111        15      6
231   human          sub-160909_ses-1609092rm-1-2-3_icephys.nwb  False        0.0            0.0      3           0    42.5     9.1   7101         7      7
232   human          sub-160909_ses-1609093rm-3-1-4_icephys.nwb   True      -10.0          -10.0      1           1    12.9    19.0   4246         8      8
233   human       sub-160909_ses-1609091rm-6-2,43-3_icephys.nwb   True        0.0            0.0     12           0     1.8    66.4   2966        12     12
234   human          sub-160909_ses-1609092rm-1-1-4_icephys.nwb  False        0.0           10.0      0           0    13.7    98.1  11698     22409  14281
235   human          sub-160909_ses-1609093rm-4-1-4_icephys.nwb   True        0.0            0.0      0           0     4.6    11.0   5416         6      6
236   human          sub-160909_ses-1609093rm-5-2-4_icephys.nwb  False     -100.6          -98.0      0           0     7.0     9.3   3446      3483   3483
237   human        sub-160909_ses-1609094rm-1-1,2-4_icephys.nwb   True      -55.6          -55.6      0           0    24.6     8.1   4265         6      6
239   human          sub-160909_ses-1609094rm-2-2-4_icephys.nwb   True      -50.0          -50.0      0           0    18.6     5.6   2686         3      3
241   human        sub-160909_ses-1609094rm-3-2,3-3_icephys.nwb   True      -30.0          -30.0      7           0     9.1     2.1   4164         3      3
242   human       sub-161122_ses-1611221rm-11-2,3-4_icephys.nwb   True      -34.6          -34.6     10           8    31.8    13.9   1742      3941   3941
243   human        sub-160916_ses-1609162rm-1-3,5-4_icephys.nwb  False      -20.0            0.0      0           0    22.3    79.6  17996      6009   6001
244   human        sub-161124_ses-1611241rm-2-1,2-4_icephys.nwb  False        0.0            0.0      0           0    28.1   626.8   7026        92     92
245   human          sub-160909_ses-1609093rm-7-1-4_icephys.nwb  False        0.0            0.0      0           0    12.3    25.8  16357     31553  30898
246   human        sub-161124_ses-1611241rm-7-1,2-4_icephys.nwb  False      -20.0            0.0      0           0    87.5   637.3   1853        33     33
247   human          sub-160916_ses-1609163rm-2-1-4_icephys.nwb  False        0.0            0.0      0           0     5.7   108.8  27673     14868  14868
248   human        sub-161124_ses-1611241rm-1-1,3-4_icephys.nwb   True        0.0           40.0      0           0   118.6   465.7   7199      7265   4226
249   human        sub-161124_ses-1611242rm-3-1,2-4_icephys.nwb   True     -150.0         -150.0      3           3    21.3    20.9   6032        14     14
250   human      sub-161124_ses-1611242rm-2-1,2,3-4_icephys.nwb   True      -88.6          -28.6     47          47    11.2    85.6   2274      6035   6035
251   human       sub-161130_ses-1611301rm-17-1,2-1_icephys.nwb   True       -5.0            0.0      0           0    18.9    79.9   5387        12     12
252   human         sub-161201_ses-1612012rm-11-1-4_icephys.nwb   True        0.0            0.0      0           0     6.0     7.4   3363         0      0
253   human        sub-161201_ses-1612012rm-5-1,2-4_icephys.nwb   True      -20.0            0.0      0           0    35.7    30.0   3713       574    574
254   human          sub-161201_ses-1612012rm-7-2-4_icephys.nwb   True        0.0            0.0      0           0    18.1    14.8   5131         6      6
255   human          sub-161124_ses-1611242rm-8-1-4_icephys.nwb  False      -51.8           30.0      6           0     8.5  2641.3   6955      5783   5764
256   human      sub-161201_ses-1612012rm-8-1,2,3-4_icephys.nwb   True      -40.0            0.0      0           0    20.8    56.6   5243         6      6
257   human          sub-161201_ses-1612013rm-1-1-4_icephys.nwb   True        NaN            NaN      0           0     0.9     0.0   2689        14     14
258   human      sub-161130_ses-1611301rm-5-1,2,3-1_icephys.nwb  False        0.0            0.0     17          16   331.4  1157.1  15615       120    120
259   human        sub-161201_ses-1612013rm-3-1,2-4_icephys.nwb   True      -25.0            0.0      0           0    17.1     7.6   2496        11     11
260   human       sub-161201_ses-1612012rm-13-1,3-4_icephys.nwb  False        0.0            0.0      0           0    45.9   176.8  74077       714    147
261   human        sub-161201_ses-1612013rm-9-1,2-4_icephys.nwb   True      -65.0            0.0      0           0    15.9   277.5   1043      6534   6534
262   human       sub-161202_ses-1612022rm-15-1,2-3_icephys.nwb   True      -20.0          -20.0     26          25    30.7    86.6   8091        28     28
263   human      sub-161202_ses-1612021rm-6-1,2,3-4_icephys.nwb  False        0.0            0.0      0           0    56.4   716.8   7519        19     19
264   human          sub-161202_ses-1612021rm-1-1-4_icephys.nwb  False        0.0          210.0      0           0    51.9   665.2  25459       212     92
265   human          sub-161202_ses-1612022rm-1-1-4_icephys.nwb  False        0.0            0.0      0           0   221.1   928.0  29493        73     73
266   human         sub-161202_ses-1612022rm-15-3-4_icephys.nwb   True      -20.0          -20.0      1           1    79.1    20.2   3746         6      6
267   human          sub-161202_ses-1612023rm-3-7-4_icephys.nwb   True     -100.0         -100.0      4           4    34.7     5.6   2769         3      3
268   human        sub-161202_ses-1612023rm-3-1,8-3_icephys.nwb   True        0.0            0.0      0           0    12.8    25.0   4309         8      8
269   human      sub-161202_ses-1612023rm-4-1,2,3-3_icephys.nwb   True     -122.4            0.0      4           2     2.7    59.1   7801        35     35
270   human          sub-161201_ses-1612013rm-4-1-4_icephys.nwb   True       -1.6           30.0      0           0    29.3  2874.3   4527     17728  15181
271   human         sub-161202_ses-1612023rm-4-15-4_icephys.nwb   True     -295.3         -295.3      0           0    20.1    26.2   3327         5      5
272   human        sub-161202_ses-1612022rm-8-7,8-3_icephys.nwb  False       -0.1           50.0      0           0     8.9  3454.1   7588     43809  43780
273   human          sub-170120_ses-1701202rm-3-8-4_icephys.nwb   True      -20.0          -20.0      2           1    24.5    55.2   2677        28     28
274   human          sub-170120_ses-1701202rm-3-1-3_icephys.nwb   True      -40.0            0.0      0           0     8.3   113.1   4637        17     17
275   human          sub-170131_ses-1701311rm-1-1-3_icephys.nwb   True      -26.7            0.0      0           0     6.5    33.9   3059        11     11
276   human        sub-170131_ses-1701311rm-3-1,2-3_icephys.nwb   True        NaN            NaN      0           0     8.8     0.0   1707         2      2
277   human          sub-170131_ses-1701311rm-4-1-3_icephys.nwb   True        0.0            0.0      0           0    14.6     6.1   3238         9      9
278   human        sub-170126_ses-1701261tm-6-1,2-4_icephys.nwb  False      -38.3            0.0      1           0     1.8  1780.1  19215     10055  10055
279   human        sub-170203_ses-1702031rm-1-1,2-3_icephys.nwb   True        0.0            0.0      0           0    14.6    19.1   3615         1      1
280   human          sub-170120_ses-1701201rm-2-9-4_icephys.nwb  False      -40.0            0.0      0           0    18.9   478.9  23184      3078   3078
281   human       sub-170203_ses-1702031rm-10-1,2-3_icephys.nwb   True        0.0            0.0      0           0     1.8    18.4   5575        15     15
282   human          sub-170203_ses-1702031rm-3-1-3_icephys.nwb   True        0.0            0.0      0           0     6.2    11.8   2052         4      4
283   human          sub-170120_ses-1701201rm-2-1-3_icephys.nwb  False      -31.6            0.0      0           0    16.7   977.4   8005        26     26
284   human          sub-170203_ses-1702031rm-2-1-3_icephys.nwb   True      -40.0           -3.2      0           0    18.6    28.0   4220        13     13
285   human          sub-170203_ses-1702031rm-5-1-3_icephys.nwb   True        0.0            0.0      0           0    18.5    11.8   2971         9      9
286   human          sub-170203_ses-1702031rm-7-1-3_icephys.nwb   True      -10.0          -10.0      0           0    16.7    36.6   2921       120    120
287   human          sub-170203_ses-1702031rm-6-1-3_icephys.nwb   True      -40.0          -40.0      0           0     8.3     7.0   5402         9      9
288   human        sub-170203_ses-1702031rm-8-1,2-3_icephys.nwb   True        0.0            0.0      1           1    13.1     6.4   3780        11     11
289   human          sub-170203_ses-1702031rm-9-1-3_icephys.nwb   True        0.0            0.0      0           0     0.9    41.3   8515        55     55
290   human          sub-170323_ses-1703232tm-2-1-4_icephys.nwb   True      -63.3          -53.3     83          83   149.0    27.5   1750         8      8
291   human          sub-170203_ses-1702032rm-1-2-3_icephys.nwb  False      -10.0           30.0      0           0    21.8   830.4   9551      7363   7013
292   human         sub-170203_ses-1702032rm-1-12-4_icephys.nwb  False      -20.0          -20.0      0           0    34.5   567.8   4478        13     13
293   human          sub-170330_ses-1703301tm-2-4-4_icephys.nwb  False      -10.0            0.0     40          39   675.2   488.0   1188       168    168
294   human       sub-170330_ses-1703301tm-1-8,10-4_icephys.nwb  False      -20.0          -10.0     12          12   517.2   721.6   4050        50     50
295   human          sub-170330_ses-1703301tm-5-1-4_icephys.nwb  False      -20.0          -20.0    283         283   875.4    11.5    630         7      7
296   human        sub-170131_ses-1701311rm-5-1,2-3_icephys.nwb  False        0.0           80.0      0           0     7.0   731.1  28339     36085  30866
297   human          sub-170331_ses-1703311tm-2-1-4_icephys.nwb  False      -18.5           -8.5     44          44   518.8   792.4   1599      1909   1909
298   human          sub-170406_ses-1704061tm-1-4-4_icephys.nwb  False      -40.0          -40.0      1           1  1131.9    72.2   1373         2      2
299   human          sub-170915_ses-1709152tm-2-1-4_icephys.nwb  False     -149.2          -59.2      0           0   260.3   332.4   7184       119    119
300   human          sub-170915_ses-1709152tm-1-1-4_icephys.nwb  False      -40.0            0.0     23          22   299.0   828.3   6877       385    385
301   human        sub-170331_ses-1703312tm-1-2,5-4_icephys.nwb  False        0.0           30.0      0           0   175.4   957.7  14838        89     89
302   human          sub-141209_ses-1412092rm-5-4-3_icephys.nwb   True      -65.0          -65.0    684         684   188.3    80.0   1218       908    908
303   human          sub-141209_ses-1412092rm-5-1-4_icephys.nwb   True        0.0            0.0    521         521   326.5   177.7   2735         3      3
304   human          sub-141209_ses-1412092rm-6-1-3_icephys.nwb   True        0.0            0.0    424         424   160.9   420.0   3975      1007   1007
305   human      sub-190212_ses-1902122tm-1-1,2,3-2_icephys.nwb   True      -30.0            0.0      3           3     3.7   207.1   2387      2550   2550
306   human          sub-141209_ses-1412092rm-1-1-4_icephys.nwb   True      -30.0            0.0    389         389   463.0   875.8   3853      2615   2615
307   human          sub-120529_ses-1205293rm-1-2-4_icephys.nwb   True       17.1           18.6     31           0    36.6  2376.9  31899      3547     28
308   human          sub-141209_ses-1412092rm-1-7-3_icephys.nwb   True      -40.0            0.0    196         196    90.9   943.1   3841       920    920
309   human          sub-201118_ses-2011181tm-2-1-1_icephys.nwb   True       -0.0            0.0    814         814  1295.8    67.1   2771       716    712
310   human          sub-210210_ses-2102104tm-1-1-1_icephys.nwb   True        0.0            0.0      0           0     9.8    61.2   1250       170    170
311   human          sub-210219_ses-2102191tm-8-1-1_icephys.nwb   True        0.0            0.0      0           0    11.1   123.4   4040       207    207
312   human          sub-210219_ses-2102192tm-6-1-1_icephys.nwb   True       -0.0           -0.0     21          18   106.3    71.1    443       351    351
313     rat        sub-20120627_ses-1206273rm-4-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9    50.0    399       224    224
314     rat        sub-20120627_ses-1206273rm-3-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9    20.0    640        16     16
315     rat        sub-20120627_ses-1206273rm-5-1-4_icephys.nwb   True        0.0            0.0    278         210    80.9   230.0    509       394    394
316     rat        sub-20120627_ses-1206273rm-2-1-4_icephys.nwb   True        0.0          260.0    103          10    11.8   620.0    978     10793   6345
318     rat        sub-20120731_ses-1207311rm-3-1-3_icephys.nwb   True       -8.0           -8.0     19           0     1.8   540.0   1162       469    469
320     rat        sub-20120731_ses-1207311rm-2-1-3_icephys.nwb   True      -41.9            0.0   1467        1444   410.1   555.9   1239      1108   1108
327     rat        sub-20141101_ses-1411011rm-2-1-4_icephys.nwb   True        NaN            NaN      0           0    30.0     0.0   1960         1      1
328     rat        sub-20130503_ses-1305031rm-3-1-3_icephys.nwb   True       -7.7           -7.7    253         245   534.5   390.0    936       759    759
329     rat        sub-20141101_ses-1411014rm-3-1-4_icephys.nwb   True        0.0            0.0      0           0    41.8    20.0   2268         0      0
330     rat        sub-20141101_ses-1411013rm-1-1-3_icephys.nwb   True        0.0            0.0      0           0    60.9    40.0   3104         0      0
331     rat        sub-20141101_ses-1411011rm-3-1-4_icephys.nwb   True        0.0            0.0      0           0    81.8    70.9   4113         3      3
332     rat        sub-20141101_ses-1411014rm-4-1-4_icephys.nwb   True        0.0            0.0      0           0   100.9    60.0   3138         6      6
333     rat        sub-20141121_ses-1411211rm-3-1-4_icephys.nwb   True     -287.8            0.0      0           0    10.9   260.0   4840       265    265
334     rat        sub-20141121_ses-1411212rm-1-1-4_icephys.nwb   True        0.0            0.0      0           0    90.9   110.0   4316        10     10
335     rat        sub-20141121_ses-1411211rm-2-1-4_icephys.nwb   True        0.0            0.0    137         124    30.9   750.0   9385      2434   2434
336     rat        sub-20141121_ses-1411212rm-2-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9   120.0     46      1330   1330
337     rat        sub-20141101_ses-1411012rm-3-4-3_icephys.nwb   True        0.0            0.0      0           0    80.9  2080.0  18446      2516   2516
338     rat        sub-20141121_ses-1411213rm-5-1-4_icephys.nwb  False      -70.0          -70.0      0           0    50.9    60.0   2043         2      2
339     rat        sub-20141121_ses-1411213rm-4-1-4_icephys.nwb  False        0.0            0.0      0           0    70.9    80.0   4618         3      3
340     rat        sub-20141121_ses-1411213rm-1-1-4_icephys.nwb  False        0.0            0.0      0           0     0.9   780.9   9138       352    352
341     rat        sub-20141121_ses-1411212rm-3-1-4_icephys.nwb  False      -40.0            0.0      0           0    90.9  1470.0  13921       789    789
342     rat        sub-20141121_ses-1411213rm-3-1-4_icephys.nwb  False        0.0            0.0      0           0    80.9   780.0  10987       441    441
343     rat        sub-20141121_ses-1411214rm-1-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9   501.8   5085        97     97
344     rat      sub-20141124_ses-1411242rm-1-1,2-4_icephys.nwb   True     -144.8         -144.8      0           0    31.8    10.0    429       315    315
345     rat        sub-20141124_ses-1411242rm-3-1-4_icephys.nwb   True        NaN            NaN      0           0    81.0     0.0   1846         4      4
346     rat        sub-20141124_ses-1411241rm-2-1-4_icephys.nwb   True        0.0            0.0      0           0    60.9   210.0   5045        12     12
347     rat        sub-20141124_ses-1411241rm-1-1-4_icephys.nwb   True        0.0            0.0      0           0     0.9   460.0   4377        11     11
348     rat        sub-20141124_ses-1411242rm-2-1-4_icephys.nwb   True        0.0            0.0      0           0   110.9   540.9   4047       776    776
349     rat        sub-20141121_ses-1411214rm-2-1-4_icephys.nwb  False        0.0            0.0      0           0    20.9  3400.0  17225     12273  12273
350     rat        sub-20141124_ses-1411244rm-3-1-4_icephys.nwb  False     -120.0         -120.0    126         126    90.9   100.0   1635       110    110
351     rat        sub-20141124_ses-1411244rm-1-1-4_icephys.nwb  False        0.0            0.0      4           4   420.9   320.0   1719       381    381
352     rat        sub-20141124_ses-1411244rm-2-2-4_icephys.nwb  False      -20.0          -20.0    136         136   110.9    80.0   3996         7      7
353     rat        sub-20141124_ses-1411244rm-4-1-4_icephys.nwb  False        0.0            0.0      0           0    70.9   361.3   3960         5      5
354     rat        sub-20141124_ses-1411244rm-4-7-3_icephys.nwb  False     -160.0         -160.0    169         169    80.9    88.3   1361        26     26
355     rat        sub-20141124_ses-1411243rm-1-1-4_icephys.nwb  False        0.0            0.0      2           2   100.9  1790.9   3596       487    487
356     rat        sub-20141124_ses-1411245rm-1-1-4_icephys.nwb  False        0.0            0.0      0           0    60.9   150.0   4426        11     11
357     rat        sub-20141124_ses-1411245rm-2-1-4_icephys.nwb  False        0.0            0.0      5           4    90.9   332.4   2376         4      4
358     rat        sub-20141124_ses-1411245rm-2-9-3_icephys.nwb  False        0.0            0.0      1           1    90.9  2160.0  18694       217    217
359     rat        sub-20150310_ses-1503101rm-1-1-4_icephys.nwb  False        0.0            0.0      0           0   143.2  2406.9  16441      1118   1118
360     rat        sub-20150306_ses-1503062rm-4-3-3_icephys.nwb  False      -50.0            0.0      0           0     9.5  2286.3  28923       680    680
361     rat      sub-20150306_ses-1503062rm-4-1,4-4_icephys.nwb  False        0.0            0.0      0           0   149.2  2366.7  19197      1331   1331
362     rat        sub-20150310_ses-1503103rm-2-1-4_icephys.nwb   True     -156.5            0.0      0           0    22.2   981.5   4792         1      1
363     rat        sub-20150310_ses-1503103rm-2-2-3_icephys.nwb   True        0.0            0.0      0           0    10.9   929.1   7630        29     29
364     rat        sub-20150310_ses-1503103rm-3-1-4_icephys.nwb  False        0.0            0.0      0           0     0.9  1260.0   9634       359    359
365     rat        sub-20150310_ses-1503103rm-5-1-4_icephys.nwb  False        0.0            0.0      0           0    30.9   980.0   8611       325    325
368     rat        sub-20150306_ses-1503061rm-1-2-3_icephys.nwb  False        0.0            0.0      0           0   130.9  5105.8  27802        92     92
370     rat        sub-20150306_ses-1503061rm-1-1-4_icephys.nwb  False        0.0            0.0      0           0   478.5  5130.2  16290     10751  10751
372     rat        sub-20150427_ses-1504272rm-1-1-3_icephys.nwb  False     -240.0         -100.0    216         206  2329.2   150.2   1703         9      9
374     rat      sub-20160802_ses-1608021tm-2-1,2-4_icephys.nwb  False        0.0            0.0      0           0    36.8   213.1   5492       377    377
375     rat     sub-20160720_ses-1607201tm-3-1,10-4_icephys.nwb  False        0.0            0.0      0           0   322.5   264.5   3845         4      4
376     rat        sub-20160804_ses-1608042tm-1-2-4_icephys.nwb  False      -40.0            0.0      0           0    71.3  1166.6  14080       332    332
377     rat        sub-20160810_ses-1608102tm-2-1-4_icephys.nwb  False        0.0            0.0     19          19   234.3   545.1   6787       345    345
378     rat        sub-20161010_ses-1610101tm-3-4-4_icephys.nwb  False     -170.0            0.0      9           9   704.1   595.5   2993        56     56
379     rat        sub-20160929_ses-1609291tm-4-1-4_icephys.nwb  False        0.0          160.0      0           0   217.4   350.1  14626        51     40
380     rat        sub-20160907_ses-1609072tm-1-1-4_icephys.nwb  False        0.0            0.0      0           0    39.1  1297.6   9529      4615   4615
381     rat        sub-20161109_ses-1611091tm-3-1-4_icephys.nwb  False      -12.0            0.0      1           1   280.1   346.3   5452       651    651
382     rat       sub-20160725_ses-1607251tm-1-17-4_icephys.nwb  False        0.0          420.0      0           0   399.8  1198.3  12147       526    509
383     rat       sub-20161109_ses-1611091tm-1-11-4_icephys.nwb  False        0.0          100.0      0           0    42.0   297.3  15592        26     20
384     rat        sub-20161109_ses-1611091tm-4-2-4_icephys.nwb  False        0.0            0.0      0           0   105.5   352.0   4644         4      4
385     rat        sub-20161116_ses-1611161tm-3-1-4_icephys.nwb  False       -0.0           -0.0      0           0   283.5    28.9   3477        16      7
386     rat        sub-20161116_ses-1611161tm-4-1-4_icephys.nwb  False        0.0            0.0      0           0   269.4    25.6   2135         7      7
387     rat        sub-20161116_ses-1611161tm-5-1-4_icephys.nwb  False        0.0            0.0      0           0   190.9    52.8   5019        27     27
388     rat        sub-20161114_ses-1611141tm-1-6-4_icephys.nwb  False        0.0            0.0      0           0   291.7   173.8   4460        23     23
389     rat        sub-20161116_ses-1611161tm-6-1-4_icephys.nwb  False        0.0            0.0      0           0   325.6    17.7   4013        16     16
390     rat        sub-20161115_ses-1611151tm-3-1-4_icephys.nwb  False      -50.0           40.0      1           1   287.2  1930.6   8209       609     72
391     rat        sub-20161117_ses-1611172rm-6-3-3_icephys.nwb  False     -150.0            0.0    336         335   600.8   204.5   1183      1311   1311
392     rat        sub-20161117_ses-1611172rm-3-1-4_icephys.nwb  False        0.0           20.0     23          23  1190.3   622.3   4308       767    581
393     rat        sub-20161117_ses-1611172rm-2-2-3_icephys.nwb  False      -90.0          -90.0    251         228  1069.8   734.2   2336       782    782
394     rat        sub-20161118_ses-1611181rm-4-1-4_icephys.nwb  False     -100.0            0.0    670         657   794.2  1028.5   7539      1006   1006
395     rat        sub-20161128_ses-1611281tm-1-5-4_icephys.nwb  False        0.0            0.0      0           0   223.6    65.8   9147        19     19
396     rat        sub-20161214_ses-1612142rm-3-8-4_icephys.nwb  False     -164.9          -94.9      0           0     5.0   174.3   4571       297    297
397     rat        sub-20161214_ses-1612143rm-1-2-4_icephys.nwb  False        0.0            0.0      0           0    42.5   226.7   8679       319    319
398     rat        sub-20161214_ses-1612141rm-1-1-3_icephys.nwb  False        0.0          102.9      0           0    14.1   300.1  29903       563     19
399     rat        sub-20161214_ses-1612144rm-3-1-3_icephys.nwb  False        0.0           60.0      0           0     4.6   986.3  17301      2428   2180
400     rat        sub-20161216_ses-1612163rm-2-1-3_icephys.nwb  False        0.0           81.8      0           0     2.3   875.6  19748      2018    672
401     rat        sub-20161215_ses-1612151rm-1-1-3_icephys.nwb  False        0.0           59.2      0           0     3.5   983.1  20749        84     80
402     rat        sub-20161215_ses-1612151rm-1-8-4_icephys.nwb  False        0.0            0.0      0           0    14.1  1144.1   9753       843    843
403     rat      sub-20161217_ses-1612173rm-3-1,2-3_icephys.nwb  False        0.0            0.0      0           0     5.5  1075.8  14334        56     56
404     rat        sub-20161217_ses-1612173rm-3-9-4_icephys.nwb  False        0.0            0.0      0           0     9.3  1050.3  12374      3539   3539
405     rat        sub-20161221_ses-1612212rm-3-1-3_icephys.nwb  False        0.0            0.0      1           0    65.2  1748.9   9052      6977   6977
406     rat    sub-20161219_ses-1612191rm-1-1,2,3-3_icephys.nwb  False        0.0            0.0      0           0    24.0  1962.1  14099      6407   6407
407     rat        sub-20161219_ses-1612191rm-1-4-4_icephys.nwb  False      -22.2            0.0      0           0   122.9  1922.6  21325      2539   2539
408     rat        sub-20170124_ses-1701242tm-1-1-4_icephys.nwb  False        0.0            0.0      0           0     0.9   501.9   4139       938    938
409     rat        sub-20170124_ses-1701244tm-2-1-4_icephys.nwb  False       -7.2            0.0     52          52   114.1    71.3   4950       101    101
410     rat        sub-20170118_ses-1701181tm-1-1-4_icephys.nwb  False      -99.5            0.0      0           0     0.9   384.6  15886      2360   2360
411     rat        sub-20170113_ses-1701133rm-4-1-3_icephys.nwb  False        2.0           58.5      0           0     4.6   606.5  11956       144    124
412     rat        sub-20170111_ses-1701112tm-3-1-4_icephys.nwb  False        3.5           10.9      0           0     0.9  1456.4  19324      1788   1776
413     rat      sub-20170210_ses-1702101tm-2-1,2-4_icephys.nwb  False        0.0            0.0      0           0    13.7  1897.8  19211      2942   2942
414     rat     sub-20170216_ses-1702161tm-1-1,56-4_icephys.nwb   True      -39.8            6.0      0           0    14.8  1186.1  33801      1442   1442
415     rat        sub-20170302_ses-1703022tm-1-2-4_icephys.nwb   True        0.0           40.0      0           0    10.3   161.8   7216       180    180
416     rat     sub-20170216_ses-1702161tm-4-1,21-4_icephys.nwb  False       -0.0           50.0      0           0    21.5   841.9   8643        29      8
417     rat        sub-20170302_ses-1703023tm-2-1-4_icephys.nwb   True     -115.8           -5.8      0           0     7.8   170.6   4809        54     54
418     rat        sub-20170302_ses-1703021tm-1-1-4_icephys.nwb   True        0.0           70.0      0           0    13.9   437.2  16262      1229   1229
419     rat        sub-20170216_ses-1702161tm-2-2-4_icephys.nwb   True        0.0           83.1      0           0    23.6   909.8  27199       249    200
420     rat        sub-20170123_ses-1701231tm-5-1-4_icephys.nwb  False      -63.4           22.2      0           0     0.9  2017.0  52487      3751   3751
421     rat        sub-20170302_ses-1703023tm-3-1-4_icephys.nwb   True      -49.3           -9.3      0           0     8.0   202.7  12155        45     45
422     rat        sub-20170803_ses-1708031tm-5-5-4_icephys.nwb  False     -328.6         -278.6     13          13  1163.3  1659.1   3790       346    346
423     rat        sub-20170802_ses-1708022tm-1-2-4_icephys.nwb  False      -70.0            0.0      6           6    96.8  2190.5   3767      7687   7687
424     rat        sub-20170807_ses-1708071tm-1-1-4_icephys.nwb  False      -30.0          -30.0      0           0  1133.4    25.4     36         0      0
425     rat        sub-20170303_ses-1703031tm-2-1-4_icephys.nwb  False       -0.0           30.0      1           0    12.5   966.9  25018       607    551
426     rat        sub-20170303_ses-1703032tm-2-1-4_icephys.nwb  False       -5.4           14.6      0           0     6.7  1275.0  16474      1362   1339
427     rat        sub-20170816_ses-1708162tm-2-1-4_icephys.nwb  False        0.4            0.4     41          41   643.6   183.7  15796        36     36
428     rat      sub-20180726_ses-1807261tm-1-4,8-1_icephys.nwb  False        0.0            0.0      0           0   176.6   540.1   1291        32     32
430     rat      sub-20180727_ses-1807271tm-3-1,9-1_icephys.nwb  False     -379.6         -257.5    153         153   325.2   479.1   4035       262    262
431     rat        sub-20180727_ses-1807272tm-3-1-1_icephys.nwb  False        0.0            0.0      1           1    48.4  1784.4   5350      1318   1318
432     rat        sub-20180730_ses-1807301tm-2-1-1_icephys.nwb  False      -60.0            0.0      0           0   246.5  1423.9   8034      2554   2554
433     rat    sub-20180730_ses-1807302tm-3-1,2,4-1_icephys.nwb  False     -190.0            0.0      0           0    40.7  1989.8  10003      5132   5132
434     rat      sub-20180822_ses-1808221tm-1-2,5-4_icephys.nwb  False        0.0           80.0      0           0   250.0   491.7   9970      1049   1008
435     rat  sub-20180731_ses-1807312tm-1-1,24,40-1_icephys.nwb  False      -40.0            0.0      0           0    19.9  1358.6   9974      3281   3281
436     rat      sub-20180926_ses-1809262tm-1-2,3-1_icephys.nwb  False     -100.4          -50.4      0           0   480.0   255.1   1219       419    419
437     rat        sub-20181010_ses-1810101tm-5-1-1_icephys.nwb  False     -129.0         -104.0      8           8   255.3   268.2   2040        17     17
438     rat        sub-20181024_ses-1810241tm-1-2-1_icephys.nwb  False       -0.0           50.0      0           0    49.8   915.3   6130       703    703
439     rat        sub-20181107_ses-1811071tm-2-2-1_icephys.nwb  False        0.0           50.0      0           0   280.1   581.3   9151       553    550
440     rat        sub-20190412_ses-1904121og-4-2-2_icephys.nwb   True      -21.6            0.0   1604        1604   162.3   191.3   5924      2176   2176
441     rat      sub-20181113_ses-1811132tm-1-1,2-1_icephys.nwb  False     -110.0            0.0      0           0     8.4  1194.0   6325       603    603
442     rat      sub-20181113_ses-1811132tm-6-1,2-1_icephys.nwb  False        0.0            0.0      0           0   155.0   388.4  29278        36     36
443     rat      sub-20181114_ses-1811141tm-1-2,3-1_icephys.nwb  False        0.0           60.0      0           0   241.8   875.1  28792       252     63
444     rat      sub-20190815_ses-1908151tm-3-1,3-2_icephys.nwb   True      -35.0            0.0     17          17  1999.5   166.0   3025       133    133

Threshold detection on a synthetic AP (a 1 mV/ms ramp, then an exponential upstroke whose dV/dt crosses 5 mV/ms at a known time, Gaussian noise of 0.2 mV), at the sampling rates in the files.

In [5]:
def synthetic(rate, noise, rng):
    t = np.arange(0, 0.05, 1 / rate)
    v = np.full_like(t, -65.0)
    r_ = (t > 0.02) & (t <= 0.03)
    v[r_] += (t[r_] - 0.02) * 1000
    v[t > 0.03] = -55.0
    k = (t > 0.03) & (t < 0.033)
    v[k] = np.minimum(-55 + np.cumsum(np.exp((t[k] - 0.03) * 1000 / 0.25)) / (rate / 1000), 30)
    v[t >= 0.033] = -60.0
    return v + rng.normal(0, noise, len(v)), 0.03 + 0.25e-3 * np.log(5)


rng = np.random.default_rng(seed("fig1c-ra-lower-threshold-slope"))
for rate in (5000, 16667, 25000, 50000, 100000, 200000):
    out = [raf._ap_table(synthetic(rate, 0.2, rng)[0], rate, None) for _ in range(30)]
    th = [o[0]["thr"] for o in out if o]
    sl = [o[0]["slope"] for o in out if o]
    print(f"{rate:6d} Hz: detected {len(th)}/30, threshold median {np.median(th):.2f} mV (true about -53.7), "
          f"slope median {np.median(sl):.2f} mV/ms")
  5000 Hz: detected 30/30, threshold median -54.03 mV (true about -53.7), slope median 1.72 mV/ms
 16667 Hz: detected 30/30, threshold median -53.84 mV (true about -53.7), slope median 1.71 mV/ms
 25000 Hz: detected 30/30, threshold median -52.99 mV (true about -53.7), slope median 2.20 mV/ms
 50000 Hz: detected 30/30, threshold median -52.71 mV (true about -53.7), slope median 2.31 mV/ms
100000 Hz: detected 30/30, threshold median -53.47 mV (true about -53.7), slope median 1.71 mV/ms
200000 Hz: detected 30/30, threshold median -53.74 mV (true about -53.7), slope median 1.49 mV/ms

Reading (b): one mixture per species on all its kept APs, fitted to a seeded draw of 200,000 of them (raf.gmm_classes). The component means, SDs and weights are printed, with whether the RA component (lower threshold) also has the lower slope, as the paper describes RA-APs.

In [6]:
allaps["gmm_ra"] = False
GMM = {}
fig, axs = plt.subplots(1, 2, figsize=(11, 4))
for ax, sp in zip(axs, ("human", "rat")):
    idx = (allaps.species == sp).to_numpy()
    sd_ = seed("fig1ab-raf-patterns") + (0 if sp == "human" else 1)
    lab, info = raf.gmm_classes(allaps[idx], sd_)
    allaps.loc[idx, "gmm_ra"] = lab
    GMM[sp] = info
    print(sp, {k: (round(v, 3) if isinstance(v, float) else v) for k, v in info.items()})
    print(f"   RA component size under seeds +0, +1000 to +4000: {raf.gmm_seed_range(allaps[idx], sd_)}")
    d = allaps[idx]
    h = ax.hexbin(d.thr, d.slope.clip(-5, 15), gridsize=80, bins="log", extent=(-80, -10, -5, 15))
    ax.plot([info["thr_ra"], info["thr_ais"]], [info["slope_ra"], info["slope_ais"]], "r+", ms=14, mew=2)
    ax.set(title=f"{sp} induction APs (n = {len(d)}); + component means", xlabel="threshold (mV)",
           ylabel="pre-AP slope (mV/ms), clipped to -5 to 15")
    print(f"   slopes outside -5 to 15 mV/ms (clipped in the plot): {int((~d.slope.between(-5, 15)).sum())}")
plt.tight_layout()
plt.show()
for i, c in enumerate(cells):
    c["aps"] = c["aps"].assign(gmm=allaps.loc[allaps.cell == i, "gmm_ra"].to_numpy()) if len(c["aps"]) else c["aps"].assign(gmm=[])
    c["ra"] = c["ra"].assign(gmm=c["aps"].loc[c["ra"].index, "gmm"].to_numpy()) if len(c["ra"]) else c["ra"].assign(gmm=[])
human {'n': 2537473, 'n_ra': 88265, 'w_ra': 0.043, 'w_ais': 0.957, 'thr_ra': -47.538, 'thr_ais': -47.302, 'slope_ra': 6.939, 'slope_ais': 1.863, 'sd_thr_ra': 12.212, 'sd_thr_ais': 9.903, 'sd_slope_ra': 6.689, 'sd_slope_ais': 1.018, 'ra_slope_lower': False}
   RA component size under seeds +0, +1000 to +4000: [88265, 87879, 2453165, 2451615, 2452170]
   slopes outside -5 to 15 mV/ms (clipped in the plot): 10157
rat {'n': 1255928, 'n_ra': 78321, 'w_ra': 0.078, 'w_ais': 0.922, 'thr_ra': -46.448, 'thr_ais': -42.959, 'slope_ra': 4.698, 'slope_ais': 1.583, 'sd_thr_ra': 9.26, 'sd_thr_ais': 10.379, 'sd_slope_ra': 4.987, 'sd_slope_ais': 0.802, 'ra_slope_lower': False}
   RA component size under seeds +0, +1000 to +4000: [78321, 79540, 80312, 78162, 81661]
   slopes outside -5 to 15 mV/ms (clipped in the plot): 2809
No description has been provided for this image
In [7]:
SUBSETS = {"all": lambda c: True, "drug-free": lambda c: c["clean"],
           "quiet before induction": lambda c: c["quiet_before"]}


def cell_epochs(c, reading, which):
    """RAF epochs of a cell. which: 'cont' (continuous recording, reading (c)), 'all' (with the
    interstimulus intervals, reading (c)), 'gmm' (continuous recording, RA-APs that the mixture
    also labels RA, reading (b)). reading: 'i' one epoch per cell, 'ii' one per induction run."""
    ra = c["ra"]
    if not len(ra):
        return []
    if which == "cont":
        ra = ra[ra.cont]
    elif which == "gmm":
        ra = ra[ra.cont & ra.gmm]
    return raf.epochs(ra.t_abs, None if reading == "i" else c["runs"])


def summarize(sp, reading, which, subset="all"):
    E = pd.DataFrame([e | {"file": c["file"]} for c in cells if c["species"] == sp and SUBSETS[subset](c)
                      for e in cell_epochs(c, reading, which)])
    if not len(E):
        return E, {}
    E["persistent"] = E.freq > 5
    P, S = E[E.persistent], E[~E.persistent]
    out = dict(n_epochs=len(E), n_persistent=len(P), n_sporadic=len(S),
               pers_n_median=P.n.median(), pers_freq_median=P.freq.median(), pers_dur_median=P.duration.median(),
               pers_dur_mean=P.duration.mean(), pers_dur_min=P.duration.min(), pers_dur_max=P.duration.max(),
               spor_n_median=S.n.median(), spor_freq_median=S.freq.median(),
               all_dur_median=E.duration.median(), all_dur_mean=E.duration.mean(),
               all_dur_min=E.duration.min(), all_dur_max=E.duration.max(),
               pers_n_sd=P.n.std(), pers_freq_sd=P.freq.std(), spor_n_sd=S.n.std(), spor_freq_sd=S.freq.std())
    return E, out


def judge(out, exp, keys):
    hits = []
    for k, (v, tol) in zip(keys, exp):
        x = out.get(k, np.nan)
        hits.append(bool(np.isfinite(x) and abs(x - v) <= tol))
    return hits

fig1ab-raf-patterns¶

Human layer 1 interneurons show two forms of retroaxonal firing (RAF) after induction, persistent RAF with barrages of RA-APs at high frequency (median 88 RA-APs, 13.9 Hz; duration median 17.1 s, mean 68.4 s, from 0.18 to 2809 s) and sporadic RAF with a few RA-APs at low frequency (median 8 RA-APs, 0.31 Hz).

Readings: epochs (i) one per cell, (ii) one per induction run; RA-APs of the continuous recording by reading (c), with the interstimulus intervals included as a variant, and those the mixture also labels RA by reading (b). The durations are judged under persistent RAF and shown over all epochs. Each reading on all cells, on the drug-free files, and on the cells without spontaneous APs before induction.

In [8]:
EXP1 = [(88, 8.8), (13.9, 1.39), (17.1, 1.71), (68.4, 6.84), (0.18, 0.018), (2809, 280.9), (8, 0.8), (0.31, 0.031)]
K1 = ["pers_n_median", "pers_freq_median", "pers_dur_median", "pers_dur_mean", "pers_dur_min", "pers_dur_max",
      "spor_n_median", "spor_freq_median"]
rows = []
for subset in SUBSETS:
    for which in ("cont", "all", "gmm"):
        for reading in ("i", "ii"):
            E, out = summarize("human", reading, which, subset)
            h = judge(out, EXP1, K1)
            rows.append(dict(cells=subset, RA=which, epochs=reading, hits=sum(h),
                             **{k: out.get(k, np.nan) for k in ["n_epochs", "n_persistent", "n_sporadic"] + K1},
                             pers_n_sd=out.get("pers_n_sd"), spor_freq_sd=out.get("spor_freq_sd"),
                             all_dur_median=out.get("all_dur_median"), all_dur_mean=out.get("all_dur_mean"),
                             all_dur_min=out.get("all_dur_min"), all_dur_max=out.get("all_dur_max")))
T1 = pd.DataFrame(rows)
with pd.option_context("display.max_columns", 40, "display.width", 250):
    print(T1.round(3).to_string())
print("expected:", dict(zip(K1, [e[0] for e in EXP1])))
print("most values within tolerance under any reading:", T1.hits.max())
                     cells    RA epochs  hits  n_epochs  n_persistent  n_sporadic  pers_n_median  pers_freq_median  pers_dur_median  pers_dur_mean  pers_dur_min  pers_dur_max  spor_n_median  spor_freq_median  pers_n_sd  spor_freq_sd  all_dur_median  all_dur_mean  all_dur_min  all_dur_max
0                      all  cont      i     0       143            24         119          752.5            10.422           55.268       1019.992         0.014      7375.057          166.0             0.552  14154.108         1.187         597.103      1284.200        0.014     8995.203
1                      all  cont     ii     1       689           319         370          234.0            16.792           15.343         73.136         0.014      3129.416           50.5             0.788   3190.143         1.358          44.478       138.962        0.014     3129.416
2                      all   all      i     0       293            18         275         6284.5             8.640          780.697       2100.095        38.521      7445.283           14.0             0.068  16196.348         0.851         404.269      1024.943        4.888     9054.107
3                      all   all     ii     0      1445           426        1019          379.0            11.623           30.282         78.098         0.027      3144.295           11.0             0.270   2904.169         1.206          47.289       116.999        0.027     3144.295
4                      all   gmm      i     0        49             3          46            2.0           133.869            0.015         30.275         0.009        90.801           14.0             0.030    303.109         0.426         923.144      1422.327        0.009     7042.326
5                      all   gmm     ii     0       128            23         105            3.0            29.277            0.217          3.883         0.007        59.917            7.0             0.401    113.557         0.791          19.079       149.159        0.007     2790.969
6                drug-free  cont      i     1        96            19          77          342.0            12.966           28.420        464.540         0.014      7039.403           76.0             0.581   8975.532         1.111         271.802       696.569        0.014     7039.403
7                drug-free  cont     ii     1       255           111         144          219.0            17.287           12.337         62.132         0.014      2446.495           29.0             1.012   3200.207         1.470          34.803       135.009        0.014     2446.495
8                drug-free   all      i     0       236            10         226         3531.5             9.352          295.504       1042.333        38.521      7430.031           11.5             0.059  12283.219         0.641         280.733       598.744        4.888     7430.031
9                drug-free   all     ii     1       673           104         569          407.0            10.771           40.445         84.895         0.027      2615.653            6.0             0.157   3469.408         0.990          47.756       107.052        0.027     2615.653
10               drug-free   gmm      i     0        22             2          20          264.5           111.127           45.405         45.405         0.009        90.801           12.5             0.038    371.231         0.456         294.166       726.332        0.009     5240.516
11               drug-free   gmm     ii     1        39            13          26            3.0            38.110            0.131          4.813         0.007        59.917            5.0             0.331    142.479         0.698           6.926       102.530        0.007     1560.985
12  quiet before induction  cont      i     1        74            11          63           56.0            13.379            4.319       1248.711         0.020      7039.403           75.0             0.388  15969.216         1.150         501.445      1256.822        0.020     7241.052
13  quiet before induction  cont     ii     0       394           222         172          141.0            18.954            7.375         50.398         0.020      2446.495           35.0             0.921   2876.580         1.403          20.242        96.331        0.020     2446.495
14  quiet before induction   all      i     0       175             8         167        24394.5             8.477         3145.979       3228.971       344.719      7430.031           12.0             0.060  15339.569         0.768         380.246      1014.499        4.888     7430.031
15  quiet before induction   all     ii     2       974           337         637          305.0            11.795           22.053         59.725         0.034      2615.653           10.0             0.294   2539.320         1.284          36.909        86.146        0.034     2615.653
16  quiet before induction   gmm      i     0        27             1          26            2.0           133.869            0.015          0.015         0.015         0.015           13.5             0.025        NaN         0.389         923.144      1352.860        0.015     5240.516
17  quiet before induction   gmm     ii     0        81            15          66            3.0            27.442            0.221          0.290         0.007         1.273            5.0             0.421      4.039         0.914          11.027       109.699        0.007     1829.179
expected: {'pers_n_median': 88, 'pers_freq_median': 13.9, 'pers_dur_median': 17.1, 'pers_dur_mean': 68.4, 'pers_dur_min': 0.18, 'pers_dur_max': 2809, 'spor_n_median': 8, 'spor_freq_median': 0.31}
most values within tolerance under any reading: 2

Result: not reproduced. Persistent and sporadic epochs both occur under every reading on all cells, but at most two of the eight values are within tolerance under any reading or subset (the cells quiet before induction, RA-APs with the interstimulus intervals, one epoch per run: maximum duration 2616 s and sporadic frequency 0.294 Hz). The first reading (continuous recording, one epoch per cell, all cells) has none. The mixture of reading (b) fails its check (its RA component has the steeper mean slope, about 6.9 against 1.9 mV/ms in human, and its size changes with the seed from about 88,000 to about 2,450,000 APs), so the gmm rows are not a reading of the paper's classes.

fig1c-ra-lower-threshold-slope¶

RA-APs have a lower somatic threshold potential and a lower pre-AP depolarization slope than AIS-APs, during persistent and during sporadic RAF.

Reading (c): AIS-APs during the current pulses, RA-APs after induction (interstimulus intervals and continuous recording), within the cells whose one epoch (reading (i), RA-APs of the continuous recording) is persistent or sporadic. APs pooled; the paper's rule (KS normality, then t test or Mann-Whitney U). Per-cell medians as a variant. Then the same comparison within each sampling rate, since the rates differ between the protocols.

In [9]:
SEL = {}
for sp in ("human", "rat"):
    for pattern in ("persistent", "sporadic"):
        A, B, PA, PB = [], [], [], []
        for c in cells:
            if c["species"] != sp:
                continue
            ep = cell_epochs(c, "i", "cont")
            if not ep:
                continue
            pers = ep[0]["freq"] > 5
            if pers != (pattern == "persistent"):
                continue
            A.append(c["ais"]); B.append(c["ra"])
            PA.append(c["ais"][["thr", "slope"]].median()); PB.append(c["ra"][["thr", "slope"]].median())
        if not A:
            print(sp, pattern, "no cells"); continue
        A, B = pd.concat(A), pd.concat(B)
        SEL[(sp, pattern)] = (A, B)
        PA, PB = pd.DataFrame(PA), pd.DataFrame(PB)
        for q in ("thr", "slope"):
            t, p = raf.paper_test(B[q], A[q])
            tc = stats.mannwhitneyu(PB[q].dropna(), PA[q].dropna()).pvalue if len(PB[q].dropna()) and len(PA[q].dropna()) else np.nan
            print(f"{sp:5s} {pattern:10s} {q:5s}: cells {len(PA)}; AIS-AP median {A[q].median():7.2f} (n={len(A)}), "
                  f"RA-AP median {B[q].median():7.2f} (n={len(B)}); {t} P = {p:.2g}; per-cell medians "
                  f"{PA[q].median():.2f} vs {PB[q].median():.2f}, Mann-Whitney P = {tc:.2g}; "
                  f"cells with RA-AP median below AIS-AP median {int((PB[q] < PA[q]).sum())} of {int((PB[q].notna() & PA[q].notna()).sum())}")
print()
print("By sampling rate (human and rat, both patterns pooled): median threshold (mV) and slope (mV/ms)")
for sp in ("human", "rat"):
    A = pd.concat([SEL[k][0] for k in SEL if k[0] == sp]).assign(cls="AIS")
    B = pd.concat([SEL[k][1] for k in SEL if k[0] == sp]).assign(cls="RA")
    D = pd.concat([A, B])
    D["rate_khz"] = (D.rate / 1000).round(1)
    t = D.groupby(["rate_khz", "cls"]).agg(n=("thr", "size"), thr=("thr", "median"), slope=("slope", "median")).unstack("cls")
    print(sp)
    print(t.round(2).to_string())
human persistent thr  : cells 24; AIS-AP median  -44.10 (n=93525), RA-AP median  -59.56 (n=188982); Mann-Whitney U P = 0; per-cell medians -43.80 vs -57.19, Mann-Whitney P = 0.0006; cells with RA-AP median below AIS-AP median 21 of 24
human persistent slope: cells 24; AIS-AP median    1.79 (n=93525), RA-AP median    0.77 (n=188982); Mann-Whitney U P = 0; per-cell medians 1.59 vs 0.76, Mann-Whitney P = 1.4e-05; cells with RA-AP median below AIS-AP median 23 of 24
human sporadic   thr  : cells 119; AIS-AP median  -44.77 (n=1136276), RA-AP median  -61.37 (n=263672); Mann-Whitney U P = 0; per-cell medians -42.93 vs -53.00, Mann-Whitney P = 1.4e-16; cells with RA-AP median below AIS-AP median 105 of 119
human sporadic   slope: cells 119; AIS-AP median    2.18 (n=1136276), RA-AP median    0.74 (n=263672); Mann-Whitney U P = 0; per-cell medians 2.11 vs 1.04, Mann-Whitney P = 1.5e-12; cells with RA-AP median below AIS-AP median 107 of 119
rat   persistent thr  : cells 8; AIS-AP median  -41.45 (n=59676), RA-AP median  -62.30 (n=10810); Mann-Whitney U P = 0; per-cell medians -41.92 vs -53.14, Mann-Whitney P = 0.05; cells with RA-AP median below AIS-AP median 7 of 8
rat   persistent slope: cells 8; AIS-AP median    1.51 (n=59676), RA-AP median    0.44 (n=10810); Mann-Whitney U P = 0; per-cell medians 1.53 vs 0.66, Mann-Whitney P = 0.0019; cells with RA-AP median below AIS-AP median 7 of 8
rat   sporadic   thr  : cells 82; AIS-AP median  -41.19 (n=887440), RA-AP median  -61.58 (n=113893); Mann-Whitney U P = 0; per-cell medians -40.17 vs -58.60, Mann-Whitney P = 3.7e-15; cells with RA-AP median below AIS-AP median 74 of 82
rat   sporadic   slope: cells 82; AIS-AP median    1.67 (n=887440), RA-AP median    0.58 (n=113893); Mann-Whitney U P = 0; per-cell medians 1.60 vs 0.44, Mann-Whitney P = 4.8e-15; cells with RA-AP median below AIS-AP median 72 of 82

By sampling rate (human and rat, both patterns pooled): median threshold (mV) and slope (mV/ms)
human
                 n              thr        slope      
cls            AIS        RA    AIS     RA   AIS    RA
rate_khz                                              
5.0            NaN     844.0    NaN -65.56   NaN  0.31
10.0         385.0      64.0 -51.98 -58.58  0.95  0.77
16.7      539867.0    8569.0 -43.61 -54.43  2.01  1.10
20.0           6.0       NaN -36.15    NaN -0.00   NaN
25.0         278.0  181598.0 -35.79 -58.49  2.34  1.04
50.0      642994.0  260384.0 -45.76 -62.08  2.35  0.56
100.0      46085.0    1195.0 -43.53 -48.56  1.98  0.70
200.0        186.0       NaN -34.32    NaN  2.08   NaN
rat
                 n             thr        slope      
cls            AIS       RA    AIS     RA   AIS    RA
rate_khz                                             
16.7      265897.0  11516.0 -40.99 -64.24  1.57  0.17
20.0       53673.0    156.0 -45.32 -47.09  2.12  1.27
25.0         646.0  35299.0 -40.64 -64.64  0.84  0.70
50.0      571613.0  73615.0 -40.88 -60.56  1.64  0.57
100.0      54545.0   4117.0 -42.48 -41.69  1.80  0.65
200.0        742.0      NaN -42.30    NaN  1.37   NaN

Result: reproduced. In the 24 human persistent cells RA-APs have a lower threshold (median -59.6 against -44.1 mV) and slope (0.77 against 1.79 mV/ms), and in the 119 sporadic cells too (-61.4 against -44.8 mV, 0.74 against 2.18 mV/ms), with Mann-Whitney P printed as 0 (below double precision) and per-cell P from 1.4e-16 to 0.0006. The order holds within each human sampling rate that has both classes (10 to 100 kHz).

fig1d-human-raf-proportion and figs1b-rat-raf-proportion¶

About one-fourth of tested human layer 1 interneurons (87 of 385) show RAF. About a third of tested rat layer 1 interneurons (102 of 259) show RAF.

A cell shows RAF when at least one RA-AP occurs after induction. Tested cells are the files with induction sweeps; all files are shown as the other denominator. RA-APs by reading (c) (with or without the interstimulus intervals) and by reading (b) (reading (c) RA-APs the mixture also labels RA). At least two RA-APs is shown as a variant against single spurious events. Subsets: all tested cells; drug-free files; cells with spontaneous APs before induction counted as without RAF, or left out.

In [10]:
prop = []
for c in cells:
    ra = c["ra"]
    prop.append(dict(species=c["species"], file=c["file"], tested=c["n_ind"] > 0, clean=c["clean"],
                     quiet=c["quiet_before"], c_all=len(ra), c_cont=int(ra.cont.sum()) if len(ra) else 0,
                     b_all=int(ra.gmm.sum()) if len(ra) else 0))
prop = pd.DataFrame(prop)
PROP = []
for sp, exp in (("human", 0.226), ("rat", 0.394)):
    d = prop[prop.species == sp]
    for subset in ("all tested", "drug-free", "firing before induction = no RAF", "firing before induction left out"):
        t = d[d.tested]
        if subset == "drug-free":
            t = t[t.clean]
        if subset == "firing before induction left out":
            t = t[t.quiet]
        for col, name in (("c_all", "reading (c), ISIs and continuous"), ("c_cont", "reading (c), continuous only"),
                          ("b_all", "reading (b)")):
            for k in (1, 2):
                has = t[col] >= k
                if subset == "firing before induction = no RAF":
                    has = has & t.quiet
                n = int(has.sum())
                PROP.append(dict(species=sp, cells=subset, RA=name, min_ra=k, n=n, of=len(t), fraction=n / max(len(t), 1),
                                 within=abs(n / max(len(t), 1) - exp) <= exp * 0.1))
PROP = pd.DataFrame(PROP)
print(PROP.round(3).to_string())
print("expected human 0.226, rat 0.394 (tolerance 10%); denominator with all files: human "
      f"{int((prop.species == 'human').sum())}, rat {int((prop.species == 'rat').sum())}")
   species                             cells                                RA  min_ra    n   of  fraction  within
0    human                        all tested  reading (c), ISIs and continuous       1  301  307     0.980   False
1    human                        all tested  reading (c), ISIs and continuous       2  293  307     0.954   False
2    human                        all tested      reading (c), continuous only       1  159  307     0.518   False
3    human                        all tested      reading (c), continuous only       2  143  307     0.466   False
4    human                        all tested                       reading (b)       1  173  307     0.564   False
5    human                        all tested                       reading (b)       2  128  307     0.417   False
6    human                         drug-free  reading (c), ISIs and continuous       1  243  249     0.976   False
7    human                         drug-free  reading (c), ISIs and continuous       2  236  249     0.948   False
8    human                         drug-free      reading (c), continuous only       1  111  249     0.446   False
9    human                         drug-free      reading (c), continuous only       2   96  249     0.386   False
10   human                         drug-free                       reading (b)       1  122  249     0.490   False
11   human                         drug-free                       reading (b)       2   83  249     0.333   False
12   human  firing before induction = no RAF  reading (c), ISIs and continuous       1  180  307     0.586   False
13   human  firing before induction = no RAF  reading (c), ISIs and continuous       2  175  307     0.570   False
14   human  firing before induction = no RAF      reading (c), continuous only       1   86  307     0.280   False
15   human  firing before induction = no RAF      reading (c), continuous only       2   74  307     0.241    True
16   human  firing before induction = no RAF                       reading (b)       1  101  307     0.329   False
17   human  firing before induction = no RAF                       reading (b)       2   73  307     0.238    True
18   human  firing before induction left out  reading (c), ISIs and continuous       1  180  183     0.984   False
19   human  firing before induction left out  reading (c), ISIs and continuous       2  175  183     0.956   False
20   human  firing before induction left out      reading (c), continuous only       1   86  183     0.470   False
21   human  firing before induction left out      reading (c), continuous only       2   74  183     0.404   False
22   human  firing before induction left out                       reading (b)       1  101  183     0.552   False
23   human  firing before induction left out                       reading (b)       2   73  183     0.399   False
24     rat                        all tested  reading (c), ISIs and continuous       1  115  118     0.975   False
25     rat                        all tested  reading (c), ISIs and continuous       2  113  118     0.958   False
26     rat                        all tested      reading (c), continuous only       1   97  118     0.822   False
27     rat                        all tested      reading (c), continuous only       2   91  118     0.771   False
28     rat                        all tested                       reading (b)       1   93  118     0.788   False
29     rat                        all tested                       reading (b)       2   89  118     0.754   False
30     rat                         drug-free  reading (c), ISIs and continuous       1   31   33     0.939   False
31     rat                         drug-free  reading (c), ISIs and continuous       2   29   33     0.879   False
32     rat                         drug-free      reading (c), continuous only       1   26   33     0.788   False
33     rat                         drug-free      reading (c), continuous only       2   22   33     0.667   False
34     rat                         drug-free                       reading (b)       1   21   33     0.636   False
35     rat                         drug-free                       reading (b)       2   20   33     0.606   False
36     rat  firing before induction = no RAF  reading (c), ISIs and continuous       1   82  118     0.695   False
37     rat  firing before induction = no RAF  reading (c), ISIs and continuous       2   80  118     0.678   False
38     rat  firing before induction = no RAF      reading (c), continuous only       1   65  118     0.551   False
39     rat  firing before induction = no RAF      reading (c), continuous only       2   59  118     0.500   False
40     rat  firing before induction = no RAF                       reading (b)       1   66  118     0.559   False
41     rat  firing before induction = no RAF                       reading (b)       2   65  118     0.551   False
42     rat  firing before induction left out  reading (c), ISIs and continuous       1   82   85     0.965   False
43     rat  firing before induction left out  reading (c), ISIs and continuous       2   80   85     0.941   False
44     rat  firing before induction left out      reading (c), continuous only       1   65   85     0.765   False
45     rat  firing before induction left out      reading (c), continuous only       2   59   85     0.694   False
46     rat  firing before induction left out                       reading (b)       1   66   85     0.776   False
47     rat  firing before induction left out                       reading (b)       2   65   85     0.765   False
expected human 0.226, rat 0.394 (tolerance 10%); denominator with all files: human 313, rat 132

Result (fig1d-human-raf-proportion): not reproduced. With at least one RA-AP, as the criterion says, 301 of 307 human cells (0.980) have RAF by reading (c) and 159 (0.518) on the continuous recording alone; the drug-free files give 0.976 and 0.446, and counting the cells that fire before induction as without RAF gives 0.586 and 0.280. Only variants outside the criterion fall within tolerance: at least two continuous-recording RA-APs with the cells firing before induction counted as without RAF (0.241), and a reading (b) row whose mixture fails its check (0.238).

Result (figs1b-rat-raf-proportion): not reproduced. 115 of 118 rat cells (0.975) have RA-APs by reading (c) and 97 (0.822) on the continuous recording; the lowest fraction in the table is 0.500, against 0.394.

figs1d-rat-raf-values¶

Rat interneurons show both sporadic RAF (frequency 1 Hz, 7 RA-APs) and tonic RAF (frequency 6.9 Hz, 100 RA-APs).

In [11]:
EXP2 = [(1, 0.1), (7, 0.7), (6.9, 0.69), (100, 10)]
K2 = ["spor_freq_median", "spor_n_median", "pers_freq_median", "pers_n_median"]
rows = []
for subset in SUBSETS:
    for which in ("cont", "all", "gmm"):
        for reading in ("i", "ii"):
            E, out = summarize("rat", reading, which, subset)
            rows.append(dict(cells=subset, RA=which, epochs=reading, hits=sum(judge(out, EXP2, K2)),
                             **{k: out.get(k, np.nan) for k in ["n_epochs", "n_persistent", "n_sporadic"] + K2}))
T2 = pd.DataFrame(rows)
print(T2.round(3).to_string())
print("expected:", dict(zip(K2, [e[0] for e in EXP2])))
print("most values within tolerance under any reading:", T2.hits.max())
                     cells    RA epochs  hits  n_epochs  n_persistent  n_sporadic  spor_freq_median  spor_n_median  pers_freq_median  pers_n_median
0                      all  cont      i     0        90             8          82             0.667          452.0            15.402          699.5
1                      all  cont     ii     0       544           281         263             1.619           51.0            13.207          122.0
2                      all   all      i     0       113             5         108             0.302          328.5             9.770         1311.0
3                      all   all     ii     0       852           201         651             0.485           12.0             8.423          180.0
4                      all   gmm      i     0        32             1          31             0.038            4.0            12.041            3.0
5                      all   gmm     ii     0        78            10          68             0.558           16.5             8.172            4.5
6                drug-free  cont      i     0        22             4          18             1.230          304.0            20.496         1044.5
7                drug-free  cont     ii     0        68            35          33             1.724          109.0            15.616          207.0
8                drug-free   all      i     0        29             4          25             0.356          180.0            14.532         1044.5
9                drug-free   all     ii     0       133            27         106             0.382            8.5             8.508          261.0
10               drug-free   gmm      i     0         5             0           5             0.202            4.0               NaN            NaN
11               drug-free   gmm     ii     0         5             0           5             0.449            5.0               NaN            NaN
12  quiet before induction  cont      i     0        59             4          55             0.637          506.0            31.153          163.0
13  quiet before induction  cont     ii     0       436           246         190             1.630           45.0            13.162          114.0
14  quiet before induction   all      i     0        80             2          78             0.254          308.0            27.697          822.5
15  quiet before induction   all     ii     0       692           174         518             0.485           11.0             8.423          167.5
16  quiet before induction   gmm      i     0        21             1          20             0.028            4.0            12.041            3.0
17  quiet before induction   gmm     ii     1        59             8          51             0.965           17.0             8.172            5.0
expected: {'spor_freq_median': 1, 'spor_n_median': 7, 'pers_freq_median': 6.9, 'pers_n_median': 100}
most values within tolerance under any reading: 1

Result: not reproduced. No rat value is within tolerance under reading (c) in any subset; one reading (b) row has one of four, and that mixture fails its check.

fig2e-sag-species and fig2e-sag-raf-smaller¶

Human layer 1 interneurons have a higher somatic sag fraction than rat ones (0.15 against 0.04). In both species, interneurons with RAF have smaller somatic sag fractions than those without (human 0.11 against 0.16; rat 0.02 against 0.06).

Per cell, the sag of one step sweep: the most hyperpolarizing step, or the step whose peak is nearest -90 mV; formula (a) or (b) (raf._sag). RAF status (at least one RA-AP) by each reading of fig1d: reading (c) with the interstimulus intervals, reading (c) on the continuous recording only, and reading (b); over the tested cells with sag sweeps (the denominator of fig1d) and the drug-free ones among them. All files with sag sweeps, untested ones counted as without RAF, are shown for comparison.

In [12]:
sg = []
for c, pr in zip(cells, prop.itertuples()):
    s = c["sag"]
    if not len(s):
        continue
    most = s[s.i_step == s.i_step.min()].iloc[0]
    near = s.iloc[int(np.argmin(np.abs(s.vpeak.to_numpy() + 90)))]
    sg.append(dict(species=c["species"], file=c["file"], clean=c["clean"], raf_c_all=pr.c_all > 0,
                   raf_c_cont=pr.c_cont > 0, raf_b=pr.b_all > 0, tested=pr.tested,
                   a_most=most.sag_a, b_most=most.sag_b, a_90=near.sag_a, b_90=near.sag_b,
                   step_most=most.i_step, peak_most=most.vpeak))
sg = pd.DataFrame(sg)
print(sg.groupby("species")[["a_most", "b_most", "a_90", "b_90", "step_most", "peak_most"]].describe().T.round(3))
species            human      rat
a_most    count  312.000  129.000
          mean     0.240    0.099
          std      0.147    0.093
          min      0.022    0.011
          25%      0.128    0.044
          50%      0.198    0.071
          75%      0.357    0.125
          max      0.881    0.602
b_most    count  312.000  129.000
          mean     0.391    0.129
          std      0.500    0.191
          min      0.022    0.011
          25%      0.147    0.046
          50%      0.248    0.076
          75%      0.554    0.143
          max      7.407    1.513
a_90      count  312.000  129.000
          mean     0.249    0.133
          std      0.161    0.177
          min      0.037    0.011
          25%      0.126    0.047
          50%      0.199    0.077
          75%      0.365    0.151
          max      0.993    1.316
b_90      count  311.000  128.000
          mean     0.421    0.237
          std      0.586    0.728
          min      0.038    0.011
          25%      0.143    0.049
          50%      0.247    0.083
          75%      0.567    0.176
          max      7.367    7.280
step_most count  312.000  129.000
          mean  -100.962 -100.000
          std      9.774    0.000
          min   -200.000 -100.000
          25%   -100.000 -100.000
          50%   -100.000 -100.000
          75%   -100.000 -100.000
          max   -100.000 -100.000
peak_most count  312.000  129.000
          mean   -84.776  -76.798
          std     11.226    7.578
          min   -138.755 -103.118
          25%    -91.438  -80.710
          50%    -83.496  -77.758
          75%    -77.331  -73.678
          max    -53.451  -24.353
In [13]:
for col in ("a_most", "b_most", "a_90", "b_90"):
    for label, d in (("all", sg), ("drug-free", sg[sg.clean])):
        h, r = d[d.species == "human"][col].dropna(), d[d.species == "rat"][col].dropna()
        p = stats.mannwhitneyu(h, r).pvalue
        print(f"{col:7s} {label:9s}: human n={len(h)} median {h.median():.3f} (SD {h.std():.3f}); rat n={len(r)} median "
              f"{r.median():.3f} (SD {r.std():.3f}); Mann-Whitney P = {p:.2g}")
print("expected: human 0.15 (n=358), rat 0.04 (n=254), tolerance 10%, P < 0.001")
a_most  all      : human n=312 median 0.198 (SD 0.147); rat n=129 median 0.071 (SD 0.093); Mann-Whitney P = 1.5e-26
a_most  drug-free: human n=254 median 0.211 (SD 0.145); rat n=36 median 0.082 (SD 0.071); Mann-Whitney P = 8e-10
b_most  all      : human n=312 median 0.248 (SD 0.500); rat n=129 median 0.076 (SD 0.191); Mann-Whitney P = 1.5e-26
b_most  drug-free: human n=254 median 0.267 (SD 0.313); rat n=36 median 0.090 (SD 0.099); Mann-Whitney P = 8e-10
a_90    all      : human n=312 median 0.199 (SD 0.161); rat n=129 median 0.077 (SD 0.177); Mann-Whitney P = 1.3e-20
a_90    drug-free: human n=254 median 0.210 (SD 0.157); rat n=36 median 0.077 (SD 0.142); Mann-Whitney P = 4.2e-10
b_90    all      : human n=311 median 0.247 (SD 0.586); rat n=128 median 0.083 (SD 0.728); Mann-Whitney P = 3.2e-21
b_90    drug-free: human n=253 median 0.265 (SD 0.337); rat n=36 median 0.083 (SD 1.198); Mann-Whitney P = 4.6e-10
expected: human 0.15 (n=358), rat 0.04 (n=254), tolerance 10%, P < 0.001

Result: partially reproduced. Human sag is higher than rat under every formula and step (0.198 against 0.071, Mann-Whitney P = 1.5e-26, formula (a) on the most hyperpolarizing step; drug-free files 0.211 against 0.082, P = 8e-10), but neither median is within tolerance of 0.15 and 0.04.

In [14]:
EXP3 = [0.11, 0.16, 0.02, 0.06]
rows = []
# RAF status is that of fig1d, whose denominator is the tested cells (files with induction sweeps);
# all files with sag sweeps, which counts the untested ones as without RAF, is shown for comparison
# (verifier, round 2).
CELLS3 = {"tested": sg[sg.tested], "tested, drug-free": sg[sg.tested & sg.clean],
          "all files with sag": sg}
print("files with sag sweeps but no induction sweeps:", sg[~sg.tested].groupby("species").size().to_dict())
for status in ("raf_c_all", "raf_c_cont", "raf_b"):
    for label, d0 in CELLS3.items():
        for col in ("a_most", "b_most", "a_90", "b_90"):
            row = dict(status=status, cells=label, sag=col)
            meds = []
            for sp in ("human", "rat"):
                d = d0[d0.species == sp]
                y, n = d[d[status]][col].dropna(), d[~d[status]][col].dropna()
                p = stats.mannwhitneyu(y, n).pvalue if len(y) and len(n) else np.nan
                row |= {f"{sp}_raf_n": len(y), f"{sp}_raf": y.median(), f"{sp}_noraf_n": len(n),
                        f"{sp}_noraf": n.median(), f"{sp}_P": p,
                        f"{sp}_lower_p001": bool(y.median() < n.median() and p < 0.001)}
                meds += [y.median(), n.median()]
            row["medians_within"] = int(sum(abs(m - e) <= 0.1 * e for m, e in zip(meds, EXP3) if np.isfinite(m)))
            rows.append(row)
T3 = pd.DataFrame(rows)
with pd.option_context("display.max_columns", 40, "display.width", 250):
    print(T3.to_string(float_format=lambda x: f"{x:.3g}"))
print("expected: human 0.11 (n=83) vs 0.16 (n=275); rat 0.02 (n=97) vs 0.06 (n=157); P < 0.001")
print(f"notebook time {(time.time() - T0) / 60:.1f} min, peak memory "
      f"{resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6:.1f} GB")
files with sag sweeps but no induction sweeps: {'human': 6, 'rat': 14}
        status               cells     sag  human_raf_n  human_raf  human_noraf_n  human_noraf  human_P  human_lower_p001  rat_raf_n  rat_raf  rat_noraf_n  rat_noraf    rat_P  rat_lower_p001  medians_within
0    raf_c_all              tested  a_most          300      0.198              6        0.203    0.537             False        112   0.0621            3      0.154   0.0364           False               0
1    raf_c_all              tested  b_most          300      0.248              6        0.257    0.537             False        112   0.0662            3      0.183   0.0364           False               0
2    raf_c_all              tested    a_90          300        0.2              6        0.155    0.215             False        112   0.0708            3      0.154    0.117           False               1
3    raf_c_all              tested    b_90          299      0.249              6        0.184    0.219             False        111   0.0761            3      0.183    0.107           False               0
4    raf_c_all   tested, drug-free  a_most          242      0.211              6        0.203    0.445             False         29   0.0662            2      0.165   0.0516           False               0
5    raf_c_all   tested, drug-free  b_most          242      0.267              6        0.257    0.445             False         29   0.0709            2      0.197   0.0516           False               0
6    raf_c_all   tested, drug-free    a_90          242      0.214              6        0.155    0.168             False         29   0.0662            2      0.165   0.0516           False               1
7    raf_c_all   tested, drug-free    b_90          241      0.272              6        0.184    0.172             False         29   0.0709            2      0.197   0.0516           False               0
8    raf_c_all  all files with sag  a_most          300      0.198             12        0.214    0.916             False        112   0.0621           17      0.125  0.00285           False               0
9    raf_c_all  all files with sag  b_most          300      0.248             12        0.273    0.916             False        112   0.0662           17      0.143  0.00285           False               0
10   raf_c_all  all files with sag    a_90          300        0.2             12        0.172    0.416             False        112   0.0708           17       0.13   0.0306           False               1
11   raf_c_all  all files with sag    b_90          299      0.249             12        0.207    0.425             False        111   0.0761           17      0.149   0.0251           False               0
12  raf_c_cont              tested  a_most          159      0.186            147        0.211    0.116             False         95     0.06           20      0.125 0.000392            True               0
13  raf_c_cont              tested  b_most          159      0.228            147        0.267    0.116             False         95   0.0638           20      0.143 0.000392            True               0
14  raf_c_cont              tested    a_90          159      0.188            147         0.22    0.178             False         95   0.0641           20      0.137  0.00799           False               0
15  raf_c_cont              tested    b_90          158      0.227            147        0.281    0.147             False         94   0.0676           20      0.159  0.00591           False               0
16  raf_c_cont   tested, drug-free  a_most          111      0.208            137        0.217    0.267             False         25   0.0609            6       0.14  0.00607           False               0
17  raf_c_cont   tested, drug-free  b_most          111      0.262            137        0.277    0.267             False         25   0.0648            6      0.163  0.00607           False               0
18  raf_c_cont   tested, drug-free    a_90          111      0.209            137        0.221    0.361             False         25   0.0626            6       0.14   0.0463           False               0
19  raf_c_cont   tested, drug-free    b_90          110      0.263            137        0.284    0.297             False         25   0.0667            6      0.163   0.0463           False               0
20  raf_c_cont  all files with sag  a_most          159      0.186            153        0.211   0.0998             False         95     0.06           34      0.122 2.81e-05            True               0
21  raf_c_cont  all files with sag  b_most          159      0.228            153        0.267   0.0998             False         95   0.0638           34      0.139 2.81e-05            True               0
22  raf_c_cont  all files with sag    a_90          159      0.188            153         0.21    0.171             False         95   0.0641           34      0.127  0.00213           False               0
23  raf_c_cont  all files with sag    b_90          158      0.227            153        0.266    0.141             False         94   0.0676           34      0.146  0.00142           False               0
24       raf_b              tested  a_most          172      0.176            134        0.261 7.63e-06              True         91   0.0609           24      0.112   0.0822           False               0
25       raf_b              tested  b_most          172      0.214            134        0.353 7.63e-06              True         91   0.0648           24      0.127   0.0822           False               0
26       raf_b              tested    a_90          172      0.175            134        0.262 0.000536              True         91   0.0662           24      0.119    0.291           False               0
27       raf_b              tested    b_90          171      0.211            134        0.354 0.000363              True         90   0.0707           24      0.135     0.25           False               0
28       raf_b   tested, drug-free  a_most          121      0.179            127        0.262  0.00035              True         20   0.0644           11      0.122     0.47           False               0
29       raf_b   tested, drug-free  b_most          121      0.219            127        0.354  0.00035              True         20   0.0688           11      0.139     0.47           False               0
30       raf_b   tested, drug-free    a_90          121      0.187            127        0.269  0.00509             False         20   0.0644           11      0.125    0.312           False               0
31       raf_b   tested, drug-free    b_90          120      0.224            127        0.368  0.00337             False         20   0.0688           11      0.143    0.312           False               0
32       raf_b  all files with sag  a_most          172      0.176            140         0.26 5.68e-06              True         91   0.0609           38      0.111  0.00594           False               0
33       raf_b  all files with sag  b_most          172      0.214            140        0.351 5.68e-06              True         91   0.0648           38      0.124  0.00594           False               0
34       raf_b  all files with sag    a_90          172      0.175            140        0.259  0.00051              True         91   0.0662           38      0.119   0.0812           False               0
35       raf_b  all files with sag    b_90          171      0.211            140        0.349 0.000343              True         90   0.0707           38      0.135    0.063           False               0
expected: human 0.11 (n=83) vs 0.16 (n=275); rat 0.02 (n=97) vs 0.06 (n=157); P < 0.001
notebook time 28.6 min, peak memory 4.3 GB

Result: partially reproduced, resting on the RAF reading. On the tested cells, with RAF status from the RA-APs of the continuous recording (reading (c) without the interstimulus intervals), rat cells with RAF have the lower sag at P < 0.001 (formula (a), most hyperpolarizing step: 0.060, n = 95, against 0.125, n = 20, Mann-Whitney P = 0.00039), while human cells do not (0.186 against 0.211, P = 0.12). The rat result is fragile: the step nearest -90 mV gives P = 0.0080 and the drug-free files P = 0.0061. Counting the files without induction sweeps as without RAF, as the round-2 version did, gives rat P = 2.8e-05. With the interstimulus intervals neither species reaches P < 0.001 (rat 3 cells without RAF, P = 0.036; human 6, P = 0.54). No reading has more than one of the four medians within tolerance. Reading (b) gives the human difference at P < 0.001, but its mixture fails its check. The continuous-recording reading is the assumption: the Methods count RA-APs "during continuous recording" and start that recording once APs appear in the interstimulus interval (Methods, "Analysis of RAF patterns" and "Induction protocol of RAF").

Summary¶

Claim Outcome
fig1ab-raf-patterns not reproduced
fig1c-ra-lower-threshold-slope reproduced
fig1d-human-raf-proportion not reproduced
fig1f-human-raf-ngfc blocked, metadata_insufficient
figs1b-rat-raf-proportion not reproduced
figs1d-rat-raf-values not reproduced
fig1g-rat-raf-ngfc blocked, metadata_insufficient
fig2e-sag-species partially reproduced
fig2e-sag-raf-smaller partially reproduced (assumed)
fig2il-kcl-induces-ra-aps 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. Induction sweeps, AIS-APs and RA-APs are rebuilt from the stimulus and the traces (reading (c) of the claims file), as the files carry no labels; epochs are one per cell or one per induction run, as the claims file names. Sag is taken on the step sweeps before induction with a formula the paper does not give (two readings). Each result is also shown on the drug-free files and on the cells that do not fire before induction. The two-component mixture of reading (b) does not recover the paper's classes in these recordings (its lower-threshold component has the steeper slope, and its size depends on the seed), so no outcome rests on it.

What was found about the dataset. The folders hold 313 human and 132 rat files against 385 and 259 tested cells, and nearly every cell in them fires APs without current after induction, so they appear to be a selection the dandiset does not describe. 124 human and 33 rat cells fire spontaneous APs before induction. 58 human and 94 rat files list drugs or a changed calcium concentration. No file names a cell class or a KCl application. Sampling rates range from 5 to 200 kHz.