Reproducing Payne et al. (2020) on SPARC:206¶

Paper. Payne, Wiedmann, Eiber, Wong, Senn, Osborne, Keast & Fallon (2020), "Recording of Electrically Evoked Neural Activity and Bladder Pressure Responses in Awake Rats Chronically Implanted With a Pelvic Nerve Array", Front. Neurosci. 14, 619275, doi:10.3389/fnins.2020.619275. The claims file (claims/payne-2020.yaml) was written from the version of record (Europe PMC PMC7773906): main text, Methods, Table 1, figure legends and Discussion; the paper has no supplement and links no code.

Dataset. SPARC:206, "Recording of electrically evoked neural activity and bladder pressure responses in awake rats chronically implanted with a pelvic nerve array", version 1, DOI 10.26275/kkmb-vun5, read from the public bucket sparc-prod-aod-discover-publish50-use1 at the object versions listed by that version's manifest (manifest object version Ag7Kwl87aKqHqVTtho8dzikC2BfNyghN). Version 1 is pinned because it is the only published version of the dataset (so also the most recent) and the paper cites no dataset version; its metadata name this paper as the article that describes it.

Claims.

Claim Status
anes-ecap-recorded tested
anes-ecap-latencies tested
anes-conduction-velocity tested
anes-threshold-order tested
fig2c-p3-above-p1 tested
fig2ab-one-rat-p2-below-p1 tested
awake-ecap-latencies tested
awake-threshold-increase blocked, metadata_insufficient (no link between the week 0 and week 1 recordings)
impedance-increase tested
electrode-failures blocked, data_missing (per-electrode impedances for 8 of 10 arrays)
colonic-pressure tested
no-fecal-expulsion-or-erection blocked, data_missing
table1-minimum-pressure tested
table1-threshold-pressure tested
table1-peak-pressure tested
table1-contraction-duration tested
table1-intervoid-interval tested
table1-hfpo-frequency tested
table1-comparable-to-published tested (with_inputs)
stim-evoked-voiding blocked, data_missing (no urine-release annotation; stimulation in 4 rats)
stim-void-trials blocked, data_missing
stim-early-void blocked, data_missing
stim-nonvoiding blocked, data_missing
stim-voiding-to-nonvoiding blocked, data_missing
fig3e-eight-week-responses blocked, data_missing (no stimulation in the 8-week recordings)
fig4-atf3-rare blocked, data_missing
fig4ef-axons-intact blocked, data_missing
fig5-cfos-distribution blocked, data_missing
fig5-cfos-no-side-difference blocked, data_missing
fig5-no-lamina1 blocked, data_missing
macroscopic-no-pathology blocked, data_missing
In [1]:
import time, resource
T0 = time.time()
import numpy as np, pandas as pd
from scipy import stats
import matplotlib
import matplotlib.pyplot as plt
import pelvic as P
pd.set_option("display.width", 200); pd.set_option("display.max_columns", 40)
pd.set_option("display.max_rows", 200)

man = P.manifest()
print("files in the version-1 manifest:", len(man))
used = sorted([p for p in man if p.startswith("files/") and not p.endswith(".pxp") and
               not p.endswith(".py")])
print(pd.DataFrame({"path": used, "size": [man[p]["size"] for p in used],
                    "sha256": [P.sha256_hex(p) for p in used]}).to_string())
files in the version-1 manifest: 88
                                                   path     size                                                            sha256
0                                      files/README.txt     2487  e32f6a081e4fbadd60b656c3eaff52f47fe328e6d38cefab6a97b6ac6817d287
1                    files/code/cystometry-analysis.rmd     3575  9e8c0ed3c6de65c29e1e014f34c1dce3aaa19b3efca1ee5d9d486c16f21374aa
2                              files/code/manifest.xlsx     8725  b6a5b0b2a1cb8c6606d426e2ab20eb89fa16e363347d7c2fe7c99c3aa10e1ed9
3                        files/dataset_description.xlsx    24179  857f191eb16e2cb4c139f7c910161478ff1c5d6221f839e149ca1ba524a6c6f5
4              files/derivative/chronic-impedances.pzfx    17506  f4804eebc13580c3c6f4d07fae5d77234811d5ee3e2506cd2f50bdca9d2446ff
5          files/derivative/cystometry-analysis.nb.html   836394  0b8ee806ea271822c219934831503478225f894fea4e41798e1a7070565c3667
6              files/derivative/cystometry-dataset.xlsx    12887  3e7229d797162408efbaec119e46cf28275df07bc0c083f378975802ff8ab171
7                        files/derivative/manifest.xlsx     8790  a82900b5f6034c2cea2232b40dc2f260fbe780736ecf32811fac8718d47d5348
8                      files/docs/hdf5_ECAP_schema.json     1401  ff86049edafe50683da1d4bfec2fbbecb745c02726c3b488e5a3d01ef3c95c19
9                files/docs/hdf5_cystometry_schema.json     2045  15cc69f382ee6a92660a325fbb12576f56451e898ed425d5630e19eed44fc0f8
10                files/docs/hdf5_recording_schema.json     1254  b624fb08e5b604ae50b6db3e4e9854321d623c765984797da7d7327b92a0db30
11                             files/docs/manifest.xlsx     8756  2642e727d623a8a7440f0f8a203a956c86aae18052b95e3278cb6c4379ed2d97
12                          files/primary/manifest.xlsx    10974  89b1defaaa0966a3e6a44390b075c9bbf70d0caba818d6285c626438bc7c9043
13        files/primary/sub-12-005/sub-12-005_ECAP.hdf5   364516  43db9c490bd225616cbc906a5ef78d428713a01be10b218732a1aab32289d91d
14      files/primary/sub-12-005/sub-12-005_stimuli.csv     2676  79746e4ff845ddb5a4369f0d46c1055ceeed7b4364b37179f9a96d593f391722
15        files/primary/sub-12-006/sub-12-006_ECAP.hdf5   344616  64a195b1d5f255ac5c7a3327a7ed7b0668fd7be5ec5a22c51d7c861689d6f9ca
16      files/primary/sub-12-006/sub-12-006_stimuli.csv     2556  b5a4fd04cf9048a2e1c1b3b607c89f52f3efc1fec3b463ec7ea599e347f8eac3
17        files/primary/sub-12-007/sub-12-007_ECAP.hdf5   324665  e5a62fdddc91db4037122884b47f42dfe354b366e6aaf5d384a5db6e952988a3
18      files/primary/sub-12-007/sub-12-007_stimuli.csv     2436  8814c176387a2c56e855d0781514289b67af4d90513048632115bcd3bebd9c14
19        files/primary/sub-12-008/sub-12-008_ECAP.hdf5   384191  07747a65f3bdddb584d6106fa559faf7ea81e444e735f2bdf3179205e10daaa8
20      files/primary/sub-12-008/sub-12-008_stimuli.csv     2848  0b30862bfafbe3c74de88a5a2298393079b5809b367161d4481bf66c8ede64b4
21        files/primary/sub-12-010/sub-12-010_ECAP.hdf5   384293  a7562105b0a15f3d610beb29f81bbae8af64bed72a0e2928c55f91a1b080782a
22      files/primary/sub-12-010/sub-12-010_stimuli.csv     2848  e2ed28f2e386b923c6d4cbd5cc6f107ec281b3e6ddf0ef8409b79ca62282e822
23   files/primary/sub-12-019/sub-12-019_recording.hdf5   115387  18406b58fa09e611d3fe020af214d298a3df4da78c3a9ce40091aa2d72384eac
24      files/primary/sub-12-019/sub-12-019_stimuli.csv      812  7c5fdd1561abee6181990afb56b25b4d004b6c3247fea124c0d93c416be3af44
25   files/primary/sub-12-020/sub-12-020_recording.hdf5   348879  7ede8a230d5ec5956dd577525ac09dfb0b012bd1bfd18f53f340bddde1c6ac81
26      files/primary/sub-12-020/sub-12-020_stimuli.csv     1310  d5a272f6a716a66792075fad11dff4724b81896a55426c5d08320019855f41fd
27        files/primary/sub-12-050/sub-12-050_ECAP.hdf5   224121  99fbfe399a7cbfcceabdd5d2d18696cef41f8b9f01849ac8a1f7815a474e87f5
28      files/primary/sub-12-050/sub-12-050_stimuli.csv     1400  2d60f7cabbcb238b0ae9b7ae0c46086c225ed20243bcf076064e89cabfee6f6a
29        files/primary/sub-12-051/sub-12-051_ECAP.hdf5   433895  e90ea4cbb2cdc7d404e2d5f8826e8ab05ca0d3834cc52097172361692cec3186
30      files/primary/sub-12-051/sub-12-051_stimuli.csv     2656  7bb73c9d6959c9e2300d28070da6950b722ff1b98f3c86d0329f5908b2a5bac4
31        files/primary/sub-12-052/sub-12-052_ECAP.hdf5   423592  8000d61ca820a52b55a8e85231474ae9867d2a376edb39c2d9284e77af377078
32      files/primary/sub-12-052/sub-12-052_stimuli.csv     2596  85007b02372e73c7c78fc809765677b3163a640eb8320d05cc7a2a9b997c4ad8
33        files/primary/sub-12-053/sub-12-053_ECAP.hdf5   363781  dd9ee35d0001d275feb07daf2ed56de219f576821718d9844e78a232e745e71d
34      files/primary/sub-12-053/sub-12-053_stimuli.csv     2226  8dbf3e073f91aea2768f256ae21b9d7626a3d82b1b5d3f8ed3fe6bce3d20e9ab
35        files/primary/sub-12-055/sub-12-055_ECAP.hdf5   383479  76f7ba317d86b85027c26430be9dda1f68a3c3680f4a010b6004a44cb2084b09
36      files/primary/sub-12-055/sub-12-055_stimuli.csv     2848  e6de07b3f4c6daf9a56ede6d4ec5543444ac1cc3d9ab17dbb0fe29ed1160e7d4
37        files/primary/sub-12-056/sub-12-056_ECAP.hdf5   344886  d29bed3d189979c5dd6869c7d51c818a0df692d1fa4e771602824bd6a6d65c4a
38      files/primary/sub-12-056/sub-12-056_stimuli.csv     2582  908b5b9fa514f91d7c38ebaff9a24320ec98f41de2ce04528448231c793e6f50
39        files/primary/sub-12-057/sub-12-057_ECAP.hdf5   364464  99b3f82bac05d142079c60e7b68ae969c2f15d2f26c760445e634871ff8670a8
40      files/primary/sub-12-057/sub-12-057_stimuli.csv     2728  39ba78288c64069a5f170fde3e5f5a9fbdcb19542a360b6932a2904a5dfb337e
41  files/primary/sub-12-081/sub-12-081_cystometry.hdf5  2172696  11d42806a0e5a9de794ccf9b9d5eec6dffe9386c5c023ab669340ee775aa5433
42  files/primary/sub-12-083/sub-12-083_cystometry.hdf5  1021370  70e275a13264dd0c2130b95f70109764f4a1035f8f857d122f28d7d37352840d
43   files/primary/sub-15-758/sub-15-758_recording.hdf5  1197117  6c45a9f973b4f1ac65501344a41725ca2bc5bc25882c031bffe5790d5541e887
44      files/primary/sub-15-758/sub-15-758_stimuli.csv     3236  3e267060988ffe22194e82c5d47683237c3f6e1c138650500c76ebab5654c3d4
45  files/primary/sub-15-759/sub-15-759_cystometry.hdf5   959913  57bddeae2908630dd7d94bf857f0bd5202210d19f373dcbe84c40cbdef318efd
46  files/primary/sub-15-760/sub-15-760_cystometry.hdf5   877757  49f49ac2bbc0ea99b9a06ea05f2257dd5800d4776c79d3d5bec38884064a1311
47  files/primary/sub-18-196/sub-18-196_cystometry.hdf5  3671529  9e522a1cbe649a09ef6f02e9eac6927e50645f80a07b86a255c3cd9b9cbe0b4f
48   files/primary/sub-18-196/sub-18-196_impedances.csv      494  a1031616f7d7498d9f4574b46cc29303c95bc3364a1d33c4572a950140bc728a
49      files/primary/sub-18-196/sub-18-196_stimuli.csv      196  b0b408b45a545376b80fb4bb3998b987719924a289b37c5ed1663aed8cbe049d
50  files/primary/sub-18-208/sub-18-208_cystometry.hdf5  1883462  a8163d7c4fddceac02ccba79414a3379216c05c010fcbe9e282776213a74bea3
51   files/primary/sub-18-208/sub-18-208_impedances.csv      709  bfb937ec800a221b4ec467a4d30ce52ad478d78cedd33a351f839b2a7668e9e5
52  files/primary/sub-18-243/sub-18-243_cystometry.hdf5  3760275  7c5962d4ce2d5b29ef877a8a23dd6f48cbb2641137265d0de68de32be0ab27b8
53   files/primary/sub-18-243/sub-18-243_impedances.csv      512  e72225b6c527f37733d7382b5199022722ebb0fd327d94d283f23c0d4dedf8ee
54      files/primary/sub-18-243/sub-18-243_stimuli.csv      196  036c692b0b6d896dfaf981332cdee3f3146b70bff19581526f2667ad8cc1b1ee
55  files/primary/sub-18-248/sub-18-248_cystometry.hdf5  2065250  07ce59b8832d94d0029d82e9dfa2d8c75c755ef00c19c20a287a8d28b33db46e
56   files/primary/sub-18-248/sub-18-248_impedances.csv      560  2c6d799052881ce2c2f579f7378c374af2da7eb87fdafee3ff88118d8e7573e8
57  files/primary/sub-18-262/sub-18-262_cystometry.hdf5  5956739  a57833bc86443f9bbb124051e6418c8fec45a2b2f8606e2bb3c2c295e945692a
58   files/primary/sub-18-262/sub-18-262_impedances.csv      421  20a509b30e19da5f903aacbcb3caae73eeaf8893dadab15feb95abb7e852442e
59      files/primary/sub-18-262/sub-18-262_stimuli.csv      271  1ec61881c24aa8de96a5f166a7849ca6b12352c3ca73e291864497a25fb42149
60  files/primary/sub-18-270/sub-18-270_cystometry.hdf5  1476125  ba34181f93cf03220045fdaea3047a7b69bafec37396718511b58a889d5406a2
61   files/primary/sub-18-270/sub-18-270_impedances.csv      241  e3a58dc847619edf3d977fa087aca4d96c63342a530a69136c07ebd26cfd828e
62  files/primary/sub-18-273/sub-18-273_cystometry.hdf5  3483030  2a6fb614d809c9225356b3697d4b6de6faadb1e58fe13e0d638080c662d36bc5
63   files/primary/sub-18-273/sub-18-273_impedances.csv      561  2b38a7772aec34607e180ad4e17109003dc3375eef3c42df8242ff3ad5827520
64  files/primary/sub-18-290/sub-18-290_cystometry.hdf5  4294213  eed3de86809f34ea06577030b3142c812413b788e7c4da9383e8a73718e6891f
65  files/primary/sub-18-291/sub-18-291_cystometry.hdf5  3416735  2ce23a447f0bc84f8f7694b8356b281af2f4877e24af897f8699f2384c3f3f2d
66  files/primary/sub-18-294/sub-18-294_cystometry.hdf5  2418037  84ed2a33a08c9e2679890d91401e6b191c4abd4887a904883872cc4fbf32fc77
67   files/primary/sub-18-294/sub-18-294_impedances.csv      783  bca78077d992b8271952c27a6f6d32f9cd551de13f2fbeac3aad7b8d66573992
68      files/primary/sub-18-294/sub-18-294_stimuli.csv      487  d2f54c6fb8a9e33cad4d409368f01e5f17d3fc836b07c3537c67c27660c27133
69                         files/protocol/manifest.xlsx     8680  3f6a1a579fa67941f831260fc915d2ca6c1f34c36ed70ff585e5a5d989b96cc4
70                                  files/subjects.xlsx    49409  61bc74e53af5f59d11095914dd0c7e5aa7c231bc3e1c4e727ce568d11b80c72a

Data check¶

The dataset follows the SPARC Data Structure. The data check reads the top-level sheets, the folder manifests, and the attributes of every recording, and compares them with what the paper describes.

In [2]:
dd = P.read_excel("files/dataset_description.xlsx", header=None)
for _, r in dd.iterrows():
    v = [str(x) for x in r.values[3:] if str(x) != "nan"]
    print(f"{str(r[0])[:32]:32s} | {' | '.join(v)[:150]}")
sj = P.read_excel("files/subjects.xlsx")
print(sj.columns.tolist())
print(sj[["subject_id", "experimental group", "age", "sex", "Implant Side", "Recording Day (post-surgery)"]].to_string())
print("\nall columns, including pool_id and the experimental log file name:")
print(sj.drop(columns=["species", "strain", "RRID for strain", "protocol title", "protocol.io location"]).to_string())
print("species, strain, RRID, protocol:", {c: sj[c].dropna().unique().tolist() for c in ["species", "strain", "RRID for strain", "protocol title", "protocol.io location"]})
print("\nsubjects per group:\n", sj["experimental group"].value_counts().to_string())
print("total subjects:", sj.subject_id.nunique(), "(the paper reports 24 rats in all)")
Metadata element                 | Value | Value 2 | Value 3 | Additional Values | Additional Values | Additional Values | Additional Values | Additional Values
Name                             | Recording of Electrically Evoked Neural Activity and Bladder Pressure Responses in Awake Rats Chronically Implanted With a Pelvic Nerve Array
Description                      | Electrical neuromodulation of the rat pelvic nerve (homolog of the human pelvic splanchnic nerves) by chronically implanted custom planar four-electro
Keywords                         | Recording techniques |  electrophysiology |  neural decoding
Contributors                     | Payne, Sophie | Eiber, Calvin D | Wiedmann, Nicole | Wong, Agnes W | Senn, Philipp | Osborne, Peregrine | Keast, Janet | Fallon, James
Contributor ORCID ID             | 0000-0002-3428-2275 | 0000-0002-8240-2649 | 0000-0001-9390-2457 | 0000-0002-8458-4159 | 0000-0002-4341-3265 | 0000-0003-2686-3886
Contributor Affiliation          | https://ror.org/05e4f1b55 | https://ror.org/01ej9dk98 | https://ror.org/01ej9dk98 | https://ror.org/01ej9dk98 | https://ror.org/05e4f1b55 | https://ro
Contributor Role                 | ProjectLeader | Researcher | DataCollector | DataCollector | DataCollector | CoInvestigator | PrincipleInvestigator | CoInvestigator
Is Contact Person                | No | No | No | No | No | No | Yes | No
Acknowledgements                 | 
Funding                          | OT2OD023872
Originating Article DOI          | https://doi.org/10.3389/fnins.2020.619275
Protocol URL or DOI              | https://doi.org/10.17504/protocols.io.bgrmjv46
Additional Links                 | 
Link Description                 | 
Number of subjects               | 29
Number of samples                | 0
Completeness of data set         | 
Parent dataset ID                | 
Title for complete data set      | Recording of Electrically Evoked Neural Activity and Bladder Pressure Responses in Awake Rats Chronically Implanted With a Pelvic Nerve Array
Metadata Version DO NOT CHANGE   | 1.2.3
['subject_id', 'pool_id', 'experimental group', 'age', 'sex', 'species', 'strain', 'RRID for strain', 'Additional Fields (e.g. MINDS)', 'age category', 'protocol title', 'protocol.io location', 'experimental log file name', 'Implant Side', 'Implant Array Version', 'Recording Day (post-surgery)']
    subject_id        experimental group       age   sex Implant Side  Recording Day (post-surgery)
0   sub-18-196  cystometry + stimulation   8 weeks  Male        right                            14
1   sub-18-208  cystometry + stimulation   7 weeks  Male        right                            15
2   sub-18-243  cystometry + stimulation   8 weeks  Male        right                            15
3   sub-18-248  cystometry + stimulation   8 weeks  Male        right                            11
4   sub-18-262  cystometry + stimulation   8 weeks  Male        right                            10
5   sub-18-270  cystometry + stimulation   7 weeks  Male        right                             9
6   sub-18-273  cystometry + stimulation   7 weeks  Male        right                            16
7   sub-18-290           cystometry only   8 weeks  Male          NaN                            10
8   sub-18-291           cystometry only   8 weeks  Male          NaN                            14
9   sub-18-294  cystometry + stimulation   8 weeks  Male        right                            13
10  sub-12-005                acute ECAP  10 weeks  Male        right                             0
11  sub-12-006                acute ECAP  10 weeks  Male        right                             0
12  sub-12-007                acute ECAP  10 weeks  Male        right                             0
13  sub-12-008                acute ECAP  10 weeks  Male         left                             0
14  sub-12-010                acute ECAP   9 weeks  Male        right                             0
15  sub-12-050              chronic ECAP   8 weeks  Male        right                             0
16  sub-12-051              chronic ECAP   9 weeks  Male        right                             0
17  sub-12-052              chronic ECAP   9 weeks  Male        right                             0
18  sub-12-053              chronic ECAP   9 weeks  Male        right                             7
19  sub-12-055              chronic ECAP   8 weeks  Male        right                             7
20  sub-12-056              chronic ECAP   8 weeks  Male        right                             0
21  sub-12-057              chronic ECAP   8 weeks  Male        right                             7
22  sub-12-081  cystometry + stimulation   8 weeks  Male         left                             7
23  sub-12-083  cystometry + stimulation   8 weeks  Male         left                             7
24  sub-15-759      long term cystometry  10 weeks  Male        right                            64
25  sub-15-760      long term cystometry  10 weeks  Male        right                            48
26  sub-12-019  colon pressure recording   7 weeks  Male        right                             0
27  sub-12-020  colon pressure recording   7 weeks  Male        right                             0
28  sub-15-758  colon pressure recording  10 weeks  Male         left                             0

all columns, including pool_id and the experimental log file name:
    subject_id  pool_id        experimental group       age   sex  Additional Fields (e.g. MINDS) age category experimental log file name Implant Side  Implant Array Version  Recording Day (post-surgery)
0   sub-18-196      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult        book 131-5 p. 31,41        right                    NaN                            14
1   sub-18-208      NaN  cystometry + stimulation   7 weeks  Male                             NaN        adult        book 131-5 p. 35,52        right                    NaN                            15
2   sub-18-243      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult        book 131-5 p. 60,90        right                    NaN                            15
3   sub-18-248      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult        book 131-5 p. 61,95        right                    NaN                            11
4   sub-18-262      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult        book 131-5 p. 81,97        right                    NaN                            10
5   sub-18-270      NaN  cystometry + stimulation   7 weeks  Male                             NaN        adult       book 131-5 p. 84,100        right                    NaN                             9
6   sub-18-273      NaN  cystometry + stimulation   7 weeks  Male                             NaN        adult       book 131-5 p. 87,109        right                    NaN                            16
7   sub-18-290      NaN           cystometry only   8 weeks  Male                             NaN        adult      book 119-1 p. 109,114          NaN                    NaN                            10
8   sub-18-291      NaN           cystometry only   8 weeks  Male                             NaN        adult      book 119-1 p. 109,115          NaN                    NaN                            14
9   sub-18-294      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult      book 119-1 p. 113,124        right                    NaN                            13
10  sub-12-005      NaN                acute ECAP  10 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
11  sub-12-006      NaN                acute ECAP  10 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
12  sub-12-007      NaN                acute ECAP  10 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
13  sub-12-008      NaN                acute ECAP  10 weeks  Male                             NaN        adult                        NaN         left                    NaN                             0
14  sub-12-010      NaN                acute ECAP   9 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
15  sub-12-050      NaN              chronic ECAP   8 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
16  sub-12-051      NaN              chronic ECAP   9 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
17  sub-12-052      NaN              chronic ECAP   9 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
18  sub-12-053      NaN              chronic ECAP   9 weeks  Male                             NaN        adult                        NaN        right                    NaN                             7
19  sub-12-055      NaN              chronic ECAP   8 weeks  Male                             NaN        adult                        NaN        right                    NaN                             7
20  sub-12-056      NaN              chronic ECAP   8 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
21  sub-12-057      NaN              chronic ECAP   8 weeks  Male                             NaN        adult                        NaN        right                    NaN                             7
22  sub-12-081      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult                        NaN         left                    NaN                             7
23  sub-12-083      NaN  cystometry + stimulation   8 weeks  Male                             NaN        adult                        NaN         left                    NaN                             7
24  sub-15-759      NaN      long term cystometry  10 weeks  Male                             NaN        adult                        NaN        right                    NaN                            64
25  sub-15-760      NaN      long term cystometry  10 weeks  Male                             NaN        adult                        NaN        right                    NaN                            48
26  sub-12-019      NaN  colon pressure recording   7 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
27  sub-12-020      NaN  colon pressure recording   7 weeks  Male                             NaN        adult                        NaN        right                    NaN                             0
28  sub-15-758      NaN  colon pressure recording  10 weeks  Male                             NaN        adult                        NaN         left                    NaN                             0
species, strain, RRID, protocol: {'species': ['Rattus norvegicus'], 'strain': ['Sprague-Dawley'], 'RRID for strain': ['RRID:RGD_10395233'], 'protocol title': ['Cystometry in awake rats', 'Electrophysiological recording of electrically-evoked compound action potentials', 'Pelvic nerve implantation, testing and processing in awake rats'], 'protocol.io location': ['10.17504/protocols.io.bakjicun', '10.17504/protocols.io.bfwyjpfw', '10.17504/protocols.io.bgrmjv46']}

subjects per group:
 experimental group
cystometry + stimulation    10
chronic ECAP                 7
acute ECAP                   5
colon pressure recording     3
cystometry only              2
long term cystometry         2
total subjects: 29 (the paper reports 24 rats in all)
In [3]:
for folder in ["primary", "derivative", "code", "docs", "protocol"]:
    m = P.read_excel(f"files/{folder}/manifest.xlsx")
    print(folder, len(m), "rows; columns", m.columns.tolist())
    if folder != "primary":
        print(m.to_string())
readme = P.read_bytes("files/README.txt").decode()
print([l for l in readme.splitlines() if "c-Fos" in l])
print("files whose name mentions fos, atf, histolog or image:",
      [p for p in man if any(k in p.lower() for k in ["fos", "atf", "histo", "tif", "jpg", "czi"])])
primary 56 rows; columns ['filename', 'timestamp', 'description', 'file type', 'Additional Metadata']
derivative 3 rows; columns ['filename', 'timestamp', 'description', 'file type', 'Additional Metadata']
                      filename                         timestamp  description file type  Additional Metadata
0      chronic-impedances.pzfx  2021-01-27T14:41:55,849926+10:00          NaN     .pzfx                  NaN
1  cystometry-analysis.nb.html  2021-06-08T12:38:43,068805+10:00          NaN     .html                  NaN
2      cystometry-dataset.xlsx  2021-06-08T12:38:39,204284+10:00          NaN     .xlsx                  NaN
code 2 rows; columns ['filename', 'timestamp', 'description', 'file type', 'Additional Metadata']
                  filename                         timestamp  description file type  Additional Metadata
0            view_waves.py  2021-06-04T10:01:30,990902+10:00          NaN       .py                  NaN
1  cystometry-analysis.rmd  2021-06-08T12:38:45,180515+10:00          NaN      .rmd                  NaN
docs 3 rows; columns ['filename', 'timestamp', 'description', 'file type', 'Additional Metadata']
                      filename                         timestamp  description file type  Additional Metadata
0  hdf5_cystometry_schema.json  2021-02-11T13:54:28,426791+10:00          NaN     .json                  NaN
1        hdf5_ECAP_schema.json  2021-02-11T13:53:06,233753+10:00          NaN     .json                  NaN
2   hdf5_recording_schema.json  2021-02-11T13:55:35,035732+10:00          NaN     .json                  NaN
protocol 1 rows; columns ['filename', 'timestamp', 'description', 'file type', 'Additional Metadata']
                  filename                         timestamp  description file type  Additional Metadata
0  Timon SPARC default.pxp  2018-03-28T11:14:23,067277+10:00          NaN      .pxp                  NaN
['- Summary derived data from c-Fos activation mapping suggesting absence of noxious spinal cord activation in response to chronically implanted arrays.']
files whose name mentions fos, atf, histolog or image: ['banner.jpg']

ECAP recordings¶

Five acute rats (urethane, acute ECAP) and seven chronic recordings (chronic ECAP, recording day 0 or 7). Every trace's attributes are read and checked against the Methods (100 kHz sampling, 300 to 5000 Hz filter, stimulation on E1-E2 and recording on E3-E4, currents 0 to 2 mA in 0.1 mA steps, two sets of 50 averages).

In [4]:
E = {}
rows = []
for s in P.ACUTE + P.CHRONIC:
    tab, X, t, a = P.load_ecap(s)
    E[s] = (tab, X, t, a)
    L = P.ecap_levels(tab, X)
    day = int(sj.set_index("subject_id").loc["sub-" + s, "Recording Day (post-surgery)"])
    rows.append(dict(sub=s, group="acute" if s in P.ACUTE else "chronic", day=day,
                     traces=len(tab), currents=len(L), pair=tab.pair.iloc[0],
                     rec=a["SourceChannel"].decode(), fs_kHz=a["SampleRate"] / 1000,
                     filt=f'{a["FilterLowCorner"]:.0f}-{a["FilterHighCorner"]:.0f} {a["FilterUnits"].decode()}',
                     averages=a["Averages"], t0_ms=t[0], t1_ms=round(t[-1], 3),
                     units=a["WaveUnits"].decode(),
                     min_mA=round(L[0][0], 4), max_mA=round(L[-1][0], 3),
                     noise_uV=round(P.noise_sd(L, t), 3),
                     trials_gt2=int((tab.trial > 2).sum())))
ecap_meta = pd.DataFrame(rows)
print(ecap_meta.to_string())
for s in ["12-005", "12-051"]:
    print(s, "currents (mA):", np.round([l[0] for l in P.ecap_levels(*E[s][:2])], 3))
       sub    group  day  traces  currents pair  rec  fs_kHz         filt  averages  t0_ms  t1_ms units  min_mA  max_mA  noise_uV  trials_gt2
0   12-005    acute    0      36        16  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0175   1.599     0.024           4
1   12-006    acute    0      34        17  E21  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0175   1.599     0.026           0
2   12-007    acute    0      32        16  E21  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.1065   1.599     0.058           0
3   12-008    acute    0      38        19  E43  E12   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0175   1.599     0.234           0
4   12-010    acute    0      38        19  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0175   1.599     0.200           0
5   12-050  chronic    0      22        11  E34  E12   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0000   1.000     0.225           0
6   12-051  chronic    0      43        21  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0000   2.000     0.277           1
7   12-052  chronic    0      42        21  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0000   2.000     0.214           0
8   12-053  chronic    7      36        17  E34  E12   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0000   2.000     0.234           2
9   12-055  chronic    7      38        19  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0175   1.599     0.032           0
10  12-056  chronic    0      34        17  E34  E12   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0742   1.599     0.667           0
11  12-057  chronic    7      36        18  E12  E34   200.0  500-3000 Hz      50.0    0.6    8.6    mV  0.0742   1.599     0.705           0
12-005 currents (mA): [0.018 0.107 0.128 0.153 0.183 0.219 0.263 0.315 0.452 0.541 0.648 0.776
 0.93  1.114 1.335 1.599]
12-051 currents (mA): [0.  0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.  1.1 1.2 1.3 1.4 1.5 1.6 1.7
 1.8 1.9 2. ]
In [5]:
# Every attribute of every trace and of /Stimuli, per file (values that differ between
# traces of a file are listed together), and the deposited schema of the ECAP files.
for s in P.ACUTE + P.CHRONIC:
    with P.h5(f"files/primary/sub-{s}/sub-{s}_ECAP.hdf5") as f:
        att = {}
        for n in f["ECAPs"]:
            for k, v in f["ECAPs"][n].attrs.items():
                att.setdefault(k, set()).add(str(np.asarray(v).ravel()[0]))
        st = {k: str(np.asarray(v).ravel()[0]) for k, v in f["Stimuli"].attrs.items()}
        root = dict(f.attrs)
    print(s, {k: sorted(v) for k, v in att.items()}, "| Stimuli:", st, "| root attrs:", root)
X_all = np.concatenate([E[s][1].ravel() for s in E])
print("largest |value| over all traces: %.4f mV (%.1f uV)" % (np.abs(X_all).max() / 1000, np.abs(X_all).max()))
print(P.read_bytes("files/docs/hdf5_ECAP_schema.json").decode())
12-005 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-006 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E2'", 'ElectrodeReturn': "b'E1'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-007 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E2'", 'ElectrodeReturn': "b'E1'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-008 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E12'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E4'", 'ElectrodeReturn': "b'E3'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-010 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-050 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E12'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E3'", 'ElectrodeReturn': "b'E4'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-051 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-052 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-053 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E12'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E3'", 'ElectrodeReturn': "b'E4'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-055 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-056 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E12'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E3'", 'ElectrodeReturn': "b'E4'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
12-057 {'Averages': ['50.0'], 'Duration': ['8.0'], 'FilterHighCorner': ['3000.0'], 'FilterLowCorner': ['500.0'], 'FilterOrder': ['4.0'], 'FilterType': ["b'butter'"], 'FilterUnits': ["b'Hz'"], 'SampleRate': ['200000.00000000003'], 'SourceChannel': ["b'E34'"], 'StartTime': ['0.6000000000000001'], 'TimeUnits': ["b'ms'"], 'WaveUnits': ["b'mV'"]} | Stimuli: {'ElectrodeActive': "b'E1'", 'ElectrodeReturn': "b'E2'", 'StimIpg': '0.05', 'StimIpgUnits': "b'ms'", 'StimPw': '0.1', 'StimPwUnits': "b'ms'", 'StimRate': '10.0', 'StimRateUnits': "b'Hz'", 'StimShape': "b'symmetric biphasic'"} | root attrs: {}
largest |value| over all traces: 1.1294 mV (1129.4 uV)
// HDF5 sub-###_ECAP.hdf5 

Group "/" 
    Group "/ECAPs" 
        Dataset "Stim_E12_CL0_trial1" (1 ... nTrial)
            Size:  (time)x1
            Attributes:
                "SourceChannel":  "E34"
                "StartTime":  0.600000 
                "Duration":  8.000000 
                "SampleRate":  200000.000000 
                "Averages":  50.000000 
                "WaveUnits":  "mV"
                "TimeUnits":  "s"
                "FilterHighCorner":  3000.000000 
                "FilterLowCorner":  500.000000 
                "FilterOrder":  4.000000 
                "FilterType":  "butter"
                "FilterUnits":  "Hz"
        Dataset "Stim_E12_CL0_trial2" ... 

    Group "/Stimuli" 
        Attributes:
            "ElectrodeActive":  "E1"
            "ElectrodeReturn":  "E2"
            "StimRate":  10.000000 
            "StimRateUnits":  "Hz"
            "StimPw":  0.100000  // pulsewidth
            "StimPwUnits":  "ms"
            "StimIpg":  0.050000 // inter-phase gap 
            "StimIpgUnits":  "ms"
            "StimShape":  "symmetric biphasic"

        Dataset "Stim" 
            Size:  (nTrial)x1
            Attributes: "Units":  "mA"
        Dataset "StimCL"  
            Size:  (nTrial)x1
        Dataset "Trial"
            Size:  (nTrial)x1
        Dataset "id" 
            Size:  (nTrial)x1

No trace or file attribute names a gain, and the schema gives none; the Methods give a voltage gain of 10^2. Whether the stored mV are before or after that gain cannot be told from the files. The schema gives TimeUnits "s" for a StartTime of 0.6 and a Duration of 8, while the files say "ms"; it does not say where time zero is. Both are open: the time origin is run under the claims file's two readings, and a gain of 100 in the stored values is run as a variant of the threshold (a pass level of 5 uV in the stored units).

In [6]:
# Recordings deposited twice: compare every trace with every other across files.
import hashlib
h = {}
for s, (tab, X, t, a) in E.items():
    for i in range(len(tab)):
        h.setdefault(hashlib.md5(np.round(X[i], 9).tobytes()).hexdigest(), []).append((s, tab.name[i]))
dups = [v for v in h.values() if len(v) > 1]
print("ECAP traces:", sum(len(v) for v in h.values()), "identical groups:", len(dups))
for d in dups[:10]:
    print(d)
# whole-file similarity: correlation of the mean trace at the highest current between files
tw = (E["12-005"][2] >= 1.2) & (E["12-005"][2] <= 7.0)
M = {s: (lambda L: (L[-1][1] + L[-1][2]) / 2)(P.ecap_levels(*E[s][:2]))[tw] for s in E}
C = pd.DataFrame([[np.corrcoef(M[a], M[b])[0, 1] for b in E] for a in E], index=list(E), columns=list(E))
print("correlation of the mean trace at the highest current, 1.2 to 7 ms, between files:")
print(C.round(2).to_string())
ECAP traces: 429 identical groups: 0
correlation of the mean trace at the highest current, 1.2 to 7 ms, between files:
        12-005  12-006  12-007  12-008  12-010  12-050  12-051  12-052  12-053  12-055  12-056  12-057
12-005    1.00   -0.17   -0.48   -0.52    0.19   -0.43   -0.25    0.08    0.52   -0.28   -0.26    0.44
12-006   -0.17    1.00    0.14   -0.04    0.41   -0.35    0.06   -0.62   -0.14    0.13    0.16   -0.07
12-007   -0.48    0.14    1.00    0.79   -0.45    0.62    0.71    0.17   -0.70    0.74    0.67   -0.90
12-008   -0.52   -0.04    0.79    1.00   -0.65    0.67    0.67    0.25   -0.77    0.64    0.74   -0.79
12-010    0.19    0.41   -0.45   -0.65    1.00   -0.61   -0.35   -0.30    0.57   -0.28   -0.51    0.50
12-050   -0.43   -0.35    0.62    0.67   -0.61    1.00    0.50    0.36   -0.57    0.37    0.49   -0.67
12-051   -0.25    0.06    0.71    0.67   -0.35    0.50    1.00    0.34   -0.62    0.92    0.55   -0.90
12-052    0.08   -0.62    0.17    0.25   -0.30    0.36    0.34    1.00   -0.09    0.29    0.10   -0.28
12-053    0.52   -0.14   -0.70   -0.77    0.57   -0.57   -0.62   -0.09    1.00   -0.63   -0.52    0.76
12-055   -0.28    0.13    0.74    0.64   -0.28    0.37    0.92    0.29   -0.63    1.00    0.47   -0.89
12-056   -0.26    0.16    0.67    0.74   -0.51    0.49    0.55    0.10   -0.52    0.47    1.00   -0.68
12-057    0.44   -0.07   -0.90   -0.79    0.50   -0.67   -0.90   -0.28    0.76   -0.89   -0.68    1.00

Clock check for the ECAPs. Each trace is aligned to its stimulus pulse (it starts 0.6 ms after the pulse onset, by its StartTime attribute). If the responses are time-locked to the pulse, the response window (1.2 to 6 ms) grows with current while a late window (7 to 8.6 ms) does not. Spearman correlation of the RMS in each window with current, per file.

In [7]:
rows = []
for s, (tab, X, t, a) in E.items():
    L = P.ecap_levels(tab, X)
    cur = [l[0] for l in L]
    def rms(x, lo, hi):
        y = x - P.baseline(x, t); return float(np.sqrt(np.mean(y[(t >= lo) & (t <= hi)] ** 2)))
    early = [rms((r1 + r2) / 2, 1.2, 6.0) for _, r1, r2 in L]
    late = [rms((r1 + r2) / 2, 7.0, 8.6) for _, r1, r2 in L]
    rows.append(dict(sub=s, rho_response=stats.spearmanr(cur, early)[0],
                     p_response=stats.spearmanr(cur, early)[1],
                     rho_late=stats.spearmanr(cur, late)[0],
                     rms_resp_top_uV=early[-1], rms_resp_lowest_uV=early[0]))
print(pd.DataFrame(rows).round(4).to_string())
       sub  rho_response  p_response  rho_late  rms_resp_top_uV  rms_resp_lowest_uV
0   12-005        0.9794      0.0000    0.8647           0.2472              0.0199
1   12-006        0.9510      0.0000    0.8873           3.8509              0.0170
2   12-007        0.9912      0.0000    0.5206           0.3240              0.0472
3   12-008        0.8368      0.0000    0.2351           2.3462              0.1772
4   12-010        0.9982      0.0000    0.5000           9.2025              0.1377
5   12-050        0.4727      0.1420    0.1455           6.1660              0.1648
6   12-051        0.3208      0.1563    0.7143           0.7837              0.2137
7   12-052        0.8974      0.0000    0.8273           1.5381              0.1643
8   12-053        0.7794      0.0002    0.8799           0.4854              0.1902
9   12-055        0.9474      0.0000    0.5509           0.2670              0.0255
10  12-056        0.9779      0.0000    0.2500           2.8937              0.5007
11  12-057        0.7544      0.0003    0.0196          17.5774              0.7237
In [8]:
fig, axs = plt.subplots(3, 4, figsize=(18, 13))
for ax, s in zip(axs.ravel(), E):
    tab, X, t, a = E[s]
    L = P.ecap_levels(tab, X)
    sc = np.percentile(np.abs(X[:, t > 1.2]), 99)
    for k, (mA, r1, r2) in enumerate(L):
        ax.plot(t, (r1 + r2) / 2 / sc * 0.5 + k, lw=0.6)
    ax.set_ylim(-1, len(L) + 1); ax.set_xlim(0.6, 8.6)
    ax.set_title(f"{s}: one row per current, {L[0][0]:.3f} to {L[-1][0]:.2f} mA", fontsize=9)
    ax.set_xlabel("ms from pulse onset")
plt.tight_layout(); plt.show()
print("Each trace is scaled by the 99th percentile of |V| after 1.2 ms of its file; traces "
      "within 0.6 to 1.2 ms (artefact) run off the rows.")
No description has been provided for this image
Each trace is scaled by the 99th percentile of |V| after 1.2 ms of its file; traces within 0.6 to 1.2 ms (artefact) run off the rows.

Cystometry recordings¶

Each *_cystometry.hdf5 holds bladder pressure (/Cystometry), the voids its authors marked (/Voids) and, in four rats, the stimulation trains (/Stimuli). The derivative table cystometry-dataset.xlsx holds the Table 1 parameters for three cycles per rat.

In [9]:
CY = {}
rows = []
for s in P.CYSTO:
    W, V, S = P.load_cysto(s)
    CY[s] = (W, V, S)
    r = sj.set_index("subject_id").loc["sub-" + s]
    rows.append(dict(sub=s, group=r["experimental group"], day=r["Recording Day (post-surgery)"],
                     waves=len(W), fs=sorted({w["attrs"]["SampleRate"] for w in W}),
                     units=sorted({w["attrs"]["WaveUnits"].decode() for w in W}),
                     channel=sorted({w["attrs"]["SourceChannel"].decode() for w in W}),
                     minutes=round(sum(w["t"][-1] - w["t"][0] for w in W) / 60, 1),
                     p_min=round(min(np.nanmin(w["p"]) for w in W), 1),
                     p_max=round(max(np.nanmax(w["p"]) for w in W), 1),
                     voids=len(V), stim_trains=0 if S is None else len(S),
                     stim_mA=None if S is None else sorted(set(np.round(S["Stim"], 2)) if "Stim" in S else {S.attrs.get("Stim")}),
                     offset=sorted({w["attrs"].get("AppliedOffset", np.nan) for w in W})))
cy_meta = pd.DataFrame(rows)
print(cy_meta.to_string())
print("rats with stimulation trains:", list(cy_meta[cy_meta.stim_trains > 0]["sub"]))
       sub                     group  day  waves        fs   units             channel  minutes  p_min  p_max  voids  stim_trains                 stim_mA      offset
0   18-196  cystometry + stimulation   14      3  [1000.0]  [mmHg]         [Channel 2]     42.2   37.4   60.3      4            1                   [1.1]       [nan]
1   18-208  cystometry + stimulation   15      2  [1000.0]  [mmHg]         [Channel 2]     19.9   -1.8   52.6      4            0                    None    [0.1312]
2   18-243  cystometry + stimulation   15      2  [1000.0]  [mmHg]         [Channel 2]     39.5    9.9   63.2      4            1                  [0.65]  [-20.8618]
3   18-248  cystometry + stimulation   11      1  [1000.0]  [mmHg]         [Channel 2]     19.8   11.9   60.4      3            0                    None  [-14.1192]
4   18-262  cystometry + stimulation   10      2  [1000.0]  [mmHg]         [Channel 2]     66.8    7.9   88.0      8            2                  [0.95]   [-3.6519]
5   18-270  cystometry + stimulation    9      1  [1000.0]  [mmHg]         [Channel 2]     15.7    7.6  102.0      3            0                    None   [-0.3134]
6   18-273  cystometry + stimulation   16      1  [1000.0]  [mmHg]         [Channel 2]     40.5    9.6   62.0      5            0                    None       [nan]
7   18-290           cystometry only   10      1  [1000.0]  [mmHg]         [Channel 2]     46.5    8.4   81.2      5            0                    None       [nan]
8   18-291           cystometry only   14      1  [1000.0]  [mmHg]         [Channel 2]     41.2    5.2   58.4      4            0                    None       [nan]
9   18-294  cystometry + stimulation   13      1  [1000.0]  [mmHg]         [Channel 2]     28.1    7.3   38.6      5            5  [0.8, 0.95, 1.1, 1.25]    [0.3061]
10  12-081  cystometry + stimulation    7      1   [100.0]  [mmHg]        [w_Pressure]     47.6  -18.2   34.8      3            0                    None       [nan]
11  12-083  cystometry + stimulation    7      1   [100.0]  [mmHg]        [w_Pressure]     22.3   -6.2   51.4      3            0                    None       [nan]
12  15-759      long term cystometry   64      1   [100.0]  [mmHg]  [Bladder Pressure]     53.8   -6.3   24.6      4            0                    None       [nan]
13  15-760      long term cystometry   48      2   [100.0]  [mmHg]  [Bladder Pressure]     44.9  -22.3   85.0      8            0                    None       [nan]
rats with stimulation trains: ['18-196', '18-243', '18-262', '18-294']
In [10]:
dv = P.read_excel("files/derivative/cystometry-dataset.xlsx")
print(dv.columns.tolist(), len(dv))
print(dv.groupby("subject_id").agg(file=("file", "first"), cycles=("cycle", "nunique"),
                                   rows=("value", "size"), missing=("value", lambda x: int(x.isna().sum()))).to_string())
print(dv.groupby(["parameter_id", "parameter"]).value.agg(["count", "min", "max"]).round(2).to_string())
# relative pressures are absolute minus minimum, as the Methods say
w = dv.pivot_table(index=["subject_id", "cycle"], columns="parameter_id", values="value")
print("max |init - eov - init_rel|:", float(np.nanmax(np.abs(w.mmhg_init - w.mmhg_eov - w.mmhg_init_rel))),
      " max |peak - eov - peak_rel|:", float(np.nanmax(np.abs(w.mmhg_peak - w.mmhg_eov - w.mmhg_peak_rel))))
['subject_id', 'file', 'cycle', 'parameter', 'parameter_id', 'value'] 216
                                              file  cycles  rows  missing
subject_id                                                               
12_081                             datafile005.ns2       3    24        3
12_083                             datafile003.ns2       3    24        3
R18-208                R18-208 run 29032018.adicht       3    24        0
R18-243         R18-243 run 23052018 edited.adicht       3    24        0
R18-248     R18-248 run 25052018run2 edited.adicht       3    24        0
R18-262         R18-262 run 07062018 edited.adicht       3    24        0
R18-270         R18-270 run 08062018 edited.adicht       3    24        0
R18-273                    R18-273 20062018.adicht       3    24        1
R18-294                    R18-294 09072018.adicht       3    24        0
                                                           count    min     max
parameter_id      parameter                                                    
contraction_dur_s Contraction duration (s)                    26  13.11  134.19
eus_freq          HFPO freq (Hz)                              21   7.63   16.95
ivi_minute        Inter-void interval (min)                   27   3.92    9.92
mmhg_eov          Minimum pressure (mmHg)                     27   3.24   18.82
mmhg_init         Threshold (closing) pressure (mmHg)         27   9.04   26.47
mmhg_init_rel     Relative threshold pressure (mmHg)          27  -1.59   13.62
mmhg_peak         Maximum pressure (mmHg)                     27  28.99  101.61
mmhg_peak_rel     Relative peak (closing) pressure (mmHg)     27  20.54   90.97
max |init - eov - init_rel|: 8.881784197001252e-15  max |peak - eov - peak_rel|: 1.4210854715202004e-14

The derivative names its rats R18-208 and 12_081; the primary folders are sub-18-208 and sub-12-081. The match is by number. The derivative's values are compared with the primary /Voids of the same rats below, to see whether the derivative was computed from the deposited recordings.

In [11]:
def to_sub(x):
    return x.replace("R", "").replace("_", "-")
rows = []
for sid, g in dv.groupby("subject_id"):
    s = to_sub(sid)
    V = CY[s][1]
    d = g.pivot_table(index="cycle", columns="parameter_id", values="value")
    for c in d.index:
        v = V.iloc[c - 1]
        rows.append(dict(sub=s, cycle=c, deriv_peak=d.loc[c, "mmhg_peak"], voids_peak=v.PeakPressure,
                         deriv_thr=d.loc[c, "mmhg_init"], voids_thr=v.ThresholdPressure,
                         deriv_dur=d.loc[c, "contraction_dur_s"], voids_dur=v.ContractionDuration,
                         deriv_ivi_min=d.loc[c, "ivi_minute"],
                         voids_ivi_min=v.VoidInterval / 60 if "VoidInterval" in V else np.nan))
cmp = pd.DataFrame(rows)
print(cmp.round(2).to_string())
print("cycles where the derivative peak pressure equals the /Voids peak within 0.5 mmHg:",
      int((np.abs(cmp.deriv_peak - cmp.voids_peak) < 0.5).sum()), "of", len(cmp))
       sub  cycle  deriv_peak  voids_peak  deriv_thr  voids_thr  deriv_dur  voids_dur  deriv_ivi_min  voids_ivi_min
0   12-081      1       45.72       26.90      25.14       6.32      27.00      27.00           5.86            NaN
1   12-081      2       43.77       25.30      25.89       7.42      20.80      20.80           5.91            NaN
2   12-081      3       45.28       27.28      24.65       6.65      21.00      21.00           6.54            NaN
3   12-083      1       59.32       45.71      20.27       6.66      27.59      27.59           7.93            NaN
4   12-083      2       53.92       37.77      25.47       9.32      31.71      31.71           6.44            NaN
5   12-083      3       63.03       45.63      24.52       7.11      24.70      24.70           6.50            NaN
6   18-208      1       50.96       45.01       9.04       7.60      17.80      16.35           4.65           3.67
7   18-208      2       53.00       49.96      11.29       8.04      14.66      17.80           5.18           4.65
8   18-208      3       53.64       52.00      11.95      10.29      15.94      14.66           7.78           5.18
9   18-243      1       59.62       38.62      26.47       5.47      28.04      28.04           5.93           5.93
10  18-243      2       52.21       28.04      21.09       3.60      96.25      23.94           3.92           9.40
11  18-243      3       53.92       42.21      24.12      -0.64      23.98      28.48           6.56           3.57
12  18-248      1       53.35       38.35      17.61       2.61      30.10      30.10           8.45           8.45
13  18-248      2       61.08       46.08      18.83       3.83      23.08      23.08           7.10           7.10
14  18-248      3       57.05       42.05      21.11       6.11      22.12      22.12           8.45           8.45
15  18-262      1       74.18       69.83      18.66      13.49      23.58      25.92           6.97           7.01
16  18-262      2       80.06       54.03      17.85      14.13      28.08      22.97           7.05           6.16
17  18-262      3       69.76       70.08      14.58      14.56      34.88      23.58           6.76           6.97
18  18-270      1       93.62       93.62      18.47      18.47      35.72      35.72           6.14           6.14
19  18-270      2       67.28       67.28      18.31      18.31      14.62      14.62           6.30           6.30
20  18-270      3      101.61      101.61      18.72      18.72      23.92      23.92           5.32           5.32
21  18-273      1       61.89       54.69      20.42      17.06      28.14      36.37           9.92           8.82
22  18-273      2       60.72       45.72      17.86      15.05     134.19     304.93           9.73           6.37
23  18-273      3       57.74       61.89      12.73      20.42        NaN      28.14           7.52           9.92
24  18-294      1       38.63       27.00      13.66      13.11      13.11      12.68           5.34           7.11
25  18-294      2       28.99       38.81      11.94      13.11      13.14      13.99           4.62           6.45
26  18-294      3       34.51       38.63      14.29      13.66      13.72      13.11           7.01           5.34
cycles where the derivative peak pressure equals the /Voids peak within 0.5 mmHg: 4 of 27

Clock check for the cystometry stimulation. In the four rats with stimulation trains, the bladder pressure change over the 60 s after each train onset (mean of the 60 s after minus the mean of the 30 s before) is compared with the same measure at times shifted by 150 s, 300 s and 450 s, which do not follow a train.

In [12]:
def pchange(W, t0, pre=30, post=60):
    for w in W:
        t, p = w["t"], w["p"]
        if t[0] <= t0 - pre and t0 + post <= t[-1]:
            return float(np.nanmean(p[(t >= t0) & (t < t0 + post)]) - np.nanmean(p[(t >= t0 - pre) & (t < t0)]))
    return np.nan
rows = []
for s in cy_meta[cy_meta.stim_trains > 0]["sub"]:
    W, V, S = CY[s]
    times = S["Time"].values if "Time" in S else np.array([S.attrs["Time"]])
    for t0 in times:
        rows.append(dict(sub=s, onset=t0, change_at_train=pchange(W, t0),
                         change_shifted=np.nanmean([pchange(W, t0 + d) for d in (150, 300, 450)]) if np.isfinite([pchange(W, t0 + d) for d in (150, 300, 450)]).any() else np.nan))
cc = pd.DataFrame(rows)
print(cc.round(2).to_string())
print("median change after trains %.2f mmHg, at shifted times %.2f mmHg" %
      (cc.change_at_train.median(), cc.change_shifted.median()))
      sub     onset  change_at_train  change_shifted
0  18-196   3798.80             1.31             NaN
1  18-243   7432.94            12.53            2.95
2  18-262  11396.52             2.87           -1.16
3  18-262  11457.32            16.74           -0.35
4  18-294   1520.44             0.37            2.08
5  18-294   1579.44             0.92           -2.22
6  18-294   1637.24             3.90            0.29
7  18-294   2209.84            -0.04            1.11
8  18-294   2267.84             1.93            0.44
median change after trains 1.93 mmHg, at shifted times 0.37 mmHg

Colonic pressure recordings¶

Three urethane-anaesthetised rats (colon pressure recording), colonic balloon pressure with the stimulation trains. The Methods give 10 Hz, 100 us pulses at 1 mA.

In [13]:
COL = {}
rows = []
for s in P.COLON:
    with P.h5(f"files/primary/sub-{s}/sub-{s}_recording.hdf5") as f:
        d = f["ColonPressure"]["Wave01"]
        a = {k: np.asarray(v).ravel()[0] for k, v in d.attrs.items()}
        p = d[()].ravel()
        tt = float(a["StartTime"]) + np.arange(p.size) / float(a["SampleRate"])
        St = f["Stimuli"]["Time"][()].ravel()
        sa = {k: np.asarray(v).ravel()[0] for k, v in f["Stimuli"].attrs.items()}
    csv = P.read_csv(f"files/primary/sub-{s}/sub-{s}_stimuli.csv")
    assert np.allclose(csv.time_s.values, St)
    COL[s] = (tt, p, St, sa)
    rows.append(dict(sub=s, fs=a["SampleRate"], units=a["WaveUnits"].decode(),
                     channel=a["SourceChannel"].decode(), seconds=round(tt[-1], 1),
                     p_range=(round(np.nanmin(p), 1), round(np.nanmax(p), 1)), nan_samples=int(np.isnan(p).sum()), stim_entries=len(St),
                     min_gap_s=round(np.diff(St).min(), 2), mA=sa["Stim"], pw_ms=sa["StimPw"],
                     rate_Hz=sa["StimRate"], train_s=round(sa["StimDuration"], 2),
                     pulses=sa["StimCount"]))
print(pd.DataFrame(rows).to_string())
      sub     fs units                      channel  seconds       p_range  nan_samples  stim_entries  min_gap_s     mA  pw_ms  rate_Hz  train_s  pulses
0  12-019  100.0  mmHg                   w_Pressure    150.4   (0.4, 74.8)            0             8       4.16  1.114  0.200     10.0     4.00    40.0
1  12-020  100.0  mmHg                   w_Pressure    473.4   (0.2, 87.8)            0            14       5.17  1.114  0.200     10.0     5.00    50.0
2  15-758  100.0  mmHg  w_offTarget_3_aux2_cal_filt   3600.0  (32.2, 36.6)           60            33      87.44  0.541  0.025     15.0    10.01   150.0
In [14]:
fig, axs = plt.subplots(3, 1, figsize=(15, 9))
for ax, s in zip(axs, P.COLON):
    tt, p, St, sa = COL[s]
    ax.plot(tt, p, lw=0.5)
    for t0 in St:
        ax.axvspan(t0, t0 + sa["StimDuration"], color="r", alpha=0.2)
    ax.set_title(f"{s}: colonic pressure (mmHg), trains shaded; range {np.nanmin(p):.1f} to {np.nanmax(p):.1f}")
plt.tight_layout(); plt.show()
No description has been provided for this image

Clock check for the colonic recordings. Mean pressure in 2 s bins from 30 s before to 40 s after each recorded stimulus time, relative to the mean 30 to 40 s before it.

In [15]:
lags = np.arange(-30, 40, 2.0)
ETA = {}
for s in P.COLON:
    tt, p, St, sa = COL[s]
    ETA[s] = [np.nanmean([np.nanmean(p[(tt >= t0 + l) & (tt < t0 + l + 2)]) - np.nanmean(p[(tt >= t0 - 40) & (tt < t0 - 30)])
                          for t0 in St if t0 - 40 >= tt[0] and t0 + 40 <= tt[-1]]) for l in lags]
print(pd.DataFrame(ETA, index=[f"{l:+.0f} s" for l in lags]).round(2).T.to_string())
        -30 s  -28 s  -26 s  -24 s  -22 s  -20 s  -18 s  -16 s  -14 s  -12 s  -10 s  -8 s  -6 s  -4 s  -2 s   +0 s   +2 s   +4 s   +6 s   +8 s  +10 s  +12 s  +14 s  +16 s  +18 s  +20 s  +22 s  +24 s  +26 s  +28 s  +30 s  +32 s  +34 s  +36 s  +38 s
12-019   1.12   0.72   1.43   1.06   1.82   2.34   2.13   2.31   1.64   1.69   4.09  4.71  8.18  8.05  9.67  13.02  12.92  17.88  15.33  13.55  11.76   7.03   6.06   5.15   4.75   6.49   6.33   8.96  10.98  12.18  15.59  11.99  11.34   7.81   4.32
12-020  -0.25   0.83  -1.29  -1.54  -1.15  -1.92  -2.77  -2.96  -3.51  -4.10  -4.29 -4.43 -4.97 -4.18 -3.52  -3.13  -2.32  -1.80  -1.04  -0.01   0.67   1.58   2.06   1.11   0.35  -0.66  -2.43  -3.23  -3.76  -4.74  -5.45  -5.47  -6.09  -6.51  -6.56
15-758  -0.01  -0.03  -0.01  -0.02  -0.05  -0.06  -0.03  -0.04  -0.07  -0.07   0.28  0.69  0.67  0.61  0.65   0.27   0.02   0.02  -0.01  -0.03  -0.01  -0.02  -0.03  -0.02  -0.00   0.00   0.00   0.01  -0.01  -0.01  -0.00  -0.01  -0.04  -0.03   0.01

In 15-758 the pressure rises by about 0.65 mmHg in the 10 s before each recorded stimulus time and returns to baseline at that time; the recorded times are 10 s apart from the response, the length of one train. Either the times mark the end of each train, or they are offset by 10 s. The files do not say which. In 12-019 and 12-020 the averages drift by several mmHg over tens of seconds, and no time-locked step stands out.

Impedances¶

Per-electrode impedances in sub-18-*_impedances.csv (eight rats) and the per-array values of the derivative chronic-impedances.pzfx (a GraphPad Prism file).

In [16]:
imp = []
for s in [x for x in P.CYSTO if f"files/primary/sub-{x}/sub-{x}_impedances.csv" in man]:
    d = P.read_csv(f"files/primary/sub-{s}/sub-{s}_impedances.csv")
    imp.append(d)
imp = pd.concat(imp, ignore_index=True)
imp = imp.rename(columns={"Z_e4": "Z_E4"})
print(imp.drop(columns=["subject"]).to_string())
Z = ["Z_E1", "Z_E2", "Z_E3", "Z_E4"]
print("value range (Ohm):", imp[Z].min().min(), "to", imp[Z].max().max(), "; arrays:", imp.ANIMAL.nunique())
pz = P.read_pzfx("files/derivative/chronic-impedances.pzfx")
print({k: v for k, v in pz.items()})
print("per-array columns, non-empty values:", {k: int(np.isfinite(v).sum()) for k, v in pz.items()})
     ANIMAL        DATE                  CONTEXT BOOK_ID  PAGE   Z_E1   Z_E2    Z_E3   Z_E4                                                                                                NOTE
0   R18-196  26/02/2018          pre implant PBS   131-5    21   4066   3498    3450   3450                                                                                  Electrode "Dec #2"
1   R18-196  13/03/2018             post surgery   131-5    31   7640   6482    9860   9120                                                                                  Electrode "Dec #2"
2   R18-196  15/03/2018                 recovery   131-5    31   6675   5670    8130   8130                                                                                                 NaN
3   R18-196  27/03/2018             pre stimulus   131-5    41  13800  13560   15630  16616                                                                                                 NaN
4   R18-196  28/03/2018             pre stimulus   131-5    45   6111   4555    5195   4655                                                                                  much lower values?
5   R18-208  26/02/2018          pre implant PBS   131-5    21   4928   4680    4214   5195                                                                                  Electrode "Dec #3"
6   R18-208  14/03/2018             post surgery   131-5    35   7440   7750    7050   8353                                                                                  Electrode "Dec #3"
7   R18-208  15/03/2018                 recovery   131-5    35   6160   5290    5670   7198                                                                     (assuming "15/5/18" was a typo)
8   R18-208  28/03/2018              habituation   119-1    69  10110  10035   13950  17260                                                                                     All values kOhm
9   R18-208  29/03/2018             pre stimulus   131-5    52  11090  10350    8430   9660                                                                    (using the second set of values)
10  R18-208  29/03/2018             mid stimulus   131-5    54  10874   8058    8380  10110                                                                                                 NaN
11  R18-208  29/03/2018             mid stimulus   131-5    55  49216  14864   12784  12670                                                                                                 NaN
12  R18-243  26/02/2018          pre implant PBS   131-5    21   5048   4430    4190   4430                                                                                  Electrode "Dec #4"
13  R18-243  08/05/2018             post surgery   131-5    60   8034   7174    7150   8082                                                                         Assuming Electrode "Dec #4"
14  R18-243  18/05/2018              habituation   119-1    84  10350  10134   14300  15530                                                                                                 NaN
15  R18-243  21/05/2018              habituation   119-1    86   9985   9120   11090  12964                                                                                                 NaN
16  R18-243  23/05/2018            post stimulus   119-1    90  10600   9345   12080  16270                                                                                 duplicated 131-5p73
17  R18-248  08/05/2018              pre implant   131-5    61   4706   4755    4190   4925                                                                Electrode # S1-3-5, assuming R18-248
18  R18-248  14/05/2018             post surgery   131-5    64   6675   6675    6602   7890                                                                         Assuming Electrode # S1-3-5
19  R18-248  23/05/2018              habituation   119-1    91  11830  15405   11758  14540                                                                                 duplicated 131-5p75
20  R18-248  24/05/2018            post stimulus   119-1    93  12330  15530   10945  11662                                                                                 duplicated 131-5p78
21  R18-248  25/05/2018            post stimulus   119-1    95  15040  18000   14075  13776                                                                                                 NaN
22  R18-262  28/05/2014             post surgery   131-5    82   8082   6700    8678   6825                                                                        Electrode # S1-3-6 (batch 3)
23  R18-262  08/05/2018              pre implant   131-5    61   4116   3450    3890   2758                                                                                  Electrode # S1-3-6
24  R18-262  06/06/2018         post habituation   131-5    93  55553  14764   15260  14543                                                                                                 NaN
25  R18-262  07/06/2018            post stimulus   131-5    97  15530  12330   13900  15250                                                                                                 NaN
26  R18-270  08/05/2018              pre implant   131-5    61   4680   3690    4190   4140                                                                                  Electrode # S1-3-8
27  R18-270  07/06/2018         post habituation   131-5   100  15530  13900   12330  12180                                                                                                 NaN
28  R18-273  31/05/2018  pre implant saline 0.9%   119-1   101   4680   3690    3690   3642                                                                        Electrode # S1-3-9 (batch 3)
29  R18-273  04/06/2018             post surgery   131-5    88   6110   5170    5002   5170                                                                        Electrode # S1-3-9 (batch 3)
30  R18-273  18/06/2018         post habituation   131-5   108   6650   5742  252270   9685                                                                                                 NaN
31  R18-273  19/06/2018          pre habituation   119-1   106   7441   6774  252270  12230                                                                                                 NaN
32  R18-273  20/06/2018             pre stimulus   131-5   109   6629   5840  252270  22487                                                              cystometry only with electrode implant
33  R18-294  14/06/2018  pre implant saline 0.9%   119-1   105   3716   1470    1230   1230                                                                                   Electrode #S1-3-7
34  R18-294  26/06/2018                  surgery   119-1   113   6234   5395    5395   5910                                                                                                 NaN
35  R18-294  05/07/2018              habituation   119-1   118  16565  15997   95405  19156                                                                                                 NaN
36  R18-294  06/07/2018            post stimulus   119-1   121  16470  15530   17800  16935                                                                                                 NaN
37  R18-294  09/07/2018            post stimulus   119-1   124  14545  11090   13085  14790  NW: always seem to get variable impedance results, they shift A LOT when the rat changes position.
38  R18-294  10/07/2018             pre stimulus   119-1   125  13560  11590    6650   8846                                                            NW: this is a lot better than yesterday?
39  R18-294  12/07/2018             pre stimulus   119-1   127  10110   7465    5670   5910                                                                                                 NaN
value range (Ohm): 1230 to 252270 ; arrays: 8
{'Saline impedance': [4131.0, 4730.0, 3616.0, 4754.0, 4525.0, 4044.0, 3926.0, 4817.0, 3865.0, 3716.0, 3158.0, 5027.0, nan], 'Post Surgery': [6641.0, 8276.0, 7648.0, 7610.0, 6961.0, 7571.0, 5363.0, 6112.0, 5314.0, 5734.0, 4539.0, 15176.0, nan], 'Chronic implanation': [6956.0, 14902.0, 9883.0, 12074.0, 12617.0, 14253.0, nan, 6235.0, nan, nan, 13378.0, 11827.0, 18317.0]}
per-array columns, non-empty values: {'Saline impedance': 12, 'Post Surgery': 12, 'Chronic implanation': 10}
In [17]:
print("subjects in subjects.xlsx not matched by any primary file:",
      [x for x in sj.subject_id if not any(p.startswith("files/primary/" + x + "/") for p in man)])
print("peak memory so far (GB): %.2f" % (resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6))
subjects in subjects.xlsx not matched by any primary file: []
peak memory so far (GB): 0.72

What the data check finds¶

  • The ECAP files are sampled at 200 kHz and carry a 500 to 3000 Hz 4th-order Butterworth filter, where the Methods state 100 kHz and 300 to 5000 Hz. The acute files step the current on a logarithmic scale (CL 80 to 250, about 0.074 to 1.60 mA, plus CL0 at 0.0175 mA), not 0 to 2 mA in 0.1 mA steps; four of the chronic files (12-050 to 12-053) do use 0.1 mA steps, to 1 or 2 mA. Stimulation is on E3-E4 with recording on E1-E2 in some files (12-008, 12-050, 12-053, 12-056), and in the reverse polarity (E2 to E1) in 12-006 and 12-007, where the Methods give E1-E2 for stimulation.
  • The noise SD (lowest current, after 1 ms) is 0.02 to 0.06 uV in four files and 0.2 to 0.7 uV in the others, so the paper's 0.05 uV threshold lies within three noise SDs in every file.
  • The seven chronic ECAP files are seven subject identifiers, four at day 0 and three at day 7. Nothing links a day-7 file to a day-0 file, so no rat can be followed from week 0 to week 1. The paper has three (Methods) or four (Results) awake rats.
  • The dataset lists 29 subjects; the paper reports 24 rats. pool_id is empty for every subject, and the experimental log file name is given only for the 18-* cystometry rats, so nothing in subjects.xlsx links the day-0 and day-7 awake ECAP files.
  • No ECAP attribute or schema entry gives the amplifier gain, and the ECAP schema gives TimeUnits "s" where the files have "ms"; it does not define time zero. The cystometry schema lists the /Voids columns with units only, without saying whether a void means urine release.
  • Stimulation trains are in four cystometry files (18-196, 18-243, 18-262, 18-294; 1 to 5 trains each); no file marks whether urine was released. The two 8-week rats (15-759, 15-760) have no stimulation. The README promises summary c-Fos data, which no file holds; there are no histology images or observation notes.
  • The colonic recordings were stimulated at 1.114 mA, 200 us, 10 Hz, 4 or 5 s (12-019, 12-020) and at 0.541 mA, 25 us, 15 Hz, 10 s (15-758), where the Methods give 1 mA, 100 us, 10 Hz (and the claims, 10 s trains).

The numbers behind each point are printed above.

Anaesthetised ECAPs¶

All six anaesthetised-ECAP claims use the same peak identification (an assumption: see the helper module's docstring). Candidates are the positive local maxima after the artefact end in the mean of the two recordings at the highest current, with prominence at least k noise SD (k = 2, 3, 5) and amplitude at least 0.05 uV. Four rules assign P1 to P3: first, the first three candidates in time (the main rule); largest, the three largest, in time order; window, the triple inside the paper's P1, P2 and P3 ranges (each widened by 10%) with the largest summed amplitude; inv, the first rule on the inverted traces. Each peak is then followed to lower currents as the local maximum nearest its latency within +-0.3 ms. The main reading is rule first, artefact end (a), k = 3.

In [18]:
A = {}
for rule in P.RULES:
    for art in "ab":
        for k in (2.0, 3.0, 5.0):
            for s in P.ACUTE:
                A[(rule, art, k, s)] = P.analyse_ecap(s, art=art, k_noise=k, rule=rule, windows=P.WINDOWS_ANES)
rows = []
for (rule, art, k, s), r in A.items():
    rows.append(dict(rule=rule, artefact=art, k_noise=k, sub=s, art_end_ms=round(r["art_end"], 2),
                     noise_uV=round(r["sd"], 3), n_peaks=len(r["lats"]),
                     latencies_ms=np.round(r["lats"], 2).tolist()))
peaks = pd.DataFrame(rows)
print(peaks.to_string())
print("\nrats with three peaks, by rule, artefact reading and margin:")
print(peaks.assign(three=peaks.n_peaks == 3).groupby(["rule", "artefact", "k_noise"]).three.sum().unstack().to_string())
        rule artefact  k_noise     sub  art_end_ms  noise_uV  n_peaks        latencies_ms
0      first        a      2.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
1      first        a      2.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
2      first        a      2.0  12-007        1.00     0.058        3   [1.12, 2.5, 3.36]
3      first        a      2.0  12-008        1.00     0.234        3  [1.36, 4.09, 4.81]
4      first        a      2.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
5      first        a      3.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
6      first        a      3.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
7      first        a      3.0  12-007        1.00     0.058        3   [1.12, 2.5, 4.15]
8      first        a      3.0  12-008        1.00     0.234        2        [1.36, 4.09]
9      first        a      3.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
10     first        a      5.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
11     first        a      5.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
12     first        a      5.0  12-007        1.00     0.058        2        [1.12, 4.15]
13     first        a      5.0  12-008        1.00     0.234        2        [1.36, 4.09]
14     first        a      5.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
15     first        b      2.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
16     first        b      2.0  12-006        0.72     0.026        3    [0.9, 1.36, 2.5]
17     first        b      2.0  12-007        0.91     0.058        3   [1.12, 2.5, 3.36]
18     first        b      2.0  12-008        0.69     0.234        3  [1.36, 4.09, 4.81]
19     first        b      2.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
20     first        b      3.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
21     first        b      3.0  12-006        0.72     0.026        3    [0.9, 1.36, 2.5]
22     first        b      3.0  12-007        0.91     0.058        3   [1.12, 2.5, 4.15]
23     first        b      3.0  12-008        0.69     0.234        2        [1.36, 4.09]
24     first        b      3.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
25     first        b      5.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
26     first        b      5.0  12-006        0.72     0.026        3    [0.9, 1.36, 2.5]
27     first        b      5.0  12-007        0.91     0.058        2        [1.12, 4.15]
28     first        b      5.0  12-008        0.69     0.234        2        [1.36, 4.09]
29     first        b      5.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
30   largest        a      2.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
31   largest        a      2.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
32   largest        a      2.0  12-007        1.00     0.058        3   [1.12, 2.5, 4.15]
33   largest        a      2.0  12-008        1.00     0.234        3  [1.36, 4.09, 4.81]
34   largest        a      2.0  12-010        1.00     0.200        3   [2.42, 4.64, 5.4]
35   largest        a      3.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
36   largest        a      3.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
37   largest        a      3.0  12-007        1.00     0.058        3   [1.12, 2.5, 4.15]
38   largest        a      3.0  12-008        1.00     0.234        2        [1.36, 4.09]
39   largest        a      3.0  12-010        1.00     0.200        3   [2.42, 4.64, 5.4]
40   largest        a      5.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
41   largest        a      5.0  12-006        1.00     0.026        3   [1.36, 2.5, 3.84]
42   largest        a      5.0  12-007        1.00     0.058        2        [1.12, 4.15]
43   largest        a      5.0  12-008        1.00     0.234        2        [1.36, 4.09]
44   largest        a      5.0  12-010        1.00     0.200        3   [2.42, 4.64, 5.4]
45   largest        b      2.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
46   largest        b      2.0  12-006        0.72     0.026        3    [0.9, 2.5, 3.84]
47   largest        b      2.0  12-007        0.91     0.058        3   [1.12, 2.5, 4.15]
48   largest        b      2.0  12-008        0.69     0.234        3  [1.36, 4.09, 4.81]
49   largest        b      2.0  12-010        1.02     0.200        3   [2.42, 4.64, 5.4]
50   largest        b      3.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
51   largest        b      3.0  12-006        0.72     0.026        3    [0.9, 2.5, 3.84]
52   largest        b      3.0  12-007        0.91     0.058        3   [1.12, 2.5, 4.15]
53   largest        b      3.0  12-008        0.69     0.234        2        [1.36, 4.09]
54   largest        b      3.0  12-010        1.02     0.200        3   [2.42, 4.64, 5.4]
55   largest        b      5.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
56   largest        b      5.0  12-006        0.72     0.026        3    [0.9, 2.5, 3.84]
57   largest        b      5.0  12-007        0.91     0.058        2        [1.12, 4.15]
58   largest        b      5.0  12-008        0.69     0.234        2        [1.36, 4.09]
59   largest        b      5.0  12-010        1.02     0.200        3   [2.42, 4.64, 5.4]
60    window        a      2.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
61    window        a      2.0  12-006        1.00     0.026        3   [2.5, 3.84, 5.83]
62    window        a      2.0  12-007        1.00     0.058        3   [2.5, 4.15, 6.23]
63    window        a      2.0  12-008        1.00     0.234        0                  []
64    window        a      2.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
65    window        a      3.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
66    window        a      3.0  12-006        1.00     0.026        0                  []
67    window        a      3.0  12-007        1.00     0.058        0                  []
68    window        a      3.0  12-008        1.00     0.234        0                  []
69    window        a      3.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
70    window        a      5.0  12-005        1.00     0.024        3  [2.34, 3.26, 4.22]
71    window        a      5.0  12-006        1.00     0.026        0                  []
72    window        a      5.0  12-007        1.00     0.058        0                  []
73    window        a      5.0  12-008        1.00     0.234        0                  []
74    window        a      5.0  12-010        1.00     0.200        3  [1.84, 2.42, 4.64]
75    window        b      2.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
76    window        b      2.0  12-006        0.72     0.026        3   [2.5, 3.84, 5.83]
77    window        b      2.0  12-007        0.91     0.058        3   [2.5, 4.15, 6.23]
78    window        b      2.0  12-008        0.69     0.234        0                  []
79    window        b      2.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
80    window        b      3.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
81    window        b      3.0  12-006        0.72     0.026        0                  []
82    window        b      3.0  12-007        0.91     0.058        0                  []
83    window        b      3.0  12-008        0.69     0.234        0                  []
84    window        b      3.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
85    window        b      5.0  12-005        1.19     0.024        3  [2.34, 3.26, 4.22]
86    window        b      5.0  12-006        0.72     0.026        0                  []
87    window        b      5.0  12-007        0.91     0.058        0                  []
88    window        b      5.0  12-008        0.69     0.234        0                  []
89    window        b      5.0  12-010        1.02     0.200        3  [1.84, 2.42, 4.64]
90       inv        a      2.0  12-005        1.00     0.024        3    [1.6, 2.8, 3.79]
91       inv        a      2.0  12-006        1.00     0.026        3    [1.8, 3.2, 4.83]
92       inv        a      2.0  12-007        1.00     0.058        2        [3.72, 4.92]
93       inv        a      2.0  12-008        1.00     0.234        2         [2.4, 5.84]
94       inv        a      2.0  12-010        1.00     0.200        3  [1.44, 3.49, 6.76]
95       inv        a      3.0  12-005        1.00     0.024        3    [1.6, 2.8, 3.79]
96       inv        a      3.0  12-006        1.00     0.026        3    [1.8, 3.2, 4.83]
97       inv        a      3.0  12-007        1.00     0.058        2        [3.72, 4.92]
98       inv        a      3.0  12-008        1.00     0.234        2         [2.4, 5.84]
99       inv        a      3.0  12-010        1.00     0.200        3  [1.44, 3.49, 6.76]
100      inv        a      5.0  12-005        1.00     0.024        3    [1.6, 2.8, 3.79]
101      inv        a      5.0  12-006        1.00     0.026        3    [1.8, 3.2, 4.83]
102      inv        a      5.0  12-007        1.00     0.058        2        [3.72, 4.92]
103      inv        a      5.0  12-008        1.00     0.234        2         [2.4, 5.84]
104      inv        a      5.0  12-010        1.00     0.200        3  [1.44, 3.49, 6.76]
105      inv        b      2.0  12-005        1.19     0.024        3    [1.6, 2.8, 3.79]
106      inv        b      2.0  12-006        0.72     0.026        3    [1.8, 3.2, 4.83]
107      inv        b      2.0  12-007        0.91     0.058        2        [3.72, 4.92]
108      inv        b      2.0  12-008        0.69     0.234        3   [0.83, 2.4, 5.84]
109      inv        b      2.0  12-010        1.02     0.200        3  [1.44, 3.49, 6.76]
110      inv        b      3.0  12-005        1.19     0.024        3    [1.6, 2.8, 3.79]
111      inv        b      3.0  12-006        0.72     0.026        3    [1.8, 3.2, 4.83]
112      inv        b      3.0  12-007        0.91     0.058        2        [3.72, 4.92]
113      inv        b      3.0  12-008        0.69     0.234        3   [0.83, 2.4, 5.84]
114      inv        b      3.0  12-010        1.02     0.200        3  [1.44, 3.49, 6.76]
115      inv        b      5.0  12-005        1.19     0.024        3    [1.6, 2.8, 3.79]
116      inv        b      5.0  12-006        0.72     0.026        3    [1.8, 3.2, 4.83]
117      inv        b      5.0  12-007        0.91     0.058        2        [3.72, 4.92]
118      inv        b      5.0  12-008        0.69     0.234        3   [0.83, 2.4, 5.84]
119      inv        b      5.0  12-010        1.02     0.200        3  [1.44, 3.49, 6.76]

rats with three peaks, by rule, artefact reading and margin:
k_noise           2.0  3.0  5.0
rule    artefact               
first   a           5    4    3
        b           5    4    3
inv     a           3    3    3
        b           4    4    4
largest a           5    4    3
        b           5    4    3
window  a           4    2    2
        b           4    2    2
In [19]:
# Mean trace at the highest current per acute rat, with the peaks each rule assigns
# (artefact a, k = 3) and the paper's P1 to P3 ranges shaded.
fig, axs = plt.subplots(1, 5, figsize=(22, 4.5))
cols = {"first": "C0", "largest": "C1", "window": "C2", "inv": "C3"}
for ax, s in zip(axs, P.ACUTE):
    r = A[("first", "a", 3.0, s)]
    L, t = r["levels"], r["t"]
    y = (L[-1][1] + L[-1][2]) / 2
    y = y - P.baseline(y, t)
    ax.plot(t, y, "k", lw=0.8)
    for (lo, hi), c in zip(P.WINDOWS_ANES, ["#ddd", "#bbb", "#999"]):
        ax.axvspan(lo, hi, color=c, alpha=0.3)
    for j, (rule, c) in enumerate(cols.items()):
        for lat in A[(rule, "a", 3.0, s)]["lats"]:
            ax.axvline(lat, color=c, ls="--", lw=1, ymax=0.95 - 0.07 * j)
    sel = t > 1.0
    ax.set_xlim(0.6, 7.0); ax.set_ylim(y[sel].min() * 1.1, y[sel].max() * 1.2)
    ax.set_title(f"{s}, {L[-1][0]:.2f} mA\ny range {y[sel].min():.2f} to {y[sel].max():.2f} uV after 1 ms", fontsize=10)
    ax.set_xlabel("ms from pulse onset")
axs[0].set_ylabel("uV"); axs[0].legend([plt.Line2D([], [], color=c, ls="--") for c in cols.values()], list(cols), fontsize=8)
plt.tight_layout(); plt.show()
print("the artefact before 1 ms falls outside the y axis; the y range is that of the trace after 1 ms")
No description has been provided for this image
the artefact before 1 ms falls outside the y axis; the y range is that of the trace after 1 ms

anes-ecap-recorded¶

In all five urethane-anaesthetised rats, ECAPs with complex waveforms were recorded on the non-stimulating electrode pair during graded stimulation and could be separated from the stimulation artefact.

Criterion: in each rat at least one positive peak after the artefact end reaches 0.05 uV in both recordings at some current, and is absent at 0 mA. The lowest current in the files is CL0 (0.0175 mA) in four rats; 12-007 has none below 0.107 mA.

The files hold no 0 mA trace for the acute rats, so "absent at 0 mA" is read at the lowest current in each file (an assumption: it is the nearest to 0 mA the data allow, and a peak absent there would be absent at 0 mA too unless the trace at that current already holds a response). That current is 17.5 uA in four rats and 106.5 uA in 12-007.

In [20]:
rows = []
for rule in P.RULES:
    for art in "ab":
        for s in P.ACUTE:
            r = A[(rule, art, 3.0, s)]
            L, t = r["levels"], r["t"]
            ok_any = []
            for lat in r["lats"]:
                amps = [(min(P.amp_at(r1, t, lat, "a")[0], P.amp_at(r2, t, lat, "a")[0])) for _, r1, r2 in L]
                passes_some = any(a >= P.THRESH_UV for a in amps[1:])
                absent_low = amps[0] < P.THRESH_UV
                ok_any.append(dict(lat=round(lat, 2), low_uV=round(amps[0], 3), top_uV=round(amps[-1], 3),
                                   passes=passes_some, absent_lowest=absent_low))
            good = [o for o in ok_any if o["passes"] and o["absent_lowest"]]
            rows.append(dict(rule=rule, artefact=art, sub=s, lowest_mA=round(L[0][0], 4), peaks=ok_any,
                             n_peaks_meeting=len(good), meets=len(good) > 0))
rec = pd.DataFrame(rows)
for _, r in rec[rec.rule == "first"].iterrows():
    print(r.artefact, r["sub"], "lowest mA", r.lowest_mA, "meets:", r.meets, "|",
          "; ".join(f"{o['lat']} ms low {o['low_uV']} top {o['top_uV']} uV" for o in r.peaks))
print("\nrats meeting the criterion (k = 3), by rule and artefact reading:")
print(rec.groupby(["rule", "artefact"]).meets.sum().unstack().to_string())
a 12-005 lowest mA 0.0175 meets: True | 2.33 ms low 0.022 top 0.15 uV; 3.25 ms low -0.003 top 0.383 uV; 4.21 ms low -0.025 top 0.073 uV
a 12-006 lowest mA 0.0175 meets: True | 1.36 ms low 0.055 top 1.269 uV; 2.5 ms low 0.033 top 7.45 uV; 3.84 ms low 0.015 top 3.382 uV
a 12-007 lowest mA 0.1065 meets: True | 1.12 ms low 0.177 top 1.229 uV; 2.5 ms low -0.014 top 0.236 uV; 4.15 ms low 0.038 top 0.328 uV
a 12-008 lowest mA 0.0175 meets: True | 1.36 ms low -0.054 top 8.203 uV; 4.09 ms low 0.099 top 1.641 uV
a 12-010 lowest mA 0.0175 meets: True | 1.84 ms low 0.07 top 2.67 uV; 2.42 ms low -0.057 top 15.679 uV; 4.63 ms low -0.216 top 5.756 uV
b 12-005 lowest mA 0.0175 meets: True | 2.33 ms low 0.022 top 0.15 uV; 3.25 ms low -0.003 top 0.383 uV; 4.21 ms low -0.025 top 0.073 uV
b 12-006 lowest mA 0.0175 meets: True | 0.9 ms low 0.046 top 1.965 uV; 1.36 ms low 0.055 top 1.269 uV; 2.5 ms low 0.033 top 7.45 uV
b 12-007 lowest mA 0.1065 meets: True | 1.12 ms low 0.177 top 1.229 uV; 2.5 ms low -0.014 top 0.236 uV; 4.15 ms low 0.038 top 0.328 uV
b 12-008 lowest mA 0.0175 meets: True | 1.36 ms low -0.054 top 8.203 uV; 4.09 ms low 0.099 top 1.641 uV
b 12-010 lowest mA 0.0175 meets: True | 1.84 ms low 0.07 top 2.67 uV; 2.42 ms low -0.057 top 15.679 uV; 4.63 ms low -0.216 top 5.756 uV

rats meeting the criterion (k = 3), by rule and artefact reading:
artefact  a  b
rule          
first     5  5
inv       5  5
largest   5  5
window    2  2

Result: reproduced. Under the main rule, in all five acute rats at least one detected positive peak after the artefact end reaches 0.05 uV in both recordings at some current and stays below 0.05 uV at the lowest current, under both artefact-end readings (5 of 5 each). The largest and inv rules also give 5 of 5; the window rule gives 2 of 5, as it finds a triple inside the paper's ranges in two rats only. The lowest current, which stands for 0 mA (an assumption), is 0.0175 mA in four rats and 0.107 mA in 12-007. Top-current amplitudes of the peaks under the main rule are 0.07 to 15.7 uV. The outcome rests on the assumed peak identification and on the lowest current standing for 0 mA.

anes-ecap-latencies¶

In anaesthetised rats, ECAPs at supra-threshold stimulation show three positive peaks centred at 1.80 ms (P1, range 1.65 to 2.90 ms), 3.48 ms (P2, 2.51 to 4.16 ms) and 3.77 ms (P3, 3.25 to 5.67 ms), n = 5.

Every combination of the criterion's readings: central value (median, mean), time origin (pulse onset, end of the 250 us pulse), stimulus level (highest current, lowest current where all three peaks pass, mean over currents at or above the P3 threshold), for both artefact-end readings and three detection margins.

In [21]:
EXP_LAT = np.array([1.80, 3.48, 3.77]); TOL_LAT = 0.1 * EXP_LAT
RANGE_LAT = P.WINDOWS_ANES
rows = []
per_rat = []
for rule in P.RULES:
    for art in "ab":
        for k in (2.0, 3.0, 5.0):
            for lev in "abc":
                for org in "ab":
                    M = np.array([A[(rule, art, k, s)]["lat"][(lev, org)] for s in P.ACUTE])
                    okr = ~np.isnan(M).any(1)
                    for cen, f in (("median", np.median), ("mean", np.mean)):
                        c = f(M[okr], 0) if okr.any() else np.full(3, np.nan)
                        rows.append(dict(rule=rule, artefact=art, k=k, level=lev, origin=org, central=cen,
                                         n_rats=int(okr.sum()), P1=c[0], P2=c[1], P3=c[2],
                                         within=bool(np.all(np.abs(c - EXP_LAT) <= TOL_LAT + 1e-9))))
                    if k == 3.0 and art == "a":
                        for s, m in zip(P.ACUTE, M):
                            per_rat.append(dict(rule=rule, level=lev, origin=org, sub=s, P1=m[0], P2=m[1], P3=m[2]))
lat_tab = pd.DataFrame(rows)
print(lat_tab.round(3).to_string())
print("combinations with all three within 10%:", int(lat_tab.within.sum()), "of", len(lat_tab))
print("by rule:", lat_tab.groupby("rule").within.agg(["sum", "size"]).to_dict("index"))
print(lat_tab[lat_tab.within].round(3).to_string())
main = lat_tab[(lat_tab.rule == "first") & (lat_tab.artefact == "a") & (lat_tab.k == 3.0) & (lat_tab.level == "a") & (lat_tab.origin == "a")]
print(main.round(3).to_string())
pr = pd.DataFrame(per_rat)
for rule in P.RULES:
    q = pr[(pr.rule == rule) & (pr.level == "a") & (pr.origin == "a")]
    print(f"\nrule {rule}, per rat (artefact a, k 3, highest current, onset origin):")
    print(q.round(2).to_string())
    for j, (lo, hi) in enumerate(RANGE_LAT):
        v = q[f"P{j+1}"].dropna()
        print(f"P{j+1}: per-rat range {v.min():.2f} to {v.max():.2f} ms; inside widened paper range "
              f"{lo*0.9:.2f} to {hi*1.1:.2f}: {int(((v >= lo*0.9) & (v <= hi*1.1)).sum())} of {len(v)}")
# distance of the closest combination, per rule
lat_tab["max_rel_err"] = (np.abs(lat_tab[["P1", "P2", "P3"]].values - EXP_LAT) / EXP_LAT).max(1)
for rule in P.RULES:
    print(f"closest combinations, rule {rule}:\n", lat_tab[lat_tab.rule == rule].sort_values("max_rel_err").head(3).round(3).to_string())
        rule artefact    k level origin central  n_rats     P1     P2     P3  within
0      first        a  2.0     a      a  median       5  1.365  2.500  4.215   False
1      first        a  2.0     a      a    mean       5  1.605  2.952  4.173   False
2      first        a  2.0     a      b  median       5  1.115  2.250  3.965   False
3      first        a  2.0     a      b    mean       5  1.355  2.702  3.923   False
4      first        a  2.0     b      a  median       5  1.645  2.560  4.240   False
5      first        a  2.0     b      a    mean       5  1.605  2.976  4.179   False
6      first        a  2.0     b      b  median       5  1.395  2.310  3.990   False
7      first        a  2.0     b      b    mean       5  1.355  2.726  3.929   False
8      first        a  2.0     c      a  median       5  1.448  2.470  4.228   False
9      first        a  2.0     c      a    mean       5  1.625  2.947  4.155   False
10     first        a  2.0     c      b  median       5  1.198  2.220  3.978   False
11     first        a  2.0     c      b    mean       5  1.375  2.697  3.905   False
12     first        a  3.0     a      a  median       4  1.602  2.498  4.185   False
13     first        a  3.0     a      a    mean       4  1.665  2.666  4.211   False
14     first        a  3.0     a      b  median       4  1.352  2.248  3.935   False
15     first        a  3.0     a      b    mean       4  1.415  2.416  3.961   False
16     first        a  3.0     b      a  median       4  1.737  2.525  4.235   False
17     first        a  3.0     b      a    mean       4  1.665  2.728  4.245   False
18     first        a  3.0     b      b  median       4  1.487  2.275  3.985   False
19     first        a  3.0     b      b    mean       4  1.415  2.478  3.995   False
20     first        a  3.0     c      a  median       4  1.618  2.457  4.231   False
21     first        a  3.0     c      a    mean       4  1.647  2.666  4.226   False
22     first        a  3.0     c      b  median       4  1.368  2.207  3.981   False
23     first        a  3.0     c      b    mean       4  1.397  2.416  3.976   False
24     first        a  5.0     a      a  median       3  1.840  2.495  4.215   False
25     first        a  5.0     a      a    mean       3  1.847  2.722  4.230   False
26     first        a  5.0     a      b  median       3  1.590  2.245  3.965   False
27     first        a  5.0     a      b    mean       3  1.597  2.472  3.980   False
28     first        a  5.0     b      a  median       3  1.830  2.560  4.240   False
29     first        a  5.0     b      a    mean       3  1.947  2.807  4.250   False
30     first        a  5.0     b      b  median       3  1.580  2.310  3.990   False
31     first        a  5.0     b      b    mean       3  1.697  2.557  4.000   False
32     first        a  5.0     c      a  median       3  1.861  2.470  4.228   False
33     first        a  5.0     c      a    mean       3  1.862  2.740  4.223   False
34     first        a  5.0     c      b  median       3  1.611  2.220  3.978   False
35     first        a  5.0     c      b    mean       3  1.612  2.490  3.973   False
36     first        b  2.0     a      a  median       5  1.365  2.500  4.215   False
37     first        b  2.0     a      a    mean       5  1.512  2.726  3.904   False
38     first        b  2.0     a      b  median       5  1.115  2.250  3.965   False
39     first        b  2.0     a      b    mean       5  1.262  2.476  3.654   False
40     first        b  2.0     b      a  median       5  1.365  2.425  4.240   False
41     first        b  2.0     b      a    mean       5  1.396  2.677  3.911   False
42     first        b  2.0     b      b  median       5  1.115  2.175  3.990   False
43     first        b  2.0     b      b    mean       5  1.146  2.427  3.661   False
44     first        b  2.0     c      a  median       5  1.448  2.415  4.228   False
45     first        b  2.0     c      a    mean       5  1.488  2.720  3.892   False
46     first        b  2.0     c      b  median       5  1.198  2.165  3.978   False
47     first        b  2.0     c      b    mean       5  1.238  2.470  3.642   False
48     first        b  3.0     a      a  median       4  1.480  2.458  4.185   False
49     first        b  3.0     a      a    mean       4  1.549  2.384  3.875   False
50     first        b  3.0     a      b  median       4  1.230  2.208  3.935   False
51     first        b  3.0     a      b    mean       4  1.299  2.134  3.625   False
52     first        b  3.0     b      a  median       4  1.325  2.457  4.235   False
53     first        b  3.0     b      a    mean       4  1.404  2.354  3.910   False
54     first        b  3.0     b      b  median       4  1.075  2.207  3.985   False
55     first        b  3.0     b      b    mean       4  1.154  2.104  3.660   False
56     first        b  3.0     c      a  median       4  1.431  2.424  4.231   False
57     first        b  3.0     c      a    mean       4  1.475  2.382  3.897   False
58     first        b  3.0     c      b  median       4  1.181  2.174  3.981   False
59     first        b  3.0     c      b    mean       4  1.225  2.132  3.647   False
60     first        b  5.0     a      a  median       3  1.840  2.415  4.215   False
61     first        b  5.0     a      a    mean       3  1.692  2.345  3.782   False
62     first        b  5.0     a      b  median       3  1.590  2.165  3.965   False
63     first        b  5.0     a      b    mean       3  1.442  2.095  3.532   False
64     first        b  5.0     b      a  median       3  1.830  2.425  4.240   False
65     first        b  5.0     b      a    mean       3  1.598  2.308  3.803   False
66     first        b  5.0     b      b  median       3  1.580  2.175  3.990   False
67     first        b  5.0     b      b    mean       3  1.348  2.058  3.553   False
68     first        b  5.0     c      a  median       3  1.861  2.404  4.228   False
69     first        b  5.0     c      a    mean       3  1.633  2.361  3.784   False
70     first        b  5.0     c      b  median       3  1.611  2.154  3.978   False
71     first        b  5.0     c      b    mean       3  1.383  2.111  3.534   False
72   largest        a  2.0     a      a  median       5  1.365  3.255  4.215   False
73   largest        a  2.0     a      a    mean       5  1.720  3.396  4.483   False
74   largest        a  2.0     a      b  median       5  1.115  3.005  3.965   False
75   largest        a  2.0     a      b    mean       5  1.470  3.146  4.233   False
76   largest        a  2.0     b      a  median       5  1.645  3.435  4.240   False
77   largest        a  2.0     b      a    mean       5  1.724  3.439  4.514   False
78   largest        a  2.0     b      b  median       5  1.395  3.185  3.990   False
79   largest        a  2.0     b      b    mean       5  1.474  3.189  4.264   False
80   largest        a  2.0     c      a  median       5  1.448  3.345  4.234   False
81   largest        a  2.0     c      a    mean       5  1.715  3.401  4.487   False
82   largest        a  2.0     c      b  median       5  1.198  3.095  3.984   False
83   largest        a  2.0     c      b    mean       5  1.465  3.151  4.237   False
84   largest        a  3.0     a      a  median       4  1.850  2.878  4.185   False
85   largest        a  3.0     a      a    mean       4  1.809  3.221  4.401   False
86   largest        a  3.0     a      b  median       4  1.600  2.628  3.935   False
87   largest        a  3.0     a      b    mean       4  1.559  2.971  4.151   False
88   largest        a  3.0     b      a  median       4  2.005  2.997  4.235   False
89   largest        a  3.0     b      a    mean       4  1.814  3.275  4.440   False
90   largest        a  3.0     b      b  median       4  1.755  2.747  3.985   False
91   largest        a  3.0     b      b    mean       4  1.564  3.025  4.190   False
92   largest        a  3.0     c      a  median       4  1.863  2.908  4.231   False
93   largest        a  3.0     c      a    mean       4  1.782  3.227  4.411   False
94   largest        a  3.0     c      b  median       4  1.613  2.658  3.981   False
95   largest        a  3.0     c      b    mean       4  1.532  2.977  4.161   False
96   largest        a  5.0     a      a  median       3  2.335  3.255  4.215   False
97   largest        a  5.0     a      a    mean       3  2.038  3.462  4.483   False
98   largest        a  5.0     a      b  median       3  2.085  3.005  3.965   False
99   largest        a  5.0     a      b    mean       3  1.788  3.212  4.233   False
100  largest        a  5.0     b      a  median       3  2.365  3.435  4.240   False
101  largest        a  5.0     b      a    mean       3  2.145  3.537  4.510   False
102  largest        a  5.0     b      b  median       3  2.115  3.185  3.990   False
103  largest        a  5.0     b      b    mean       3  1.895  3.287  4.260   False
104  largest        a  5.0     c      a  median       3  2.350  3.345  4.228   False
105  largest        a  5.0     c      a    mean       3  2.043  3.487  4.470   False
106  largest        a  5.0     c      b  median       3  2.100  3.095  3.978   False
107  largest        a  5.0     c      b    mean       3  1.793  3.237  4.220   False
108  largest        b  2.0     a      a  median       5  1.365  3.255  4.215   False
109  largest        b  2.0     a      a    mean       5  1.627  3.396  4.483   False
110  largest        b  2.0     a      b  median       5  1.115  3.005  3.965   False
111  largest        b  2.0     a      b    mean       5  1.377  3.146  4.233   False
112  largest        b  2.0     b      a  median       5  1.365  3.435  4.240   False
113  largest        b  2.0     b      a    mean       5  1.515  3.439  4.514   False
114  largest        b  2.0     b      b  median       5  1.115  3.185  3.990   False
115  largest        b  2.0     b      b    mean       5  1.265  3.189  4.264   False
116  largest        b  2.0     c      a  median       5  1.448  3.345  4.234   False
117  largest        b  2.0     c      a    mean       5  1.581  3.401  4.487   False
118  largest        b  2.0     c      b  median       5  1.198  3.095  3.984   False
119  largest        b  2.0     c      b    mean       5  1.331  3.151  4.237   False
120  largest        b  3.0     a      a  median       4  1.728  2.878  4.185   False
121  largest        b  3.0     a      a    mean       4  1.693  3.221  4.401   False
122  largest        b  3.0     a      b  median       4  1.478  2.628  3.935   False
123  largest        b  3.0     a      b    mean       4  1.443  2.971  4.151   False
124  largest        b  3.0     b      a  median       4  1.592  2.997  4.235   False
125  largest        b  3.0     b      a    mean       4  1.552  3.275  4.440   False
126  largest        b  3.0     b      b  median       4  1.342  2.747  3.985   False
127  largest        b  3.0     b      b    mean       4  1.302  3.025  4.190   False
128  largest        b  3.0     c      a  median       4  1.676  2.908  4.231   False
129  largest        b  3.0     c      a    mean       4  1.614  3.227  4.411   False
130  largest        b  3.0     c      b  median       4  1.426  2.658  3.981   False
131  largest        b  3.0     c      b    mean       4  1.364  2.977  4.161   False
132  largest        b  5.0     a      a  median       3  2.335  3.255  4.215   False
133  largest        b  5.0     a      a    mean       3  1.883  3.462  4.483   False
134  largest        b  5.0     a      b  median       3  2.085  3.005  3.965   False
135  largest        b  5.0     a      b    mean       3  1.633  3.212  4.233   False
136  largest        b  5.0     b      a  median       3  2.365  3.435  4.240   False
137  largest        b  5.0     b      a    mean       3  1.797  3.537  4.510   False
138  largest        b  5.0     b      b  median       3  2.115  3.185  3.990   False
139  largest        b  5.0     b      b    mean       3  1.547  3.287  4.260   False
140  largest        b  5.0     c      a  median       3  2.350  3.345  4.228   False
141  largest        b  5.0     c      a    mean       3  1.818  3.487  4.470   False
142  largest        b  5.0     c      b  median       3  2.100  3.095  3.978   False
143  largest        b  5.0     c      b    mean       3  1.568  3.237  4.220   False
144   window        a  2.0     a      a  median       4  2.415  3.547  5.232   False
145   window        a  2.0     a      a    mean       4  2.292  3.416  5.227   False
146   window        a  2.0     a      b  median       4  2.165  3.297  4.982   False
147   window        a  2.0     a      b    mean       4  2.042  3.166  4.978   False
148   window        a  2.0     b      a  median       4  2.322  3.630  5.312   False
149   window        a  2.0     b      a    mean       4  2.274  3.500  5.279   False
150   window        a  2.0     b      b  median       4  2.072  3.380  5.062   False
151   window        a  2.0     b      b    mean       4  2.024  3.250  5.029   False
152   window        a  2.0     c      a  median       4  2.394  3.594  5.213   False
153   window        a  2.0     c      a    mean       4  2.275  3.457  5.216   False
154   window        a  2.0     c      b  median       4  2.144  3.344  4.963   False
155   window        a  2.0     c      b    mean       4  2.025  3.207  4.966   False
156   window        a  3.0     a      a  median       2  2.088  2.835  4.425   False
157   window        a  3.0     a      a    mean       2  2.088  2.835  4.425   False
158   window        a  3.0     a      b  median       2  1.838  2.585  4.175   False
159   window        a  3.0     a      b    mean       2  1.838  2.585  4.175   False
160   window        a  3.0     b      a  median       2  2.097  2.930  4.428   False
161   window        a  3.0     b      a    mean       2  2.097  2.930  4.428   False
162   window        a  3.0     b      b  median       2  1.847  2.680  4.178   False
163   window        a  3.0     b      b    mean       2  1.847  2.680  4.178   False
164   window        a  3.0     c      a  median       2  2.105  2.875  4.435   False
165   window        a  3.0     c      a    mean       2  2.105  2.875  4.435   False
166   window        a  3.0     c      b  median       2  1.855  2.625  4.185   False
167   window        a  3.0     c      b    mean       2  1.855  2.625  4.185   False
168   window        a  5.0     a      a  median       2  2.088  2.835  4.425   False
169   window        a  5.0     a      a    mean       2  2.088  2.835  4.425   False
170   window        a  5.0     a      b  median       2  1.838  2.585  4.175   False
171   window        a  5.0     a      b    mean       2  1.838  2.585  4.175   False
172   window        a  5.0     b      a  median       2  2.097  2.930  4.428   False
173   window        a  5.0     b      a    mean       2  2.097  2.930  4.428   False
174   window        a  5.0     b      b  median       2  1.847  2.680  4.178   False
175   window        a  5.0     b      b    mean       2  1.847  2.680  4.178   False
176   window        a  5.0     c      a  median       2  2.105  2.875  4.435   False
177   window        a  5.0     c      a    mean       2  2.105  2.875  4.435   False
178   window        a  5.0     c      b  median       2  1.855  2.625  4.185   False
179   window        a  5.0     c      b    mean       2  1.855  2.625  4.185   False
180   window        b  2.0     a      a  median       4  2.415  3.547  5.232   False
181   window        b  2.0     a      a    mean       4  2.292  3.416  5.227   False
182   window        b  2.0     a      b  median       4  2.165  3.297  4.982   False
183   window        b  2.0     a      b    mean       4  2.042  3.166  4.978   False
184   window        b  2.0     b      a  median       4  2.322  3.630  5.312   False
185   window        b  2.0     b      a    mean       4  2.274  3.500  5.279   False
186   window        b  2.0     b      b  median       4  2.072  3.380  5.062   False
187   window        b  2.0     b      b    mean       4  2.024  3.250  5.029   False
188   window        b  2.0     c      a  median       4  2.394  3.594  5.213   False
189   window        b  2.0     c      a    mean       4  2.275  3.457  5.216   False
190   window        b  2.0     c      b  median       4  2.144  3.344  4.963   False
191   window        b  2.0     c      b    mean       4  2.025  3.207  4.966   False
192   window        b  3.0     a      a  median       2  2.088  2.835  4.425   False
193   window        b  3.0     a      a    mean       2  2.088  2.835  4.425   False
194   window        b  3.0     a      b  median       2  1.838  2.585  4.175   False
195   window        b  3.0     a      b    mean       2  1.838  2.585  4.175   False
196   window        b  3.0     b      a  median       2  2.097  2.930  4.428   False
197   window        b  3.0     b      a    mean       2  2.097  2.930  4.428   False
198   window        b  3.0     b      b  median       2  1.847  2.680  4.178   False
199   window        b  3.0     b      b    mean       2  1.847  2.680  4.178   False
200   window        b  3.0     c      a  median       2  2.105  2.875  4.435   False
201   window        b  3.0     c      a    mean       2  2.105  2.875  4.435   False
202   window        b  3.0     c      b  median       2  1.855  2.625  4.185   False
203   window        b  3.0     c      b    mean       2  1.855  2.625  4.185   False
204   window        b  5.0     a      a  median       2  2.088  2.835  4.425   False
205   window        b  5.0     a      a    mean       2  2.088  2.835  4.425   False
206   window        b  5.0     a      b  median       2  1.838  2.585  4.175   False
207   window        b  5.0     a      b    mean       2  1.838  2.585  4.175   False
208   window        b  5.0     b      a  median       2  2.097  2.930  4.428   False
209   window        b  5.0     b      a    mean       2  2.097  2.930  4.428   False
210   window        b  5.0     b      b  median       2  1.847  2.680  4.178   False
211   window        b  5.0     b      b    mean       2  1.847  2.680  4.178   False
212   window        b  5.0     c      a  median       2  2.105  2.875  4.435   False
213   window        b  5.0     c      a    mean       2  2.105  2.875  4.435   False
214   window        b  5.0     c      b  median       2  1.855  2.625  4.185   False
215   window        b  5.0     c      b    mean       2  1.855  2.625  4.185   False
216      inv        a  2.0     a      a  median       3  1.605  3.200  4.830   False
217      inv        a  2.0     a      a    mean       3  1.617  3.163  5.128   False
218      inv        a  2.0     a      b  median       3  1.355  2.950  4.580   False
219      inv        a  2.0     a      b    mean       3  1.367  2.913  4.878   False
220      inv        a  2.0     b      a  median       3  1.740  3.230  4.860   False
221      inv        a  2.0     b      a    mean       3  1.690  3.157  5.113   False
222      inv        a  2.0     b      b  median       3  1.490  2.980  4.610   False
223      inv        a  2.0     b      b    mean       3  1.440  2.907  4.863   False
224      inv        a  2.0     c      a  median       3  1.675  3.089  4.862   False
225      inv        a  2.0     c      a    mean       3  1.719  3.125  5.138   False
226      inv        a  2.0     c      b  median       3  1.425  2.839  4.612   False
227      inv        a  2.0     c      b    mean       3  1.469  2.875  4.888   False
228      inv        a  3.0     a      a  median       3  1.605  3.200  4.830   False
229      inv        a  3.0     a      a    mean       3  1.617  3.163  5.128   False
230      inv        a  3.0     a      b  median       3  1.355  2.950  4.580   False
231      inv        a  3.0     a      b    mean       3  1.367  2.913  4.878   False
232      inv        a  3.0     b      a  median       3  1.740  3.230  4.860   False
233      inv        a  3.0     b      a    mean       3  1.690  3.157  5.113   False
234      inv        a  3.0     b      b  median       3  1.490  2.980  4.610   False
235      inv        a  3.0     b      b    mean       3  1.440  2.907  4.863   False
236      inv        a  3.0     c      a  median       3  1.675  3.089  4.862   False
237      inv        a  3.0     c      a    mean       3  1.719  3.125  5.138   False
238      inv        a  3.0     c      b  median       3  1.425  2.839  4.612   False
239      inv        a  3.0     c      b    mean       3  1.469  2.875  4.888   False
240      inv        a  5.0     a      a  median       3  1.605  3.200  4.830   False
241      inv        a  5.0     a      a    mean       3  1.617  3.163  5.128   False
242      inv        a  5.0     a      b  median       3  1.355  2.950  4.580   False
243      inv        a  5.0     a      b    mean       3  1.367  2.913  4.878   False
244      inv        a  5.0     b      a  median       3  1.740  3.230  4.860   False
245      inv        a  5.0     b      a    mean       3  1.690  3.157  5.113   False
246      inv        a  5.0     b      b  median       3  1.490  2.980  4.610   False
247      inv        a  5.0     b      b    mean       3  1.440  2.907  4.863   False
248      inv        a  5.0     c      a  median       3  1.675  3.089  4.862   False
249      inv        a  5.0     c      a    mean       3  1.719  3.125  5.138   False
250      inv        a  5.0     c      b  median       3  1.425  2.839  4.612   False
251      inv        a  5.0     c      b    mean       3  1.469  2.875  4.888   False
252      inv        b  2.0     a      a  median       4  1.522  3.000  5.337   False
253      inv        b  2.0     a      a    mean       4  1.420  2.974  5.307   False
254      inv        b  2.0     a      b  median       4  1.272  2.750  5.087   False
255      inv        b  2.0     a      b    mean       4  1.170  2.724  5.057   False
256      inv        b  2.0     b      a  median       4  1.628  3.057  5.342   False
257      inv        b  2.0     b      a    mean       4  1.531  2.982  5.291   False
258      inv        b  2.0     b      b  median       4  1.378  2.807  5.092   False
259      inv        b  2.0     b      b    mean       4  1.281  2.732  5.041   False
260      inv        b  2.0     c      a  median       4  1.652  2.971  5.353   False
261      inv        b  2.0     c      a    mean       4  1.501  2.945  5.314   False
262      inv        b  2.0     c      b  median       4  1.402  2.721  5.103   False
263      inv        b  2.0     c      b    mean       4  1.251  2.695  5.064   False
264      inv        b  3.0     a      a  median       4  1.522  3.000  5.337   False
265      inv        b  3.0     a      a    mean       4  1.420  2.974  5.307   False
266      inv        b  3.0     a      b  median       4  1.272  2.750  5.087   False
267      inv        b  3.0     a      b    mean       4  1.170  2.724  5.057   False
268      inv        b  3.0     b      a  median       4  1.628  3.057  5.342   False
269      inv        b  3.0     b      a    mean       4  1.531  2.982  5.291   False
270      inv        b  3.0     b      b  median       4  1.378  2.807  5.092   False
271      inv        b  3.0     b      b    mean       4  1.281  2.732  5.041   False
272      inv        b  3.0     c      a  median       4  1.652  2.971  5.353   False
273      inv        b  3.0     c      a    mean       4  1.501  2.945  5.314   False
274      inv        b  3.0     c      b  median       4  1.402  2.721  5.103   False
275      inv        b  3.0     c      b    mean       4  1.251  2.695  5.064   False
276      inv        b  5.0     a      a  median       4  1.522  3.000  5.337   False
277      inv        b  5.0     a      a    mean       4  1.420  2.974  5.307   False
278      inv        b  5.0     a      b  median       4  1.272  2.750  5.087   False
279      inv        b  5.0     a      b    mean       4  1.170  2.724  5.057   False
280      inv        b  5.0     b      a  median       4  1.628  3.057  5.342   False
281      inv        b  5.0     b      a    mean       4  1.531  2.982  5.291   False
282      inv        b  5.0     b      b  median       4  1.378  2.807  5.092   False
283      inv        b  5.0     b      b    mean       4  1.281  2.732  5.041   False
284      inv        b  5.0     c      a  median       4  1.652  2.971  5.353   False
285      inv        b  5.0     c      a    mean       4  1.501  2.945  5.314   False
286      inv        b  5.0     c      b  median       4  1.402  2.721  5.103   False
287      inv        b  5.0     c      b    mean       4  1.251  2.695  5.064   False
combinations with all three within 10%: 0 of 288
by rule: {'first': {'sum': 0, 'size': 72}, 'inv': {'sum': 0, 'size': 72}, 'largest': {'sum': 0, 'size': 72}, 'window': {'sum': 0, 'size': 72}}
Empty DataFrame
Columns: [rule, artefact, k, level, origin, central, n_rats, P1, P2, P3, within]
Index: []
     rule artefact    k level origin central  n_rats     P1     P2     P3  within
12  first        a  3.0     a      a  median       4  1.602  2.498  4.185   False
13  first        a  3.0     a      a    mean       4  1.665  2.666  4.211   False

rule first, per rat (artefact a, k 3, highest current, onset origin):
    rule level origin     sub    P1    P2    P3
0  first     a      a  12-005  2.34  3.26  4.22
1  first     a      a  12-006  1.36  2.50  3.84
2  first     a      a  12-007  1.12  2.50  4.15
3  first     a      a  12-008   NaN   NaN   NaN
4  first     a      a  12-010  1.84  2.42  4.64
P1: per-rat range 1.12 to 2.33 ms; inside widened paper range 1.48 to 3.19: 2 of 4
P2: per-rat range 2.42 to 3.25 ms; inside widened paper range 2.26 to 4.58: 4 of 4
P3: per-rat range 3.84 to 4.63 ms; inside widened paper range 2.93 to 6.24: 4 of 4

rule largest, per rat (artefact a, k 3, highest current, onset origin):
       rule level origin     sub    P1    P2    P3
30  largest     a      a  12-005  2.34  3.26  4.22
31  largest     a      a  12-006  1.36  2.50  3.84
32  largest     a      a  12-007  1.12  2.50  4.15
33  largest     a      a  12-008   NaN   NaN   NaN
34  largest     a      a  12-010  2.42  4.64  5.40
P1: per-rat range 1.12 to 2.42 ms; inside widened paper range 1.48 to 3.19: 2 of 4
P2: per-rat range 2.50 to 4.63 ms; inside widened paper range 2.26 to 4.58: 3 of 4
P3: per-rat range 3.84 to 5.39 ms; inside widened paper range 2.93 to 6.24: 4 of 4

rule window, per rat (artefact a, k 3, highest current, onset origin):
      rule level origin     sub    P1    P2    P3
60  window     a      a  12-005  2.34  3.26  4.22
61  window     a      a  12-006   NaN   NaN   NaN
62  window     a      a  12-007   NaN   NaN   NaN
63  window     a      a  12-008   NaN   NaN   NaN
64  window     a      a  12-010  1.84  2.42  4.64
P1: per-rat range 1.84 to 2.33 ms; inside widened paper range 1.48 to 3.19: 2 of 2
P2: per-rat range 2.42 to 3.25 ms; inside widened paper range 2.26 to 4.58: 2 of 2
P3: per-rat range 4.21 to 4.63 ms; inside widened paper range 2.93 to 6.24: 2 of 2

rule inv, per rat (artefact a, k 3, highest current, onset origin):
   rule level origin     sub    P1    P2    P3
90  inv     a      a  12-005  1.60  2.80  3.79
91  inv     a      a  12-006  1.80  3.20  4.83
92  inv     a      a  12-007   NaN   NaN   NaN
93  inv     a      a  12-008   NaN   NaN   NaN
94  inv     a      a  12-010  1.44  3.49  6.76
P1: per-rat range 1.44 to 1.80 ms; inside widened paper range 1.48 to 3.19: 2 of 3
P2: per-rat range 2.80 to 3.49 ms; inside widened paper range 2.26 to 4.58: 3 of 3
P3: per-rat range 3.79 to 6.76 ms; inside widened paper range 2.93 to 6.24: 2 of 3
closest combinations, rule first:
     rule artefact    k level origin central  n_rats     P1     P2     P3  within  max_rel_err
5  first        a  2.0     b      a    mean       5  1.605  2.976  4.179   False        0.145
1  first        a  2.0     a      a    mean       5  1.605  2.952  4.173   False        0.152
9  first        a  2.0     c      a    mean       5  1.625  2.947  4.155   False        0.153
closest combinations, rule largest:
         rule artefact    k level origin central  n_rats     P1     P2     P3  within  max_rel_err
107  largest        a  5.0     c      b    mean       3  1.793  3.237  4.220   False        0.119
99   largest        a  5.0     a      b    mean       3  1.788  3.212  4.233   False        0.123
135  largest        b  5.0     a      b    mean       3  1.633  3.212  4.233   False        0.123
closest combinations, rule window:
        rule artefact    k level origin central  n_rats     P1    P2     P3  within  max_rel_err
173  window        a  5.0     b      a    mean       2  2.097  2.93  4.428   False        0.174
172  window        a  5.0     b      a  median       2  2.097  2.93  4.428   False        0.174
161  window        a  3.0     b      a    mean       2  2.097  2.93  4.428   False        0.174
closest combinations, rule inv:
     rule artefact    k level origin central  n_rats    P1    P2    P3  within  max_rel_err
222  inv        a  2.0     b      b  median       3  1.49  2.98  4.61   False        0.223
234  inv        a  3.0     b      b  median       3  1.49  2.98  4.61   False        0.223
246  inv        a  5.0     b      b  median       3  1.49  2.98  4.61   False        0.223

Result: not reproduced. None of the 288 combinations of readings (72 per peak rule, four rules) puts all three central latencies within 10% of 1.80, 3.48 and 3.77 ms. Under the main reading (rule first, artefact end at 1 ms, margin 3 SD, highest current, onset origin) the medians over four rats are 1.60, 2.50 and 4.19 ms: P1 is 11% shorter, P2 28% shorter and P3 11% longer. The closest combination over all rules (rule largest, margin 5 SD, mean over three rats) gives 1.79, 3.24 and 4.22 ms, 11.9% off at worst; under rule first the closest gives 1.61, 2.98 and 4.18 ms (14.5%). Per rat under the main reading, P2 and P3 lie within the paper's ranges widened by 10% (4 of 4 each) and P1 in 2 of 4. The outcome is the same under every peak rule tried, and rests on the assumption that one of them is the paper's.

anes-conduction-velocity¶

Approximate conduction velocities of the three populations in anaesthetised rats are 1.60 m/s (P1, 0.98 to 1.72), 0.82 m/s (P2, 0.35 to 1.13) and 0.78 m/s (P3, 0.50 to 0.88), in the range of myelinated A-fibres and unmyelinated C-fibres.

Velocity per rat is distance over latency (mm/ms = m/s), with the latencies of anes-ecap-latencies; the median or mean over rats, for each distance reading.

In [22]:
EXP_V = np.array([1.60, 0.82, 0.78]); TOL_V = 0.1 * EXP_V
rows = []
for rule in P.RULES:
    for art in "ab":
        for k in (2.0, 3.0, 5.0):
            for lev in "abc":
                for org in "ab":
                    M = np.array([A[(rule, art, k, s)]["lat"][(lev, org)] for s in P.ACUTE])
                    okr = ~np.isnan(M).any(1)
                    if not okr.any():
                        continue
                    for dname, d in P.DISTANCES_MM.items():
                        V = d / M[okr]
                        for cen, f in (("median", np.median), ("mean", np.mean)):
                            c = f(V, 0)
                            rows.append(dict(rule=rule, artefact=art, k=k, level=lev, origin=org, distance=dname,
                                             central=cen, n=int(okr.sum()), P1=c[0], P2=c[1], P3=c[2],
                                             within=bool(np.all(np.abs(c - EXP_V) <= TOL_V + 1e-9))))
cv = pd.DataFrame(rows)
print("combinations with all three velocities within 10%:", int(cv.within.sum()), "of", len(cv))
print("by rule:", cv.groupby("rule").within.agg(["sum", "size"]).to_dict("index"))
print(cv[cv.within].round(3).to_string())
main = cv[(cv.rule == "first") & (cv.artefact == "a") & (cv.k == 3.0) & (cv.level == "a") & (cv.origin == "a")]
print(main.round(3).to_string())
cv["max_rel_err"] = (np.abs(cv[["P1", "P2", "P3"]].values - EXP_V) / EXP_V).max(1)
print("closest combinations:\n", cv.sort_values("max_rel_err").head(5).round(3).to_string())
M = np.array([A[("first", "a", 3.0, s)]["lat"][("a", "a")] for s in P.ACUTE])
print("per-rat velocities at 2.85 mm, rule first, highest current, onset origin:")
print(pd.DataFrame(2.85 / M, index=P.ACUTE, columns=["P1", "P2", "P3"]).round(2).to_string())
combinations with all three velocities within 10%: 0 of 864
by rule: {'first': {'sum': 0, 'size': 216}, 'inv': {'sum': 0, 'size': 216}, 'largest': {'sum': 0, 'size': 216}, 'window': {'sum': 0, 'size': 216}}
Empty DataFrame
Columns: [rule, artefact, k, level, origin, distance, central, n, P1, P2, P3, within]
Index: []
     rule artefact    k level origin                 distance central  n     P1     P2     P3  within
36  first        a  3.0     a      a  a: 2.85 mm pair centres  median  4  1.818  1.141  0.681   False
37  first        a  3.0     a      a  a: 2.85 mm pair centres    mean  4  1.851  1.084  0.680   False
38  first        a  3.0     a      a      b: 2.10 mm E2 to E3  median  4  1.340  0.841  0.502   False
39  first        a  3.0     a      a      b: 2.10 mm E2 to E3    mean  4  1.364  0.799  0.501   False
40  first        a  3.0     a      a      c: 3.60 mm E1 to E4  median  4  2.297  1.441  0.860   False
41  first        a  3.0     a      a      c: 3.60 mm E1 to E4    mean  4  2.337  1.370  0.859   False
closest combinations:
         rule artefact    k level origin                 distance central  n     P1     P2     P3  within  max_rel_err
307  largest        a  5.0     b      b  a: 2.85 mm pair centres    mean  3  1.567  0.927  0.683   False        0.131
228  largest        a  2.0     b      a  a: 2.85 mm pair centres  median  5  1.733  0.830  0.672   False        0.138
318  largest        a  5.0     c      b  a: 2.85 mm pair centres  median  3  1.357  0.921  0.717   False        0.152
426  largest        b  5.0     c      b  a: 2.85 mm pair centres  median  3  1.357  0.921  0.717   False        0.152
253  largest        a  3.0     a      a  a: 2.85 mm pair centres    mean  4  1.758  0.943  0.658   False        0.156
per-rat velocities at 2.85 mm, rule first, highest current, onset origin:
          P1    P2    P3
12-005  1.22  0.88  0.68
12-006  2.09  1.14  0.74
12-007  2.54  1.14  0.69
12-008   NaN   NaN   NaN
12-010  1.55  1.18  0.61

Result: not reproduced. None of the 864 combinations (216 per peak rule) puts all three velocities within 10%. With 2.85 mm and the main latency reading, the medians are 1.82, 1.14 and 0.68 m/s against 1.60, 0.82 and 0.78 m/s; the closest combination (rule largest, margin 5 SD, mean over three rats) gives 1.57, 0.93 and 0.68 m/s, 13.1% off at worst. The velocities do lie in the ranges the Discussion gives for A-fibres (1.6 to 21 m/s, P1) and C-fibres (0.5 to 1.6 m/s, P2 and P3) under the main reading.

anes-threshold-order¶

In anaesthetised rats the stimulation threshold rises in the order of the first (P1, 377 uA, 267 to 783), second (P2, 648 uA, 595 to 648) and third (P3, 930 uA, 550 to 1225) responding populations, a main effect in a Friedman test (P = 0.039, n = 5).

Threshold per rat and peak: the lowest current at which the amplitude is at least 0.05 uV in both recordings. Readings: amplitude (a) above baseline, (b) above the preceding trough; step (a) the lowest passing current, (b) interpolated. The files' currents are the logarithmic steps listed in the data check, so reading (a) of the step is the lowest passing file current. A further reading of "threshold" is shown: (s) the lowest current from which every higher current also passes. Rats without three detected peaks drop out of the Friedman test.

In [23]:
EXP_T = np.array([377, 648, 930.]); TOL_T = 0.1 * EXP_T
def thr_stats(M):
    okr = ~np.isnan(M).any(1)
    D = M[okr]
    if len(D) >= 3 and np.ptp(D) > 0:
        chi, p, rbar, pairs = P.dunn_friedman(D)
    else:
        chi, p, rbar, pairs = np.nan, np.nan, [np.nan] * 3, {(0, 2): (np.nan, np.nan)}
    return D, chi, p, pairs
rows = []
THR = {}
for rule in P.RULES:
    for art in "ab":
        for k in (2.0, 3.0, 5.0):
            for amp in "ab":
                for step in "ab":
                    for sus in (False, True):
                        M = np.array([A[(rule, art, k, s)]["thr"][(amp, step, sus)] if len(A[(rule, art, k, s)]["lats"]) == 3
                                      else [np.nan] * 3 for s in P.ACUTE], float)
                        THR[(rule, art, k, amp, step, sus)] = M
                        D, chi, p, pairs = thr_stats(M)
                        for cen, f in (("median", np.median), ("mean", np.mean)):
                            c = f(D, 0) if len(D) else np.full(3, np.nan)
                            rows.append(dict(rule=rule, artefact=art, k=k, amp=amp, step=step, sustained=sus,
                                             central=cen, n=len(D), P1=c[0], P2=c[1], P3=c[2],
                                             rising=bool(c[0] < c[1] < c[2]), friedman_chi2=chi, friedman_p=p,
                                             dunn_p31=pairs[(0, 2)][1], dunn_z31=pairs[(0, 2)][0],
                                             within=bool(np.all(np.abs(c - EXP_T) <= TOL_T + 1e-9))))
thr_tab = pd.DataFrame(rows)
thr_tab["meets"] = thr_tab.rising & (thr_tab.friedman_p < 0.05)
print(thr_tab.round(4).to_string())
print("combinations meeting the criterion (rising and Friedman P < 0.05):", int(thr_tab.meets.sum()), "of", len(thr_tab))
print("by rule:", thr_tab.groupby("rule").meets.agg(["sum", "size"]).to_dict("index"))
print(thr_tab[thr_tab.meets].round(4).to_string())
print("combinations with all three values within 10%:", int(thr_tab.within.sum()))
print("smallest Friedman P with rising central values, by rule:",
      thr_tab[thr_tab.rising].groupby("rule").friedman_p.min().round(4).to_dict())
for rule in P.RULES:
    print(f"\nper-rat thresholds (uA), rule {rule}, artefact a, k = 3, amplitude a, step a, first passing:")
    print(pd.DataFrame(THR[(rule, "a", 3.0, "a", "a", False)], index=P.ACUTE, columns=["P1", "P2", "P3"]).round(0).to_string())
print("per-rat thresholds (uA), rule first, sustained reading:")
print(pd.DataFrame(THR[("first", "a", 3.0, "a", "a", True)], index=P.ACUTE, columns=["P1", "P2", "P3"]).round(0).to_string())
print("lowest file current, uA:", [round(A[("first", "a", 3.0, s)]["min_mA"] * 1000, 1) for s in P.ACUTE])
        rule artefact    k amp step  sustained central  n         P1        P2         P3  rising  friedman_chi2  friedman_p  dunn_p31  dunn_z31  within  meets
0      first        a  2.0   a    a      False  median  5   106.5005  127.5802   183.0821    True         2.8000      0.2466    0.1138    1.5811   False  False
1      first        a  2.0   a    a      False    mean  5   477.7079  221.4716   484.6473   False         2.8000      0.2466    0.1138    1.5811   False  False
2      first        a  2.0   a    a       True  median  4   712.2777  648.6365   789.1160   False         1.5000      0.4724    1.0000    0.0000   False  False
3      first        a  2.0   a    a       True    mean  4   850.1213  634.7610   863.5001   False         1.5000      0.4724    1.0000    0.0000   False  False
4      first        a  2.0   a    b      False  median  5   106.5005  107.6572   176.7039    True         2.8000      0.2466    0.1138    1.5811   False  False
5      first        a  2.0   a    b      False    mean  5   416.7379  209.9963   428.9146   False         2.8000      0.2466    0.1138    1.5811   False  False
6      first        a  2.0   a    b       True  median  4   629.1685  578.0596   725.7545   False         1.5000      0.4724    1.0000    0.0000   False  False
7      first        a  2.0   a    b       True    mean  4   747.1296  583.0118   762.2679   False         1.5000      0.4724    1.0000    0.0000   False  False
8      first        a  2.0   b    a      False  median  5    17.5000   17.5000   127.5802   False         2.3636      0.3067    0.4292    0.7906   False  False
9      first        a  2.0   b    a      False    mean  5   200.0194  122.1303   225.0893   False         2.3636      0.3067    0.4292    0.7906   False  False
10     first        a  2.0   b    a       True  median  5   930.0970  183.0821   648.1350   False         3.2632      0.1956    0.5271   -0.6325   False  False
11     first        a  2.0   b    a       True    mean  5   716.8423  378.8008   596.0838   False         3.2632      0.1956    0.5271   -0.6325   False  False
12     first        a  2.0   b    b      False  median  5    17.5000   17.5000   106.6863   False         2.3636      0.3067    0.4292    0.7906   False  False
13     first        a  2.0   b    b      False    mean  5   178.9314   97.4832   203.3605   False         2.3636      0.3067    0.4292    0.7906   False  False
14     first        a  2.0   b    b       True  median  5   776.8943  154.1598   570.8588   False         2.8000      0.2466    0.7518   -0.3162   False  False
15     first        a  2.0   b    b       True    mean  5   615.9070  322.8902   525.3726   False         2.8000      0.2466    0.7518   -0.3162   False  False
16     first        a  3.0   a    a      False  median  4    62.0003  221.1558   280.0541    True         4.5000      0.1054    0.0339    2.1213   False  False
17     first        a  3.0   a    a      False    mean  4   197.4089  272.4645   492.2613    True         4.5000      0.1054    0.0339    2.1213   False  False
18     first        a  3.0   a    a       True  median  4   512.5806  248.9067   594.5905   False         3.5000      0.1738    0.1573    1.4142   False  False
19     first        a  3.0   a    a       True    mean  4   477.0205  434.8961   725.2324   False         3.5000      0.1738    0.1573    1.4142   False  False
20     first        a  3.0   a    b      False  median  4    62.0003  205.1765   248.8598    True         4.5000      0.1054    0.0339    2.1213   False  False
21     first        a  3.0   a    b      False    mean  4   181.1893  258.1203   422.4970    True         4.5000      0.1054    0.0339    2.1213   False  False
22     first        a  3.0   a    b       True  median  4   477.2530  235.1762   536.0591   False         3.5000      0.1738    0.1573    1.4142   False  False
23     first        a  3.0   a    b       True    mean  4   434.0217  411.5701   631.1797   False         3.5000      0.1738    0.1573    1.4142   False  False
24     first        a  3.0   b    a      False  median  4    17.5000   62.0003   117.0403    True         0.5455      0.7613    0.5959    0.5303   False  False
25     first        a  3.0   b    a      False    mean  4   245.6493  148.2878   141.5780   False         0.5455      0.7613    0.5959    0.5303   False  False
26     first        a  3.0   b    a       True  median  4   853.2586  317.3664   512.5806   False         0.9333      0.6271    0.4795   -0.7071   False  False
27     first        a  3.0   b    a       True    mean  4   663.5286  469.1260   567.4974   False         0.9333      0.6271    0.4795   -0.7071   False  False
28     first        a  3.0   b    b      False  median  4    17.5000   29.8667   106.5934    True         0.5455      0.7613    0.5959    0.5303   False  False
29     first        a  3.0   b    b      False    mean  4   219.2893  117.4791   133.7361   False         0.5455      0.7613    0.5959    0.5303   False  False
30     first        a  3.0   b    b       True  median  4   730.2061  273.4213   476.5722   False         0.5000      0.7788    0.7237   -0.3536   False  False
31     first        a  3.0   b    b       True    mean  4   575.6423  399.2378   501.6514   False         0.5000      0.7788    0.7237   -0.3536   False  False
32     first        a  5.0   a    a      False  median  3    17.5000  127.5802   183.0821    True         2.6667      0.2636    0.1025    1.6330   False  False
33     first        a  5.0   a    a      False    mean  3   227.7117  258.3755   530.6731    True         2.6667      0.2636    0.1025    1.6330   False  False
34     first        a  5.0   a    a       True  median  3   648.1350  183.0821   648.1350   False         2.6667      0.2636    0.4142    0.8165   False  False
35     first        a  5.0   a    a       True    mean  3   600.5271  474.9511   841.3012   False         2.6667      0.2636    0.4142    0.8165   False  False
36     first        a  5.0   a    b      False  median  3    17.5000  107.6572   176.7039    True         2.6667      0.2636    0.1025    1.6330   False  False
37     first        a  5.0   a    b      False    mean  3   206.0856  243.2618   456.3241    True         2.6667      0.2636    0.1025    1.6330   False  False
38     first        a  5.0   a    b       True  median  3   583.2567  167.6565   606.1406   False         2.6667      0.2636    0.4142    0.8165   False  False
39     first        a  5.0   a    b       True    mean  3   543.1954  447.8615   734.5678   False         2.6667      0.2636    0.4142    0.8165   False  False
40     first        a  5.0   b    a      False  median  3    17.5000   17.5000   127.5802   False         3.7143      0.1561    0.1530    1.4289   False  False
41     first        a  5.0   b    a      False    mean  3    17.5000   47.1668   153.2705    True         3.7143      0.1561    0.1530    1.4289   False  False
42     first        a  5.0   b    a       True  median  3   776.4203  183.0821   648.1350   False         0.5455      0.7613    1.0000    0.0000   False  False
43     first        a  5.0   b    a       True    mean  3   574.6724  474.9511   651.7527   False         0.5455      0.7613    1.0000    0.0000   False  False
44     first        a  5.0   b    b      False  median  3    17.5000   17.5000   106.6863   False         3.7143      0.1561    0.1530    1.4289   False  False
45     first        a  5.0   b    b      False    mean  3    17.5000   25.7445   142.8146    True         3.7143      0.1561    0.1530    1.4289   False  False
46     first        a  5.0   b    b       True  median  3   683.5179  154.1598   630.7078   False         0.6667      0.7165    0.6831    0.4082   False  False
47     first        a  5.0   b    b       True    mean  3   492.6374  401.4228   576.9537   False         0.6667      0.7165    0.6831    0.4082   False  False
48     first        b  2.0   a    a      False  median  5   106.5005  106.5005   183.0821   False         2.8000      0.2466    0.2059    1.2649   False  False
49     first        b  2.0   a    a      False    mean  5   495.5080  199.4556   473.5469   False         2.8000      0.2466    0.2059    1.2649   False  False
50     first        b  2.0   a    a       True  median  4   512.5806  945.3056   789.1160   False         0.5000      0.7788    0.4795    0.7071   False  False
51     first        b  2.0   a    a       True    mean  4   682.6414  796.9711   760.1337   False         0.5000      0.7788    0.4795    0.7071   False  False
52     first        b  2.0   a    b      False  median  5   106.5005  101.3161   160.4706   False         2.8000      0.2466    0.2059    1.2649   False  False
53     first        b  2.0   a    b      False    mean  5   416.7945  191.9648   415.1052   False         2.8000      0.2466    0.2059    1.2649   False  False
54     first        b  2.0   a    b       True  median  4   477.2530  831.7715   725.7545   False         0.5000      0.7788    0.4795    0.7071   False  False
55     first        b  2.0   a    b       True    mean  4   582.8052  724.8675   672.6878   False         0.5000      0.7788    0.4795    0.7071   False  False
56     first        b  2.0   b    a      False  median  5    17.5000   17.5000    17.5000   False         1.2727      0.5292    0.8744   -0.1581   False  False
57     first        b  2.0   b    a      False    mean  5   286.8496  122.1303   203.0733   False         1.2727      0.5292    0.8744   -0.1581   False  False
58     first        b  2.0   b    a       True  median  5   930.0970  451.6508   648.1350   False         0.7368      0.6918    0.5271   -0.6325   False  False
59     first        b  2.0   b    a       True    mean  5   651.8884  508.5688   546.1947   False         0.7368      0.6918    0.5271   -0.6325   False  False
60     first        b  2.0   b    b      False  median  5    17.5000   17.5000    17.5000   False         1.2727      0.5292    0.8744   -0.1581   False  False
61     first        b  2.0   b    b      False    mean  5   254.9691   97.4832   185.5232   False         1.2727      0.5292    0.8744   -0.1581   False  False
62     first        b  2.0   b    b       True  median  5   776.8943  392.6827   570.8588   False         0.4000      0.8187    0.7518   -0.3162   False  False
63     first        b  2.0   b    b       True    mean  5   558.7411  437.8885   482.5906   False         0.4000      0.8187    0.7518   -0.3162   False  False
64     first        b  3.0   a    a      False  median  4   106.5005  210.6159   252.3031    True         3.5000      0.1738    0.0771    1.7678   False  False
65     first        b  3.0   a    a      False    mean  4   219.6590  244.9445   478.3858    True         3.5000      0.1738    0.0771    1.7678   False  False
66     first        b  3.0   a    a       True  median  4   241.7633  545.5758   512.5806   False         4.5000      0.1054    0.0339    2.1213   False  False
67     first        b  3.0   a    a       True    mean  4   309.5405  597.1062   621.8659    True         4.5000      0.1054    0.0339    2.1213   False  False
68     first        b  3.0   a    b      False  median  4    62.1416  202.0060   214.3364    True         3.5000      0.1738    0.0771    1.7678   False  False
69     first        b  3.0   a    b      False    mean  4   181.2600  235.5810   405.2353    True         3.5000      0.1738    0.0771    1.7678   False  False
70     first        b  3.0   a    b       True  median  4   238.8749  488.8880   463.5781   False         4.5000      0.1054    0.0339    2.1213   False  False
71     first        b  3.0   a    b       True    mean  4   269.6973  553.4258   541.5996   False         4.5000      0.1054    0.0339    2.1213   False  False
72     first        b  3.0   b    a      False  median  4   234.5754   62.0003    62.0003   False         0.5455      0.7613    0.5959   -0.5303   False  False
73     first        b  3.0   b    a      False    mean  4   354.1869  148.2878   114.0580   False         0.5455      0.7613    0.5959   -0.5303   False  False
74     first        b  3.0   b    a       True  median  4   690.8739  614.0355   481.4332   False         0.9333      0.6271    0.4795   -0.7071   False  False
75     first        b  3.0   b    a       True    mean  4   582.3362  631.3360   505.1359   False         0.9333      0.6271    0.4795   -0.7071   False  False
76     first        b  3.0   b    b      False  median  4   207.5941   29.8667    62.0003   False         0.5455      0.7613    0.5959   -0.5303   False  False
77     first        b  3.0   b    b      False    mean  4   314.3364  117.4791   111.4395   False         0.5455      0.7613    0.5959   -0.5303   False  False
78     first        b  3.0   b    b       True  median  4   587.2913  538.1003   453.2261   False         0.5000      0.7788    0.7237   -0.3536   False  False
79     first        b  3.0   b    b       True    mean  4   504.1849  542.9856   448.1738   False         0.5000      0.7788    0.7237   -0.3536   False  False
80     first        b  5.0   a    a      False  median  3   106.5005  106.5005   127.5802   False         2.0000      0.3679    0.2207    1.2247   False  False
81     first        b  5.0   a    a      False    mean  3   257.3785  221.6822   512.1724   False         2.0000      0.3679    0.2207    1.2247   False  False
82     first        b  5.0   a    a       True  median  3   377.0261  776.4203   648.1350   False         2.6667      0.2636    0.1025    1.6330   False  False
83     first        b  5.0   a    a       True    mean  3   377.2205  691.2311   703.4792    True         2.6667      0.2636    0.1025    1.6330   False  False
84     first        b  5.0   a    b      False  median  3    17.7827  101.3161   107.6572    True         2.0000      0.3679    0.2207    1.2247   False  False
85     first        b  5.0   a    b      False    mean  3   206.1798  213.2094   433.3086    True         2.0000      0.3679    0.2207    1.2247   False  False
86     first        b  5.0   a    b       True  median  3   371.2492  675.0803   606.1406   False         2.6667      0.2636    0.1025    1.6330   False  False
87     first        b  5.0   a    b       True    mean  3   324.0962  637.0025   615.1276   False         2.6667      0.2636    0.1025    1.6330   False  False
88     first        b  5.0   b    a      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.8383    0.2041   False  False
89     first        b  5.0   b    a      False    mean  3   162.2169   47.1668   116.5771   False         0.2857      0.8669    0.8383    0.2041   False  False
90     first        b  5.0   b    a       True  median  3   451.6508  776.4203   648.1350   False         0.5455      0.7613    1.0000    0.0000   False  False
91     first        b  5.0   b    a       True    mean  3   466.4159  691.2311   568.6041   False         0.5455      0.7613    1.0000    0.0000   False  False
92     first        b  5.0   b    b      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.8383    0.2041   False  False
93     first        b  5.0   b    b      False    mean  3   144.2294   25.7445   113.0858   False         0.2857      0.8669    0.8383    0.2041   False  False
94     first        b  5.0   b    b       True  median  3   397.6883  683.5179   630.7078   False         0.6667      0.7165    0.6831    0.4082   False  False
95     first        b  5.0   b    b       True    mean  3   397.3608  593.0866   505.6503   False         0.6667      0.7165    0.6831    0.4082   False  False
96   largest        a  2.0   a    a      False  median  5   106.5005  127.5802   183.0821    True         1.6000      0.4493    0.5271    0.6325   False  False
97   largest        a  2.0   a    a      False    mean  5   495.5080  215.0144   419.0826   False         1.6000      0.4493    0.5271    0.6325   False  False
98   largest        a  2.0   a    a       True  median  5   648.1350  648.1350   648.1350   False         0.7368      0.6918    0.4292    0.7906   False  False
99   largest        a  2.0   a    a       True    mean  5   662.6084  663.7657   766.2053    True         0.7368      0.6918    0.4292    0.7906   False  False
100  largest        a  2.0   a    b      False  median  5   106.5005  107.6572   176.7039    True         1.6000      0.4493    0.5271    0.6325   False  False
101  largest        a  2.0   a    b      False    mean  5   433.5011  201.8697   361.4550   False         1.6000      0.4493    0.5271    0.6325   False  False
102  largest        a  2.0   a    b       True  median  5   583.2567  606.1406   602.3809   False         0.4000      0.8187    0.5271    0.6325   False  False
103  largest        a  2.0   a    b       True    mean  5   578.2853  614.6454   673.2655    True         0.4000      0.8187    0.5271    0.6325   False  False
104  largest        a  2.0   b    a      False  median  5    17.5000   17.5000   106.5005   False         0.5455      0.7613    0.6353    0.4743   False  False
105  largest        a  2.0   b    a      False    mean  5   200.0194  122.1303   116.7624   False         0.5455      0.7613    0.6353    0.4743   False  False
106  largest        a  2.0   b    a       True  median  5   776.4203  451.6508   377.0261   False         0.4000      0.8187    0.5271   -0.6325   False  False
107  largest        a  2.0   b    a       True    mean  5   567.4393  528.2038   451.5929   False         0.4000      0.8187    0.5271   -0.6325   False  False
108  largest        a  2.0   b    b      False  median  5    17.5000   17.5000   106.5005   False         0.5455      0.7613    0.6353    0.4743   False  False
109  largest        a  2.0   b    b      False    mean  5   178.9314   97.4832   110.4889   False         0.5455      0.7613    0.6353    0.4743   False  False
110  largest        a  2.0   b    b       True  median  5   683.5179  392.6827   325.1432   False         0.4000      0.8187    0.5271   -0.6325   False  False
111  largest        a  2.0   b    b       True    mean  5   491.3601  447.6016   413.8799   False         0.4000      0.8187    0.5271   -0.6325   False  False
112  largest        a  3.0   a    a      False  median  4   106.5005  221.1558   280.0541    True         1.5000      0.4724    0.2888    1.0607   False  False
113  largest        a  3.0   a    a      False    mean  4   219.6590  264.3930   478.0827    True         1.5000      0.4724    0.2888    1.0607   False  False
114  largest        a  3.0   a    a       True  median  4   415.6086  481.4332   594.5905    True         2.8000      0.2466    0.1116    1.5910   False  False
115  largest        a  3.0   a    a       True    mean  4   428.5345  551.1594   725.2324    True         2.8000      0.2466    0.1116    1.5910   False  False
116  largest        a  3.0   a    b      False  median  4   103.9083  205.1765   248.8598    True         1.5000      0.4724    0.2888    1.0607   False  False
117  largest        a  3.0   a    b      False    mean  4   202.1433  247.9622   411.7011    True         1.5000      0.4724    0.2888    1.0607   False  False
118  largest        a  3.0   a    b       True  median  4   375.4566  454.4182   534.1793    True         2.0000      0.3679    0.1573    1.4142   False  False
119  largest        a  3.0   a    b       True    mean  4   383.1235  521.1911   630.2398    True         2.0000      0.3679    0.1573    1.4142   False  False
120  largest        a  3.0   b    a      False  median  4    17.5000   62.0003   117.0403    True         0.5455      0.7613    0.5959    0.5303   False  False
121  largest        a  3.0   b    a      False    mean  4   245.6493  148.2878   141.5780   False         0.5455      0.7613    0.5959    0.5303   False  False
122  largest        a  3.0   b    a       True  median  4   479.7512  690.8739   459.0360   False         0.5000      0.7788    0.7237   -0.3536   False  False
123  largest        a  3.0   b    a       True    mean  4   476.7748  655.8797   470.2346   False         0.5000      0.7788    0.7237   -0.3536   False  False
124  largest        a  3.0   b    b      False  median  4    17.5000   29.8667   106.5934    True         0.5455      0.7613    0.5959    0.5303   False  False
125  largest        a  3.0   b    b      False    mean  4   219.2893  117.4791   133.7361   False         0.5455      0.7613    0.5959    0.5303   False  False
126  largest        a  3.0   b    b       True  median  4   418.8389  585.1997   418.9022   False         0.5000      0.7788    0.7237   -0.3536   False  False
127  largest        a  3.0   b    b       True    mean  4   419.9587  555.1270   436.0641   False         0.5000      0.7788    0.7237   -0.3536   False  False
128  largest        a  5.0   a    a      False  median  3   106.5005  127.5802   183.0821    True         0.6667      0.7165    0.6831    0.4082   False  False
129  largest        a  5.0   a    a      False    mean  3   257.3785  247.6135   511.7682   False         0.6667      0.7165    0.6831    0.4082   False  False
130  largest        a  5.0   a    a       True  median  3   648.1350  648.1350   648.1350   False         1.2727      0.5292    0.3074    1.0206   False  False
131  largest        a  5.0   a    a       True    mean  3   535.8791  629.9687   841.3012    True         1.2727      0.5292    0.3074    1.0206   False  False
132  largest        a  5.0   a    b      False  median  3   101.3161  107.6572   176.7039    True         0.6667      0.7165    0.6831    0.4082   False  False
133  largest        a  5.0   a    b      False    mean  3   234.0243  229.7176   441.9296   False         0.6667      0.7165    0.6831    0.4082   False  False
134  largest        a  5.0   a    b       True  median  3   583.2567  606.1406   602.3809   False         0.6667      0.7165    0.4142    0.8165   False  False
135  largest        a  5.0   a    b       True    mean  3   475.3311  594.0228   733.3145    True         0.6667      0.7165    0.4142    0.8165   False  False
136  largest        a  5.0   b    a      False  median  3    17.5000   17.5000   127.5802   False         3.7143      0.1561    0.1530    1.4289   False  False
137  largest        a  5.0   b    a      False    mean  3    17.5000   47.1668   153.2705    True         3.7143      0.1561    0.1530    1.4289   False  False
138  largest        a  5.0   b    a       True  median  3   183.0821  930.0970   541.0459   False         0.6667      0.7165    0.6831    0.4082   False  False
139  largest        a  5.0   b    a       True    mean  3   325.6675  723.9560   522.0690   False         0.6667      0.7165    0.6831    0.4082   False  False
140  largest        a  5.0   b    b      False  median  3    17.5000   17.5000   106.6863   False         3.7143      0.1561    0.1530    1.4289   False  False
141  largest        a  5.0   b    b      False    mean  3    17.5000   25.7445   142.8146    True         3.7143      0.1561    0.1530    1.4289   False  False
142  largest        a  5.0   b    b       True  median  3   154.1598  777.7167   515.3676   False         0.6667      0.7165    0.6831    0.4082   False  False
143  largest        a  5.0   b    b       True    mean  3   285.0593  609.2751   489.5040   False         0.6667      0.7165    0.6831    0.4082   False  False
144  largest        b  2.0   a    a      False  median  5   106.5005  127.5802   183.0821    True         1.6000      0.4493    0.5271    0.6325   False  False
145  largest        b  2.0   a    a      False    mean  5   513.3081  215.0144   419.0826   False         1.6000      0.4493    0.5271    0.6325   False  False
146  largest        b  2.0   a    a       True  median  5   183.0821  648.1350   648.1350   False         3.2632      0.1956    0.0820    1.7393   False  False
147  largest        b  2.0   a    a       True    mean  5   528.6244  663.7657   766.2053    True         3.2632      0.1956    0.0820    1.7393   False  False
148  largest        b  2.0   a    b      False  median  5   106.5005  107.6572   176.7039    True         1.6000      0.4493    0.5271    0.6325   False  False
149  largest        b  2.0   a    b      False    mean  5   433.5577  201.8697   361.4550   False         1.6000      0.4493    0.5271    0.6325   False  False
150  largest        b  2.0   a    b       True  median  5   167.6565  606.1406   602.3809   False         2.8000      0.2466    0.1138    1.5811   False  False
151  largest        b  2.0   a    b       True    mean  5   446.8258  614.6454   673.2655    True         2.8000      0.2466    0.1138    1.5811   False  False
152  largest        b  2.0   b    a      False  median  5    17.5000   17.5000   106.5005   False         0.6667      0.7165    0.7518   -0.3162   False  False
153  largest        b  2.0   b    a      False    mean  5   286.8496  122.1303   116.7624   False         0.6667      0.7165    0.7518   -0.3162   False  False
154  largest        b  2.0   b    a       True  median  5   451.6508  451.6508   377.0261   False         0.4000      0.8187    0.5271   -0.6325   False  False
155  largest        b  2.0   b    a       True    mean  5   502.4854  528.2038   451.5929   False         0.4000      0.8187    0.5271   -0.6325   False  False
156  largest        b  2.0   b    b      False  median  5    17.5000   17.5000   106.5005   False         0.6667      0.7165    0.7518   -0.3162   False  False
157  largest        b  2.0   b    b      False    mean  5   254.9691   97.4832   110.4889   False         0.6667      0.7165    0.7518   -0.3162   False  False
158  largest        b  2.0   b    b       True  median  5   397.6883  392.6827   325.1432   False         0.4000      0.8187    0.5271   -0.6325   False  False
159  largest        b  2.0   b    b       True    mean  5   434.1942  447.6016   413.8799   False         0.4000      0.8187    0.5271   -0.6325   False  False
160  largest        b  3.0   a    a      False  median  4   106.5005  221.1558   280.0541    True         1.5000      0.4724    0.2888    1.0607   False  False
161  largest        b  3.0   a    a      False    mean  4   241.9092  264.3930   478.0827    True         1.5000      0.4724    0.2888    1.0607   False  False
162  largest        b  3.0   a    a       True  median  4   144.7913  481.4332   594.5905    True         7.6000      0.0224    0.0080    2.6517   False   True
163  largest        b  3.0   a    a       True    mean  4   261.0546  551.1594   725.2324    True         7.6000      0.0224    0.0080    2.6517   False   True
164  largest        b  3.0   a    b      False  median  4   103.9083  205.1765   248.8598    True         1.5000      0.4724    0.2888    1.0607   False  False
165  largest        b  3.0   a    b      False    mean  4   202.2140  247.9622   411.7011    True         1.5000      0.4724    0.2888    1.0607   False  False
166  largest        b  3.0   a    b       True  median  4   137.0785  454.4182   534.1793    True         6.5000      0.0388    0.0133    2.4749   False   True
167  largest        b  3.0   a    b       True    mean  4   218.7991  521.1911   630.2398    True         6.5000      0.0388    0.0133    2.4749   False   True
168  largest        b  3.0   b    a      False  median  4   234.5754   62.0003   117.0403   False         0.6667      0.7165    0.7237   -0.3536   False  False
169  largest        b  3.0   b    a      False    mean  4   354.1869  148.2878   141.5780   False         0.6667      0.7165    0.7237   -0.3536   False  False
170  largest        b  3.0   b    a       True  median  4   317.3664  690.8739   459.0360   False         0.5000      0.7788    0.7237   -0.3536   False  False
171  largest        b  3.0   b    a       True    mean  4   395.5825  655.8797   470.2346   False         0.5000      0.7788    0.7237   -0.3536   False  False
172  largest        b  3.0   b    b      False  median  4   207.5941   29.8667   106.5934   False         0.6667      0.7165    0.7237   -0.3536   False  False
173  largest        b  3.0   b    b      False    mean  4   314.3364  117.4791   133.7361   False         0.6667      0.7165    0.7237   -0.3536   False  False
174  largest        b  3.0   b    b       True  median  4   275.9240  585.1997   418.9022   False         0.5000      0.7788    0.7237   -0.3536   False  False
175  largest        b  3.0   b    b       True    mean  4   348.5013  555.1270   436.0641   False         0.5000      0.7788    0.7237   -0.3536   False  False
176  largest        b  5.0   a    a      False  median  3   106.5005  127.5802   183.0821    True         0.6667      0.7165    0.6831    0.4082   False  False
177  largest        b  5.0   a    a      False    mean  3   287.0454  247.6135   511.7682   False         0.6667      0.7165    0.6831    0.4082   False  False
178  largest        b  5.0   a    a       True  median  3   183.0821  648.1350   648.1350   False         5.6364      0.0597    0.0247    2.2454   False  False
179  largest        b  5.0   a    a       True    mean  3   312.5726  629.9687   841.3012    True         5.6364      0.0597    0.0247    2.2454   False  False
180  largest        b  5.0   a    b      False  median  3   101.3161  107.6572   176.7039    True         0.6667      0.7165    0.6831    0.4082   False  False
181  largest        b  5.0   a    b      False    mean  3   234.1185  229.7176   441.9296   False         0.6667      0.7165    0.6831    0.4082   False  False
182  largest        b  5.0   a    b       True  median  3   167.6565  606.1406   602.3809   False         4.6667      0.0970    0.0412    2.0412   False  False
183  largest        b  5.0   a    b       True    mean  3   256.2320  594.0228   733.3145    True         4.6667      0.0970    0.0412    2.0412   False  False
184  largest        b  5.0   b    a      False  median  3    17.5000   17.5000   127.5802   False         1.0000      0.6065    0.6831    0.4082   False  False
185  largest        b  5.0   b    a      False    mean  3   162.2169   47.1668   153.2705   False         1.0000      0.6065    0.6831    0.4082   False  False
186  largest        b  5.0   b    a       True  median  3   183.0821  930.0970   541.0459   False         0.6667      0.7165    0.6831    0.4082   False  False
187  largest        b  5.0   b    a       True    mean  3   217.4110  723.9560   522.0690   False         0.6667      0.7165    0.6831    0.4082   False  False
188  largest        b  5.0   b    b      False  median  3    17.5000   17.5000   106.6863   False         1.0000      0.6065    0.6831    0.4082   False  False
189  largest        b  5.0   b    b      False    mean  3   144.2294   25.7445   142.8146   False         1.0000      0.6065    0.6831    0.4082   False  False
190  largest        b  5.0   b    b       True  median  3   154.1598  777.7167   515.3676   False         0.6667      0.7165    0.6831    0.4082   False  False
191  largest        b  5.0   b    b       True    mean  3   189.7827  609.2751   489.5040   False         0.6667      0.7165    0.6831    0.4082   False  False
192   window        a  2.0   a    a      False  median  4   221.1558  280.0541   690.8739    True         4.5000      0.1054    0.0339    2.1213   False  False
193   window        a  2.0   a    a      False    mean  4   276.9866  301.9137   697.6712    True         4.5000      0.1054    0.0339    2.1213   False  False
194   window        a  2.0   a    a       True  median  4   345.8787  459.0360  1334.7225    True         6.5000      0.0388    0.0133    2.4749   False   True
195   window        a  2.0   a    a       True    mean  4   366.8682  553.8363  1229.1210    True         6.5000      0.0388    0.0133    2.4749   False   True
196   window        a  2.0   a    b      False  median  4   205.1765  248.8598   664.9839    True         4.5000      0.1054    0.0339    2.1213   False  False
197   window        a  2.0   a    b      False    mean  4   252.7774  279.9619   630.5591    True         4.5000      0.1054    0.0339    2.1213   False  False
198   window        a  2.0   a    b       True  median  4   336.9725  393.4967  1216.3061    True         6.5000      0.0388    0.0133    2.4749   False   True
199   window        a  2.0   a    b       True    mean  4   341.2147  505.7301  1103.6603    True         6.5000      0.0388    0.0133    2.4749   False   True
200   window        a  2.0   b    a      False  median  4    17.5000  106.5005   117.0403    True         0.8000      0.6703    0.4795    0.7071   False  False
201   window        a  2.0   b    a      False    mean  4   126.0377   89.5203   141.5780   False         0.8000      0.6703    0.4795    0.7071   False  False
202   window        a  2.0   b    a       True  median  4   289.6155  345.8787   789.1160    True         2.5333      0.2818    0.1573    1.4142   False  False
203   window        a  2.0   b    a       True    mean  4   381.7070  497.2576   835.1395    True         2.5333      0.2818    0.1573    1.4142   False  False
204   window        a  2.0   b    b      False  median  4    17.5000   74.3670   108.3707    True         1.2727      0.5292    0.3768    0.8839   False  False
205   window        a  2.0   b    b      False    mean  4   111.2957   68.2301   134.6247   False         1.2727      0.5292    0.3768    0.8839   False  False
206   window        a  2.0   b    b       True  median  4   250.6046  299.0905   704.2122    True         3.5000      0.1738    0.0771    1.7678   False  False
207   window        a  2.0   b    b       True    mean  4   323.9009  423.4807   747.7714    True         3.5000      0.1738    0.0771    1.7678   False  False
208   window        a  3.0   a    a      False  median  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
209   window        a  3.0   a    a      False    mean  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
210   window        a  3.0   a    a       True  median  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
211   window        a  3.0   a    a       True    mean  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
212   window        a  3.0   a    b      False  median  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
213   window        a  3.0   a    b      False    mean  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
214   window        a  3.0   a    b       True  median  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
215   window        a  3.0   a    b       True    mean  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
216   window        a  3.0   b    a      False  median  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
217   window        a  3.0   b    a      False    mean  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
218   window        a  3.0   b    a       True  median  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
219   window        a  3.0   b    a       True    mean  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
220   window        a  3.0   b    b      False  median  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
221   window        a  3.0   b    b      False    mean  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
222   window        a  3.0   b    b       True  median  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
223   window        a  3.0   b    b       True    mean  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
224   window        a  5.0   a    a      False  median  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
225   window        a  5.0   a    a      False    mean  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
226   window        a  5.0   a    a       True  median  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
227   window        a  5.0   a    a       True    mean  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
228   window        a  5.0   a    b      False  median  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
229   window        a  5.0   a    b      False    mean  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
230   window        a  5.0   a    b       True  median  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
231   window        a  5.0   a    b       True    mean  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
232   window        a  5.0   b    a      False  median  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
233   window        a  5.0   b    a      False    mean  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
234   window        a  5.0   b    a       True  median  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
235   window        a  5.0   b    a       True    mean  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
236   window        a  5.0   b    b      False  median  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
237   window        a  5.0   b    b      False    mean  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
238   window        a  5.0   b    b       True  median  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
239   window        a  5.0   b    b       True    mean  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
240   window        b  2.0   a    a      False  median  4   221.1558  280.0541   690.8739    True         4.5000      0.1054    0.0339    2.1213   False  False
241   window        b  2.0   a    a      False    mean  4   276.9866  301.9137   697.6712    True         4.5000      0.1054    0.0339    2.1213   False  False
242   window        b  2.0   a    a       True  median  4   345.8787  459.0360  1334.7225    True         6.5000      0.0388    0.0133    2.4749   False   True
243   window        b  2.0   a    a       True    mean  4   366.8682  553.8363  1229.1210    True         6.5000      0.0388    0.0133    2.4749   False   True
244   window        b  2.0   a    b      False  median  4   205.1765  248.8598   664.9839    True         4.5000      0.1054    0.0339    2.1213   False  False
245   window        b  2.0   a    b      False    mean  4   252.7774  279.9619   630.5591    True         4.5000      0.1054    0.0339    2.1213   False  False
246   window        b  2.0   a    b       True  median  4   336.9725  393.4967  1216.3061    True         6.5000      0.0388    0.0133    2.4749   False   True
247   window        b  2.0   a    b       True    mean  4   341.2147  505.7301  1103.6603    True         6.5000      0.0388    0.0133    2.4749   False   True
248   window        b  2.0   b    a      False  median  4    17.5000  106.5005   117.0403    True         0.8000      0.6703    0.4795    0.7071   False  False
249   window        b  2.0   b    a      False    mean  4   126.0377   89.5203   141.5780   False         0.8000      0.6703    0.4795    0.7071   False  False
250   window        b  2.0   b    a       True  median  4   289.6155  345.8787   789.1160    True         2.5333      0.2818    0.1573    1.4142   False  False
251   window        b  2.0   b    a       True    mean  4   381.7070  497.2576   835.1395    True         2.5333      0.2818    0.1573    1.4142   False  False
252   window        b  2.0   b    b      False  median  4    17.5000   74.3670   108.3707    True         1.2727      0.5292    0.3768    0.8839   False  False
253   window        b  2.0   b    b      False    mean  4   111.2957   68.2301   134.6247   False         1.2727      0.5292    0.3768    0.8839   False  False
254   window        b  2.0   b    b       True  median  4   250.6046  299.0905   704.2122    True         3.5000      0.1738    0.0771    1.7678   False  False
255   window        b  2.0   b    b       True    mean  4   323.9009  423.4807   747.7714    True         3.5000      0.1738    0.0771    1.7678   False  False
256   window        b  3.0   a    a      False  median  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
257   window        b  3.0   a    a      False    mean  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
258   window        b  3.0   a    a       True  median  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
259   window        b  3.0   a    a       True    mean  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
260   window        b  3.0   a    b      False  median  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
261   window        b  3.0   a    b      False    mean  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
262   window        b  3.0   a    b       True  median  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
263   window        b  3.0   a    b       True    mean  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
264   window        b  3.0   b    a      False  median  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
265   window        b  3.0   b    a      False    mean  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
266   window        b  3.0   b    a       True  median  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
267   window        b  3.0   b    a       True    mean  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
268   window        b  3.0   b    b      False  median  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
269   window        b  3.0   b    b      False    mean  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
270   window        b  3.0   b    b       True  median  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
271   window        b  3.0   b    b       True    mean  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
272   window        b  5.0   a    a      False  median  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
273   window        b  5.0   a    a      False    mean  2   332.8175  323.7732   704.4685   False            NaN         NaN       NaN       NaN   False  False
274   window        b  5.0   a    a       True  median  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
275   window        b  5.0   a    a       True    mean  2   512.5806  648.6365   991.4288    True            NaN         NaN       NaN       NaN   False  False
276   window        b  5.0   a    b      False  median  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
277   window        b  5.0   a    b      False    mean  2   300.3783  311.0641   596.1342    True            NaN         NaN       NaN       NaN   False  False
278   window        b  5.0   a    b       True  median  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
279   window        b  5.0   a    b       True    mean  2   477.2530  617.9636   868.8628    True            NaN         NaN       NaN       NaN   False  False
280   window        b  5.0   b    a      False  median  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
281   window        b  5.0   b    a      False    mean  2    17.5000   62.0003   166.1157    True            NaN         NaN       NaN       NaN   False  False
282   window        b  5.0   b    a       True  median  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
283   window        b  5.0   b    a       True    mean  2   473.7985  648.6365   789.1160    True            NaN         NaN       NaN       NaN   False  False
284   window        b  5.0   b    b      False  median  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
285   window        b  5.0   b    b      False    mean  2    17.5000   29.8667   160.8787    True            NaN         NaN       NaN       NaN   False  False
286   window        b  5.0   b    b       True  median  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
287   window        b  5.0   b    b       True    mean  2   397.1971  547.8709   704.2122    True            NaN         NaN       NaN       NaN   False  False
288      inv        a  2.0   a    a      False  median  3   127.5802  127.5802   451.6508   False         2.0000      0.3679    0.2207    1.2247   False  False
289      inv        a  2.0   a    a      False    mean  3   120.5536  128.2923   557.4474    True         2.0000      0.3679    0.2207    1.2247   False  False
290      inv        a  2.0   a    a       True  median  3  1114.1909  776.4203   930.0970   False         1.2727      0.5292    0.8383   -0.2041   False  False
291      inv        a  2.0   a    a       True    mean  3   778.2941  694.5145   831.9796   False         1.2727      0.5292    0.8383   -0.2041   False  False
292      inv        a  2.0   a    b      False  median  3   123.8615  126.9433   398.4614    True         2.0000      0.3679    0.2207    1.2247   False  False
293      inv        a  2.0   a    b      False    mean  3   101.2815  119.1084   505.1362    True         2.0000      0.3679    0.2207    1.2247   False  False
294      inv        a  2.0   a    b       True  median  3   974.6456  648.7917   905.3859   False         2.0000      0.3679    1.0000    0.0000   False  False
295      inv        a  2.0   a    b       True    mean  3   695.5679  591.7753   771.6927   False         2.0000      0.3679    1.0000    0.0000   False  False
296      inv        a  2.0   b    a      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
297      inv        a  2.0   b    a      False    mean  3    99.2431   47.1668   192.0153   False         0.2857      0.8669    0.6831    0.4082   False  False
298      inv        a  2.0   b    a       True  median  3    17.5000  106.5005   930.0970    True         5.6364      0.0597    0.0247    2.2454   False  False
299      inv        a  2.0   b    a       True    mean  3    99.2431  146.2440   745.7400    True         5.6364      0.0597    0.0247    2.2454   False  False
300      inv        a  2.0   b    b      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
301      inv        a  2.0   b    b      False    mean  3    87.5267   20.8267   167.9219   False         0.2857      0.8669    0.6831    0.4082   False  False
302      inv        a  2.0   b    b       True  median  3    17.5000   27.4800   778.2315    True         5.6364      0.0597    0.0247    2.2454   False  False
303      inv        a  2.0   b    b       True    mean  3    87.5267  112.4107   635.1292    True         5.6364      0.0597    0.0247    2.2454   False  False
304      inv        a  3.0   a    a      False  median  3   127.5802  127.5802   451.6508   False         2.0000      0.3679    0.2207    1.2247   False  False
305      inv        a  3.0   a    a      False    mean  3   120.5536  128.2923   557.4474    True         2.0000      0.3679    0.2207    1.2247   False  False
306      inv        a  3.0   a    a       True  median  3  1114.1909  776.4203   930.0970   False         1.2727      0.5292    0.8383   -0.2041   False  False
307      inv        a  3.0   a    a       True    mean  3   778.2941  694.5145   831.9796   False         1.2727      0.5292    0.8383   -0.2041   False  False
308      inv        a  3.0   a    b      False  median  3   123.8615  126.9433   398.4614    True         2.0000      0.3679    0.2207    1.2247   False  False
309      inv        a  3.0   a    b      False    mean  3   101.2815  119.1084   505.1362    True         2.0000      0.3679    0.2207    1.2247   False  False
310      inv        a  3.0   a    b       True  median  3   974.6456  648.7917   905.3859   False         2.0000      0.3679    1.0000    0.0000   False  False
311      inv        a  3.0   a    b       True    mean  3   695.5679  591.7753   771.6927   False         2.0000      0.3679    1.0000    0.0000   False  False
312      inv        a  3.0   b    a      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
313      inv        a  3.0   b    a      False    mean  3    99.2431   47.1668   192.0153   False         0.2857      0.8669    0.6831    0.4082   False  False
314      inv        a  3.0   b    a       True  median  3    17.5000  106.5005   930.0970    True         5.6364      0.0597    0.0247    2.2454   False  False
315      inv        a  3.0   b    a       True    mean  3    99.2431  146.2440   745.7400    True         5.6364      0.0597    0.0247    2.2454   False  False
316      inv        a  3.0   b    b      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
317      inv        a  3.0   b    b      False    mean  3    87.5267   20.8267   167.9219   False         0.2857      0.8669    0.6831    0.4082   False  False
318      inv        a  3.0   b    b       True  median  3    17.5000   27.4800   778.2315    True         5.6364      0.0597    0.0247    2.2454   False  False
319      inv        a  3.0   b    b       True    mean  3    87.5267  112.4107   635.1292    True         5.6364      0.0597    0.0247    2.2454   False  False
320      inv        a  5.0   a    a      False  median  3   127.5802  127.5802   451.6508   False         2.0000      0.3679    0.2207    1.2247   False  False
321      inv        a  5.0   a    a      False    mean  3   120.5536  128.2923   557.4474    True         2.0000      0.3679    0.2207    1.2247   False  False
322      inv        a  5.0   a    a       True  median  3  1114.1909  776.4203   930.0970   False         1.2727      0.5292    0.8383   -0.2041   False  False
323      inv        a  5.0   a    a       True    mean  3   778.2941  694.5145   831.9796   False         1.2727      0.5292    0.8383   -0.2041   False  False
324      inv        a  5.0   a    b      False  median  3   123.8615  126.9433   398.4614    True         2.0000      0.3679    0.2207    1.2247   False  False
325      inv        a  5.0   a    b      False    mean  3   101.2815  119.1084   505.1362    True         2.0000      0.3679    0.2207    1.2247   False  False
326      inv        a  5.0   a    b       True  median  3   974.6456  648.7917   905.3859   False         2.0000      0.3679    1.0000    0.0000   False  False
327      inv        a  5.0   a    b       True    mean  3   695.5679  591.7753   771.6927   False         2.0000      0.3679    1.0000    0.0000   False  False
328      inv        a  5.0   b    a      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
329      inv        a  5.0   b    a      False    mean  3    99.2431   47.1668   192.0153   False         0.2857      0.8669    0.6831    0.4082   False  False
330      inv        a  5.0   b    a       True  median  3    17.5000  106.5005   930.0970    True         5.6364      0.0597    0.0247    2.2454   False  False
331      inv        a  5.0   b    a       True    mean  3    99.2431  146.2440   745.7400    True         5.6364      0.0597    0.0247    2.2454   False  False
332      inv        a  5.0   b    b      False  median  3    17.5000   17.5000    17.5000   False         0.2857      0.8669    0.6831    0.4082   False  False
333      inv        a  5.0   b    b      False    mean  3    87.5267   20.8267   167.9219   False         0.2857      0.8669    0.6831    0.4082   False  False
334      inv        a  5.0   b    b       True  median  3    17.5000   27.4800   778.2315    True         5.6364      0.0597    0.0247    2.2454   False  False
335      inv        a  5.0   b    b       True    mean  3    87.5267  112.4107   635.1292    True         5.6364      0.0597    0.0247    2.2454   False  False
336      inv        b  2.0   a    a      False  median  4   117.0403  108.2420   279.0757   False         3.5000      0.1738    0.0771    1.7678   False  False
337      inv        b  2.0   a    a      False    mean  4    94.7902  118.4452   444.7107    True         3.5000      0.1738    0.0771    1.7678   False  False
338      inv        b  2.0   a    a       True  median  4   610.3457  576.7232  1022.1440   False         1.2000      0.5488    0.5959    0.5303   False  False
339      inv        b  2.0   a    a       True    mean  4   588.0956  615.1424   902.5324    True         1.2000      0.5488    0.5959    0.5303   False  False
340      inv        b  2.0   a    b      False  median  4    88.2652  104.9161   252.0890    True         3.5000      0.1738    0.0771    1.7678   False  False
341      inv        b  2.0   a    b      False    mean  4    80.3361  110.0535   405.2275    True         3.5000      0.1738    0.0771    1.7678   False  False
342      inv        b  2.0   a    b       True  median  4   513.6572  494.3757   920.4573   False         2.0000      0.3679    0.4795    0.7071   False  False
343      inv        b  2.0   a    b       True    mean  4   526.0509  526.3118   812.6517    True         2.0000      0.3679    0.4795    0.7071   False  False
344      inv        b  2.0   b    a      False  median  4   140.1147   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
345      inv        b  2.0   b    a      False    mean  4   140.1147   39.7501   148.3865   False         0.2000      0.9048    0.8597   -0.1768   False  False
346      inv        b  2.0   b    a       True  median  4   140.1147  210.6159   690.8739    True         4.4286      0.1092    0.0518    1.9445   False  False
347      inv        b  2.0   b    a       True    mean  4   187.3450  342.2072   672.2177    True         4.4286      0.1092    0.0518    1.9445   False  False
348      inv        b  2.0   b    b      False  median  4   122.5400   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
349      inv        b  2.0   b    b      False    mean  4   125.1803   19.9950   130.3164   False         0.2000      0.9048    0.8597   -0.1768   False  False
350      inv        b  2.0   b    b       True  median  4   122.5400  159.8661   580.7825    True         5.7333      0.0569    0.0216    2.2981   False  False
351      inv        b  2.0   b    b       True    mean  4   160.0951  287.8569   572.1803    True         5.7333      0.0569    0.0216    2.2981   False  False
352      inv        b  3.0   a    a      False  median  4   117.0403  108.2420   279.0757   False         3.5000      0.1738    0.0771    1.7678   False  False
353      inv        b  3.0   a    a      False    mean  4    94.7902  118.4452   444.7107    True         3.5000      0.1738    0.0771    1.7678   False  False
354      inv        b  3.0   a    a       True  median  4   610.3457  576.7232  1022.1440   False         1.2000      0.5488    0.5959    0.5303   False  False
355      inv        b  3.0   a    a       True    mean  4   588.0956  615.1424   902.5324    True         1.2000      0.5488    0.5959    0.5303   False  False
356      inv        b  3.0   a    b      False  median  4    88.2652  104.9161   252.0890    True         3.5000      0.1738    0.0771    1.7678   False  False
357      inv        b  3.0   a    b      False    mean  4    80.3361  110.0535   405.2275    True         3.5000      0.1738    0.0771    1.7678   False  False
358      inv        b  3.0   a    b       True  median  4   513.6572  494.3757   920.4573   False         2.0000      0.3679    0.4795    0.7071   False  False
359      inv        b  3.0   a    b       True    mean  4   526.0509  526.3118   812.6517    True         2.0000      0.3679    0.4795    0.7071   False  False
360      inv        b  3.0   b    a      False  median  4   140.1147   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
361      inv        b  3.0   b    a      False    mean  4   140.1147   39.7501   148.3865   False         0.2000      0.9048    0.8597   -0.1768   False  False
362      inv        b  3.0   b    a       True  median  4   140.1147  210.6159   690.8739    True         4.4286      0.1092    0.0518    1.9445   False  False
363      inv        b  3.0   b    a       True    mean  4   187.3450  342.2072   672.2177    True         4.4286      0.1092    0.0518    1.9445   False  False
364      inv        b  3.0   b    b      False  median  4   122.5400   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
365      inv        b  3.0   b    b      False    mean  4   125.1803   19.9950   130.3164   False         0.2000      0.9048    0.8597   -0.1768   False  False
366      inv        b  3.0   b    b       True  median  4   122.5400  159.8661   580.7825    True         5.7333      0.0569    0.0216    2.2981   False  False
367      inv        b  3.0   b    b       True    mean  4   160.0951  287.8569   572.1803    True         5.7333      0.0569    0.0216    2.2981   False  False
368      inv        b  5.0   a    a      False  median  4   117.0403  108.2420   279.0757   False         3.5000      0.1738    0.0771    1.7678   False  False
369      inv        b  5.0   a    a      False    mean  4    94.7902  118.4452   444.7107    True         3.5000      0.1738    0.0771    1.7678   False  False
370      inv        b  5.0   a    a       True  median  4   610.3457  576.7232  1022.1440   False         1.2000      0.5488    0.5959    0.5303   False  False
371      inv        b  5.0   a    a       True    mean  4   588.0956  615.1424   902.5324    True         1.2000      0.5488    0.5959    0.5303   False  False
372      inv        b  5.0   a    b      False  median  4    88.2652  104.9161   252.0890    True         3.5000      0.1738    0.0771    1.7678   False  False
373      inv        b  5.0   a    b      False    mean  4    80.3361  110.0535   405.2275    True         3.5000      0.1738    0.0771    1.7678   False  False
374      inv        b  5.0   a    b       True  median  4   513.6572  494.3757   920.4573   False         2.0000      0.3679    0.4795    0.7071   False  False
375      inv        b  5.0   a    b       True    mean  4   526.0509  526.3118   812.6517    True         2.0000      0.3679    0.4795    0.7071   False  False
376      inv        b  5.0   b    a      False  median  4   140.1147   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
377      inv        b  5.0   b    a      False    mean  4   140.1147   39.7501   148.3865   False         0.2000      0.9048    0.8597   -0.1768   False  False
378      inv        b  5.0   b    a       True  median  4   140.1147  210.6159   690.8739    True         4.4286      0.1092    0.0518    1.9445   False  False
379      inv        b  5.0   b    a       True    mean  4   187.3450  342.2072   672.2177    True         4.4286      0.1092    0.0518    1.9445   False  False
380      inv        b  5.0   b    b      False  median  4   122.5400   17.5000    17.5000   False         0.2000      0.9048    0.8597   -0.1768   False  False
381      inv        b  5.0   b    b      False    mean  4   125.1803   19.9950   130.3164   False         0.2000      0.9048    0.8597   -0.1768   False  False
382      inv        b  5.0   b    b       True  median  4   122.5400  159.8661   580.7825    True         5.7333      0.0569    0.0216    2.2981   False  False
383      inv        b  5.0   b    b       True    mean  4   160.0951  287.8569   572.1803    True         5.7333      0.0569    0.0216    2.2981   False  False
combinations meeting the criterion (rising and Friedman P < 0.05): 12 of 384
by rule: {'first': {'sum': 0, 'size': 96}, 'inv': {'sum': 0, 'size': 96}, 'largest': {'sum': 4, 'size': 96}, 'window': {'sum': 8, 'size': 96}}
        rule artefact    k amp step  sustained central  n        P1        P2         P3  rising  friedman_chi2  friedman_p  dunn_p31  dunn_z31  within  meets
162  largest        b  3.0   a    a       True  median  4  144.7913  481.4332   594.5905    True            7.6      0.0224    0.0080    2.6517   False   True
163  largest        b  3.0   a    a       True    mean  4  261.0546  551.1594   725.2324    True            7.6      0.0224    0.0080    2.6517   False   True
166  largest        b  3.0   a    b       True  median  4  137.0785  454.4182   534.1793    True            6.5      0.0388    0.0133    2.4749   False   True
167  largest        b  3.0   a    b       True    mean  4  218.7991  521.1911   630.2398    True            6.5      0.0388    0.0133    2.4749   False   True
194   window        a  2.0   a    a       True  median  4  345.8787  459.0360  1334.7225    True            6.5      0.0388    0.0133    2.4749   False   True
195   window        a  2.0   a    a       True    mean  4  366.8682  553.8363  1229.1210    True            6.5      0.0388    0.0133    2.4749   False   True
198   window        a  2.0   a    b       True  median  4  336.9725  393.4967  1216.3061    True            6.5      0.0388    0.0133    2.4749   False   True
199   window        a  2.0   a    b       True    mean  4  341.2147  505.7301  1103.6603    True            6.5      0.0388    0.0133    2.4749   False   True
242   window        b  2.0   a    a       True  median  4  345.8787  459.0360  1334.7225    True            6.5      0.0388    0.0133    2.4749   False   True
243   window        b  2.0   a    a       True    mean  4  366.8682  553.8363  1229.1210    True            6.5      0.0388    0.0133    2.4749   False   True
246   window        b  2.0   a    b       True  median  4  336.9725  393.4967  1216.3061    True            6.5      0.0388    0.0133    2.4749   False   True
247   window        b  2.0   a    b       True    mean  4  341.2147  505.7301  1103.6603    True            6.5      0.0388    0.0133    2.4749   False   True
combinations with all three values within 10%: 0
smallest Friedman P with rising central values, by rule: {'first': 0.1054, 'inv': 0.0569, 'largest': 0.0224, 'window': 0.0388}

per-rat thresholds (uA), rule first, artefact a, k = 3, amplitude a, step a, first passing:
           P1     P2      P3
12-005  648.0  541.0  1335.0
12-006   18.0  128.0   183.0
12-007  107.0  315.0   377.0
12-008    NaN    NaN     NaN
12-010   18.0  107.0    74.0

per-rat thresholds (uA), rule largest, artefact a, k = 3, amplitude a, step a, first passing:
           P1     P2      P3
12-005  648.0  541.0  1335.0
12-006   18.0  128.0   183.0
12-007  107.0  315.0   377.0
12-008    NaN    NaN     NaN
12-010  107.0   74.0    18.0

per-rat thresholds (uA), rule window, artefact a, k = 3, amplitude a, step a, first passing:
           P1     P2      P3
12-005  648.0  541.0  1335.0
12-006    NaN    NaN     NaN
12-007    NaN    NaN     NaN
12-008    NaN    NaN     NaN
12-010   18.0  107.0    74.0

per-rat thresholds (uA), rule inv, artefact a, k = 3, amplitude a, step a, first passing:
           P1     P2      P3
12-005  107.0  128.0  1114.0
12-006  128.0  183.0   452.0
12-007    NaN    NaN     NaN
12-008    NaN    NaN     NaN
12-010  128.0   74.0   107.0
per-rat thresholds (uA), rule first, sustained reading:
           P1      P2      P3
12-005  648.0  1114.0  1335.0
12-006  776.0   128.0   541.0
12-007  107.0   315.0   377.0
12-008    NaN     NaN     NaN
12-010  377.0   183.0   648.0
lowest file current, uA: [17.5, 17.5, 106.5, 17.5, 17.5]

Variants outside the criterion: the paper's 0.05 uV is within the noise of most files, so the same thresholds are computed with the pass level raised (i) to three times each file's noise SD (where that is above 0.05 uV), and (ii) to 5 uV in the stored units, which is 0.05 uV if the stored values carry the 10^2 gain of the Methods. Both are put through the Friedman and Dunn tests, for each rule (artefact a, k = 3, amplitude a, lowest passing current).

In [24]:
rows, vrows = [], []
VAR = {}
for rule in P.RULES:
    for vname in ("3 noise SD", "5 uV (gain 100)"):
        Ms = []
        for s in P.ACUTE:
            r = A[(rule, "a", 3.0, s)]
            lvl = max(0.05, 3 * r["sd"]) if vname == "3 noise SD" else 5.0
            old = P.THRESH_UV
            P.THRESH_UV = lvl
            try:
                th = P.thresholds(r["levels"], r["t"], r["lats"], "a", "a") if len(r["lats"]) else []
            finally:
                P.THRESH_UV = old
            rows.append(dict(rule=rule, variant=vname, sub=s, pass_uV=round(lvl, 3), thr_uA=np.round(th, 0).tolist()))
            Ms.append(th if len(th) == 3 else [np.nan] * 3)
        M = np.array(Ms, float)
        VAR[(rule, vname)] = M
        D, chi, p, pairs = thr_stats(M)
        med = np.median(D, 0) if len(D) else np.full(3, np.nan)
        vrows.append(dict(rule=rule, variant=vname, n=len(D), P1=med[0], P2=med[1], P3=med[2],
                          rising=bool(med[0] < med[1] < med[2]), friedman_chi2=chi, friedman_p=p,
                          dunn_z31=pairs[(0, 2)][0], dunn_p31=pairs[(0, 2)][1],
                          within=bool(np.all(np.abs(med - EXP_T) <= TOL_T + 1e-9))))
print(pd.DataFrame(rows).to_string())
var_tab = pd.DataFrame(vrows)
print(var_tab.round(4).to_string())
       rule          variant     sub  pass_uV                   thr_uA
0     first       3 noise SD  12-005    0.071  [648.0, 1114.0, 1335.0]
1     first       3 noise SD  12-006    0.077    [107.0, 128.0, 377.0]
2     first       3 noise SD  12-007    0.173    [107.0, 776.0, 452.0]
3     first       3 noise SD  12-008    0.701         [1599.0, 1114.0]
4     first       3 noise SD  12-010    0.599     [89.0, 219.0, 930.0]
5     first  5 uV (gain 100)  12-005    5.000          [nan, nan, nan]
6     first  5 uV (gain 100)  12-006    5.000       [nan, 1114.0, nan]
7     first  5 uV (gain 100)  12-007    5.000          [nan, nan, nan]
8     first  5 uV (gain 100)  12-008    5.000            [1599.0, nan]
9     first  5 uV (gain 100)  12-010    5.000   [930.0, 930.0, 1599.0]
10  largest       3 noise SD  12-005    0.071  [648.0, 1114.0, 1335.0]
11  largest       3 noise SD  12-006    0.077    [107.0, 128.0, 377.0]
12  largest       3 noise SD  12-007    0.173    [107.0, 776.0, 452.0]
13  largest       3 noise SD  12-008    0.701         [1599.0, 1114.0]
14  largest       3 noise SD  12-010    0.599    [219.0, 930.0, 930.0]
15  largest  5 uV (gain 100)  12-005    5.000          [nan, nan, nan]
16  largest  5 uV (gain 100)  12-006    5.000       [nan, 1114.0, nan]
17  largest  5 uV (gain 100)  12-007    5.000          [nan, nan, nan]
18  largest  5 uV (gain 100)  12-008    5.000            [1599.0, nan]
19  largest  5 uV (gain 100)  12-010    5.000     [930.0, 1599.0, nan]
20   window       3 noise SD  12-005    0.071  [648.0, 1114.0, 1335.0]
21   window       3 noise SD  12-006    0.077                       []
22   window       3 noise SD  12-007    0.173                       []
23   window       3 noise SD  12-008    0.701                       []
24   window       3 noise SD  12-010    0.599     [89.0, 219.0, 930.0]
25   window  5 uV (gain 100)  12-005    5.000          [nan, nan, nan]
26   window  5 uV (gain 100)  12-006    5.000                       []
27   window  5 uV (gain 100)  12-007    5.000                       []
28   window  5 uV (gain 100)  12-008    5.000                       []
29   window  5 uV (gain 100)  12-010    5.000   [930.0, 930.0, 1599.0]
30      inv       3 noise SD  12-005    0.071   [107.0, 776.0, 1114.0]
31      inv       3 noise SD  12-006    0.077   [1114.0, 183.0, 452.0]
32      inv       3 noise SD  12-007    0.173          [930.0, 1114.0]
33      inv       3 noise SD  12-008    0.701          [930.0, 1114.0]
34      inv       3 noise SD  12-010    0.599   [315.0, 648.0, 1114.0]
35      inv  5 uV (gain 100)  12-005    5.000          [nan, nan, nan]
36      inv  5 uV (gain 100)  12-006    5.000       [nan, 1114.0, nan]
37      inv  5 uV (gain 100)  12-007    5.000               [nan, nan]
38      inv  5 uV (gain 100)  12-008    5.000               [nan, nan]
39      inv  5 uV (gain 100)  12-010    5.000    [1335.0, 1114.0, nan]
      rule          variant  n        P1        P2         P3  rising  friedman_chi2  friedman_p  dunn_z31  dunn_p31  within
0    first       3 noise SD  4  106.5005  497.8699   690.8739    True         6.5000      0.0388    2.4749    0.0133   False
1    first  5 uV (gain 100)  1  930.0970  930.0970  1598.9039   False            NaN         NaN       NaN       NaN   False
2  largest       3 noise SD  4  162.9100  853.2586   690.8739   False         6.5333      0.0381    2.2981    0.0216   False
3  largest  5 uV (gain 100)  0       NaN       NaN        NaN   False            NaN         NaN       NaN       NaN   False
4   window       3 noise SD  2  368.5194  666.7552  1132.4098    True            NaN         NaN       NaN       NaN   False
5   window  5 uV (gain 100)  1  930.0970  930.0970  1598.9039   False            NaN         NaN       NaN       NaN   False
6      inv       3 noise SD  3  314.7314  648.1350  1114.1909    True         2.0000      0.3679    1.2247    0.2207   False
7      inv  5 uV (gain 100)  0       NaN       NaN        NaN   False            NaN         NaN       NaN       NaN   False

How often does noise alone pass the paper's test? Band-passed Gaussian noise (500 to 3000 Hz, 4th-order Butterworth, as the files' filter; 200 kHz; 8 ms), two independent recordings, at the SDs of the deposited files; the peak nearest a latency is measured as in amp_at. The generator is seeded from the claim (payne-2020/anes-threshold-order), with the four further seeds of the protocol.

In [25]:
import zlib
from scipy import signal as ssig
b_, a_ = ssig.butter(4, [500, 3000], btype="band", fs=200000)
tt_ = 0.6 + np.arange(1600) / 200.0
def noise_trace(rng, sd):
    x = ssig.lfilter(b_, a_, rng.standard_normal(4000))[-1600:]
    return x / x.std() * sd
seed0 = zlib.crc32(b"payne-2020/anes-threshold-order")
rows = []
for off in (0, 1000, 2000, 3000, 4000):
    rng = np.random.default_rng(seed0 + off)
    for sd in (0.02, 0.05, 0.2, 0.7):
        n_pass = 0
        for _ in range(400):
            r1, r2 = noise_trace(rng, sd), noise_trace(rng, sd)
            n_pass += min(P.amp_at(r1, tt_, 3.0, "a")[0], P.amp_at(r2, tt_, 3.0, "a")[0]) >= P.THRESH_UV
        rows.append(dict(seed_offset=off, noise_sd_uV=sd, false_pass=n_pass / 400))
fp = pd.DataFrame(rows).pivot(index="noise_sd_uV", columns="seed_offset", values="false_pass")
print("fraction of noise-only current steps passing the 0.05 uV test in both recordings, by seed:")
print(fp.round(3).to_string())
fraction of noise-only current steps passing the 0.05 uV test in both recordings, by seed:
seed_offset   0      1000   2000   3000   4000
noise_sd_uV                                   
0.02         0.002  0.000  0.000  0.000  0.000
0.05         0.252  0.248  0.280  0.242  0.250
0.20         0.675  0.680  0.708  0.632  0.735
0.70         0.742  0.745  0.765  0.755  0.730

Result: not reproduced. Under the criterion's threshold (the lowest current that passes), no combination of readings under any peak rule (0 of 192) gives thresholds rising from P1 to P3 with a Friedman P below 0.05, and none puts the three values within 10% of 377, 648 and 930 uA. Under the main reading the medians over four rats are 62, 221 and 280 uA, rising, with Friedman chi2 = 4.5 and P = 0.105. Twelve combinations of 384 meet the criterion, all under the further "sustained" reading (lowest current from which every higher current passes), which is not the criterion's definition: rule largest with artefact end (b) and margin 3 (Friedman P = 0.022 and 0.039), and rule window with margin 2 (P = 0.039); none is within tolerance. The 0.05 uV level lies within the noise of most files: noise alone passes the two-recording test in 24 to 28% of current steps at 0.05 uV SD and 63 to 77% at 0.2 to 0.7 uV SD (five seeds), so several thresholds equal the lowest current. With the pass level raised to three noise SDs (a variant outside the criterion) the main rule gives medians of 107, 498 and 691 uA, rising, Friedman chi2 = 6.5, P = 0.039 (n = 4), still outside tolerance; with a pass level of 5 uV (the stored values read as carrying a gain of 100) at most one rat has three thresholds.

fig2c-p3-above-p1¶

The third responding population has a significantly higher threshold than the first (P = 0.034).

Dunn's test on the Friedman mean ranks, P3 against P1, unadjusted and Bonferroni-adjusted over three pairs, for every threshold reading of anes-threshold-order.

In [26]:
d = thr_tab[thr_tab.central == "median"].copy()
d["dunn_p31_bonf"] = np.minimum(1, 3 * d.dunn_p31)
d["P3_higher"] = d.dunn_z31 > 0
cols_ = ["rule", "artefact", "k", "amp", "step", "sustained", "n", "friedman_p", "dunn_z31", "dunn_p31", "dunn_p31_bonf", "P3_higher"]
print(d[cols_].round(4).to_string())
for rule in P.RULES:
    q = d[d.rule == rule]
    print(f"rule {rule}: readings with P3 higher and unadjusted P < 0.05:", int(((q.dunn_p31 < 0.05) & q.P3_higher).sum()), "of", len(q),
          "; Bonferroni P < 0.05:", int(((q.dunn_p31_bonf < 0.05) & q.P3_higher).sum()))
ok = d[(d.dunn_p31 < 0.05) & d.P3_higher]
print("passing readings:\n", ok[cols_].round(4).to_string())
print("smallest unadjusted Dunn P with P3 higher: %.4f" % d[d.P3_higher].dunn_p31.min())
print("\nwith all five rats (rows with n = 5), smallest unadjusted P with P3 higher: %.4f" % d[d.P3_higher & (d.n == 5)].dunn_p31.min())
v = var_tab.copy(); v["dunn_p31_bonf"] = np.minimum(1, 3 * v.dunn_p31)
print("variants with a raised pass level:\n", v.round(4).to_string())
        rule artefact    k amp step  sustained  n  friedman_p  dunn_z31  dunn_p31  dunn_p31_bonf  P3_higher
0      first        a  2.0   a    a      False  5      0.2466    1.5811    0.1138         0.3415       True
2      first        a  2.0   a    a       True  4      0.4724    0.0000    1.0000         1.0000      False
4      first        a  2.0   a    b      False  5      0.2466    1.5811    0.1138         0.3415       True
6      first        a  2.0   a    b       True  4      0.4724    0.0000    1.0000         1.0000      False
8      first        a  2.0   b    a      False  5      0.3067    0.7906    0.4292         1.0000       True
10     first        a  2.0   b    a       True  5      0.1956   -0.6325    0.5271         1.0000      False
12     first        a  2.0   b    b      False  5      0.3067    0.7906    0.4292         1.0000       True
14     first        a  2.0   b    b       True  5      0.2466   -0.3162    0.7518         1.0000      False
16     first        a  3.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
18     first        a  3.0   a    a       True  4      0.1738    1.4142    0.1573         0.4719       True
20     first        a  3.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
22     first        a  3.0   a    b       True  4      0.1738    1.4142    0.1573         0.4719       True
24     first        a  3.0   b    a      False  4      0.7613    0.5303    0.5959         1.0000       True
26     first        a  3.0   b    a       True  4      0.6271   -0.7071    0.4795         1.0000      False
28     first        a  3.0   b    b      False  4      0.7613    0.5303    0.5959         1.0000       True
30     first        a  3.0   b    b       True  4      0.7788   -0.3536    0.7237         1.0000      False
32     first        a  5.0   a    a      False  3      0.2636    1.6330    0.1025         0.3074       True
34     first        a  5.0   a    a       True  3      0.2636    0.8165    0.4142         1.0000       True
36     first        a  5.0   a    b      False  3      0.2636    1.6330    0.1025         0.3074       True
38     first        a  5.0   a    b       True  3      0.2636    0.8165    0.4142         1.0000       True
40     first        a  5.0   b    a      False  3      0.1561    1.4289    0.1530         0.4591       True
42     first        a  5.0   b    a       True  3      0.7613    0.0000    1.0000         1.0000      False
44     first        a  5.0   b    b      False  3      0.1561    1.4289    0.1530         0.4591       True
46     first        a  5.0   b    b       True  3      0.7165    0.4082    0.6831         1.0000       True
48     first        b  2.0   a    a      False  5      0.2466    1.2649    0.2059         0.6177       True
50     first        b  2.0   a    a       True  4      0.7788    0.7071    0.4795         1.0000       True
52     first        b  2.0   a    b      False  5      0.2466    1.2649    0.2059         0.6177       True
54     first        b  2.0   a    b       True  4      0.7788    0.7071    0.4795         1.0000       True
56     first        b  2.0   b    a      False  5      0.5292   -0.1581    0.8744         1.0000      False
58     first        b  2.0   b    a       True  5      0.6918   -0.6325    0.5271         1.0000      False
60     first        b  2.0   b    b      False  5      0.5292   -0.1581    0.8744         1.0000      False
62     first        b  2.0   b    b       True  5      0.8187   -0.3162    0.7518         1.0000      False
64     first        b  3.0   a    a      False  4      0.1738    1.7678    0.0771         0.2313       True
66     first        b  3.0   a    a       True  4      0.1054    2.1213    0.0339         0.1017       True
68     first        b  3.0   a    b      False  4      0.1738    1.7678    0.0771         0.2313       True
70     first        b  3.0   a    b       True  4      0.1054    2.1213    0.0339         0.1017       True
72     first        b  3.0   b    a      False  4      0.7613   -0.5303    0.5959         1.0000      False
74     first        b  3.0   b    a       True  4      0.6271   -0.7071    0.4795         1.0000      False
76     first        b  3.0   b    b      False  4      0.7613   -0.5303    0.5959         1.0000      False
78     first        b  3.0   b    b       True  4      0.7788   -0.3536    0.7237         1.0000      False
80     first        b  5.0   a    a      False  3      0.3679    1.2247    0.2207         0.6620       True
82     first        b  5.0   a    a       True  3      0.2636    1.6330    0.1025         0.3074       True
84     first        b  5.0   a    b      False  3      0.3679    1.2247    0.2207         0.6620       True
86     first        b  5.0   a    b       True  3      0.2636    1.6330    0.1025         0.3074       True
88     first        b  5.0   b    a      False  3      0.8669    0.2041    0.8383         1.0000       True
90     first        b  5.0   b    a       True  3      0.7613    0.0000    1.0000         1.0000      False
92     first        b  5.0   b    b      False  3      0.8669    0.2041    0.8383         1.0000       True
94     first        b  5.0   b    b       True  3      0.7165    0.4082    0.6831         1.0000       True
96   largest        a  2.0   a    a      False  5      0.4493    0.6325    0.5271         1.0000       True
98   largest        a  2.0   a    a       True  5      0.6918    0.7906    0.4292         1.0000       True
100  largest        a  2.0   a    b      False  5      0.4493    0.6325    0.5271         1.0000       True
102  largest        a  2.0   a    b       True  5      0.8187    0.6325    0.5271         1.0000       True
104  largest        a  2.0   b    a      False  5      0.7613    0.4743    0.6353         1.0000       True
106  largest        a  2.0   b    a       True  5      0.8187   -0.6325    0.5271         1.0000      False
108  largest        a  2.0   b    b      False  5      0.7613    0.4743    0.6353         1.0000       True
110  largest        a  2.0   b    b       True  5      0.8187   -0.6325    0.5271         1.0000      False
112  largest        a  3.0   a    a      False  4      0.4724    1.0607    0.2888         0.8665       True
114  largest        a  3.0   a    a       True  4      0.2466    1.5910    0.1116         0.3348       True
116  largest        a  3.0   a    b      False  4      0.4724    1.0607    0.2888         0.8665       True
118  largest        a  3.0   a    b       True  4      0.3679    1.4142    0.1573         0.4719       True
120  largest        a  3.0   b    a      False  4      0.7613    0.5303    0.5959         1.0000       True
122  largest        a  3.0   b    a       True  4      0.7788   -0.3536    0.7237         1.0000      False
124  largest        a  3.0   b    b      False  4      0.7613    0.5303    0.5959         1.0000       True
126  largest        a  3.0   b    b       True  4      0.7788   -0.3536    0.7237         1.0000      False
128  largest        a  5.0   a    a      False  3      0.7165    0.4082    0.6831         1.0000       True
130  largest        a  5.0   a    a       True  3      0.5292    1.0206    0.3074         0.9223       True
132  largest        a  5.0   a    b      False  3      0.7165    0.4082    0.6831         1.0000       True
134  largest        a  5.0   a    b       True  3      0.7165    0.8165    0.4142         1.0000       True
136  largest        a  5.0   b    a      False  3      0.1561    1.4289    0.1530         0.4591       True
138  largest        a  5.0   b    a       True  3      0.7165    0.4082    0.6831         1.0000       True
140  largest        a  5.0   b    b      False  3      0.1561    1.4289    0.1530         0.4591       True
142  largest        a  5.0   b    b       True  3      0.7165    0.4082    0.6831         1.0000       True
144  largest        b  2.0   a    a      False  5      0.4493    0.6325    0.5271         1.0000       True
146  largest        b  2.0   a    a       True  5      0.1956    1.7393    0.0820         0.2460       True
148  largest        b  2.0   a    b      False  5      0.4493    0.6325    0.5271         1.0000       True
150  largest        b  2.0   a    b       True  5      0.2466    1.5811    0.1138         0.3415       True
152  largest        b  2.0   b    a      False  5      0.7165   -0.3162    0.7518         1.0000      False
154  largest        b  2.0   b    a       True  5      0.8187   -0.6325    0.5271         1.0000      False
156  largest        b  2.0   b    b      False  5      0.7165   -0.3162    0.7518         1.0000      False
158  largest        b  2.0   b    b       True  5      0.8187   -0.6325    0.5271         1.0000      False
160  largest        b  3.0   a    a      False  4      0.4724    1.0607    0.2888         0.8665       True
162  largest        b  3.0   a    a       True  4      0.0224    2.6517    0.0080         0.0240       True
164  largest        b  3.0   a    b      False  4      0.4724    1.0607    0.2888         0.8665       True
166  largest        b  3.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
168  largest        b  3.0   b    a      False  4      0.7165   -0.3536    0.7237         1.0000      False
170  largest        b  3.0   b    a       True  4      0.7788   -0.3536    0.7237         1.0000      False
172  largest        b  3.0   b    b      False  4      0.7165   -0.3536    0.7237         1.0000      False
174  largest        b  3.0   b    b       True  4      0.7788   -0.3536    0.7237         1.0000      False
176  largest        b  5.0   a    a      False  3      0.7165    0.4082    0.6831         1.0000       True
178  largest        b  5.0   a    a       True  3      0.0597    2.2454    0.0247         0.0742       True
180  largest        b  5.0   a    b      False  3      0.7165    0.4082    0.6831         1.0000       True
182  largest        b  5.0   a    b       True  3      0.0970    2.0412    0.0412         0.1237       True
184  largest        b  5.0   b    a      False  3      0.6065    0.4082    0.6831         1.0000       True
186  largest        b  5.0   b    a       True  3      0.7165    0.4082    0.6831         1.0000       True
188  largest        b  5.0   b    b      False  3      0.6065    0.4082    0.6831         1.0000       True
190  largest        b  5.0   b    b       True  3      0.7165    0.4082    0.6831         1.0000       True
192   window        a  2.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
194   window        a  2.0   a    a       True  4      0.0388    2.4749    0.0133         0.0400       True
196   window        a  2.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
198   window        a  2.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
200   window        a  2.0   b    a      False  4      0.6703    0.7071    0.4795         1.0000       True
202   window        a  2.0   b    a       True  4      0.2818    1.4142    0.1573         0.4719       True
204   window        a  2.0   b    b      False  4      0.5292    0.8839    0.3768         1.0000       True
206   window        a  2.0   b    b       True  4      0.1738    1.7678    0.0771         0.2313       True
208   window        a  3.0   a    a      False  2         NaN       NaN       NaN            NaN      False
210   window        a  3.0   a    a       True  2         NaN       NaN       NaN            NaN      False
212   window        a  3.0   a    b      False  2         NaN       NaN       NaN            NaN      False
214   window        a  3.0   a    b       True  2         NaN       NaN       NaN            NaN      False
216   window        a  3.0   b    a      False  2         NaN       NaN       NaN            NaN      False
218   window        a  3.0   b    a       True  2         NaN       NaN       NaN            NaN      False
220   window        a  3.0   b    b      False  2         NaN       NaN       NaN            NaN      False
222   window        a  3.0   b    b       True  2         NaN       NaN       NaN            NaN      False
224   window        a  5.0   a    a      False  2         NaN       NaN       NaN            NaN      False
226   window        a  5.0   a    a       True  2         NaN       NaN       NaN            NaN      False
228   window        a  5.0   a    b      False  2         NaN       NaN       NaN            NaN      False
230   window        a  5.0   a    b       True  2         NaN       NaN       NaN            NaN      False
232   window        a  5.0   b    a      False  2         NaN       NaN       NaN            NaN      False
234   window        a  5.0   b    a       True  2         NaN       NaN       NaN            NaN      False
236   window        a  5.0   b    b      False  2         NaN       NaN       NaN            NaN      False
238   window        a  5.0   b    b       True  2         NaN       NaN       NaN            NaN      False
240   window        b  2.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
242   window        b  2.0   a    a       True  4      0.0388    2.4749    0.0133         0.0400       True
244   window        b  2.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
246   window        b  2.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
248   window        b  2.0   b    a      False  4      0.6703    0.7071    0.4795         1.0000       True
250   window        b  2.0   b    a       True  4      0.2818    1.4142    0.1573         0.4719       True
252   window        b  2.0   b    b      False  4      0.5292    0.8839    0.3768         1.0000       True
254   window        b  2.0   b    b       True  4      0.1738    1.7678    0.0771         0.2313       True
256   window        b  3.0   a    a      False  2         NaN       NaN       NaN            NaN      False
258   window        b  3.0   a    a       True  2         NaN       NaN       NaN            NaN      False
260   window        b  3.0   a    b      False  2         NaN       NaN       NaN            NaN      False
262   window        b  3.0   a    b       True  2         NaN       NaN       NaN            NaN      False
264   window        b  3.0   b    a      False  2         NaN       NaN       NaN            NaN      False
266   window        b  3.0   b    a       True  2         NaN       NaN       NaN            NaN      False
268   window        b  3.0   b    b      False  2         NaN       NaN       NaN            NaN      False
270   window        b  3.0   b    b       True  2         NaN       NaN       NaN            NaN      False
272   window        b  5.0   a    a      False  2         NaN       NaN       NaN            NaN      False
274   window        b  5.0   a    a       True  2         NaN       NaN       NaN            NaN      False
276   window        b  5.0   a    b      False  2         NaN       NaN       NaN            NaN      False
278   window        b  5.0   a    b       True  2         NaN       NaN       NaN            NaN      False
280   window        b  5.0   b    a      False  2         NaN       NaN       NaN            NaN      False
282   window        b  5.0   b    a       True  2         NaN       NaN       NaN            NaN      False
284   window        b  5.0   b    b      False  2         NaN       NaN       NaN            NaN      False
286   window        b  5.0   b    b       True  2         NaN       NaN       NaN            NaN      False
288      inv        a  2.0   a    a      False  3      0.3679    1.2247    0.2207         0.6620       True
290      inv        a  2.0   a    a       True  3      0.5292   -0.2041    0.8383         1.0000      False
292      inv        a  2.0   a    b      False  3      0.3679    1.2247    0.2207         0.6620       True
294      inv        a  2.0   a    b       True  3      0.3679    0.0000    1.0000         1.0000      False
296      inv        a  2.0   b    a      False  3      0.8669    0.4082    0.6831         1.0000       True
298      inv        a  2.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
300      inv        a  2.0   b    b      False  3      0.8669    0.4082    0.6831         1.0000       True
302      inv        a  2.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
304      inv        a  3.0   a    a      False  3      0.3679    1.2247    0.2207         0.6620       True
306      inv        a  3.0   a    a       True  3      0.5292   -0.2041    0.8383         1.0000      False
308      inv        a  3.0   a    b      False  3      0.3679    1.2247    0.2207         0.6620       True
310      inv        a  3.0   a    b       True  3      0.3679    0.0000    1.0000         1.0000      False
312      inv        a  3.0   b    a      False  3      0.8669    0.4082    0.6831         1.0000       True
314      inv        a  3.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
316      inv        a  3.0   b    b      False  3      0.8669    0.4082    0.6831         1.0000       True
318      inv        a  3.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
320      inv        a  5.0   a    a      False  3      0.3679    1.2247    0.2207         0.6620       True
322      inv        a  5.0   a    a       True  3      0.5292   -0.2041    0.8383         1.0000      False
324      inv        a  5.0   a    b      False  3      0.3679    1.2247    0.2207         0.6620       True
326      inv        a  5.0   a    b       True  3      0.3679    0.0000    1.0000         1.0000      False
328      inv        a  5.0   b    a      False  3      0.8669    0.4082    0.6831         1.0000       True
330      inv        a  5.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
332      inv        a  5.0   b    b      False  3      0.8669    0.4082    0.6831         1.0000       True
334      inv        a  5.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
336      inv        b  2.0   a    a      False  4      0.1738    1.7678    0.0771         0.2313       True
338      inv        b  2.0   a    a       True  4      0.5488    0.5303    0.5959         1.0000       True
340      inv        b  2.0   a    b      False  4      0.1738    1.7678    0.0771         0.2313       True
342      inv        b  2.0   a    b       True  4      0.3679    0.7071    0.4795         1.0000       True
344      inv        b  2.0   b    a      False  4      0.9048   -0.1768    0.8597         1.0000      False
346      inv        b  2.0   b    a       True  4      0.1092    1.9445    0.0518         0.1555       True
348      inv        b  2.0   b    b      False  4      0.9048   -0.1768    0.8597         1.0000      False
350      inv        b  2.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
352      inv        b  3.0   a    a      False  4      0.1738    1.7678    0.0771         0.2313       True
354      inv        b  3.0   a    a       True  4      0.5488    0.5303    0.5959         1.0000       True
356      inv        b  3.0   a    b      False  4      0.1738    1.7678    0.0771         0.2313       True
358      inv        b  3.0   a    b       True  4      0.3679    0.7071    0.4795         1.0000       True
360      inv        b  3.0   b    a      False  4      0.9048   -0.1768    0.8597         1.0000      False
362      inv        b  3.0   b    a       True  4      0.1092    1.9445    0.0518         0.1555       True
364      inv        b  3.0   b    b      False  4      0.9048   -0.1768    0.8597         1.0000      False
366      inv        b  3.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
368      inv        b  5.0   a    a      False  4      0.1738    1.7678    0.0771         0.2313       True
370      inv        b  5.0   a    a       True  4      0.5488    0.5303    0.5959         1.0000       True
372      inv        b  5.0   a    b      False  4      0.1738    1.7678    0.0771         0.2313       True
374      inv        b  5.0   a    b       True  4      0.3679    0.7071    0.4795         1.0000       True
376      inv        b  5.0   b    a      False  4      0.9048   -0.1768    0.8597         1.0000      False
378      inv        b  5.0   b    a       True  4      0.1092    1.9445    0.0518         0.1555       True
380      inv        b  5.0   b    b      False  4      0.9048   -0.1768    0.8597         1.0000      False
382      inv        b  5.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
rule first: readings with P3 higher and unadjusted P < 0.05: 4 of 48 ; Bonferroni P < 0.05: 0
rule largest: readings with P3 higher and unadjusted P < 0.05: 4 of 48 ; Bonferroni P < 0.05: 2
rule window: readings with P3 higher and unadjusted P < 0.05: 8 of 48 ; Bonferroni P < 0.05: 4
rule inv: readings with P3 higher and unadjusted P < 0.05: 9 of 48 ; Bonferroni P < 0.05: 0
passing readings:
         rule artefact    k amp step  sustained  n  friedman_p  dunn_z31  dunn_p31  dunn_p31_bonf  P3_higher
16     first        a  3.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
20     first        a  3.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
66     first        b  3.0   a    a       True  4      0.1054    2.1213    0.0339         0.1017       True
70     first        b  3.0   a    b       True  4      0.1054    2.1213    0.0339         0.1017       True
162  largest        b  3.0   a    a       True  4      0.0224    2.6517    0.0080         0.0240       True
166  largest        b  3.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
178  largest        b  5.0   a    a       True  3      0.0597    2.2454    0.0247         0.0742       True
182  largest        b  5.0   a    b       True  3      0.0970    2.0412    0.0412         0.1237       True
192   window        a  2.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
194   window        a  2.0   a    a       True  4      0.0388    2.4749    0.0133         0.0400       True
196   window        a  2.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
198   window        a  2.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
240   window        b  2.0   a    a      False  4      0.1054    2.1213    0.0339         0.1017       True
242   window        b  2.0   a    a       True  4      0.0388    2.4749    0.0133         0.0400       True
244   window        b  2.0   a    b      False  4      0.1054    2.1213    0.0339         0.1017       True
246   window        b  2.0   a    b       True  4      0.0388    2.4749    0.0133         0.0400       True
298      inv        a  2.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
302      inv        a  2.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
314      inv        a  3.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
318      inv        a  3.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
330      inv        a  5.0   b    a       True  3      0.0597    2.2454    0.0247         0.0742       True
334      inv        a  5.0   b    b       True  3      0.0597    2.2454    0.0247         0.0742       True
350      inv        b  2.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
366      inv        b  3.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
382      inv        b  5.0   b    b       True  4      0.0569    2.2981    0.0216         0.0647       True
smallest unadjusted Dunn P with P3 higher: 0.0080

with all five rats (rows with n = 5), smallest unadjusted P with P3 higher: 0.0820
variants with a raised pass level:
       rule          variant  n        P1        P2         P3  rising  friedman_chi2  friedman_p  dunn_z31  dunn_p31  within  dunn_p31_bonf
0    first       3 noise SD  4  106.5005  497.8699   690.8739    True         6.5000      0.0388    2.4749    0.0133   False         0.0400
1    first  5 uV (gain 100)  1  930.0970  930.0970  1598.9039   False            NaN         NaN       NaN       NaN   False            NaN
2  largest       3 noise SD  4  162.9100  853.2586   690.8739   False         6.5333      0.0381    2.2981    0.0216   False         0.0647
3  largest  5 uV (gain 100)  0       NaN       NaN        NaN   False            NaN         NaN       NaN       NaN   False            NaN
4   window       3 noise SD  2  368.5194  666.7552  1132.4098    True            NaN         NaN       NaN       NaN   False            NaN
5   window  5 uV (gain 100)  1  930.0970  930.0970  1598.9039   False            NaN         NaN       NaN       NaN   False            NaN
6      inv       3 noise SD  3  314.7314  648.1350  1114.1909    True         2.0000      0.3679    1.2247    0.2207   False         0.6620
7      inv  5 uV (gain 100)  0       NaN       NaN        NaN   False            NaN         NaN       NaN       NaN   False            NaN

Result: reproduced, under one reading. Under the main threshold reading Dunn's test on the Friedman ranks gives P3 above P1 with z = 2.12 and unadjusted P = 0.034 (n = 4 rats; 12-008 has no third peak); Bonferroni-adjusted over three pairs it is P = 0.10. Of the 48 readings per peak rule, P3 is higher with unadjusted P below 0.05 in 4 (rule first), 4 (largest), 8 (window) and 9 (inv); with the Bonferroni P in 0, 2, 4 and 0, all of these under the sustained reading. With all five rats in the test (margin 2 SD) the smallest unadjusted P is 0.082. The Friedman test in the main reading is not significant (P = 0.105), so the post hoc result comes without the main effect the paper reports; under the three-noise-SD variant both are significant (Friedman P = 0.039, Dunn P = 0.013). The pass is narrow: it rests on the assumed peak identification, on n = 4, and on the unadjusted reading of Dunn's P.

fig2ab-one-rat-p2-below-p1¶

In four of five anaesthetised rats the first responding population had a lower threshold than later responding populations; in one rat the threshold of P1 was higher than that of P2.

Per rat: P1 below both P2 and P3, and P1 above P2, under each threshold reading. Ties (equal thresholds) count as neither.

In [27]:
rows = []
for key, M in THR.items():
    rule, art, k, amp, step, sus = key
    lower = int(np.sum((M[:, 0] < M[:, 1]) & (M[:, 0] < M[:, 2])))
    higher = int(np.sum(M[:, 0] > M[:, 1]))
    rows.append(dict(rule=rule, artefact=art, k=k, amp=amp, step=step, sustained=sus,
                     rats_with_3_peaks=int((~np.isnan(M).any(1)).sum()),
                     p1_lowest=lower, p1_above_p2=higher, ties_p1_p2=int(np.sum(M[:, 0] == M[:, 1])),
                     meets=(lower == 4 and higher == 1)))
for (rule, vname), M in VAR.items():
    lower = int(np.sum((M[:, 0] < M[:, 1]) & (M[:, 0] < M[:, 2])))
    higher = int(np.sum(M[:, 0] > M[:, 1]))
    rows.append(dict(rule=rule, artefact="a", k=3.0, amp="a", step="a", sustained=False, variant=vname,
                     rats_with_3_peaks=int((~np.isnan(M).any(1)).sum()),
                     p1_lowest=lower, p1_above_p2=higher, ties_p1_p2=int(np.sum(M[:, 0] == M[:, 1])),
                     meets=(lower == 4 and higher == 1)))
o = pd.DataFrame(rows)
print(o.to_string())
print("readings meeting the criterion:", int(o[o.variant.isna()].meets.sum()), "of", int(o.variant.isna().sum()),
      "; variants with a raised pass level:", int(o[o.variant.notna()].meets.sum()), "of", int(o.variant.notna().sum()))
        rule artefact    k amp step  sustained  rats_with_3_peaks  p1_lowest  p1_above_p2  ties_p1_p2  meets          variant
0      first        a  2.0   a    a      False                  5          3            2           0  False              NaN
1      first        a  2.0   a    a       True                  4          1            3           0  False              NaN
2      first        a  2.0   a    b      False                  5          3            2           0  False              NaN
3      first        a  2.0   a    b       True                  4          1            3           0  False              NaN
4      first        a  2.0   b    a      False                  5          1            1           3  False              NaN
5      first        a  2.0   b    a       True                  5          1            4           0  False              NaN
6      first        a  2.0   b    b      False                  5          1            1           3  False              NaN
7      first        a  2.0   b    b       True                  5          1            4           0  False              NaN
8      first        a  3.0   a    a      False                  4          3            1           0  False              NaN
9      first        a  3.0   a    a       True                  4          2            2           0  False              NaN
10     first        a  3.0   a    b      False                  4          3            1           0  False              NaN
11     first        a  3.0   a    b       True                  4          2            2           0  False              NaN
12     first        a  3.0   b    a      False                  4          1            1           2  False              NaN
13     first        a  3.0   b    a       True                  4          1            3           0  False              NaN
14     first        a  3.0   b    b      False                  4          1            1           2  False              NaN
15     first        a  3.0   b    b       True                  4          1            3           0  False              NaN
16     first        a  5.0   a    a      False                  3          2            1           0  False              NaN
17     first        a  5.0   a    a       True                  3          1            2           0  False              NaN
18     first        a  5.0   a    b      False                  3          2            1           0  False              NaN
19     first        a  5.0   a    b       True                  3          1            2           0  False              NaN
20     first        a  5.0   b    a      False                  3          1            0           2  False              NaN
21     first        a  5.0   b    a       True                  3          1            2           0  False              NaN
22     first        a  5.0   b    b      False                  3          1            0           2  False              NaN
23     first        a  5.0   b    b       True                  3          1            2           0  False              NaN
24     first        b  2.0   a    a      False                  5          2            3           0  False              NaN
25     first        b  2.0   a    a       True                  4          2            2           0  False              NaN
26     first        b  2.0   a    b      False                  5          2            3           0  False              NaN
27     first        b  2.0   a    b       True                  4          2            2           0  False              NaN
28     first        b  2.0   b    a      False                  5          1            2           2  False              NaN
29     first        b  2.0   b    a       True                  5          1            3           0  False              NaN
30     first        b  2.0   b    b      False                  5          1            2           2  False              NaN
31     first        b  2.0   b    b       True                  5          1            3           0  False              NaN
32     first        b  3.0   a    a      False                  4          2            2           0  False              NaN
33     first        b  3.0   a    a       True                  4          3            1           0  False              NaN
34     first        b  3.0   a    b      False                  4          2            2           0  False              NaN
35     first        b  3.0   a    b       True                  4          3            1           0  False              NaN
36     first        b  3.0   b    a      False                  4          1            2           1  False              NaN
37     first        b  3.0   b    a       True                  4          1            2           0  False              NaN
38     first        b  3.0   b    b      False                  4          1            2           1  False              NaN
39     first        b  3.0   b    b       True                  4          1            2           0  False              NaN
40     first        b  5.0   a    a      False                  3          1            2           0  False              NaN
41     first        b  5.0   a    a       True                  3          2            1           0  False              NaN
42     first        b  5.0   a    b      False                  3          1            2           0  False              NaN
43     first        b  5.0   a    b       True                  3          2            1           0  False              NaN
44     first        b  5.0   b    a      False                  3          1            1           1  False              NaN
45     first        b  5.0   b    a       True                  3          1            1           0  False              NaN
46     first        b  5.0   b    b      False                  3          1            1           1  False              NaN
47     first        b  5.0   b    b       True                  3          1            1           0  False              NaN
48   largest        a  2.0   a    a      False                  5          2            3           0  False              NaN
49   largest        a  2.0   a    a       True                  5          3            2           0  False              NaN
50   largest        a  2.0   a    b      False                  5          2            3           0  False              NaN
51   largest        a  2.0   a    b       True                  5          3            2           0  False              NaN
52   largest        a  2.0   b    a      False                  5          1            1           3  False              NaN
53   largest        a  2.0   b    a       True                  5          2            3           0  False              NaN
54   largest        a  2.0   b    b      False                  5          1            1           3  False              NaN
55   largest        a  2.0   b    b       True                  5          2            3           0  False              NaN
56   largest        a  3.0   a    a      False                  4          2            2           0  False              NaN
57   largest        a  3.0   a    a       True                  4          3            1           0  False              NaN
58   largest        a  3.0   a    b      False                  4          2            2           0  False              NaN
59   largest        a  3.0   a    b       True                  4          3            1           0  False              NaN
60   largest        a  3.0   b    a      False                  4          1            1           2  False              NaN
61   largest        a  3.0   b    a       True                  4          2            2           0  False              NaN
62   largest        a  3.0   b    b      False                  4          1            1           2  False              NaN
63   largest        a  3.0   b    b       True                  4          2            2           0  False              NaN
64   largest        a  5.0   a    a      False                  3          1            2           0  False              NaN
65   largest        a  5.0   a    a       True                  3          2            1           0  False              NaN
66   largest        a  5.0   a    b      False                  3          1            2           0  False              NaN
67   largest        a  5.0   a    b       True                  3          2            1           0  False              NaN
68   largest        a  5.0   b    a      False                  3          1            0           2  False              NaN
69   largest        a  5.0   b    a       True                  3          2            1           0  False              NaN
70   largest        a  5.0   b    b      False                  3          1            0           2  False              NaN
71   largest        a  5.0   b    b       True                  3          2            1           0  False              NaN
72   largest        b  2.0   a    a      False                  5          2            3           0  False              NaN
73   largest        b  2.0   a    a       True                  5          4            1           0   True              NaN
74   largest        b  2.0   a    b      False                  5          2            3           0  False              NaN
75   largest        b  2.0   a    b       True                  5          4            1           0   True              NaN
76   largest        b  2.0   b    a      False                  5          1            2           2  False              NaN
77   largest        b  2.0   b    a       True                  5          2            3           0  False              NaN
78   largest        b  2.0   b    b      False                  5          1            2           2  False              NaN
79   largest        b  2.0   b    b       True                  5          2            3           0  False              NaN
80   largest        b  3.0   a    a      False                  4          2            2           0  False              NaN
81   largest        b  3.0   a    a       True                  4          4            0           0  False              NaN
82   largest        b  3.0   a    b      False                  4          2            2           0  False              NaN
83   largest        b  3.0   a    b       True                  4          4            0           0  False              NaN
84   largest        b  3.0   b    a      False                  4          1            2           1  False              NaN
85   largest        b  3.0   b    a       True                  4          2            2           0  False              NaN
86   largest        b  3.0   b    b      False                  4          1            2           1  False              NaN
87   largest        b  3.0   b    b       True                  4          2            2           0  False              NaN
88   largest        b  5.0   a    a      False                  3          1            2           0  False              NaN
89   largest        b  5.0   a    a       True                  3          3            0           0  False              NaN
90   largest        b  5.0   a    b      False                  3          1            2           0  False              NaN
91   largest        b  5.0   a    b       True                  3          3            0           0  False              NaN
92   largest        b  5.0   b    a      False                  3          1            1           1  False              NaN
93   largest        b  5.0   b    a       True                  3          2            1           0  False              NaN
94   largest        b  5.0   b    b      False                  3          1            1           1  False              NaN
95   largest        b  5.0   b    b       True                  3          2            1           0  False              NaN
96    window        a  2.0   a    a      False                  4          3            1           0  False              NaN
97    window        a  2.0   a    a       True                  4          3            1           0  False              NaN
98    window        a  2.0   a    b      False                  4          3            1           0  False              NaN
99    window        a  2.0   a    b       True                  4          3            1           0  False              NaN
100   window        a  2.0   b    a      False                  4          2            1           1  False              NaN
101   window        a  2.0   b    a       True                  4          2            2           0  False              NaN
102   window        a  2.0   b    b      False                  4          2            1           1  False              NaN
103   window        a  2.0   b    b       True                  4          2            2           0  False              NaN
104   window        a  3.0   a    a      False                  2          1            1           0  False              NaN
105   window        a  3.0   a    a       True                  2          1            1           0  False              NaN
106   window        a  3.0   a    b      False                  2          1            1           0  False              NaN
107   window        a  3.0   a    b       True                  2          1            1           0  False              NaN
108   window        a  3.0   b    a      False                  2          1            0           1  False              NaN
109   window        a  3.0   b    a       True                  2          1            1           0  False              NaN
110   window        a  3.0   b    b      False                  2          1            0           1  False              NaN
111   window        a  3.0   b    b       True                  2          1            1           0  False              NaN
112   window        a  5.0   a    a      False                  2          1            1           0  False              NaN
113   window        a  5.0   a    a       True                  2          1            1           0  False              NaN
114   window        a  5.0   a    b      False                  2          1            1           0  False              NaN
115   window        a  5.0   a    b       True                  2          1            1           0  False              NaN
116   window        a  5.0   b    a      False                  2          1            0           1  False              NaN
117   window        a  5.0   b    a       True                  2          1            1           0  False              NaN
118   window        a  5.0   b    b      False                  2          1            0           1  False              NaN
119   window        a  5.0   b    b       True                  2          1            1           0  False              NaN
120   window        b  2.0   a    a      False                  4          3            1           0  False              NaN
121   window        b  2.0   a    a       True                  4          3            1           0  False              NaN
122   window        b  2.0   a    b      False                  4          3            1           0  False              NaN
123   window        b  2.0   a    b       True                  4          3            1           0  False              NaN
124   window        b  2.0   b    a      False                  4          2            1           1  False              NaN
125   window        b  2.0   b    a       True                  4          2            2           0  False              NaN
126   window        b  2.0   b    b      False                  4          2            1           1  False              NaN
127   window        b  2.0   b    b       True                  4          2            2           0  False              NaN
128   window        b  3.0   a    a      False                  2          1            1           0  False              NaN
129   window        b  3.0   a    a       True                  2          1            1           0  False              NaN
130   window        b  3.0   a    b      False                  2          1            1           0  False              NaN
131   window        b  3.0   a    b       True                  2          1            1           0  False              NaN
132   window        b  3.0   b    a      False                  2          1            0           1  False              NaN
133   window        b  3.0   b    a       True                  2          1            1           0  False              NaN
134   window        b  3.0   b    b      False                  2          1            0           1  False              NaN
135   window        b  3.0   b    b       True                  2          1            1           0  False              NaN
136   window        b  5.0   a    a      False                  2          1            1           0  False              NaN
137   window        b  5.0   a    a       True                  2          1            1           0  False              NaN
138   window        b  5.0   a    b      False                  2          1            1           0  False              NaN
139   window        b  5.0   a    b       True                  2          1            1           0  False              NaN
140   window        b  5.0   b    a      False                  2          1            0           1  False              NaN
141   window        b  5.0   b    a       True                  2          1            1           0  False              NaN
142   window        b  5.0   b    b      False                  2          1            0           1  False              NaN
143   window        b  5.0   b    b       True                  2          1            1           0  False              NaN
144      inv        a  2.0   a    a      False                  3          2            1           0  False              NaN
145      inv        a  2.0   a    a       True                  3          1            2           0  False              NaN
146      inv        a  2.0   a    b      False                  3          2            1           0  False              NaN
147      inv        a  2.0   a    b       True                  3          1            2           0  False              NaN
148      inv        a  2.0   b    a      False                  3          0            1           1  False              NaN
149      inv        a  2.0   b    a       True                  3          2            0           1  False              NaN
150      inv        a  2.0   b    b      False                  3          0            1           1  False              NaN
151      inv        a  2.0   b    b       True                  3          2            0           1  False              NaN
152      inv        a  3.0   a    a      False                  3          2            1           0  False              NaN
153      inv        a  3.0   a    a       True                  3          1            2           0  False              NaN
154      inv        a  3.0   a    b      False                  3          2            1           0  False              NaN
155      inv        a  3.0   a    b       True                  3          1            2           0  False              NaN
156      inv        a  3.0   b    a      False                  3          0            1           1  False              NaN
157      inv        a  3.0   b    a       True                  3          2            0           1  False              NaN
158      inv        a  3.0   b    b      False                  3          0            1           1  False              NaN
159      inv        a  3.0   b    b       True                  3          2            0           1  False              NaN
160      inv        a  5.0   a    a      False                  3          2            1           0  False              NaN
161      inv        a  5.0   a    a       True                  3          1            2           0  False              NaN
162      inv        a  5.0   a    b      False                  3          2            1           0  False              NaN
163      inv        a  5.0   a    b       True                  3          1            2           0  False              NaN
164      inv        a  5.0   b    a      False                  3          0            1           1  False              NaN
165      inv        a  5.0   b    a       True                  3          2            0           1  False              NaN
166      inv        a  5.0   b    b      False                  3          0            1           1  False              NaN
167      inv        a  5.0   b    b       True                  3          2            0           1  False              NaN
168      inv        b  2.0   a    a      False                  4          3            1           0  False              NaN
169      inv        b  2.0   a    a       True                  4          2            2           0  False              NaN
170      inv        b  2.0   a    b      False                  4          3            1           0  False              NaN
171      inv        b  2.0   a    b       True                  4          2            2           0  False              NaN
172      inv        b  2.0   b    a      False                  4          0            2           1  False              NaN
173      inv        b  2.0   b    a       True                  4          2            0           1  False              NaN
174      inv        b  2.0   b    b      False                  4          0            2           1  False              NaN
175      inv        b  2.0   b    b       True                  4          3            0           1  False              NaN
176      inv        b  3.0   a    a      False                  4          3            1           0  False              NaN
177      inv        b  3.0   a    a       True                  4          2            2           0  False              NaN
178      inv        b  3.0   a    b      False                  4          3            1           0  False              NaN
179      inv        b  3.0   a    b       True                  4          2            2           0  False              NaN
180      inv        b  3.0   b    a      False                  4          0            2           1  False              NaN
181      inv        b  3.0   b    a       True                  4          2            0           1  False              NaN
182      inv        b  3.0   b    b      False                  4          0            2           1  False              NaN
183      inv        b  3.0   b    b       True                  4          3            0           1  False              NaN
184      inv        b  5.0   a    a      False                  4          3            1           0  False              NaN
185      inv        b  5.0   a    a       True                  4          2            2           0  False              NaN
186      inv        b  5.0   a    b      False                  4          3            1           0  False              NaN
187      inv        b  5.0   a    b       True                  4          2            2           0  False              NaN
188      inv        b  5.0   b    a      False                  4          0            2           1  False              NaN
189      inv        b  5.0   b    a       True                  4          2            0           1  False              NaN
190      inv        b  5.0   b    b      False                  4          0            2           1  False              NaN
191      inv        b  5.0   b    b       True                  4          3            0           1  False              NaN
192    first        a  3.0   a    a      False                  4          4            0           0  False       3 noise SD
193    first        a  3.0   a    a      False                  1          0            0           1  False  5 uV (gain 100)
194  largest        a  3.0   a    a      False                  4          4            0           0  False       3 noise SD
195  largest        a  3.0   a    a      False                  0          0            0           0  False  5 uV (gain 100)
196   window        a  3.0   a    a      False                  2          2            0           0  False       3 noise SD
197   window        a  3.0   a    a      False                  1          0            0           1  False  5 uV (gain 100)
198      inv        a  3.0   a    a      False                  3          2            1           0  False       3 noise SD
199      inv        a  3.0   a    a      False                  0          0            1           0  False  5 uV (gain 100)
readings meeting the criterion: 2 of 192 ; variants with a raised pass level: 0 of 8

Result: not reproduced. Under the criterion's threshold (lowest passing current) no reading under any peak rule gives four of five rats with P1 lowest and one with P1 above P2 (0 of 96 non-sustained rows). Under the main reading three of four rats have P1 lowest and one (12-005) has P1 above P2 (648 against 541 uA), the pattern of the legend in four rats; 12-008 has no third peak. Two rows of 192 meet the counts, both under rule largest, artefact end (b), margin 2 SD and the sustained reading, which is not the criterion's definition of threshold; the raised pass levels give 0 of 8.

Awake ECAPs¶

awake-ecap-latencies¶

In chronically implanted awake rats (n = 4), three populations were recruited in all animals at week 0 and week 1, with mean latencies of 2.27 ms (P1, 1.93 to 2.65), 3.92 ms (P2, 3.19 to 4.44) and 5.62 ms (P3, 4.57 to 6.72) and conduction velocities of 1.26, 0.73 and 0.51 m/s.

The seven chronic ECAP files, four at day 0 (12-050, 12-051, 12-052, 12-056) and three at day 7 (12-053, 12-055, 12-057). Same peak detection as the anaesthetised rats. Reading (b) of the criterion (mean over rats of each rat's two-week mean) needs the week 0 and week 1 recordings of the same rat, which the files do not link; readings (a), all seven recordings, and (c), week 0 alone, are run.

In [28]:
AW = {}
for rule in P.RULES:
    for art in "ab":
        for k in (2.0, 3.0, 5.0):
            for s in P.CHRONIC:
                AW[(rule, art, k, s)] = P.analyse_ecap(s, art=art, k_noise=k, rule=rule, windows=P.WINDOWS_AWAKE)
DAY = sj.set_index("subject_id")["Recording Day (post-surgery)"]
rows = []
for (rule, art, k, s), r in AW.items():
    rows.append(dict(rule=rule, artefact=art, k=k, sub=s, day=int(DAY["sub-" + s]), noise_uV=round(r["sd"], 3),
                     n_peaks=len(r["lats"]), latencies=np.round(r["lats"], 2).tolist()))
aw = pd.DataFrame(rows)
print(aw.to_string())
print("\nrecordings with three peaks, by reading:")
print(aw.assign(three=aw.n_peaks >= 3).groupby(["rule", "artefact", "k"]).three.sum().unstack().to_string())
EXP_AL = np.array([2.27, 3.92, 5.62]); EXP_AV = np.array([1.26, 0.73, 0.51])
rows = []
for rule, art, k in [(r_, a_, k_) for r_ in P.RULES for a_ in "ab" for k_ in (2.0, 3.0, 5.0)]:
        for lev in "abc":
            for org in "ab":
                for rd, subs in (("a: all 7", P.CHRONIC), ("c: week 0", [s for s in P.CHRONIC if DAY["sub-" + s] == 0])):
                    M = np.array([AW[(rule, art, k, s)]["lat"][(lev, org)] for s in subs])
                    okr = ~np.isnan(M).any(1)
                    if not okr.any():
                        continue
                    c = M[okr].mean(0)
                    for dname, dmm in P.DISTANCES_MM.items():
                        v = (dmm / M[okr]).mean(0)
                        rows.append(dict(rule=rule, artefact=art, k=k, level=lev, origin=org, reading=rd,
                                         n=int(okr.sum()), of=len(subs), distance=dname,
                                         P1=c[0], P2=c[1], P3=c[2], v1=v[0], v2=v[1], v3=v[2],
                                         lat_within=bool(np.all(np.abs(c - EXP_AL) <= 0.1 * EXP_AL + 1e-9)),
                                         v_within=bool(np.all(np.abs(v - EXP_AV) <= 0.1 * EXP_AV + 1e-9))))
awl = pd.DataFrame(rows)
print(awl.round(3).to_string())
print("rows with all six values within tolerance:", int((awl.lat_within & awl.v_within).sum()), "of", len(awl))
print("rows with the three latencies within tolerance:", int(awl.lat_within.sum()), "; with the three velocities:", int(awl.v_within.sum()))
print("by rule (all six within):", awl.assign(both=awl.lat_within & awl.v_within).groupby("rule").both.agg(["sum", "size"]).to_dict("index"))
print("most recordings with three peaks under any reading:", int(aw.assign(three=aw.n_peaks >= 3).groupby(["rule", "artefact", "k"]).three.sum().max()), "of 7")
# velocity as distance over the mean latency (how the paper's printed velocities relate to its latencies)
dist = awl.distance.map(P.DISTANCES_MM).values[:, None]
vml = dist / awl[["P1", "P2", "P3"]].values
awl["v_of_mean_within"] = np.all(np.abs(vml - EXP_AV) <= 0.1 * EXP_AV + 1e-9, axis=1)
print("velocity as distance over the mean latency: rows with the three velocities within tolerance:",
      int(awl.v_of_mean_within.sum()), "; with all six values:", int((awl.lat_within & awl.v_of_mean_within).sum()), "of", len(awl))
sel = awl[awl.lat_within & awl.v_of_mean_within]
print(sel.assign(v1m=vml[sel.index, 0], v2m=vml[sel.index, 1], v3m=vml[sel.index, 2])
      [["rule", "artefact", "k", "level", "origin", "reading", "n", "of", "distance", "P1", "P2", "P3", "v1m", "v2m", "v3m"]].round(3).to_string())
        rule artefact    k     sub  day  noise_uV  n_peaks           latencies
0      first        a  2.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
1      first        a  2.0  12-051    0     0.277        3  [3.14, 4.91, 6.49]
2      first        a  2.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
3      first        a  2.0  12-053    7     0.234        3  [2.22, 3.24, 4.07]
4      first        a  2.0  12-055    7     0.032        3  [1.86, 3.49, 5.06]
5      first        a  2.0  12-056    0     0.667        1               [4.0]
6      first        a  2.0  12-057    7     0.705        0                  []
7      first        a  3.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
8      first        a  3.0  12-051    0     0.277        1              [4.91]
9      first        a  3.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
10     first        a  3.0  12-053    7     0.234        2        [3.24, 6.28]
11     first        a  3.0  12-055    7     0.032        2        [3.49, 5.06]
12     first        a  3.0  12-056    0     0.667        1               [4.0]
13     first        a  3.0  12-057    7     0.705        0                  []
14     first        a  5.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
15     first        a  5.0  12-051    0     0.277        0                  []
16     first        a  5.0  12-052    0     0.214        3  [1.16, 3.35, 4.74]
17     first        a  5.0  12-053    7     0.234        0                  []
18     first        a  5.0  12-055    7     0.032        1              [5.06]
19     first        a  5.0  12-056    0     0.667        1               [4.0]
20     first        a  5.0  12-057    7     0.705        0                  []
21     first        b  2.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
22     first        b  2.0  12-051    0     0.277        3  [0.86, 3.14, 4.91]
23     first        b  2.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
24     first        b  2.0  12-053    7     0.234        3  [2.22, 3.24, 4.07]
25     first        b  2.0  12-055    7     0.032        2        [3.49, 5.06]
26     first        b  2.0  12-056    0     0.667        1               [4.0]
27     first        b  2.0  12-057    7     0.705        0                  []
28     first        b  3.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
29     first        b  3.0  12-051    0     0.277        2        [0.86, 4.91]
30     first        b  3.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
31     first        b  3.0  12-053    7     0.234        2        [3.24, 6.28]
32     first        b  3.0  12-055    7     0.032        2        [3.49, 5.06]
33     first        b  3.0  12-056    0     0.667        1               [4.0]
34     first        b  3.0  12-057    7     0.705        0                  []
35     first        b  5.0  12-050    0     0.225        3  [1.32, 2.98, 4.26]
36     first        b  5.0  12-051    0     0.277        1              [0.86]
37     first        b  5.0  12-052    0     0.214        3  [1.16, 3.35, 4.74]
38     first        b  5.0  12-053    7     0.234        0                  []
39     first        b  5.0  12-055    7     0.032        1              [5.06]
40     first        b  5.0  12-056    0     0.667        1               [4.0]
41     first        b  5.0  12-057    7     0.705        0                  []
42   largest        a  2.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
43   largest        a  2.0  12-051    0     0.277        3  [3.14, 4.91, 6.49]
44   largest        a  2.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
45   largest        a  2.0  12-053    7     0.234        3  [3.24, 5.22, 6.28]
46   largest        a  2.0  12-055    7     0.032        3  [1.86, 3.49, 5.06]
47   largest        a  2.0  12-056    0     0.667        1               [4.0]
48   largest        a  2.0  12-057    7     0.705        0                  []
49   largest        a  3.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
50   largest        a  3.0  12-051    0     0.277        1              [4.91]
51   largest        a  3.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
52   largest        a  3.0  12-053    7     0.234        2        [3.24, 6.28]
53   largest        a  3.0  12-055    7     0.032        2        [3.49, 5.06]
54   largest        a  3.0  12-056    0     0.667        1               [4.0]
55   largest        a  3.0  12-057    7     0.705        0                  []
56   largest        a  5.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
57   largest        a  5.0  12-051    0     0.277        0                  []
58   largest        a  5.0  12-052    0     0.214        3  [1.16, 3.35, 4.74]
59   largest        a  5.0  12-053    7     0.234        0                  []
60   largest        a  5.0  12-055    7     0.032        1              [5.06]
61   largest        a  5.0  12-056    0     0.667        1               [4.0]
62   largest        a  5.0  12-057    7     0.705        0                  []
63   largest        b  2.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
64   largest        b  2.0  12-051    0     0.277        3  [0.86, 3.14, 4.91]
65   largest        b  2.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
66   largest        b  2.0  12-053    7     0.234        3  [3.24, 5.22, 6.28]
67   largest        b  2.0  12-055    7     0.032        2        [3.49, 5.06]
68   largest        b  2.0  12-056    0     0.667        1               [4.0]
69   largest        b  2.0  12-057    7     0.705        0                  []
70   largest        b  3.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
71   largest        b  3.0  12-051    0     0.277        2        [0.86, 4.91]
72   largest        b  3.0  12-052    0     0.214        3  [1.16, 1.88, 3.35]
73   largest        b  3.0  12-053    7     0.234        2        [3.24, 6.28]
74   largest        b  3.0  12-055    7     0.032        2        [3.49, 5.06]
75   largest        b  3.0  12-056    0     0.667        1               [4.0]
76   largest        b  3.0  12-057    7     0.705        0                  []
77   largest        b  5.0  12-050    0     0.225        3  [1.32, 2.98, 5.23]
78   largest        b  5.0  12-051    0     0.277        1              [0.86]
79   largest        b  5.0  12-052    0     0.214        3  [1.16, 3.35, 4.74]
80   largest        b  5.0  12-053    7     0.234        0                  []
81   largest        b  5.0  12-055    7     0.032        1              [5.06]
82   largest        b  5.0  12-056    0     0.667        1               [4.0]
83   largest        b  5.0  12-057    7     0.705        0                  []
84    window        a  2.0  12-050    0     0.225        0                  []
85    window        a  2.0  12-051    0     0.277        0                  []
86    window        a  2.0  12-052    0     0.214        3  [1.88, 3.35, 4.74]
87    window        a  2.0  12-053    7     0.234        3  [2.22, 3.24, 6.28]
88    window        a  2.0  12-055    7     0.032        3  [1.86, 3.49, 5.06]
89    window        a  2.0  12-056    0     0.667        0                  []
90    window        a  2.0  12-057    7     0.705        0                  []
91    window        a  3.0  12-050    0     0.225        0                  []
92    window        a  3.0  12-051    0     0.277        0                  []
93    window        a  3.0  12-052    0     0.214        3  [1.88, 3.35, 4.74]
94    window        a  3.0  12-053    7     0.234        0                  []
95    window        a  3.0  12-055    7     0.032        0                  []
96    window        a  3.0  12-056    0     0.667        0                  []
97    window        a  3.0  12-057    7     0.705        0                  []
98    window        a  5.0  12-050    0     0.225        0                  []
99    window        a  5.0  12-051    0     0.277        0                  []
100   window        a  5.0  12-052    0     0.214        0                  []
101   window        a  5.0  12-053    7     0.234        0                  []
102   window        a  5.0  12-055    7     0.032        0                  []
103   window        a  5.0  12-056    0     0.667        0                  []
104   window        a  5.0  12-057    7     0.705        0                  []
105   window        b  2.0  12-050    0     0.225        0                  []
106   window        b  2.0  12-051    0     0.277        0                  []
107   window        b  2.0  12-052    0     0.214        3  [1.88, 3.35, 4.74]
108   window        b  2.0  12-053    7     0.234        3  [2.22, 3.24, 6.28]
109   window        b  2.0  12-055    7     0.032        0                  []
110   window        b  2.0  12-056    0     0.667        0                  []
111   window        b  2.0  12-057    7     0.705        0                  []
112   window        b  3.0  12-050    0     0.225        0                  []
113   window        b  3.0  12-051    0     0.277        0                  []
114   window        b  3.0  12-052    0     0.214        3  [1.88, 3.35, 4.74]
115   window        b  3.0  12-053    7     0.234        0                  []
116   window        b  3.0  12-055    7     0.032        0                  []
117   window        b  3.0  12-056    0     0.667        0                  []
118   window        b  3.0  12-057    7     0.705        0                  []
119   window        b  5.0  12-050    0     0.225        0                  []
120   window        b  5.0  12-051    0     0.277        0                  []
121   window        b  5.0  12-052    0     0.214        0                  []
122   window        b  5.0  12-053    7     0.234        0                  []
123   window        b  5.0  12-055    7     0.032        0                  []
124   window        b  5.0  12-056    0     0.667        0                  []
125   window        b  5.0  12-057    7     0.705        0                  []
126      inv        a  2.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
127      inv        a  2.0  12-051    0     0.277        3  [2.72, 4.14, 5.79]
128      inv        a  2.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
129      inv        a  2.0  12-053    7     0.234        3   [1.4, 2.68, 3.72]
130      inv        a  2.0  12-055    7     0.032        3  [3.07, 4.41, 6.35]
131      inv        a  2.0  12-056    0     0.667        2         [2.3, 3.06]
132      inv        a  2.0  12-057    7     0.705        0                  []
133      inv        a  3.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
134      inv        a  3.0  12-051    0     0.277        2        [4.14, 5.79]
135      inv        a  3.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
136      inv        a  3.0  12-053    7     0.234        2         [1.4, 3.72]
137      inv        a  3.0  12-055    7     0.032        3  [3.07, 4.41, 6.35]
138      inv        a  3.0  12-056    0     0.667        1              [3.06]
139      inv        a  3.0  12-057    7     0.705        0                  []
140      inv        a  5.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
141      inv        a  5.0  12-051    0     0.277        0                  []
142      inv        a  5.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
143      inv        a  5.0  12-053    7     0.234        1               [1.4]
144      inv        a  5.0  12-055    7     0.032        2        [3.07, 6.35]
145      inv        a  5.0  12-056    0     0.667        1              [3.06]
146      inv        a  5.0  12-057    7     0.705        0                  []
147      inv        b  2.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
148      inv        b  2.0  12-051    0     0.277        3  [2.72, 4.14, 5.79]
149      inv        b  2.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
150      inv        b  2.0  12-053    7     0.234        3   [1.4, 2.68, 3.72]
151      inv        b  2.0  12-055    7     0.032        3  [3.07, 4.41, 6.35]
152      inv        b  2.0  12-056    0     0.667        2         [2.3, 3.06]
153      inv        b  2.0  12-057    7     0.705        0                  []
154      inv        b  3.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
155      inv        b  3.0  12-051    0     0.277        2        [4.14, 5.79]
156      inv        b  3.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
157      inv        b  3.0  12-053    7     0.234        2         [1.4, 3.72]
158      inv        b  3.0  12-055    7     0.032        3  [3.07, 4.41, 6.35]
159      inv        b  3.0  12-056    0     0.667        1              [3.06]
160      inv        b  3.0  12-057    7     0.705        0                  []
161      inv        b  5.0  12-050    0     0.225        3  [1.94, 2.51, 3.76]
162      inv        b  5.0  12-051    0     0.277        0                  []
163      inv        b  5.0  12-052    0     0.214        3  [2.62, 3.95, 5.38]
164      inv        b  5.0  12-053    7     0.234        1               [1.4]
165      inv        b  5.0  12-055    7     0.032        2        [3.07, 6.35]
166      inv        b  5.0  12-056    0     0.667        1              [3.06]
167      inv        b  5.0  12-057    7     0.705        0                  []

recordings with three peaks, by reading:
k                 2.0  3.0  5.0
rule    artefact               
first   a           5    2    2
        b           4    2    2
inv     a           5    3    2
        b           5    3    2
largest a           5    2    2
        b           4    2    2
window  a           3    1    0
        b           2    1    0
        rule artefact    k level origin    reading  n  of                 distance     P1     P2     P3     v1     v2     v3  lat_within  v_within
0      first        a  2.0     a      a   a: all 7  5   7  a: 2.85 mm pair centres  1.936  3.303  4.650  1.672  0.949  0.644       False     False
1      first        a  2.0     a      a   a: all 7  5   7      b: 2.10 mm E2 to E3  1.936  3.303  4.650  1.232  0.699  0.474       False      True
2      first        a  2.0     a      a   a: all 7  5   7      c: 3.60 mm E1 to E4  1.936  3.303  4.650  2.112  1.198  0.813       False     False
3      first        a  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  1.870  3.260  4.705  1.845  1.016  0.652       False     False
4      first        a  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.870  3.260  4.705  1.360  0.749  0.481       False      True
5      first        a  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.870  3.260  4.705  2.331  1.283  0.824       False     False
6      first        a  2.0     a      b   a: all 7  5   7  a: 2.85 mm pair centres  1.686  3.053  4.400  2.005  1.046  0.684       False     False
7      first        a  2.0     a      b   a: all 7  5   7      b: 2.10 mm E2 to E3  1.686  3.053  4.400  1.478  0.771  0.504       False     False
8      first        a  2.0     a      b   a: all 7  5   7      c: 3.60 mm E1 to E4  1.686  3.053  4.400  2.533  1.321  0.864       False     False
9      first        a  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  1.620  3.010  4.455  2.267  1.133  0.695       False     False
10     first        a  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.620  3.010  4.455  1.670  0.835  0.512       False     False
11     first        a  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.620  3.010  4.455  2.863  1.431  0.878       False     False
12     first        a  2.0     b      a   a: all 7  4   7  a: 2.85 mm pair centres  1.854  3.259  4.769  1.793  1.001  0.635       False     False
13     first        a  2.0     b      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.854  3.259  4.769  1.321  0.738  0.468       False      True
14     first        a  2.0     b      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.854  3.259  4.769  2.265  1.265  0.802       False     False
15     first        a  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  1.853  3.182  4.672  1.878  1.063  0.659       False     False
16     first        a  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.853  3.182  4.672  1.384  0.783  0.485       False      True
17     first        a  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.853  3.182  4.672  2.373  1.343  0.832       False     False
18     first        a  2.0     b      b   a: all 7  4   7  a: 2.85 mm pair centres  1.604  3.009  4.519  2.186  1.116  0.675       False     False
19     first        a  2.0     b      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.604  3.009  4.519  1.611  0.822  0.497       False     False
20     first        a  2.0     b      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.604  3.009  4.519  2.761  1.410  0.852       False     False
21     first        a  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  1.603  2.932  4.422  2.323  1.195  0.702       False     False
22     first        a  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.603  2.932  4.422  1.712  0.880  0.517       False     False
23     first        a  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.603  2.932  4.422  2.934  1.509  0.887       False     False
24     first        a  2.0     c      a   a: all 7  5   7  a: 2.85 mm pair centres  1.928  3.305  4.653  1.705  0.947  0.643       False     False
25     first        a  2.0     c      a   a: all 7  5   7      b: 2.10 mm E2 to E3  1.928  3.305  4.653  1.256  0.698  0.474       False      True
26     first        a  2.0     c      a   a: all 7  5   7      c: 3.60 mm E1 to E4  1.928  3.305  4.653  2.154  1.196  0.812       False     False
27     first        a  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  1.856  3.257  4.707  1.902  1.015  0.651       False     False
28     first        a  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.856  3.257  4.707  1.401  0.748  0.480       False     False
29     first        a  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.856  3.257  4.707  2.402  1.283  0.822       False     False
30     first        a  2.0     c      b   a: all 7  5   7  a: 2.85 mm pair centres  1.678  3.055  4.403  2.063  1.044  0.683       False     False
31     first        a  2.0     c      b   a: all 7  5   7      b: 2.10 mm E2 to E3  1.678  3.055  4.403  1.520  0.769  0.503       False     False
32     first        a  2.0     c      b   a: all 7  5   7      c: 3.60 mm E1 to E4  1.678  3.055  4.403  2.606  1.319  0.863       False     False
33     first        a  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  1.606  3.007  4.457  2.365  1.132  0.693       False     False
34     first        a  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.606  3.007  4.457  1.743  0.834  0.511       False     False
35     first        a  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.606  3.007  4.457  2.987  1.429  0.875       False     False
36     first        a  3.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  2.432  3.810  2.313  1.234  0.759       False     False
37     first        a  3.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  2.432  3.810  1.705  0.909  0.559       False     False
38     first        a  3.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  2.432  3.810  2.922  1.559  0.959       False     False
39     first        a  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  2.432  3.810  2.313  1.234  0.759       False     False
40     first        a  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  2.432  3.810  1.705  0.909  0.559       False     False
41     first        a  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  2.432  3.810  2.922  1.559  0.959       False     False
42     first        a  3.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.182  3.560  2.906  1.394  0.814       False     False
43     first        a  3.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.182  3.560  2.142  1.027  0.600       False     False
44     first        a  3.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.182  3.560  3.671  1.760  1.028       False     False
45     first        a  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.182  3.560  2.906  1.394  0.814       False     False
46     first        a  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.182  3.560  2.142  1.027  0.600       False     False
47     first        a  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.182  3.560  3.671  1.760  1.028       False     False
48     first        a  3.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.220  2.350  3.775  2.361  1.300  0.768       False     False
49     first        a  3.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.220  2.350  3.775  1.740  0.958  0.566       False     False
50     first        a  3.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.220  2.350  3.775  2.982  1.643  0.970       False     False
51     first        a  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.220  2.350  3.775  2.361  1.300  0.768       False     False
52     first        a  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.220  2.350  3.775  1.740  0.958  0.566       False     False
53     first        a  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.220  2.350  3.775  2.982  1.643  0.970       False     False
54     first        a  3.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.970  2.100  3.525  2.988  1.482  0.824       False     False
55     first        a  3.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.970  2.100  3.525  2.202  1.092  0.607       False     False
56     first        a  3.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.970  2.100  3.525  3.774  1.872  1.041       False     False
57     first        a  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.970  2.100  3.525  2.988  1.482  0.824       False     False
58     first        a  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.970  2.100  3.525  2.202  1.092  0.607       False     False
59     first        a  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.970  2.100  3.525  3.774  1.872  1.041       False     False
60     first        a  3.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.204  2.436  3.822  2.402  1.232  0.756       False     False
61     first        a  3.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.204  2.436  3.822  1.770  0.908  0.557       False     False
62     first        a  3.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.204  2.436  3.822  3.034  1.556  0.955       False     False
63     first        a  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.204  2.436  3.822  2.402  1.232  0.756       False     False
64     first        a  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.204  2.436  3.822  1.770  0.908  0.557       False     False
65     first        a  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.204  2.436  3.822  3.034  1.556  0.955       False     False
66     first        a  3.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.954  2.186  3.572  3.058  1.391  0.811       False     False
67     first        a  3.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.954  2.186  3.572  2.253  1.025  0.597       False     False
68     first        a  3.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.954  2.186  3.572  3.862  1.757  1.024       False     False
69     first        a  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.954  2.186  3.572  3.058  1.391  0.811       False     False
70     first        a  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.954  2.186  3.572  2.253  1.025  0.597       False     False
71     first        a  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.954  2.186  3.572  3.862  1.757  1.024       False     False
72     first        a  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  3.167  4.505  2.313  0.903  0.634       False     False
73     first        a  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  3.167  4.505  1.705  0.665  0.467       False     False
74     first        a  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  3.167  4.505  2.922  1.141  0.801       False     False
75     first        a  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  3.167  4.505  2.313  0.903  0.634       False     False
76     first        a  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  3.167  4.505  1.705  0.665  0.467       False     False
77     first        a  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  3.167  4.505  2.922  1.141  0.801       False     False
78     first        a  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.917  4.255  2.906  0.981  0.672       False     False
79     first        a  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.917  4.255  2.142  0.723  0.495       False     False
80     first        a  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.917  4.255  3.671  1.239  0.849       False     False
81     first        a  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.917  4.255  2.906  0.981  0.672       False     False
82     first        a  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.917  4.255  2.142  0.723  0.495       False     False
83     first        a  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.917  4.255  3.671  1.239  0.849       False     False
84     first        a  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.160  3.185  4.515  2.521  0.899  0.633       False     False
85     first        a  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.160  3.185  4.515  1.858  0.663  0.467       False     False
86     first        a  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.160  3.185  4.515  3.184  1.136  0.800       False     False
87     first        a  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.160  3.185  4.515  2.521  0.899  0.633       False     False
88     first        a  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.160  3.185  4.515  1.858  0.663  0.467       False     False
89     first        a  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.160  3.185  4.515  3.184  1.136  0.800       False     False
90     first        a  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.910  2.935  4.265  3.267  0.977  0.671       False     False
91     first        a  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.910  2.935  4.265  2.407  0.720  0.494       False     False
92     first        a  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.910  2.935  4.265  4.127  1.234  0.847       False     False
93     first        a  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.910  2.935  4.265  3.267  0.977  0.671       False     False
94     first        a  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.910  2.935  4.265  2.407  0.720  0.494       False     False
95     first        a  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.910  2.935  4.265  4.127  1.234  0.847       False     False
96     first        a  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.203  3.181  4.490  2.404  0.900  0.636       False     False
97     first        a  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.203  3.181  4.490  1.771  0.663  0.469       False     False
98     first        a  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.203  3.181  4.490  3.037  1.136  0.804       False     False
99     first        a  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.203  3.181  4.490  2.404  0.900  0.636       False     False
100    first        a  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.203  3.181  4.490  1.771  0.663  0.469       False     False
101    first        a  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.203  3.181  4.490  3.037  1.136  0.804       False     False
102    first        a  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.953  2.931  4.240  3.062  0.977  0.674       False     False
103    first        a  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.953  2.931  4.240  2.256  0.720  0.497       False     False
104    first        a  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.953  2.931  4.240  3.868  1.234  0.851       False     False
105    first        a  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.953  2.931  4.240  3.062  0.977  0.674       False     False
106    first        a  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.953  2.931  4.240  2.256  0.720  0.497       False     False
107    first        a  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.953  2.931  4.240  3.868  1.234  0.851       False     False
108    first        b  2.0     a      a   a: all 7  4   7  a: 2.85 mm pair centres  1.388  2.811  4.152  2.307  1.064  0.699       False     False
109    first        b  2.0     a      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.388  2.811  4.152  1.700  0.784  0.515       False     False
110    first        b  2.0     a      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.388  2.811  4.152  2.914  1.344  0.883       False     False
111    first        b  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  1.112  2.667  4.178  2.647  1.126  0.699       False     False
112    first        b  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.112  2.667  4.178  1.950  0.830  0.515       False     False
113    first        b  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.112  2.667  4.178  3.343  1.422  0.883       False     False
114    first        b  2.0     a      b   a: all 7  4   7  a: 2.85 mm pair centres  1.138  2.561  3.902  2.984  1.182  0.746       False     False
115    first        b  2.0     a      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.138  2.561  3.902  2.199  0.871  0.550       False     False
116    first        b  2.0     a      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.138  2.561  3.902  3.769  1.493  0.942       False     False
117    first        b  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  0.862  2.417  3.928  3.495  1.258  0.746       False     False
118    first        b  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.862  2.417  3.928  2.575  0.927  0.550       False     False
119    first        b  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.862  2.417  3.928  4.415  1.589  0.943       False     False
120    first        b  2.0     b      a   a: all 7  3   7  a: 2.85 mm pair centres  1.013  2.572  4.145  3.157  1.182  0.706       False     False
121    first        b  2.0     b      a   a: all 7  3   7      b: 2.10 mm E2 to E3  1.013  2.572  4.145  2.326  0.871  0.520       False     False
122    first        b  2.0     b      a   a: all 7  3   7      c: 3.60 mm E1 to E4  1.013  2.572  4.145  3.988  1.493  0.892       False     False
123    first        b  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  1.013  2.572  4.145  3.157  1.182  0.706       False     False
124    first        b  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.013  2.572  4.145  2.326  0.871  0.520       False     False
125    first        b  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.013  2.572  4.145  3.988  1.493  0.892       False     False
126    first        b  2.0     b      b   a: all 7  3   7  a: 2.85 mm pair centres  0.763  2.322  3.895  4.706  1.332  0.754       False     False
127    first        b  2.0     b      b   a: all 7  3   7      b: 2.10 mm E2 to E3  0.763  2.322  3.895  3.468  0.981  0.556       False     False
128    first        b  2.0     b      b   a: all 7  3   7      c: 3.60 mm E1 to E4  0.763  2.322  3.895  5.945  1.682  0.953       False     False
129    first        b  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  0.763  2.322  3.895  4.706  1.332  0.754       False     False
130    first        b  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.763  2.322  3.895  3.468  0.981  0.556       False     False
131    first        b  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.763  2.322  3.895  5.945  1.682  0.953       False     False
132    first        b  2.0     c      a   a: all 7  4   7  a: 2.85 mm pair centres  1.332  2.821  4.157  2.540  1.061  0.698       False     False
133    first        b  2.0     c      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.332  2.821  4.157  1.872  0.782  0.514       False     False
134    first        b  2.0     c      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.332  2.821  4.157  3.209  1.340  0.882       False     False
135    first        b  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  1.036  2.674  4.181  2.959  1.123  0.698       False     False
136    first        b  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.036  2.674  4.181  2.180  0.828  0.514       False     False
137    first        b  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.036  2.674  4.181  3.738  1.419  0.882       False     False
138    first        b  2.0     c      b   a: all 7  4   7  a: 2.85 mm pair centres  1.082  2.571  3.907  3.475  1.178  0.744       False     False
139    first        b  2.0     c      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.082  2.571  3.907  2.561  0.868  0.549       False     False
140    first        b  2.0     c      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.082  2.571  3.907  4.390  1.488  0.940       False     False
141    first        b  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  0.786  2.424  3.931  4.152  1.255  0.745       False     False
142    first        b  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.786  2.424  3.931  3.059  0.925  0.549       False     False
143    first        b  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.786  2.424  3.931  5.244  1.585  0.941       False     False
144    first        b  3.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  2.432  3.810  2.313  1.234  0.759       False     False
145    first        b  3.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  2.432  3.810  1.705  0.909  0.559       False     False
146    first        b  3.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  2.432  3.810  2.922  1.559  0.959       False     False
147    first        b  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  2.432  3.810  2.313  1.234  0.759       False     False
148    first        b  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  2.432  3.810  1.705  0.909  0.559       False     False
149    first        b  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  2.432  3.810  2.922  1.559  0.959       False     False
150    first        b  3.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.182  3.560  2.906  1.394  0.814       False     False
151    first        b  3.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.182  3.560  2.142  1.027  0.600       False     False
152    first        b  3.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.182  3.560  3.671  1.760  1.028       False     False
153    first        b  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.182  3.560  2.906  1.394  0.814       False     False
154    first        b  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.182  3.560  2.142  1.027  0.600       False     False
155    first        b  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.182  3.560  3.671  1.760  1.028       False     False
156    first        b  3.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.220  2.350  3.775  2.361  1.300  0.768       False     False
157    first        b  3.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.220  2.350  3.775  1.740  0.958  0.566       False     False
158    first        b  3.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.220  2.350  3.775  2.982  1.643  0.970       False     False
159    first        b  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.220  2.350  3.775  2.361  1.300  0.768       False     False
160    first        b  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.220  2.350  3.775  1.740  0.958  0.566       False     False
161    first        b  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.220  2.350  3.775  2.982  1.643  0.970       False     False
162    first        b  3.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.970  2.100  3.525  2.988  1.482  0.824       False     False
163    first        b  3.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.970  2.100  3.525  2.202  1.092  0.607       False     False
164    first        b  3.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.970  2.100  3.525  3.774  1.872  1.041       False     False
165    first        b  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.970  2.100  3.525  2.988  1.482  0.824       False     False
166    first        b  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.970  2.100  3.525  2.202  1.092  0.607       False     False
167    first        b  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.970  2.100  3.525  3.774  1.872  1.041       False     False
168    first        b  3.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.204  2.436  3.822  2.402  1.232  0.756       False     False
169    first        b  3.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.204  2.436  3.822  1.770  0.908  0.557       False     False
170    first        b  3.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.204  2.436  3.822  3.034  1.556  0.955       False     False
171    first        b  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.204  2.436  3.822  2.402  1.232  0.756       False     False
172    first        b  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.204  2.436  3.822  1.770  0.908  0.557       False     False
173    first        b  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.204  2.436  3.822  3.034  1.556  0.955       False     False
174    first        b  3.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.954  2.186  3.572  3.058  1.391  0.811       False     False
175    first        b  3.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.954  2.186  3.572  2.253  1.025  0.597       False     False
176    first        b  3.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.954  2.186  3.572  3.862  1.757  1.024       False     False
177    first        b  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.954  2.186  3.572  3.058  1.391  0.811       False     False
178    first        b  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.954  2.186  3.572  2.253  1.025  0.597       False     False
179    first        b  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.954  2.186  3.572  3.862  1.757  1.024       False     False
180    first        b  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  3.167  4.505  2.313  0.903  0.634       False     False
181    first        b  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  3.167  4.505  1.705  0.665  0.467       False     False
182    first        b  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  3.167  4.505  2.922  1.141  0.801       False     False
183    first        b  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  3.167  4.505  2.313  0.903  0.634       False     False
184    first        b  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  3.167  4.505  1.705  0.665  0.467       False     False
185    first        b  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  3.167  4.505  2.922  1.141  0.801       False     False
186    first        b  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.917  4.255  2.906  0.981  0.672       False     False
187    first        b  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.917  4.255  2.142  0.723  0.495       False     False
188    first        b  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.917  4.255  3.671  1.239  0.849       False     False
189    first        b  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.917  4.255  2.906  0.981  0.672       False     False
190    first        b  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.917  4.255  2.142  0.723  0.495       False     False
191    first        b  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.917  4.255  3.671  1.239  0.849       False     False
192    first        b  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.160  3.185  4.515  2.521  0.899  0.633       False     False
193    first        b  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.160  3.185  4.515  1.858  0.663  0.467       False     False
194    first        b  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.160  3.185  4.515  3.184  1.136  0.800       False     False
195    first        b  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.160  3.185  4.515  2.521  0.899  0.633       False     False
196    first        b  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.160  3.185  4.515  1.858  0.663  0.467       False     False
197    first        b  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.160  3.185  4.515  3.184  1.136  0.800       False     False
198    first        b  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.910  2.935  4.265  3.267  0.977  0.671       False     False
199    first        b  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.910  2.935  4.265  2.407  0.720  0.494       False     False
200    first        b  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.910  2.935  4.265  4.127  1.234  0.847       False     False
201    first        b  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.910  2.935  4.265  3.267  0.977  0.671       False     False
202    first        b  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.910  2.935  4.265  2.407  0.720  0.494       False     False
203    first        b  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.910  2.935  4.265  4.127  1.234  0.847       False     False
204    first        b  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.203  3.181  4.490  2.404  0.900  0.636       False     False
205    first        b  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.203  3.181  4.490  1.771  0.663  0.469       False     False
206    first        b  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.203  3.181  4.490  3.037  1.136  0.804       False     False
207    first        b  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.203  3.181  4.490  2.404  0.900  0.636       False     False
208    first        b  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.203  3.181  4.490  1.771  0.663  0.469       False     False
209    first        b  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.203  3.181  4.490  3.037  1.136  0.804       False     False
210    first        b  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.953  2.931  4.240  3.062  0.977  0.674       False     False
211    first        b  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.953  2.931  4.240  2.256  0.720  0.497       False     False
212    first        b  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.953  2.931  4.240  3.868  1.234  0.851       False     False
213    first        b  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.953  2.931  4.240  3.062  0.977  0.674       False     False
214    first        b  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.953  2.931  4.240  2.256  0.720  0.497       False     False
215    first        b  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.953  2.931  4.240  3.868  1.234  0.851       False     False
216  largest        a  2.0     a      a   a: all 7  5   7  a: 2.85 mm pair centres  2.142  3.699  5.283  1.590  0.882  0.570        True     False
217  largest        a  2.0     a      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.142  3.699  5.283  1.172  0.650  0.420        True     False
218  largest        a  2.0     a      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.142  3.699  5.283  2.009  1.114  0.720        True     False
219  largest        a  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  1.870  3.260  5.027  1.845  1.016  0.611       False     False
220  largest        a  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.870  3.260  5.027  1.360  0.749  0.450       False     False
221  largest        a  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.870  3.260  5.027  2.331  1.283  0.772       False     False
222  largest        a  2.0     a      b   a: all 7  5   7  a: 2.85 mm pair centres  1.892  3.449  5.033  1.906  0.970  0.602       False     False
223  largest        a  2.0     a      b   a: all 7  5   7      b: 2.10 mm E2 to E3  1.892  3.449  5.033  1.404  0.715  0.444       False     False
224  largest        a  2.0     a      b   a: all 7  5   7      c: 3.60 mm E1 to E4  1.892  3.449  5.033  2.407  1.225  0.761       False     False
225  largest        a  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  1.620  3.010  4.777  2.267  1.133  0.649       False     False
226  largest        a  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.620  3.010  4.777  1.670  0.835  0.478       False     False
227  largest        a  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.620  3.010  4.777  2.863  1.431  0.820       False     False
228  largest        a  2.0     b      a   a: all 7  5   7  a: 2.85 mm pair centres  2.138  3.644  5.259  1.601  0.913  0.574        True     False
229  largest        a  2.0     b      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.138  3.644  5.259  1.179  0.673  0.423        True     False
230  largest        a  2.0     b      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.138  3.644  5.259  2.022  1.153  0.726        True     False
231  largest        a  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  1.863  3.168  4.987  1.863  1.067  0.618       False     False
232  largest        a  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.863  3.168  4.987  1.373  0.787  0.456       False     False
233  largest        a  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.863  3.168  4.987  2.353  1.348  0.781       False     False
234  largest        a  2.0     b      b   a: all 7  5   7  a: 2.85 mm pair centres  1.888  3.394  5.009  1.925  1.011  0.607       False     False
235  largest        a  2.0     b      b   a: all 7  5   7      b: 2.10 mm E2 to E3  1.888  3.394  5.009  1.419  0.745  0.448       False     False
236  largest        a  2.0     b      b   a: all 7  5   7      c: 3.60 mm E1 to E4  1.888  3.394  5.009  2.432  1.277  0.767       False     False
237  largest        a  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  1.613  2.918  4.737  2.300  1.200  0.657       False     False
238  largest        a  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.613  2.918  4.737  1.695  0.884  0.484       False     False
239  largest        a  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.613  2.918  4.737  2.905  1.516  0.830       False     False
240  largest        a  2.0     c      a   a: all 7  5   7  a: 2.85 mm pair centres  2.147  3.694  5.278  1.605  0.882  0.570        True     False
241  largest        a  2.0     c      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.147  3.694  5.278  1.183  0.650  0.420        True     False
242  largest        a  2.0     c      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.147  3.694  5.278  2.028  1.114  0.720        True     False
243  largest        a  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  1.876  3.256  5.025  1.871  1.016  0.610       False     False
244  largest        a  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.876  3.256  5.025  1.379  0.748  0.450       False     False
245  largest        a  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.876  3.256  5.025  2.364  1.283  0.771       False     False
246  largest        a  2.0     c      b   a: all 7  5   7  a: 2.85 mm pair centres  1.897  3.444  5.028  1.937  0.970  0.602       False     False
247  largest        a  2.0     c      b   a: all 7  5   7      b: 2.10 mm E2 to E3  1.897  3.444  5.028  1.427  0.715  0.444       False     False
248  largest        a  2.0     c      b   a: all 7  5   7      c: 3.60 mm E1 to E4  1.897  3.444  5.028  2.446  1.225  0.760       False     False
249  largest        a  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  1.626  3.006  4.775  2.319  1.132  0.648       False     False
250  largest        a  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  1.626  3.006  4.775  1.709  0.834  0.477       False     False
251  largest        a  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  1.626  3.006  4.775  2.930  1.430  0.818       False     False
252  largest        a  3.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  2.432  4.292  2.313  1.234  0.697       False     False
253  largest        a  3.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  2.432  4.292  1.705  0.909  0.514       False     False
254  largest        a  3.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  2.432  4.292  2.922  1.559  0.881       False     False
255  largest        a  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  2.432  4.292  2.313  1.234  0.697       False     False
256  largest        a  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  2.432  4.292  1.705  0.909  0.514       False     False
257  largest        a  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  2.432  4.292  2.922  1.559  0.881       False     False
258  largest        a  3.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.182  4.043  2.906  1.394  0.745       False     False
259  largest        a  3.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.182  4.043  2.142  1.027  0.549       False     False
260  largest        a  3.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.182  4.043  3.671  1.760  0.941       False     False
261  largest        a  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.182  4.043  2.906  1.394  0.745       False     False
262  largest        a  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.182  4.043  2.142  1.027  0.549       False     False
263  largest        a  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.182  4.043  3.671  1.760  0.941       False     False
264  largest        a  3.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.235  2.330  4.248  2.338  1.307  0.707       False     False
265  largest        a  3.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.235  2.330  4.248  1.723  0.963  0.521       False     False
266  largest        a  3.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.235  2.330  4.248  2.953  1.651  0.893       False     False
267  largest        a  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.235  2.330  4.248  2.338  1.307  0.707       False     False
268  largest        a  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.235  2.330  4.248  1.723  0.963  0.521       False     False
269  largest        a  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.235  2.330  4.248  2.953  1.651  0.893       False     False
270  largest        a  3.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.985  2.080  3.997  2.953  1.490  0.756       False     False
271  largest        a  3.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.985  2.080  3.997  2.176  1.098  0.557       False     False
272  largest        a  3.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.985  2.080  3.997  3.730  1.882  0.955       False     False
273  largest        a  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.985  2.080  3.997  2.953  1.490  0.756       False     False
274  largest        a  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.985  2.080  3.997  2.176  1.098  0.557       False     False
275  largest        a  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.985  2.080  3.997  3.730  1.882  0.955       False     False
276  largest        a  3.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.235  2.435  4.299  2.356  1.232  0.695       False     False
277  largest        a  3.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.235  2.435  4.299  1.736  0.908  0.512       False     False
278  largest        a  3.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.235  2.435  4.299  2.976  1.557  0.878       False     False
279  largest        a  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.235  2.435  4.299  2.356  1.232  0.695       False     False
280  largest        a  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.235  2.435  4.299  1.736  0.908  0.512       False     False
281  largest        a  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.235  2.435  4.299  2.976  1.557  0.878       False     False
282  largest        a  3.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.985  2.185  4.049  2.989  1.391  0.743       False     False
283  largest        a  3.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.985  2.185  4.049  2.203  1.025  0.547       False     False
284  largest        a  3.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.985  2.185  4.049  3.776  1.757  0.938       False     False
285  largest        a  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.985  2.185  4.049  2.989  1.391  0.743       False     False
286  largest        a  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.985  2.185  4.049  2.203  1.025  0.547       False     False
287  largest        a  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.985  2.185  4.049  3.776  1.757  0.938       False     False
288  largest        a  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  3.167  4.988  2.313  0.903  0.573       False     False
289  largest        a  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  3.167  4.988  1.705  0.665  0.422       False     False
290  largest        a  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  3.167  4.988  2.922  1.141  0.724       False     False
291  largest        a  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  3.167  4.988  2.313  0.903  0.573       False     False
292  largest        a  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  3.167  4.988  1.705  0.665  0.422       False     False
293  largest        a  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  3.167  4.988  2.922  1.141  0.724       False     False
294  largest        a  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.917  4.738  2.906  0.981  0.603       False     False
295  largest        a  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.917  4.738  2.142  0.723  0.444       False     False
296  largest        a  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.917  4.738  3.671  1.239  0.762       False     False
297  largest        a  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.917  4.738  2.906  0.981  0.603       False     False
298  largest        a  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.917  4.738  2.142  0.723  0.444       False     False
299  largest        a  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.917  4.738  3.671  1.239  0.762       False     False
300  largest        a  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.175  3.165  4.988  2.498  0.906  0.573       False     False
301  largest        a  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.175  3.165  4.988  1.841  0.668  0.422       False     False
302  largest        a  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.175  3.165  4.988  3.155  1.144  0.723       False     False
303  largest        a  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.175  3.165  4.988  2.498  0.906  0.573       False     False
304  largest        a  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.175  3.165  4.988  1.841  0.668  0.422       False     False
305  largest        a  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.175  3.165  4.988  3.155  1.144  0.723       False     False
306  largest        a  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.925  2.915  4.738  3.232  0.985  0.603       False     False
307  largest        a  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.925  2.915  4.738  2.382  0.726  0.444       False     False
308  largest        a  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.925  2.915  4.738  4.083  1.244  0.761       False     False
309  largest        a  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.925  2.915  4.738  3.232  0.985  0.603       False     False
310  largest        a  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.925  2.915  4.738  2.382  0.726  0.444       False     False
311  largest        a  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.925  2.915  4.738  4.083  1.244  0.761       False     False
312  largest        a  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.234  3.180  4.967  2.358  0.900  0.575       False     False
313  largest        a  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.234  3.180  4.967  1.738  0.663  0.424       False     False
314  largest        a  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.234  3.180  4.967  2.979  1.137  0.727       False     False
315  largest        a  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.234  3.180  4.967  2.358  0.900  0.575       False     False
316  largest        a  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.234  3.180  4.967  1.738  0.663  0.424       False     False
317  largest        a  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.234  3.180  4.967  2.979  1.137  0.727       False     False
318  largest        a  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.984  2.930  4.717  2.994  0.977  0.606       False     False
319  largest        a  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.984  2.930  4.717  2.206  0.720  0.447       False     False
320  largest        a  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.984  2.930  4.717  3.781  1.234  0.766       False     False
321  largest        a  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.984  2.930  4.717  2.994  0.977  0.606       False     False
322  largest        a  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.984  2.930  4.717  2.206  0.720  0.447       False     False
323  largest        a  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.984  2.930  4.717  3.781  1.234  0.766       False     False
324  largest        b  2.0     a      a   a: all 7  4   7  a: 2.85 mm pair centres  1.645  3.306  4.944  2.205  0.981  0.607       False     False
325  largest        b  2.0     a      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.645  3.306  4.944  1.625  0.723  0.447       False     False
326  largest        b  2.0     a      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.645  3.306  4.944  2.785  1.239  0.767       False     False
327  largest        b  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  1.112  2.667  4.500  2.647  1.126  0.658       False     False
328  largest        b  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.112  2.667  4.500  1.950  0.830  0.485       False     False
329  largest        b  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.112  2.667  4.500  3.343  1.422  0.831       False     False
330  largest        b  2.0     a      b   a: all 7  4   7  a: 2.85 mm pair centres  1.395  3.056  4.694  2.859  1.087  0.644       False     False
331  largest        b  2.0     a      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.395  3.056  4.694  2.107  0.801  0.474       False     False
332  largest        b  2.0     a      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.395  3.056  4.694  3.612  1.373  0.813       False     False
333  largest        b  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  0.862  2.417  4.250  3.495  1.258  0.700       False     False
334  largest        b  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.862  2.417  4.250  2.575  0.927  0.516       False     False
335  largest        b  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.862  2.417  4.250  4.415  1.589  0.885       False     False
336  largest        b  2.0     b      a   a: all 7  4   7  a: 2.85 mm pair centres  1.579  3.225  4.914  2.576  1.026  0.613       False     False
337  largest        b  2.0     b      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.579  3.225  4.914  1.898  0.756  0.452       False     False
338  largest        b  2.0     b      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.579  3.225  4.914  3.254  1.296  0.774       False     False
339  largest        b  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  1.023  2.558  4.460  3.142  1.186  0.666       False     False
340  largest        b  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.023  2.558  4.460  2.315  0.874  0.491       False     False
341  largest        b  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.023  2.558  4.460  3.969  1.499  0.841       False     False
342  largest        b  2.0     b      b   a: all 7  4   7  a: 2.85 mm pair centres  1.329  2.975  4.664  3.750  1.146  0.650       False     False
343  largest        b  2.0     b      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.329  2.975  4.664  2.763  0.844  0.479       False     False
344  largest        b  2.0     b      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.329  2.975  4.664  4.737  1.448  0.821       False     False
345  largest        b  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  0.773  2.308  4.210  4.683  1.337  0.709       False     False
346  largest        b  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.773  2.308  4.210  3.451  0.985  0.523       False     False
347  largest        b  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.773  2.308  4.210  5.915  1.689  0.896       False     False
348  largest        b  2.0     c      a   a: all 7  4   7  a: 2.85 mm pair centres  1.606  3.308  4.938  2.415  0.979  0.607       False     False
349  largest        b  2.0     c      a   a: all 7  4   7      b: 2.10 mm E2 to E3  1.606  3.308  4.938  1.780  0.722  0.447       False     False
350  largest        b  2.0     c      a   a: all 7  4   7      c: 3.60 mm E1 to E4  1.606  3.308  4.938  3.051  1.237  0.767       False     False
351  largest        b  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  1.056  2.673  4.499  2.929  1.123  0.657       False     False
352  largest        b  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  1.056  2.673  4.499  2.158  0.828  0.484       False     False
353  largest        b  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  1.056  2.673  4.499  3.699  1.419  0.830       False     False
354  largest        b  2.0     c      b   a: all 7  4   7  a: 2.85 mm pair centres  1.356  3.058  4.688  3.317  1.085  0.643       False     False
355  largest        b  2.0     c      b   a: all 7  4   7      b: 2.10 mm E2 to E3  1.356  3.058  4.688  2.444  0.799  0.474       False     False
356  largest        b  2.0     c      b   a: all 7  4   7      c: 3.60 mm E1 to E4  1.356  3.058  4.688  4.190  1.371  0.813       False     False
357  largest        b  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  0.806  2.423  4.249  4.106  1.255  0.700       False     False
358  largest        b  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  0.806  2.423  4.249  3.026  0.925  0.515       False     False
359  largest        b  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  0.806  2.423  4.249  5.187  1.586  0.884       False     False
360  largest        b  3.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  2.432  4.292  2.313  1.234  0.697       False     False
361  largest        b  3.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  2.432  4.292  1.705  0.909  0.514       False     False
362  largest        b  3.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  2.432  4.292  2.922  1.559  0.881       False     False
363  largest        b  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  2.432  4.292  2.313  1.234  0.697       False     False
364  largest        b  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  2.432  4.292  1.705  0.909  0.514       False     False
365  largest        b  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  2.432  4.292  2.922  1.559  0.881       False     False
366  largest        b  3.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.182  4.043  2.906  1.394  0.745       False     False
367  largest        b  3.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.182  4.043  2.142  1.027  0.549       False     False
368  largest        b  3.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.182  4.043  3.671  1.760  0.941       False     False
369  largest        b  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.182  4.043  2.906  1.394  0.745       False     False
370  largest        b  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.182  4.043  2.142  1.027  0.549       False     False
371  largest        b  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.182  4.043  3.671  1.760  0.941       False     False
372  largest        b  3.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.235  2.330  4.248  2.338  1.307  0.707       False     False
373  largest        b  3.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.235  2.330  4.248  1.723  0.963  0.521       False     False
374  largest        b  3.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.235  2.330  4.248  2.953  1.651  0.893       False     False
375  largest        b  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.235  2.330  4.248  2.338  1.307  0.707       False     False
376  largest        b  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.235  2.330  4.248  1.723  0.963  0.521       False     False
377  largest        b  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.235  2.330  4.248  2.953  1.651  0.893       False     False
378  largest        b  3.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.985  2.080  3.997  2.953  1.490  0.756       False     False
379  largest        b  3.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.985  2.080  3.997  2.176  1.098  0.557       False     False
380  largest        b  3.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.985  2.080  3.997  3.730  1.882  0.955       False     False
381  largest        b  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.985  2.080  3.997  2.953  1.490  0.756       False     False
382  largest        b  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.985  2.080  3.997  2.176  1.098  0.557       False     False
383  largest        b  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.985  2.080  3.997  3.730  1.882  0.955       False     False
384  largest        b  3.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.235  2.435  4.299  2.356  1.232  0.695       False     False
385  largest        b  3.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.235  2.435  4.299  1.736  0.908  0.512       False     False
386  largest        b  3.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.235  2.435  4.299  2.976  1.557  0.878       False     False
387  largest        b  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.235  2.435  4.299  2.356  1.232  0.695       False     False
388  largest        b  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.235  2.435  4.299  1.736  0.908  0.512       False     False
389  largest        b  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.235  2.435  4.299  2.976  1.557  0.878       False     False
390  largest        b  3.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.985  2.185  4.049  2.989  1.391  0.743       False     False
391  largest        b  3.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.985  2.185  4.049  2.203  1.025  0.547       False     False
392  largest        b  3.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.985  2.185  4.049  3.776  1.757  0.938       False     False
393  largest        b  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.985  2.185  4.049  2.989  1.391  0.743       False     False
394  largest        b  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.985  2.185  4.049  2.203  1.025  0.547       False     False
395  largest        b  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.985  2.185  4.049  3.776  1.757  0.938       False     False
396  largest        b  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  1.238  3.167  4.988  2.313  0.903  0.573       False     False
397  largest        b  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.238  3.167  4.988  1.705  0.665  0.422       False     False
398  largest        b  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.238  3.167  4.988  2.922  1.141  0.724       False     False
399  largest        b  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  1.238  3.167  4.988  2.313  0.903  0.573       False     False
400  largest        b  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.238  3.167  4.988  1.705  0.665  0.422       False     False
401  largest        b  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.238  3.167  4.988  2.922  1.141  0.724       False     False
402  largest        b  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  0.988  2.917  4.738  2.906  0.981  0.603       False     False
403  largest        b  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.988  2.917  4.738  2.142  0.723  0.444       False     False
404  largest        b  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.988  2.917  4.738  3.671  1.239  0.762       False     False
405  largest        b  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  0.988  2.917  4.738  2.906  0.981  0.603       False     False
406  largest        b  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.988  2.917  4.738  2.142  0.723  0.444       False     False
407  largest        b  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.988  2.917  4.738  3.671  1.239  0.762       False     False
408  largest        b  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  1.175  3.165  4.988  2.498  0.906  0.573       False     False
409  largest        b  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.175  3.165  4.988  1.841  0.668  0.422       False     False
410  largest        b  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.175  3.165  4.988  3.155  1.144  0.723       False     False
411  largest        b  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  1.175  3.165  4.988  2.498  0.906  0.573       False     False
412  largest        b  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.175  3.165  4.988  1.841  0.668  0.422       False     False
413  largest        b  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.175  3.165  4.988  3.155  1.144  0.723       False     False
414  largest        b  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  0.925  2.915  4.738  3.232  0.985  0.603       False     False
415  largest        b  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.925  2.915  4.738  2.382  0.726  0.444       False     False
416  largest        b  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.925  2.915  4.738  4.083  1.244  0.761       False     False
417  largest        b  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  0.925  2.915  4.738  3.232  0.985  0.603       False     False
418  largest        b  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.925  2.915  4.738  2.382  0.726  0.444       False     False
419  largest        b  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.925  2.915  4.738  4.083  1.244  0.761       False     False
420  largest        b  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  1.234  3.180  4.967  2.358  0.900  0.575       False     False
421  largest        b  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  1.234  3.180  4.967  1.738  0.663  0.424       False     False
422  largest        b  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  1.234  3.180  4.967  2.979  1.137  0.727       False     False
423  largest        b  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  1.234  3.180  4.967  2.358  0.900  0.575       False     False
424  largest        b  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  1.234  3.180  4.967  1.738  0.663  0.424       False     False
425  largest        b  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  1.234  3.180  4.967  2.979  1.137  0.727       False     False
426  largest        b  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  0.984  2.930  4.717  2.994  0.977  0.606       False     False
427  largest        b  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  0.984  2.930  4.717  2.206  0.720  0.447       False     False
428  largest        b  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  0.984  2.930  4.717  3.781  1.234  0.766       False     False
429  largest        b  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  0.984  2.930  4.717  2.994  0.977  0.606       False     False
430  largest        b  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  0.984  2.930  4.717  2.206  0.720  0.447       False     False
431  largest        b  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  0.984  2.930  4.717  3.781  1.234  0.766       False     False
432   window        a  2.0     a      a   a: all 7  3   7  a: 2.85 mm pair centres  1.985  3.363  5.360  1.445  0.848  0.539       False     False
433   window        a  2.0     a      a   a: all 7  3   7      b: 2.10 mm E2 to E3  1.985  3.363  5.360  1.065  0.625  0.397       False     False
434   window        a  2.0     a      a   a: all 7  3   7      c: 3.60 mm E1 to E4  1.985  3.363  5.360  1.825  1.071  0.681       False     False
435   window        a  2.0     a      a  c: week 0  1   4  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
436   window        a  2.0     a      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
437   window        a  2.0     a      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
438   window        a  2.0     a      b   a: all 7  3   7  a: 2.85 mm pair centres  1.735  3.113  5.110  1.656  0.916  0.567       False     False
439   window        a  2.0     a      b   a: all 7  3   7      b: 2.10 mm E2 to E3  1.735  3.113  5.110  1.221  0.675  0.417       False     False
440   window        a  2.0     a      b   a: all 7  3   7      c: 3.60 mm E1 to E4  1.735  3.113  5.110  2.092  1.158  0.716       False     False
441   window        a  2.0     a      b  c: week 0  1   4  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
442   window        a  2.0     a      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
443   window        a  2.0     a      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
444   window        a  2.0     b      a   a: all 7  3   7  a: 2.85 mm pair centres  1.968  3.322  5.347  1.459  0.861  0.540       False     False
445   window        a  2.0     b      a   a: all 7  3   7      b: 2.10 mm E2 to E3  1.968  3.322  5.347  1.075  0.634  0.398       False     False
446   window        a  2.0     b      a   a: all 7  3   7      c: 3.60 mm E1 to E4  1.968  3.322  5.347  1.843  1.087  0.682       False     False
447   window        a  2.0     b      a  c: week 0  1   4  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
448   window        a  2.0     b      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
449   window        a  2.0     b      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
450   window        a  2.0     b      b   a: all 7  3   7  a: 2.85 mm pair centres  1.718  3.072  5.097  1.675  0.931  0.567       False     False
451   window        a  2.0     b      b   a: all 7  3   7      b: 2.10 mm E2 to E3  1.718  3.072  5.097  1.235  0.686  0.418       False     False
452   window        a  2.0     b      b   a: all 7  3   7      c: 3.60 mm E1 to E4  1.718  3.072  5.097  2.116  1.176  0.716       False     False
453   window        a  2.0     b      b  c: week 0  1   4  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
454   window        a  2.0     b      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
455   window        a  2.0     b      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
456   window        a  2.0     c      a   a: all 7  3   7  a: 2.85 mm pair centres  1.987  3.374  5.341  1.443  0.845  0.541       False     False
457   window        a  2.0     c      a   a: all 7  3   7      b: 2.10 mm E2 to E3  1.987  3.374  5.341  1.063  0.623  0.399       False     False
458   window        a  2.0     c      a   a: all 7  3   7      c: 3.60 mm E1 to E4  1.987  3.374  5.341  1.823  1.068  0.684       False     False
459   window        a  2.0     c      a  c: week 0  1   4  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
460   window        a  2.0     c      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
461   window        a  2.0     c      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
462   window        a  2.0     c      b   a: all 7  3   7  a: 2.85 mm pair centres  1.737  3.124  5.091  1.654  0.913  0.569       False     False
463   window        a  2.0     c      b   a: all 7  3   7      b: 2.10 mm E2 to E3  1.737  3.124  5.091  1.219  0.673  0.419       False     False
464   window        a  2.0     c      b   a: all 7  3   7      c: 3.60 mm E1 to E4  1.737  3.124  5.091  2.089  1.154  0.718       False     False
465   window        a  2.0     c      b  c: week 0  1   4  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
466   window        a  2.0     c      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
467   window        a  2.0     c      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
468   window        a  3.0     a      a   a: all 7  1   7  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
469   window        a  3.0     a      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
470   window        a  3.0     a      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
471   window        a  3.0     a      a  c: week 0  1   4  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
472   window        a  3.0     a      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
473   window        a  3.0     a      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
474   window        a  3.0     a      b   a: all 7  1   7  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
475   window        a  3.0     a      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
476   window        a  3.0     a      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
477   window        a  3.0     a      b  c: week 0  1   4  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
478   window        a  3.0     a      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
479   window        a  3.0     a      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
480   window        a  3.0     b      a   a: all 7  1   7  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
481   window        a  3.0     b      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
482   window        a  3.0     b      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
483   window        a  3.0     b      a  c: week 0  1   4  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
484   window        a  3.0     b      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
485   window        a  3.0     b      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
486   window        a  3.0     b      b   a: all 7  1   7  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
487   window        a  3.0     b      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
488   window        a  3.0     b      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
489   window        a  3.0     b      b  c: week 0  1   4  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
490   window        a  3.0     b      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
491   window        a  3.0     b      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
492   window        a  3.0     c      a   a: all 7  1   7  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
493   window        a  3.0     c      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
494   window        a  3.0     c      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
495   window        a  3.0     c      a  c: week 0  1   4  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
496   window        a  3.0     c      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
497   window        a  3.0     c      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
498   window        a  3.0     c      b   a: all 7  1   7  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
499   window        a  3.0     c      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
500   window        a  3.0     c      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
501   window        a  3.0     c      b  c: week 0  1   4  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
502   window        a  3.0     c      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
503   window        a  3.0     c      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
504   window        b  2.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  2.050  3.300  5.510  1.399  0.864  0.527       False     False
505   window        b  2.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.050  3.300  5.510  1.031  0.637  0.389       False     False
506   window        b  2.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.050  3.300  5.510  1.768  1.091  0.666       False     False
507   window        b  2.0     a      a  c: week 0  1   4  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
508   window        b  2.0     a      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
509   window        b  2.0     a      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
510   window        b  2.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  1.800  3.050  5.260  1.597  0.935  0.554       False     False
511   window        b  2.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  1.800  3.050  5.260  1.177  0.689  0.408       False     False
512   window        b  2.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  1.800  3.050  5.260  2.017  1.181  0.699       False     False
513   window        b  2.0     a      b  c: week 0  1   4  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
514   window        b  2.0     a      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
515   window        b  2.0     a      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
516   window        b  2.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  2.025  3.238  5.490  1.421  0.883  0.528       False     False
517   window        b  2.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.025  3.238  5.490  1.047  0.650  0.389       False     False
518   window        b  2.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.025  3.238  5.490  1.794  1.115  0.667       False     False
519   window        b  2.0     b      a  c: week 0  1   4  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
520   window        b  2.0     b      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
521   window        b  2.0     b      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
522   window        b  2.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  1.775  2.988  5.240  1.625  0.957  0.554       False     False
523   window        b  2.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  1.775  2.988  5.240  1.198  0.705  0.408       False     False
524   window        b  2.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  1.775  2.988  5.240  2.053  1.209  0.700       False     False
525   window        b  2.0     b      b  c: week 0  1   4  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
526   window        b  2.0     b      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
527   window        b  2.0     b      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
528   window        b  2.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  2.053  3.316  5.482  1.396  0.860  0.530       False     False
529   window        b  2.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.053  3.316  5.482  1.029  0.634  0.391       False     False
530   window        b  2.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.053  3.316  5.482  1.764  1.086  0.670       False     False
531   window        b  2.0     c      a  c: week 0  1   4  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
532   window        b  2.0     c      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
533   window        b  2.0     c      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
534   window        b  2.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  1.803  3.066  5.232  1.593  0.930  0.557       False     False
535   window        b  2.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  1.803  3.066  5.232  1.174  0.685  0.410       False     False
536   window        b  2.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  1.803  3.066  5.232  2.012  1.175  0.703       False     False
537   window        b  2.0     c      b  c: week 0  1   4  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
538   window        b  2.0     c      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
539   window        b  2.0     c      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
540   window        b  3.0     a      a   a: all 7  1   7  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
541   window        b  3.0     a      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
542   window        b  3.0     a      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
543   window        b  3.0     a      a  c: week 0  1   4  a: 2.85 mm pair centres  1.885  3.355  4.745  1.512  0.849  0.601       False     False
544   window        b  3.0     a      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.885  3.355  4.745  1.114  0.626  0.443       False     False
545   window        b  3.0     a      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.885  3.355  4.745  1.910  1.073  0.759       False     False
546   window        b  3.0     a      b   a: all 7  1   7  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
547   window        b  3.0     a      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
548   window        b  3.0     a      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
549   window        b  3.0     a      b  c: week 0  1   4  a: 2.85 mm pair centres  1.635  3.105  4.495  1.743  0.918  0.634       False     False
550   window        b  3.0     a      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.635  3.105  4.495  1.284  0.676  0.467       False      True
551   window        b  3.0     a      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.635  3.105  4.495  2.202  1.159  0.801       False     False
552   window        b  3.0     b      a   a: all 7  1   7  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
553   window        b  3.0     b      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
554   window        b  3.0     b      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
555   window        b  3.0     b      a  c: week 0  1   4  a: 2.85 mm pair centres  1.830  3.410  4.770  1.557  0.836  0.597       False     False
556   window        b  3.0     b      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.830  3.410  4.770  1.148  0.616  0.440       False     False
557   window        b  3.0     b      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.830  3.410  4.770  1.967  1.056  0.755       False     False
558   window        b  3.0     b      b   a: all 7  1   7  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
559   window        b  3.0     b      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
560   window        b  3.0     b      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
561   window        b  3.0     b      b  c: week 0  1   4  a: 2.85 mm pair centres  1.580  3.160  4.520  1.804  0.902  0.631       False     False
562   window        b  3.0     b      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.580  3.160  4.520  1.329  0.665  0.465       False      True
563   window        b  3.0     b      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.580  3.160  4.520  2.278  1.139  0.796       False     False
564   window        b  3.0     c      a   a: all 7  1   7  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
565   window        b  3.0     c      a   a: all 7  1   7      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
566   window        b  3.0     c      a   a: all 7  1   7      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
567   window        b  3.0     c      a  c: week 0  1   4  a: 2.85 mm pair centres  1.897  3.378  4.709  1.502  0.844  0.605       False     False
568   window        b  3.0     c      a  c: week 0  1   4      b: 2.10 mm E2 to E3  1.897  3.378  4.709  1.107  0.622  0.446       False     False
569   window        b  3.0     c      a  c: week 0  1   4      c: 3.60 mm E1 to E4  1.897  3.378  4.709  1.898  1.066  0.764       False     False
570   window        b  3.0     c      b   a: all 7  1   7  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
571   window        b  3.0     c      b   a: all 7  1   7      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
572   window        b  3.0     c      b   a: all 7  1   7      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
573   window        b  3.0     c      b  c: week 0  1   4  a: 2.85 mm pair centres  1.647  3.128  4.459  1.730  0.911  0.639       False     False
574   window        b  3.0     c      b  c: week 0  1   4      b: 2.10 mm E2 to E3  1.647  3.128  4.459  1.275  0.671  0.471       False      True
575   window        b  3.0     c      b  c: week 0  1   4      c: 3.60 mm E1 to E4  1.647  3.128  4.459  2.186  1.151  0.807       False     False
576      inv        a  2.0     a      a   a: all 7  5   7  a: 2.85 mm pair centres  2.348  3.541  5.001  1.316  0.850  0.599       False     False
577      inv        a  2.0     a      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.348  3.541  5.001  0.969  0.627  0.441       False     False
578      inv        a  2.0     a      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.348  3.541  5.001  1.662  1.074  0.757       False     False
579      inv        a  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  2.425  3.538  4.977  1.202  0.847  0.593       False     False
580      inv        a  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.425  3.538  4.977  0.886  0.624  0.437       False     False
581      inv        a  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.425  3.538  4.977  1.519  1.070  0.749       False     False
582      inv        a  2.0     a      b   a: all 7  5   7  a: 2.85 mm pair centres  2.098  3.291  4.751  1.509  0.924  0.634       False     False
583      inv        a  2.0     a      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.098  3.291  4.751  1.112  0.681  0.467       False     False
584      inv        a  2.0     a      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.098  3.291  4.751  1.906  1.167  0.801       False     False
585      inv        a  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  2.175  3.288  4.727  1.348  0.920  0.627       False     False
586      inv        a  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.175  3.288  4.727  0.994  0.678  0.462       False     False
587      inv        a  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.175  3.288  4.727  1.703  1.162  0.792       False     False
588      inv        a  2.0     b      a   a: all 7  5   7  a: 2.85 mm pair centres  2.361  3.540  5.003  1.326  0.847  0.596       False     False
589      inv        a  2.0     b      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.361  3.540  5.003  0.977  0.624  0.439       False     False
590      inv        a  2.0     b      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.361  3.540  5.003  1.674  1.070  0.753       False     False
591      inv        a  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  2.480  3.532  4.960  1.166  0.844  0.592       False     False
592      inv        a  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.480  3.532  4.960  0.859  0.622  0.436       False     False
593      inv        a  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.480  3.532  4.960  1.473  1.066  0.748       False     False
594      inv        a  2.0     b      b   a: all 7  5   7  a: 2.85 mm pair centres  2.111  3.290  4.753  1.529  0.920  0.630       False     False
595      inv        a  2.0     b      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.111  3.290  4.753  1.126  0.678  0.465       False     False
596      inv        a  2.0     b      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.111  3.290  4.753  1.931  1.161  0.796       False     False
597      inv        a  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  2.230  3.282  4.710  1.302  0.915  0.626       False     False
598      inv        a  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.230  3.282  4.710  0.959  0.674  0.461       False     False
599      inv        a  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.230  3.282  4.710  1.644  1.156  0.791       False     False
600      inv        a  2.0     c      a   a: all 7  5   7  a: 2.85 mm pair centres  2.359  3.556  4.996  1.307  0.845  0.600       False     False
601      inv        a  2.0     c      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.359  3.556  4.996  0.963  0.623  0.442       False     False
602      inv        a  2.0     c      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.359  3.556  4.996  1.650  1.068  0.758       False     False
603      inv        a  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  2.431  3.551  4.983  1.200  0.842  0.593       False     False
604      inv        a  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.431  3.551  4.983  0.884  0.621  0.437       False     False
605      inv        a  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.431  3.551  4.983  1.516  1.064  0.749       False     False
606      inv        a  2.0     c      b   a: all 7  5   7  a: 2.85 mm pair centres  2.109  3.306  4.746  1.496  0.918  0.635       False     False
607      inv        a  2.0     c      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.109  3.306  4.746  1.103  0.676  0.468       False     False
608      inv        a  2.0     c      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.109  3.306  4.746  1.890  1.159  0.802       False     False
609      inv        a  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  2.181  3.301  4.733  1.345  0.914  0.627       False     False
610      inv        a  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.181  3.301  4.733  0.991  0.673  0.462       False     False
611      inv        a  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.181  3.301  4.733  1.700  1.154  0.792       False     False
612      inv        a  3.0     a      a   a: all 7  3   7  a: 2.85 mm pair centres  2.543  3.628  5.165  1.162  0.833  0.579       False     False
613      inv        a  3.0     a      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.543  3.628  5.165  0.856  0.614  0.426       False     False
614      inv        a  3.0     a      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.543  3.628  5.165  1.467  1.052  0.731       False     False
615      inv        a  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
616      inv        a  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
617      inv        a  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
618      inv        a  3.0     a      b   a: all 7  3   7  a: 2.85 mm pair centres  2.293  3.378  4.915  1.300  0.904  0.611       False     False
619      inv        a  3.0     a      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.293  3.378  4.915  0.958  0.666  0.451       False     False
620      inv        a  3.0     a      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.293  3.378  4.915  1.642  1.142  0.772       False     False
621      inv        a  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
622      inv        a  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
623      inv        a  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
624      inv        a  3.0     b      a   a: all 7  3   7  a: 2.85 mm pair centres  2.598  3.622  5.148  1.126  0.830  0.578       False     False
625      inv        a  3.0     b      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.598  3.622  5.148  0.830  0.611  0.426       False     False
626      inv        a  3.0     b      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.598  3.622  5.148  1.422  1.048  0.730       False     False
627      inv        a  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
628      inv        a  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
629      inv        a  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
630      inv        a  3.0     b      b   a: all 7  3   7  a: 2.85 mm pair centres  2.348  3.372  4.898  1.253  0.899  0.610       False     False
631      inv        a  3.0     b      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.348  3.372  4.898  0.923  0.663  0.450       False     False
632      inv        a  3.0     b      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.348  3.372  4.898  1.583  1.136  0.771       False     False
633      inv        a  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
634      inv        a  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
635      inv        a  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
636      inv        a  3.0     c      a   a: all 7  3   7  a: 2.85 mm pair centres  2.546  3.652  5.162  1.161  0.826  0.579       False     False
637      inv        a  3.0     c      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.546  3.652  5.162  0.856  0.609  0.427       False     False
638      inv        a  3.0     c      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.546  3.652  5.162  1.467  1.044  0.732       False     False
639      inv        a  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
640      inv        a  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
641      inv        a  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
642      inv        a  3.0     c      b   a: all 7  3   7  a: 2.85 mm pair centres  2.296  3.402  4.912  1.299  0.896  0.612       False     False
643      inv        a  3.0     c      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.296  3.402  4.912  0.957  0.660  0.451       False     False
644      inv        a  3.0     c      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.296  3.402  4.912  1.641  1.132  0.773       False     False
645      inv        a  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
646      inv        a  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
647      inv        a  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
648      inv        a  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
649      inv        a  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
650      inv        a  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
651      inv        a  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
652      inv        a  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
653      inv        a  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
654      inv        a  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
655      inv        a  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
656      inv        a  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
657      inv        a  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
658      inv        a  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
659      inv        a  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
660      inv        a  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
661      inv        a  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
662      inv        a  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
663      inv        a  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
664      inv        a  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
665      inv        a  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
666      inv        a  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
667      inv        a  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
668      inv        a  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
669      inv        a  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
670      inv        a  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
671      inv        a  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
672      inv        a  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
673      inv        a  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
674      inv        a  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
675      inv        a  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
676      inv        a  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
677      inv        a  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
678      inv        a  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
679      inv        a  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
680      inv        a  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
681      inv        a  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
682      inv        a  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
683      inv        a  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
684      inv        b  2.0     a      a   a: all 7  5   7  a: 2.85 mm pair centres  2.348  3.541  5.001  1.316  0.850  0.599       False     False
685      inv        b  2.0     a      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.348  3.541  5.001  0.969  0.627  0.441       False     False
686      inv        b  2.0     a      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.348  3.541  5.001  1.662  1.074  0.757       False     False
687      inv        b  2.0     a      a  c: week 0  3   4  a: 2.85 mm pair centres  2.425  3.538  4.977  1.202  0.847  0.593       False     False
688      inv        b  2.0     a      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.425  3.538  4.977  0.886  0.624  0.437       False     False
689      inv        b  2.0     a      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.425  3.538  4.977  1.519  1.070  0.749       False     False
690      inv        b  2.0     a      b   a: all 7  5   7  a: 2.85 mm pair centres  2.098  3.291  4.751  1.509  0.924  0.634       False     False
691      inv        b  2.0     a      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.098  3.291  4.751  1.112  0.681  0.467       False     False
692      inv        b  2.0     a      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.098  3.291  4.751  1.906  1.167  0.801       False     False
693      inv        b  2.0     a      b  c: week 0  3   4  a: 2.85 mm pair centres  2.175  3.288  4.727  1.348  0.920  0.627       False     False
694      inv        b  2.0     a      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.175  3.288  4.727  0.994  0.678  0.462       False     False
695      inv        b  2.0     a      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.175  3.288  4.727  1.703  1.162  0.792       False     False
696      inv        b  2.0     b      a   a: all 7  5   7  a: 2.85 mm pair centres  2.361  3.540  5.003  1.326  0.847  0.596       False     False
697      inv        b  2.0     b      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.361  3.540  5.003  0.977  0.624  0.439       False     False
698      inv        b  2.0     b      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.361  3.540  5.003  1.674  1.070  0.753       False     False
699      inv        b  2.0     b      a  c: week 0  3   4  a: 2.85 mm pair centres  2.480  3.532  4.960  1.166  0.844  0.592       False     False
700      inv        b  2.0     b      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.480  3.532  4.960  0.859  0.622  0.436       False     False
701      inv        b  2.0     b      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.480  3.532  4.960  1.473  1.066  0.748       False     False
702      inv        b  2.0     b      b   a: all 7  5   7  a: 2.85 mm pair centres  2.111  3.290  4.753  1.529  0.920  0.630       False     False
703      inv        b  2.0     b      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.111  3.290  4.753  1.126  0.678  0.465       False     False
704      inv        b  2.0     b      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.111  3.290  4.753  1.931  1.161  0.796       False     False
705      inv        b  2.0     b      b  c: week 0  3   4  a: 2.85 mm pair centres  2.230  3.282  4.710  1.302  0.915  0.626       False     False
706      inv        b  2.0     b      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.230  3.282  4.710  0.959  0.674  0.461       False     False
707      inv        b  2.0     b      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.230  3.282  4.710  1.644  1.156  0.791       False     False
708      inv        b  2.0     c      a   a: all 7  5   7  a: 2.85 mm pair centres  2.359  3.556  4.996  1.307  0.845  0.600       False     False
709      inv        b  2.0     c      a   a: all 7  5   7      b: 2.10 mm E2 to E3  2.359  3.556  4.996  0.963  0.623  0.442       False     False
710      inv        b  2.0     c      a   a: all 7  5   7      c: 3.60 mm E1 to E4  2.359  3.556  4.996  1.650  1.068  0.758       False     False
711      inv        b  2.0     c      a  c: week 0  3   4  a: 2.85 mm pair centres  2.431  3.551  4.983  1.200  0.842  0.593       False     False
712      inv        b  2.0     c      a  c: week 0  3   4      b: 2.10 mm E2 to E3  2.431  3.551  4.983  0.884  0.621  0.437       False     False
713      inv        b  2.0     c      a  c: week 0  3   4      c: 3.60 mm E1 to E4  2.431  3.551  4.983  1.516  1.064  0.749       False     False
714      inv        b  2.0     c      b   a: all 7  5   7  a: 2.85 mm pair centres  2.109  3.306  4.746  1.496  0.918  0.635       False     False
715      inv        b  2.0     c      b   a: all 7  5   7      b: 2.10 mm E2 to E3  2.109  3.306  4.746  1.103  0.676  0.468       False     False
716      inv        b  2.0     c      b   a: all 7  5   7      c: 3.60 mm E1 to E4  2.109  3.306  4.746  1.890  1.159  0.802       False     False
717      inv        b  2.0     c      b  c: week 0  3   4  a: 2.85 mm pair centres  2.181  3.301  4.733  1.345  0.914  0.627       False     False
718      inv        b  2.0     c      b  c: week 0  3   4      b: 2.10 mm E2 to E3  2.181  3.301  4.733  0.991  0.673  0.462       False     False
719      inv        b  2.0     c      b  c: week 0  3   4      c: 3.60 mm E1 to E4  2.181  3.301  4.733  1.700  1.154  0.792       False     False
720      inv        b  3.0     a      a   a: all 7  3   7  a: 2.85 mm pair centres  2.543  3.628  5.165  1.162  0.833  0.579       False     False
721      inv        b  3.0     a      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.543  3.628  5.165  0.856  0.614  0.426       False     False
722      inv        b  3.0     a      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.543  3.628  5.165  1.467  1.052  0.731       False     False
723      inv        b  3.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
724      inv        b  3.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
725      inv        b  3.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
726      inv        b  3.0     a      b   a: all 7  3   7  a: 2.85 mm pair centres  2.293  3.378  4.915  1.300  0.904  0.611       False     False
727      inv        b  3.0     a      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.293  3.378  4.915  0.958  0.666  0.451       False     False
728      inv        b  3.0     a      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.293  3.378  4.915  1.642  1.142  0.772       False     False
729      inv        b  3.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
730      inv        b  3.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
731      inv        b  3.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
732      inv        b  3.0     b      a   a: all 7  3   7  a: 2.85 mm pair centres  2.598  3.622  5.148  1.126  0.830  0.578       False     False
733      inv        b  3.0     b      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.598  3.622  5.148  0.830  0.611  0.426       False     False
734      inv        b  3.0     b      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.598  3.622  5.148  1.422  1.048  0.730       False     False
735      inv        b  3.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
736      inv        b  3.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
737      inv        b  3.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
738      inv        b  3.0     b      b   a: all 7  3   7  a: 2.85 mm pair centres  2.348  3.372  4.898  1.253  0.899  0.610       False     False
739      inv        b  3.0     b      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.348  3.372  4.898  0.923  0.663  0.450       False     False
740      inv        b  3.0     b      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.348  3.372  4.898  1.583  1.136  0.771       False     False
741      inv        b  3.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
742      inv        b  3.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
743      inv        b  3.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
744      inv        b  3.0     c      a   a: all 7  3   7  a: 2.85 mm pair centres  2.546  3.652  5.162  1.161  0.826  0.579       False     False
745      inv        b  3.0     c      a   a: all 7  3   7      b: 2.10 mm E2 to E3  2.546  3.652  5.162  0.856  0.609  0.427       False     False
746      inv        b  3.0     c      a   a: all 7  3   7      c: 3.60 mm E1 to E4  2.546  3.652  5.162  1.467  1.044  0.732       False     False
747      inv        b  3.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
748      inv        b  3.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
749      inv        b  3.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
750      inv        b  3.0     c      b   a: all 7  3   7  a: 2.85 mm pair centres  2.296  3.402  4.912  1.299  0.896  0.612       False     False
751      inv        b  3.0     c      b   a: all 7  3   7      b: 2.10 mm E2 to E3  2.296  3.402  4.912  0.957  0.660  0.451       False     False
752      inv        b  3.0     c      b   a: all 7  3   7      c: 3.60 mm E1 to E4  2.296  3.402  4.912  1.641  1.132  0.773       False     False
753      inv        b  3.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
754      inv        b  3.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
755      inv        b  3.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
756      inv        b  5.0     a      a   a: all 7  2   7  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
757      inv        b  5.0     a      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
758      inv        b  5.0     a      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
759      inv        b  5.0     a      a  c: week 0  2   4  a: 2.85 mm pair centres  2.280  3.235  4.570  1.278  0.927  0.644       False     False
760      inv        b  5.0     a      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.280  3.235  4.570  0.942  0.683  0.474       False     False
761      inv        b  5.0     a      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.280  3.235  4.570  1.615  1.171  0.813       False     False
762      inv        b  5.0     a      b   a: all 7  2   7  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
763      inv        b  5.0     a      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
764      inv        b  5.0     a      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
765      inv        b  5.0     a      b  c: week 0  2   4  a: 2.85 mm pair centres  2.030  2.985  4.320  1.444  1.014  0.684       False     False
766      inv        b  5.0     a      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.030  2.985  4.320  1.064  0.747  0.504       False     False
767      inv        b  5.0     a      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.030  2.985  4.320  1.825  1.281  0.864       False     False
768      inv        b  5.0     b      a   a: all 7  2   7  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
769      inv        b  5.0     b      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
770      inv        b  5.0     b      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
771      inv        b  5.0     b      a  c: week 0  2   4  a: 2.85 mm pair centres  2.362  3.225  4.545  1.224  0.922  0.642       False     False
772      inv        b  5.0     b      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.362  3.225  4.545  0.902  0.679  0.473       False     False
773      inv        b  5.0     b      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.362  3.225  4.545  1.547  1.164  0.811       False     False
774      inv        b  5.0     b      b   a: all 7  2   7  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
775      inv        b  5.0     b      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
776      inv        b  5.0     b      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
777      inv        b  5.0     b      b  c: week 0  2   4  a: 2.85 mm pair centres  2.112  2.975  4.295  1.375  1.007  0.682       False     False
778      inv        b  5.0     b      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.112  2.975  4.295  1.013  0.742  0.502       False     False
779      inv        b  5.0     b      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.112  2.975  4.295  1.736  1.272  0.861       False     False
780      inv        b  5.0     c      a   a: all 7  2   7  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
781      inv        b  5.0     c      a   a: all 7  2   7      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
782      inv        b  5.0     c      a   a: all 7  2   7      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
783      inv        b  5.0     c      a  c: week 0  2   4  a: 2.85 mm pair centres  2.275  3.262  4.576  1.280  0.918  0.644       False     False
784      inv        b  5.0     c      a  c: week 0  2   4      b: 2.10 mm E2 to E3  2.275  3.262  4.576  0.943  0.677  0.474       False     False
785      inv        b  5.0     c      a  c: week 0  2   4      c: 3.60 mm E1 to E4  2.275  3.262  4.576  1.617  1.160  0.813       False     False
786      inv        b  5.0     c      b   a: all 7  2   7  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
787      inv        b  5.0     c      b   a: all 7  2   7      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
788      inv        b  5.0     c      b   a: all 7  2   7      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
789      inv        b  5.0     c      b  c: week 0  2   4  a: 2.85 mm pair centres  2.025  3.012  4.326  1.446  1.003  0.684       False     False
790      inv        b  5.0     c      b  c: week 0  2   4      b: 2.10 mm E2 to E3  2.025  3.012  4.326  1.066  0.739  0.504       False     False
791      inv        b  5.0     c      b  c: week 0  2   4      c: 3.60 mm E1 to E4  2.025  3.012  4.326  1.827  1.267  0.864       False     False
rows with all six values within tolerance: 0 of 792
rows with the three latencies within tolerance: 9 ; with the three velocities: 23
by rule (all six within): {'first': {'sum': 0, 'size': 216}, 'inv': {'sum': 0, 'size': 216}, 'largest': {'sum': 0, 'size': 216}, 'window': {'sum': 0, 'size': 144}}
most recordings with three peaks under any reading: 5 of 7
velocity as distance over the mean latency: rows with the three velocities within tolerance: 27 ; with all six values: 3 of 792
        rule artefact    k level origin   reading  n  of                 distance     P1     P2     P3    v1m    v2m    v3m
216  largest        a  2.0     a      a  a: all 7  5   7  a: 2.85 mm pair centres  2.142  3.699  5.283  1.331  0.770  0.539
228  largest        a  2.0     b      a  a: all 7  5   7  a: 2.85 mm pair centres  2.138  3.644  5.259  1.333  0.782  0.542
240  largest        a  2.0     c      a  a: all 7  5   7  a: 2.85 mm pair centres  2.147  3.694  5.278  1.327  0.771  0.540

Result: not reproduced. Three peaks are found in at most 5 of the 7 awake recordings under any reading (margin 2 SD) and in 2 of 7 under the main reading, where the claim has three peaks in every rat at both weeks; 12-057 shows none under any rule or margin. No combination of readings puts all six values within tolerance (0 of 792). Under rule largest with margin 2 SD the mean latencies over the five recordings with three peaks (2.14, 3.70 and 5.28 ms at the highest current) are within tolerance, while the mean velocities (1.59, 0.88 and 0.57 m/s at 2.85 mm, the mean of each recording's velocity) are not; 9 rows have the latencies within tolerance and 23 the velocities, none both. That "none both" depends on how velocity is averaged: taken as 2.85 mm over the mean latency, as the paper's printed velocities are, the same latencies give 1.33, 0.77 and 0.54 m/s, within tolerance, and 3 of 792 rows (rule largest, margin 2 SD, reading (a), each stimulus level, onset origin, 5 of 7 recordings) have all six values within tolerance. The outcome stays, as these rows rest on 5 of 7 recordings and the criterion needs three peaks in every rat. With rule first, margin 2 SD, onset origin and the highest current the means are 1.94, 3.30 and 4.65 ms. The files hold four rats at day 0 and three at day 7 with no link between them, so the readings over weeks per rat cannot be run.

awake-threshold-increase (blocked)¶

In awake implanted rats, thresholds of all three populations increased from week 0 to week 1 (P1 391 to 643 uA, P2 677 to 1051 uA, P3 713 to 1263 uA), significantly by a Friedman test (P = 0.039, n = 4).

Blocked: every reading of the criterion's Friedman test has rat as a block, and no rat's week 0 and week 1 recordings can be paired (seven distinct subject identifiers). It also depends on awake-ecap-latencies. The per-file thresholds are printed for reference only, where a file has three detected peaks.

In [29]:
rows = []
for s in P.CHRONIC:
    r = AW[("first", "a", 3.0, s)]
    rows.append(dict(sub=s, day=int(DAY["sub-" + s]), n_peaks=len(r["lats"]),
                     thr_uA=np.round(r["thr"][("a", "a", False)], 0).tolist(),
                     thr_sustained_uA=np.round(r["thr"][("a", "a", True)], 0).tolist(),
                     lowest_mA=r["min_mA"], highest_mA=r["max_mA"]))
print(pd.DataFrame(rows).to_string())
      sub  day  n_peaks               thr_uA      thr_sustained_uA  lowest_mA  highest_mA
0  12-050    0        3      [0.0, 0.0, 0.0]     [0.0, 900.0, nan]   0.000000    1.000000
1  12-051    0        1                [0.0]              [1900.0]   0.000000    2.000000
2  12-052    0        3  [100.0, 0.0, 200.0]  [100.0, 0.0, 1300.0]   0.000000    2.000000
3  12-053    7        2           [0.0, 0.0]      [2000.0, 1400.0]   0.000000    2.000000
4  12-055    7        2      [776.0, 1599.0]      [1114.0, 1599.0]   0.017500    1.598904
5  12-056    0        1              [128.0]              [1114.0]   0.074215    1.598904
6  12-057    7        0                   []                    []   0.074215    1.598904

Impedances¶

impedance-increase¶

Mean electrode impedance rose from 4.19 kOhm before implantation to 7.25 kOhm on day 1, 12.04 kOhm at 2 weeks and 13.1 kOhm at 8 weeks.

Two sources: the derivative chronic-impedances.pzfx (one value per array, with columns "Saline impedance", "Post Surgery" and "Chronic implanation"), and the per-electrode CSVs of the eight 18-* rats. For the CSVs, the "pre implant" row is before implantation, the first "post surgery" or "surgery" row is day 1, and the last row is the chronic value (9 to 18 days after surgery). No impedance file belongs to the two 8-week rats (15-759, 15-760).

In [30]:
EXP_Z = [(4.19, 0.17, 3.16, 5.03), (7.25, 0.79, 4.54, 15.18), (12.04, 1.15, 6.24, 18.3), (13.1, 2.06, 8.0, 20.2)]
rows = []
for (col, v), (e, tol, lo, hi) in zip(pz.items(), EXP_Z):
    v = np.array(v) / 1000
    v = v[np.isfinite(v)]
    rows.append(dict(source="pzfx per array", stage=col, n=len(v), mean=v.mean(), sem=v.std(ddof=1) / np.sqrt(len(v)),
                     sd=v.std(ddof=1), min=v.min(), max=v.max(), paper=e, tol=tol,
                     within=abs(v.mean() - e) <= tol, range_ok=(v.min() >= lo * 0.9) and (v.max() <= hi * 1.1)))
imp["date"] = pd.to_datetime(imp.DATE, dayfirst=True)
stage_rows = {"pre": [], "day1": [], "chronic": []}
for a, g in imp.groupby("ANIMAL"):
    pre = g[g.CONTEXT.str.contains("pre implant")]
    post = g[g.CONTEXT.str.match(r"^(post )?surgery$")]
    stage_rows["pre"].append(pre[Z].values.ravel())
    stage_rows["day1"].append(post[Z].values.ravel()[:4])
    stage_rows["chronic"].append(g.sort_values("date").iloc[-1][Z].values.astype(float))
for (st, arrs), (e, tol, lo, hi) in zip(stage_rows.items(), EXP_Z):
    v = np.concatenate(arrs).astype(float) / 1000
    rows.append(dict(source="csv per electrode", stage=st, n=len(v), mean=v.mean(), sem=v.std(ddof=1) / np.sqrt(len(v)),
                     sd=v.std(ddof=1), min=v.min(), max=v.max(), paper=e, tol=tol,
                     within=abs(v.mean() - e) <= tol, range_ok=(v.min() >= lo * 0.9) and (v.max() <= hi * 1.1)))
zt = pd.DataFrame(rows)
print(zt.round(3).to_string())
print("8-week values: no file (the 8-week rats 15-759 and 15-760 have no impedance file)")
print("arrays in the CSVs:", imp.ANIMAL.nunique(), "; dates of the last row per array:",
      imp.sort_values("date").groupby("ANIMAL").date.last().dt.date.to_dict())
              source                stage   n    mean    sem      sd    min      max  paper   tol  within  range_ok
0     pzfx per array     Saline impedance  12   4.192  0.166   0.575  3.158    5.027   4.19  0.17    True      True
1     pzfx per array         Post Surgery  12   7.245  0.793   2.746  4.539   15.176   7.25  0.79    True      True
2     pzfx per array  Chronic implanation  10  12.044  1.149   3.634  6.235   18.317  12.04  1.15    True      True
3  csv per electrode                  pre  32   3.888  0.179   1.013  1.230    5.195   4.19  0.17   False     False
4  csv per electrode                 day1  28   7.023  0.235   1.246  5.002    9.860   7.25  0.79    True      True
5  csv per electrode              chronic  32  20.205  7.617  43.091  4.555  252.270  12.04  1.15   False     False
8-week values: no file (the 8-week rats 15-759 and 15-760 have no impedance file)
arrays in the CSVs: 8 ; dates of the last row per array: {'R18-196': datetime.date(2018, 3, 28), 'R18-208': datetime.date(2018, 3, 29), 'R18-243': datetime.date(2018, 5, 23), 'R18-248': datetime.date(2018, 5, 25), 'R18-262': datetime.date(2018, 6, 7), 'R18-270': datetime.date(2018, 6, 7), 'R18-273': datetime.date(2018, 6, 20), 'R18-294': datetime.date(2018, 7, 12)}

Result: partially reproduced. The derivative's per-array values give 4.19 kOhm (SEM 0.17, 12 arrays) before implantation, 7.25 (SEM 0.79, 12) after surgery and 12.04 (SEM 1.15, 10) at about 2 weeks, equal to the paper's values and spreads, and their ranges (3.16 to 5.03, 4.54 to 15.18, 6.24 to 18.32 kOhm) equal the printed ranges. The 8-week value (13.1 kOhm, 2 arrays) cannot be tested: no impedance file belongs to the 8-week rats. The paper's spreads are SEMs over arrays, and its n (38 electrodes in 10 arrays) is not the 12 arrays averaged. The per-electrode CSVs of eight rats give 3.89 (32 electrodes), 7.02 (28) and 20.2 kOhm (32, including one open electrode at 252 kOhm). The paper's n of 38 electrodes in 10 arrays does not match the pzfx, which holds 12 per-array values before implantation and on day 1 and 10 at about 2 weeks; the means match all the same.

electrode-failures (blocked)¶

No short circuits occurred during implantation, and only 2 of 40 electrodes became open circuit, both within 2 weeks of implantation.

Blocked as data_missing: per-electrode impedances are in the dataset for 8 arrays (32 electrodes), not the paper's 40 electrodes; the per-array derivative cannot show single electrodes. What the 32 show is printed for reference: values far above the array's others (more than three times the array's median) and whether they recur.

In [31]:
rows = []
for _, r in imp.iterrows():
    v = r[Z].values.astype(float)
    med = np.median(v)
    for e, x in zip(Z, v):
        if x > 3 * med:
            rows.append(dict(animal=r.ANIMAL, date=r.DATE, context=r.CONTEXT, electrode=e, ohm=x, array_median=med))
hi_ = pd.DataFrame(rows)
print(hi_.to_string())
print("electrodes with a value > 3x array median:", hi_.groupby(["animal", "electrode"]).size().to_dict())
print("lowest value in any CSV (Ohm):", imp[Z].min().min(), "; electrodes in the CSVs:", 4 * imp.ANIMAL.nunique())
    animal        date           context electrode       ohm  array_median
0  R18-208  29/03/2018      mid stimulus      Z_E1   49216.0       13824.0
1  R18-262  06/06/2018  post habituation      Z_E1   55553.0       15012.0
2  R18-273  18/06/2018  post habituation      Z_E3  252270.0        8167.5
3  R18-273  19/06/2018   pre habituation      Z_E3  252270.0        9835.5
4  R18-273  20/06/2018      pre stimulus      Z_E3  252270.0       14558.0
5  R18-294  05/07/2018       habituation      Z_E3   95405.0       17860.5
electrodes with a value > 3x array median: {('R18-208', 'Z_E1'): 1, ('R18-262', 'Z_E1'): 1, ('R18-273', 'Z_E3'): 3, ('R18-294', 'Z_E3'): 1}
lowest value in any CSV (Ohm): 1230 ; electrodes in the CSVs: 32

colonic-pressure¶

Pelvic nerve stimulation increased colonic pressure in only 1 of 3 anaesthetised rats, by 2.6 mmHg (mean and SEM 2.6 and 0.1, 13 replicate responses), time-locked to stimulation.

Per train, the increase is (a) the peak colonic pressure during the train minus the mean over an equal window before it, or (b) the mean during the train minus the mean before it. Each entry of the stimulus table is taken as a train of the file's StimDuration. A rat responds when its increases exceed zero by a one-sample t-test at P < 0.05 (one-sided, as the criterion asks for an increase above zero; the two-sided P is printed too).

A variant outside the criterion: reading (a) takes a peak against a mean, so it is positive even with no response. Each rat's increases are also compared with the same measure taken halfway between trains (Welch one-sided t-test), which removes that bias.

In [32]:
rows = []
per = []
for s in P.COLON:
    tt, p, St, sa = COL[s]
    D = float(sa["StimDuration"])
    for rd in "ab":
        inc = []
        for t0 in St:
            dur = (tt >= t0) & (tt < t0 + D)
            pre = (tt >= t0 - D) & (tt < t0)
            if pre.sum() == 0 or dur.sum() == 0:
                continue
            inc.append((np.nanmax(p[dur]) if rd == "a" else np.nanmean(p[dur])) - np.nanmean(p[pre]))
        inc = np.array(inc)
        t1 = stats.ttest_1samp(inc, 0, alternative="greater")
        t2 = stats.ttest_1samp(inc, 0)
        rows.append(dict(sub=s, reading=rd, trains=len(inc), mean=inc.mean(), sem=inc.std(ddof=1) / np.sqrt(len(inc)),
                         min=inc.min(), max=inc.max(), p_one_sided=t1.pvalue, p_two_sided=t2.pvalue,
                         responds=t1.pvalue < 0.05))
        # null: same measure at times halfway between trains
        mids = (St[:-1] + St[1:]) / 2
        nul = []
        for t0 in mids:
            dur = (tt >= t0) & (tt < t0 + D); pre = (tt >= t0 - D) & (tt < t0)
            if pre.sum() and dur.sum():
                nul.append((np.nanmax(p[dur]) if rd == "a" else np.nanmean(p[dur])) - np.nanmean(p[pre]))
        tn = stats.ttest_ind(inc, nul, equal_var=False, alternative="greater")
        per.append(dict(sub=s, reading=rd, null_mean=np.mean(nul), null_n=len(nul), excess=inc.mean() - np.mean(nul),
                        p_vs_null=tn.pvalue, responds_vs_null=tn.pvalue < 0.05))
col = pd.DataFrame(rows).merge(pd.DataFrame(per), on=["sub", "reading"])
print(col.round(4).to_string())
for rd in "ab":
    c = col[col.reading == rd]
    print(f"reading {rd}: responders {int(c.responds.sum())} of 3; responder means (mmHg)",
          c[c.responds][["sub", "mean", "sem", "trains"]].round(3).to_dict("records"))
    print(f"reading {rd}, against the between-train null (variant, Welch one-sided): responders {int(c.responds_vs_null.sum())} of 3;",
          c[c.responds_vs_null][["sub", "mean", "excess", "p_vs_null"]].round(4).to_dict("records"))
      sub reading  trains    mean     sem     min      max  p_one_sided  p_two_sided  responds  null_mean  null_n  excess  p_vs_null  responds_vs_null
0  12-019       a       8  5.6757  2.2246  1.7812  20.0219       0.0190       0.0380      True     5.4794       7  0.1963     0.4768             False
1  12-019       b       8  2.1664  1.9708 -0.5940  15.8306       0.1540       0.3080     False     1.8538       7  0.3126     0.4489             False
2  12-020       a      14  4.2632  1.4381  0.3870  18.9379       0.0055       0.0110      True     2.5101      13  1.7532     0.2179             False
3  12-020       b      14  1.4381  0.6979 -2.1328   6.9583       0.0300       0.0599      True     0.0472      13  1.3909     0.1847             False
4  15-758       a      33  0.2513  0.0622 -0.4380   0.7981       0.0002       0.0003      True     0.5554      32 -0.3040     0.9995             False
5  15-758       b      33 -0.5188  0.0786 -1.2673   0.2802       1.0000       0.0000     False     0.0185      32 -0.5373     1.0000             False
reading a: responders 3 of 3; responder means (mmHg) [{'sub': '12-019', 'mean': 5.676, 'sem': 2.225, 'trains': 8}, {'sub': '12-020', 'mean': 4.263, 'sem': 1.438, 'trains': 14}, {'sub': '15-758', 'mean': 0.251, 'sem': 0.062, 'trains': 33}]
reading a, against the between-train null (variant, Welch one-sided): responders 0 of 3; []
reading b: responders 1 of 3; responder means (mmHg) [{'sub': '12-020', 'mean': 1.438, 'sem': 0.698, 'trains': 14}]
reading b, against the between-train null (variant, Welch one-sided): responders 0 of 3; []

Variant outside the criterion: the train is taken as the StimDuration before each recorded time (the clock check above shows the 15-758 response there).

In [33]:
rows = []
for s in P.COLON:
    tt, p, St, sa = COL[s]
    D = float(sa["StimDuration"])
    for rd in "ab":
        inc = []
        for t1 in St:
            t0 = t1 - D
            dur = (tt >= t0) & (tt < t1); pre = (tt >= t0 - D) & (tt < t0)
            if pre.sum() and dur.sum():
                inc.append((np.nanmax(p[dur]) if rd == "a" else np.nanmean(p[dur])) - np.nanmean(p[pre]))
        inc = np.array(inc)
        t1_ = stats.ttest_1samp(inc, 0, alternative="greater")
        rows.append(dict(sub=s, reading=rd, trains=len(inc), mean=inc.mean(), sem=inc.std(ddof=1) / np.sqrt(len(inc)),
                         p_one_sided=t1_.pvalue, responds=t1_.pvalue < 0.05))
print(pd.DataFrame(rows).round(4).to_string())
      sub reading  trains    mean     sem  p_one_sided  responds
0  12-019       a       8  4.4504  1.2749       0.0051      True
1  12-019       b       8  0.6105  1.0667       0.2925     False
2  12-020       a      14  2.8821  1.4450       0.0337      True
3  12-020       b      14  0.5778  0.5578       0.1595     False
4  15-758       a      33  1.4041  0.1164       0.0000      True
5  15-758       b      33  0.6355  0.0891       0.0000      True

Result: not reproduced. Under reading (a) (peak during the train minus the mean before) all three rats respond (mean increases 5.68, 4.26 and 0.25 mmHg; P = 0.019, 0.006 and 0.0002), but the same measure halfway between trains is 5.48, 2.51 and 0.56 mmHg, so reading (a) is biased upwards; against that null (variant) no rat responds under either reading. Under reading (b) (mean during minus mean before) one rat responds, 12-020, with 1.44 mmHg (SEM 0.70, 14 trains), outside 2.6 +- 0.1. With the train placed in the 10 s before each recorded time (variant), reading (b) again gives one responder, 15-758, with 0.64 mmHg (SEM 0.09, 33 trains). No reading gives a responder near 2.6 mmHg, and no rat has 13 trains.

no-fecal-expulsion-or-erection (blocked)¶

Blocked as data_missing: the dataset holds no observation notes, video or annotation of faecal pellets or erection (data check: no such file in the manifest).

Table 1: unstimulated voiding¶

The derivative cystometry-dataset.xlsx holds the three pre-stimulation cycles of nine rats (the paper's n = 9) for every Table 1 parameter; the dataset's own R notebook (files/code/cystometry-analysis.rmd) summarises it as the mean of each rat's mean with a t-based 95% CI. The criterion's readings: (a) mean of rat means with a t-based 95% CI, (b) the mean over all cycles pooled. Rat 18-273's third cycle has no contraction duration; reading (a) is shown with that rat's mean over its two other cycles (a1) and with the rat left out (a2), which is what the R code's mean() does with a missing value. Threshold pressure and contraction duration are taken as the derivative defines them (mmhg_init, contraction_dur_s); the readings of their definitions in the criterion cannot be told apart from the derivative's values, and the primary /Voids tables do not match the derivative (data check), so the derivative is used as the authors computed it. The next cell prints the R code's summary chunk and the summary table in its output (files/derivative/cystometry-analysis.nb.html).

In [34]:
import html, json as _json
rmd = P.read_bytes("files/code/cystometry-analysis.rmd").decode()
i = rmd.find("### Table: Summary statistics"); print(rmd[i:rmd.find("```", rmd.find("fn_summary(df_voids)")) + 3])
nbh = P.read_bytes("files/derivative/cystometry-analysis.nb.html").decode(errors="replace")
j = nbh.find("{\"columns\"", nbh.find("fn_summary(df_voids)"))
obj, _ = _json.JSONDecoder().raw_decode(html.unescape(nbh[j:j + 50000]))
rsum = pd.DataFrame(obj["data"]).rename(columns={str(c["name"][0]): c["label"][0] for c in obj["columns"]})
print("summary table in files/derivative/cystometry-analysis.nb.html:")
print(rsum.to_string())
### Table: Summary statistics

Using mean of technical replicates within subjects (n = 3 cycles) to aggregate dataset.
```{r}
# Function: summary statistics
fn_summary <-
  function(df) {
  df %>%
  # Aggregate: mean within subject
  # variables
  group_by(subject_id, parameter, parameter_id) %>%
  summarise(mean_subject = mean(value)) %>%
  #filter(as.integer(parameter) %in% c(1:14)) %>%  
  ungroup %>% 
  group_by(parameter, parameter_id) %>% 
  rstatix::get_summary_stats(mean_subject) %>% 
  mutate(cilow = mean - ci, cihi = mean + ci) %>% 
  select(parameter, parameter_id, mean:cihi, n:mad)
  }

fn_summary(df_voids)
```
summary table in files/derivative/cystometry-analysis.nb.html:
                                 parameter       parameter_id    mean      sd     se      ci   cilow    cihi  n     min     max  median      q1      q3    iqr    mad
0                 Contraction duration (s)  contraction_dur_s  26.064  10.893  3.851   9.106  16.958  35.170  8  13.322  49.423  24.925  21.234  28.212  6.978  5.187
1                           HFPO freq (Hz)           eus_freq   9.817   2.820  1.066   2.608   7.209  12.425  7   7.795  16.039   9.025   8.521   9.410  0.888  0.939
2                Inter-void interval (min)         ivi_minute   6.662   1.204  0.401   0.926   5.736   7.588  9   5.468   9.056   6.102   5.871   6.957  1.086  0.941
3                  Maximum pressure (mmHg)          mmhg_peak  58.328  15.554  5.185  11.956  46.372  70.284  9  34.041  87.503  57.157  52.534  60.119  7.585  6.855
4                  Minimum pressure (mmHg)           mmhg_eov  11.741   4.252  1.417   3.268   8.473  15.009  9   4.402  18.433  11.800   9.645  15.180  5.535  4.675
5  Relative peak (closing) pressure (mmHg)      mmhg_peak_rel  46.588  16.655  5.552  12.802  33.786  59.390  9  25.394  77.812  43.102  41.977  48.319  6.342  7.735
6       Relative threshold pressure (mmHg)      mmhg_init_rel   6.960   2.360  0.787   1.814   5.146   8.774  9   4.004  11.743   6.794   5.205   7.697  2.491  2.356
7      Threshold (closing) pressure (mmHg)          mmhg_init  18.701   4.873  1.624   3.746  14.955  22.447  9  10.759  25.227  18.500  17.005  23.418  6.413  7.291

Table 1 recomputed from the primary pressure traces. The derivative table gives one definition of each parameter, and which reading of the criterion it matches is not stated. Here each parameter is recomputed from the /Cystometry traces of the same nine rats under the criterion's readings (pelvic.void_params): threshold at the onset of the rise (a) or at the start of the HFPOs, the proxy for urine release (b); contraction duration from onset to the return to the minimum (a) or the time above threshold (b); HFPO frequency from the spectrum peak (a) or the count of oscillation peaks per second (b). The onset of each contraction is the authors' /Voids ThresholdTime marker; the inter-void interval is the time between successive onsets within one recorded wave. The minimum is the lowest 1 s mean pressure from the peak to the next onset, or (second reading) within 60 s of the peak; relative pressures are given against both. Two selections of cycles: the first three /Voids entries before the first stimulation train ("pre-stimulation", the Methods' "three cycles prior to the delivery of stimulation"), and the first three entries ("first three"), as some rats have fewer than three marked voids before their first train.

In [35]:
rows = []
for s in sorted({to_sub(x) for x in dv.subject_id}):
    W, V, S = CY[s]
    V = V.sort_values("ThresholdTime").reset_index(drop=True)
    first_train = np.inf if S is None else float(np.min(S["Time"].values if "Time" in S else [S.attrs["Time"]]))
    for sel, ks in (("pre-stimulation", [k for k in range(len(V)) if V.ThresholdTime[k] < first_train][:3]),
                    ("first three", list(range(min(3, len(V)))))):
        for k in ks:
            nxt = V.ThresholdTime[k + 1] if k + 1 < len(V) else np.inf
            d = P.void_params(W, V, k, next_onset=nxt)
            d.update(sub=s, selection=sel, void=k,
                     ivi_min=P.ivi_min(W, V, k))
            rows.append(d)
TR = pd.DataFrame(rows)
print(TR.round(2).to_string())
print("cycles per rat:", TR.groupby(["selection", "sub"]).size().unstack(0).to_dict())
print("cycles without an HFPO period (thr_b):", int(TR.thr_b.isna().sum()), "of", len(TR))
      onset  minimum  minimum_60  thr_a    peak  peak_rel  thr_a_rel  peak_rel_60  thr_a_rel_60   dur_a   dur_b      fs  thr_b  thr_b_rel  thr_b_rel_60  hfpo_a     sub        selection  void  ivi_min  hfpo_b
0   1690.10     0.52        0.52   5.45   31.69     31.17       4.94        31.17          4.94   21.04   17.57   100.0  12.50      11.98         11.98     3.0  12-081  pre-stimulation     0      NaN     NaN
1   2044.60     0.28        0.29   7.72   29.61     29.33       7.44        29.32          7.43   18.22   14.80   100.0  11.65      11.38         11.36     3.0  12-081  pre-stimulation     1     5.91    9.40
2   2436.70     0.10        0.10   6.47   29.13     29.03       6.36        29.03          6.36   18.58   16.03   100.0  24.60      24.50         24.50     3.0  12-081  pre-stimulation     2     6.53    8.26
3   1690.10     0.52        0.52   5.45   31.69     31.17       4.94        31.17          4.94   21.04   17.57   100.0  12.50      11.98         11.98     3.0  12-081      first three     0      NaN     NaN
4   2044.60     0.28        0.29   7.72   29.61     29.33       7.44        29.32          7.43   18.22   14.80   100.0  11.65      11.38         11.36     3.0  12-081      first three     1     5.91    9.40
5   2436.70     0.10        0.10   6.47   29.13     29.03       6.36        29.03          6.36   18.58   16.03   100.0  24.60      24.50         24.50     3.0  12-081      first three     2     6.53    8.26
6    430.49    -1.05       -1.05   6.20   45.46     46.51       7.24        46.51          7.24   25.37   20.69   100.0   9.92      10.97         10.97     9.0  12-083  pre-stimulation     0      NaN    8.49
7    906.47    -1.12       -1.12   9.04   41.74     42.86      10.17        42.86         10.17   25.77   21.04   100.0   9.71      10.84         10.84    15.0  12-083  pre-stimulation     1     7.93    8.85
8   1292.70    -0.30       -0.30   7.13   51.43     51.74       7.43        51.74          7.43   21.19   20.08   100.0   8.59       8.89          8.89    22.0  12-083  pre-stimulation     2     6.44    7.61
9    430.49    -1.05       -1.05   6.20   45.46     46.51       7.24        46.51          7.24   25.37   20.69   100.0   9.92      10.97         10.97     9.0  12-083      first three     0      NaN    8.49
10   906.47    -1.12       -1.12   9.04   41.74     42.86      10.17        42.86         10.17   25.77   21.04   100.0   9.71      10.84         10.84    15.0  12-083      first three     1     7.93    8.85
11  1292.70    -0.30       -0.30   7.13   51.43     51.74       7.43        51.74          7.43   21.19   20.08   100.0   8.59       8.89          8.89    22.0  12-083      first three     2     6.44    7.61
12   465.27     2.51        3.29   7.93   44.95     42.45       5.43        41.66          4.64   17.11   16.06  1000.0  17.01      14.51         13.72     9.0  18-208  pre-stimulation     0      NaN    6.70
13   743.98     1.97        1.97   8.11   49.92     47.95       6.14        47.95          6.14   21.73   18.80  1000.0   8.11       6.14          6.14     8.5  18-208  pre-stimulation     1     4.65    6.79
14  1054.62     2.69        2.69  10.08   51.96     49.27       7.38        49.27          7.38   16.18   14.74  1000.0  10.08       7.38          7.38     8.5  18-208  pre-stimulation     2     5.18    7.65
15   465.27     2.51        3.29   7.93   44.95     42.45       5.43        41.66          4.64   17.11   16.06  1000.0  17.01      14.51         13.72     9.0  18-208      first three     0      NaN    6.70
16   743.98     1.97        1.97   8.11   49.92     47.95       6.14        47.95          6.14   21.73   18.80  1000.0   8.11       6.14          6.14     8.5  18-208      first three     1     4.65    6.79
17  1054.62     2.69        2.69  10.08   51.96     49.27       7.38        49.27          7.38   16.18   14.74  1000.0  10.08       7.38          7.38     8.5  18-208      first three     2     5.18    7.65
18  2202.45     6.91       12.40  26.68   59.66     52.75      19.76        47.27         14.28   82.31   27.90  1000.0  27.26      20.34         14.86     7.5  18-243  pre-stimulation     0      NaN    7.07
19  7226.37    11.10       11.15  24.46   49.11     38.01      13.36        37.96         13.31   29.11   23.95  1000.0  24.46      13.36         13.31     8.0  18-243  pre-stimulation     1      NaN    7.65
20  2202.45     6.91       12.40  26.68   59.66     52.75      19.76        47.27         14.28   82.31   27.90  1000.0  27.26      20.34         14.86     7.5  18-243      first three     0      NaN    7.07
21  7226.37    11.10       11.15  24.46   49.11     38.01      13.36        37.96         13.31   29.11   23.95  1000.0  24.46      13.36         13.31     8.0  18-243      first three     1      NaN    7.65
22  7439.68    10.13       10.61  20.69   63.23     53.10      10.56        52.61         10.08   31.11   28.38  1000.0  20.69      10.56         10.08     8.0  18-243      first three     2     3.56    7.87
23  1085.50    12.13       13.27  16.82   52.61     40.48       4.69        39.34          3.54   31.32   30.23  1000.0    NaN        NaN           NaN     8.5  18-248  pre-stimulation     0      NaN     NaN
24  1510.89    12.40       14.64  18.08   60.40     48.00       5.68        45.76          3.44   25.09   22.90  1000.0    NaN        NaN           NaN     8.5  18-248  pre-stimulation     1     7.09     NaN
25  2017.99     6.68       13.13  20.38   56.29     49.61      13.69        43.17          7.25  187.84   22.03  1000.0  21.05      14.37          7.92     4.0  18-248  pre-stimulation     2     8.45     NaN
26  1085.50    12.13       13.27  16.82   52.61     40.48       4.69        39.34          3.54   31.32   30.23  1000.0    NaN        NaN           NaN     8.5  18-248      first three     0      NaN     NaN
27  1510.89    12.40       14.64  18.08   60.40     48.00       5.68        45.76          3.44   25.09   22.90  1000.0    NaN        NaN           NaN     8.5  18-248      first three     1     7.09     NaN
28  2017.99     6.68       13.13  20.38   56.29     49.61      13.69        43.17          7.25  187.84   22.03  1000.0  21.05      14.37          7.92     4.0  18-248      first three     2     8.45     NaN
29   830.06     9.01        9.58  17.35   73.55     64.53       8.33        63.97          7.76   30.51   25.83  1000.0  25.08      16.07         15.50     8.0  18-262  pre-stimulation     0      NaN    7.55
30  1202.03     8.22        8.44  17.85   57.75     49.53       9.63        49.31          9.40   25.97   22.92  1000.0  22.95      14.73         14.51     7.5  18-262  pre-stimulation     1     6.20    7.03
31  1616.76     7.97        7.97  18.34   73.82     65.85      10.37        65.85         10.37   27.25   23.51  1000.0  24.20      16.22         16.22     7.5  18-262  pre-stimulation     2     6.91    7.12
32   830.06     9.01        9.58  17.35   73.55     64.53       8.33        63.97          7.76   30.51   25.83  1000.0  25.08      16.07         15.50     8.0  18-262      first three     0      NaN    7.55
33  1202.03     8.22        8.44  17.85   57.75     49.53       9.63        49.31          9.40   25.97   22.92  1000.0  22.95      14.73         14.51     7.5  18-262      first three     1     6.20    7.03
34  1616.76     7.97        7.97  18.34   73.82     65.85      10.37        65.85         10.37   27.25   23.51  1000.0  24.20      16.22         16.22     7.5  18-262      first three     2     6.91    7.12
35   315.94     9.33       15.81  18.90   94.01     84.68       9.57        78.19          3.09   38.24   35.53  1000.0  32.33      23.00         16.51     8.0  18-270  pre-stimulation     0      NaN    6.53
36   699.56     7.69        7.69  18.65   67.67     59.98      10.97        59.98         10.97   16.58   14.61  1000.0  30.28      22.59         22.59     9.0  18-270  pre-stimulation     1     6.39    7.41
37  1013.57     6.25       11.11  19.31  102.01     95.76      13.06        90.89          8.19   27.35   23.87  1000.0  34.26      28.01         23.15     9.0  18-270  pre-stimulation     2     5.23     NaN
38   315.94     9.33       15.81  18.90   94.01     84.68       9.57        78.19          3.09   38.24   35.53  1000.0  32.33      23.00         16.51     8.0  18-270      first three     0      NaN    6.53
39   699.56     7.69        7.69  18.65   67.67     59.98      10.97        59.98         10.97   16.58   14.61  1000.0  30.28      22.59         22.59     9.0  18-270      first three     1     6.39    7.41
40  1013.57     6.25       11.11  19.31  102.01     95.76      13.06        90.89          8.19   27.35   23.87  1000.0  34.26      28.01         23.15     9.0  18-270      first three     2     5.23     NaN
41  1538.82    10.99       13.04  17.17   54.76     43.77       6.18        41.71          4.12   39.73   36.28  1000.0  34.47      23.48         21.42     5.0  18-273  pre-stimulation     0      NaN     NaN
42  1929.06    12.15       19.42  15.03   45.79     33.64       2.88        26.37         -4.39  303.02  305.08  1000.0  36.30      24.16         16.88     3.5  18-273  pre-stimulation     1     6.50    4.00
43  2520.11    10.71       17.24  20.59   61.95     51.24       9.88        44.71          3.36  141.21   28.04  1000.0  31.74      21.03         14.50     7.5  18-273  pre-stimulation     2     9.85     NaN
44  1538.82    10.99       13.04  17.17   54.76     43.77       6.18        41.71          4.12   39.73   36.28  1000.0  34.47      23.48         21.42     5.0  18-273      first three     0      NaN     NaN
45  1929.06    12.15       19.42  15.03   45.79     33.64       2.88        26.37         -4.39  303.02  305.08  1000.0  36.30      24.16         16.88     3.5  18-273      first three     1     6.50    4.00
46  2520.11    10.71       17.24  20.59   61.95     51.24       9.88        44.71          3.36  141.21   28.04  1000.0  31.74      21.03         14.50     7.5  18-273      first three     2     9.85     NaN
47  1289.03     7.62        7.62  13.01   26.75     19.13       5.39        19.13          5.39   16.97   12.61  1000.0  22.40      14.78         14.78     9.0  18-294  pre-stimulation     0      NaN     NaN
48  1289.03     7.62        7.62  13.01   26.75     19.13       5.39        19.13          5.39   16.97   12.61  1000.0  22.40      14.78         14.78     9.0  18-294      first three     0      NaN     NaN
49  1677.93     7.47        7.47  12.97   38.60     31.14       5.50        31.14          5.50   16.91   13.88  1000.0  24.69      17.22         17.22     9.0  18-294      first three     1     6.48     NaN
50  1998.92     8.70        8.86  13.61   38.39     29.68       4.91        29.52          4.75   14.81   12.94  1000.0  23.50      14.80         14.64     8.5  18-294      first three     2     5.35    8.20
cycles per rat: {'first three': {'12-081': 3, '12-083': 3, '18-208': 3, '18-243': 3, '18-248': 3, '18-262': 3, '18-270': 3, '18-273': 3, '18-294': 3}, 'pre-stimulation': {'12-081': 3, '12-083': 3, '18-208': 3, '18-243': 2, '18-248': 3, '18-262': 3, '18-270': 3, '18-273': 3, '18-294': 1}}
cycles without an HFPO period (thr_b): 4 of 51
In [36]:
T1 = {"table1-minimum-pressure": ("mmhg_eov", 10.3, 7.4, 13.2),
      "table1-threshold-pressure": ("mmhg_init_rel", 6.6, 4.7, 8.4),
      "table1-peak-pressure": ("mmhg_peak_rel", 51.2, 39.5, 63.0),
      "table1-contraction-duration": ("contraction_dur_s", 28.9, 17.1, 37.5),
      "table1-intervoid-interval": ("ivi_minute", 7.6, 5.9, 9.4),
      "table1-hfpo-frequency": ("eus_freq", 10.7, 8.3, 13.0)}
# the same parameters recomputed from the pressure traces (next section), per definitional reading
T1_TRACE = {"table1-minimum-pressure": ["minimum", "minimum_60"],
            "table1-threshold-pressure": ["thr_a_rel", "thr_b_rel", "thr_a_rel_60", "thr_b_rel_60"],
            "table1-peak-pressure": ["peak_rel", "peak_rel_60"],
            "table1-contraction-duration": ["dur_a", "dur_b"],
            "table1-intervoid-interval": ["ivi_min"],
            "table1-hfpo-frequency": ["hfpo_a", "hfpo_b"]}
ratm = dv.groupby(["parameter_id", "subject_id"]).value.mean().unstack(0)
ratm_drop = dv.groupby(["parameter_id", "subject_id"]).value.apply(lambda x: x.mean() if x.notna().all() else np.nan).unstack(0)
def t1(claim):
    pid, e, lo, hi = T1[claim]
    rows = []
    for rd, x in (("a1: rat means", ratm[pid]), ("a2: rat means, incomplete rats out", ratm_drop[pid])):
        m, l, h, n = P.mean_ci(x)
        rows.append(dict(reading=rd, n=n, mean=m, ci_low=l, ci_high=h, paper=e, paper_ci=(lo, hi),
                         inside_paper_ci=lo <= m <= hi))
    v = dv[dv.parameter_id == pid].value.dropna()
    m, l, h, n = P.mean_ci(v)
    rows.append(dict(reading="b: cycles pooled", n=n, mean=m, ci_low=l, ci_high=h, paper=e, paper_ci=(lo, hi),
                     inside_paper_ci=lo <= m <= hi))
    print(pd.DataFrame(rows).round(3).to_string())
    print("per-rat means:", ratm[pid].round(2).to_dict())
    print("rats:", ratm[pid].notna().sum(), "; cycles:", int(v.size), "; range of cycle values %.2f to %.2f" % (v.min(), v.max()))
    rows = []
    for sel in ("pre-stimulation", "first three"):
        q = TR[TR.selection == sel]
        for par in T1_TRACE[claim]:
            rm = q.groupby("sub")[par].mean()
            for rd, x in (("a1: rat means", rm), ("b: cycles pooled", q[par])):
                m, l, h, n = P.mean_ci(x)
                rows.append(dict(source="trace", selection=sel, definition=par, reading=rd, n=n, mean=m, ci_low=l,
                                 ci_high=h, inside_paper_ci=lo <= m <= hi))
    print("recomputed from the pressure traces:")
    print(pd.DataFrame(rows).round(3).to_string())

table1-minimum-pressure¶

In 9 awake implanted rats, the minimum bladder pressure of unstimulated voiding cycles was 10.3 mmHg (95% CI 7.4 to 13.2).

In [37]:
t1("table1-minimum-pressure")
                              reading   n    mean  ci_low  ci_high  paper     paper_ci  inside_paper_ci
0                       a1: rat means   9  11.741   8.472   15.009   10.3  (7.4, 13.2)             True
1  a2: rat means, incomplete rats out   9  11.741   8.472   15.009   10.3  (7.4, 13.2)             True
2                    b: cycles pooled  27  11.741  10.063   13.418   10.3  (7.4, 13.2)             True
per-rat means: {'12_081': 18.43, '12_083': 15.72, 'R18-208': 4.4, 'R18-243': 12.15, 'R18-248': 15.18, 'R18-262': 9.64, 'R18-270': 9.69, 'R18-273': 11.8, 'R18-294': 8.65}
rats: 9 ; cycles: 27 ; range of cycle values 3.24 to 18.82
recomputed from the pressure traces:
  source        selection  definition           reading   n   mean  ci_low  ci_high  inside_paper_ci
0  trace  pre-stimulation     minimum     a1: rat means   9  6.259   2.829    9.690            False
1  trace  pre-stimulation     minimum  b: cycles pooled  24  6.032   4.058    8.005            False
2  trace  pre-stimulation  minimum_60     a1: rat means   9  7.997   3.300   12.694             True
3  trace  pre-stimulation  minimum_60  b: cycles pooled  24  7.871   5.171   10.571             True
4  trace      first three     minimum     a1: rat means   9  6.335   2.872    9.799            False
5  trace      first three     minimum  b: cycles pooled  27  6.335   4.556    8.114            False
6  trace      first three  minimum_60     a1: rat means   9  7.994   3.320   12.669             True
7  trace      first three  minimum_60  b: cycles pooled  27  7.994   5.605   10.384             True

Result: reproduced. Mean minimum pressure 11.74 mmHg (95% CI 8.47 to 15.01, 9 rats), within the printed CI 7.4 to 13.2 under every reading; it is 1.44 mmHg above the printed 10.3, and equals the 11.741 (8.473 to 15.009) of the dataset's own R notebook output. Recomputed from the traces (/Voids onsets, rat means), the lowest pressure before the next void gives 6.26 mmHg (pre-stimulation cycles), outside the CI, and the lowest within 60 s of the peak gives 8.00, inside it; the derivative's definition is not stated.

table1-threshold-pressure¶

The relative threshold pressure of unstimulated voiding was 6.6 mmHg (95% CI 4.7 to 8.4), n = 9 rats.

In [38]:
t1("table1-threshold-pressure")
                              reading   n  mean  ci_low  ci_high  paper    paper_ci  inside_paper_ci
0                       a1: rat means   9  6.96   5.146    8.775    6.6  (4.7, 8.4)             True
1  a2: rat means, incomplete rats out   9  6.96   5.146    8.775    6.6  (4.7, 8.4)             True
2                    b: cycles pooled  27  6.96   5.702    8.218    6.6  (4.7, 8.4)             True
per-rat means: {'12_081': 6.79, '12_083': 7.7, 'R18-208': 6.36, 'R18-243': 11.74, 'R18-248': 4.0, 'R18-262': 7.38, 'R18-270': 8.81, 'R18-273': 5.21, 'R18-294': 4.65}
rats: 9 ; cycles: 27 ; range of cycle values -1.59 to 13.62
recomputed from the pressure traces:
   source        selection    definition           reading   n    mean  ci_low  ci_high  inside_paper_ci
0   trace  pre-stimulation     thr_a_rel     a1: rat means   9   8.642   5.959   11.325            False
1   trace  pre-stimulation     thr_a_rel  b: cycles pooled  24   8.583   7.005   10.161            False
2   trace  pre-stimulation     thr_b_rel     a1: rat means   9  16.069  12.200   19.938            False
3   trace  pre-stimulation     thr_b_rel  b: cycles pooled  22  16.305  13.569   19.041            False
4   trace  pre-stimulation  thr_a_rel_60     a1: rat means   9   6.904   4.222    9.587             True
5   trace  pre-stimulation  thr_a_rel_60  b: cycles pooled  24   6.743   5.116    8.370             True
6   trace  pre-stimulation  thr_b_rel_60     a1: rat means   9  13.980  10.762   17.198            False
7   trace  pre-stimulation  thr_b_rel_60  b: cycles pooled  22  14.452  12.202   16.703            False
8   trace      first three     thr_a_rel     a1: rat means   9   8.406   6.130   10.682            False
9   trace      first three     thr_a_rel  b: cycles pooled  27   8.406   6.960    9.852            False
10  trace      first three     thr_b_rel     a1: rat means   9  15.927  12.063   19.792            False
11  trace      first three     thr_b_rel  b: cycles pooled  25  16.052  13.618   18.485            False
12  trace      first three  thr_a_rel_60     a1: rat means   9   6.747   4.282    9.212             True
13  trace      first three  thr_a_rel_60  b: cycles pooled  27   6.747   5.279    8.215             True
14  trace      first three  thr_b_rel_60     a1: rat means   9  13.916  10.661   17.172            False
15  trace      first three  thr_b_rel_60  b: cycles pooled  25  14.396  12.388   16.404            False

Result: reproduced. Mean relative threshold pressure 6.96 mmHg (95% CI 5.15 to 8.77, 9 rats), within the printed CI 4.7 to 8.4 under every reading. Recomputed from the traces, threshold at the onset gives 8.64 mmHg against the lowest pressure before the next void (outside the CI) and 6.90 against the lowest within 60 s of the peak (inside); threshold at the start of the HFPOs, the proxy here for urine release, gives 16.07 and 13.98 mmHg, outside under both.

table1-peak-pressure¶

The relative peak (closing) pressure of unstimulated voiding was 51.2 mmHg (95% CI 39.5 to 63.0), n = 9 rats.

In [39]:
t1("table1-peak-pressure")
                              reading   n    mean  ci_low  ci_high  paper      paper_ci  inside_paper_ci
0                       a1: rat means   9  46.588  33.785   59.390   51.2  (39.5, 63.0)             True
1  a2: rat means, incomplete rats out   9  46.588  33.785   59.390   51.2  (39.5, 63.0)             True
2                    b: cycles pooled  27  46.588  39.908   53.267   51.2  (39.5, 63.0)             True
per-rat means: {'12_081': 26.49, '12_083': 43.04, 'R18-208': 48.13, 'R18-243': 43.1, 'R18-248': 41.98, 'R18-262': 65.02, 'R18-270': 77.81, 'R18-273': 48.32, 'R18-294': 25.39}
rats: 9 ; cycles: 27 ; range of cycle values 20.54 to 90.97
recomputed from the pressure traces:
  source        selection   definition           reading   n    mean  ci_low  ci_high  inside_paper_ci
0  trace  pre-stimulation     peak_rel     a1: rat means   9  46.330  33.145   59.516             True
1  trace  pre-stimulation     peak_rel  b: cycles pooled  24  48.636  41.446   55.827             True
2  trace  pre-stimulation  peak_rel_60     a1: rat means   9  44.593  31.938   57.247             True
3  trace  pre-stimulation  peak_rel_60  b: cycles pooled  24  46.797  39.938   53.656             True
4  trace      first three     peak_rel     a1: rat means   9  47.452  35.323   59.580             True
5  trace      first three     peak_rel  b: cycles pooled  27  47.452  40.815   54.088             True
6  trace      first three  peak_rel_60     a1: rat means   9  45.793  34.171   57.414             True
7  trace      first three  peak_rel_60  b: cycles pooled  27  45.793  39.481   52.104             True

Result: reproduced. Mean relative peak pressure 46.59 mmHg (95% CI 33.79 to 59.39, 9 rats), within the printed CI 39.5 to 63.0 under every reading; 4.6 mmHg below the printed 51.2. Recomputed from the traces it is 46.33 (or 44.59) mmHg, inside the CI under every reading.

table1-contraction-duration¶

The contraction duration of unstimulated voiding was 28.9 s (95% CI 17.1 to 37.5), n = 9 rats.

In [40]:
t1("table1-contraction-duration")
                              reading   n    mean  ci_low  ci_high  paper      paper_ci  inside_paper_ci
0                       a1: rat means   9  32.186  16.041   48.331   28.9  (17.1, 37.5)             True
1  a2: rat means, incomplete rats out   8  26.064  16.957   35.170   28.9  (17.1, 37.5)             True
2                    b: cycles pooled  26  30.302  19.647   40.957   28.9  (17.1, 37.5)             True
per-rat means: {'12_081': 22.93, '12_083': 28.0, 'R18-208': 16.13, 'R18-243': 49.42, 'R18-248': 25.1, 'R18-262': 28.85, 'R18-270': 24.75, 'R18-273': 81.16, 'R18-294': 13.32}
rats: 9 ; cycles: 26 ; range of cycle values 13.11 to 134.19
recomputed from the pressure traces:
  source        selection definition           reading   n    mean  ci_low  ci_high  inside_paper_ci
0  trace  pre-stimulation      dur_a     a1: rat means   9  48.050  11.504   84.596            False
1  trace  pre-stimulation      dur_a  b: cycles pooled  24  50.321  21.640   79.001            False
2  trace  pre-stimulation      dur_b     a1: rat means   9  32.083   5.590   58.576             True
3  trace  pre-stimulation      dur_b  b: cycles pooled  24  33.962   9.434   58.491             True
4  trace      first three      dur_a     a1: rat means   9  47.057  10.532   83.582            False
5  trace      first three      dur_a  b: cycles pooled  27  47.057  21.494   72.619            False
6  trace      first three      dur_b     a1: rat means   9  32.233   5.782   58.684             True
7  trace      first three      dur_b  b: cycles pooled  27  32.233  10.510   53.956             True

Result: reproduced. Mean contraction duration 32.19 s (95% CI 16.04 to 48.33, 9 rats) with 18-273's two complete cycles, and 26.06 s (16.96 to 35.17, 8 rats) with that rat left out as the dataset's R code does (its output gives 26.064, n = 8); 30.30 s over 26 pooled cycles. All lie within the printed CI 17.1 to 37.5. One cycle of 18-273 lasts 134.2 s. Recomputed from the traces, the time above threshold (reading b) gives 32.08 s, inside the CI; onset to the return within 10% of the minimum (reading a, with that margin a choice made here) gives 48.05 s, outside it.

table1-intervoid-interval¶

The inter-void interval of unstimulated voiding was 7.6 min (95% CI 5.9 to 9.4), n = 9 rats.

In [41]:
t1("table1-intervoid-interval")
                              reading   n   mean  ci_low  ci_high  paper    paper_ci  inside_paper_ci
0                       a1: rat means   9  6.662   5.736    7.588    7.6  (5.9, 9.4)             True
1  a2: rat means, incomplete rats out   9  6.662   5.736    7.588    7.6  (5.9, 9.4)             True
2                    b: cycles pooled  27  6.662   6.090    7.234    7.6  (5.9, 9.4)             True
per-rat means: {'12_081': 6.1, '12_083': 6.96, 'R18-208': 5.87, 'R18-243': 5.47, 'R18-248': 8.0, 'R18-262': 6.93, 'R18-270': 5.92, 'R18-273': 9.06, 'R18-294': 5.66}
rats: 9 ; cycles: 27 ; range of cycle values 3.92 to 9.92
recomputed from the pressure traces:
  source        selection definition           reading   n   mean  ci_low  ci_high  inside_paper_ci
0  trace  pre-stimulation    ivi_min     a1: rat means   7  6.662   5.608    7.716             True
1  trace  pre-stimulation    ivi_min  b: cycles pooled  14  6.662   5.870    7.455             True
2  trace      first three    ivi_min     a1: rat means   9  6.234   5.135    7.333             True
3  trace      first three    ivi_min  b: cycles pooled  17  6.392   5.635    7.148             True

Result: reproduced. Mean inter-void interval 6.66 min (95% CI 5.74 to 7.59, 9 rats), within the printed CI 5.9 to 9.4 under every reading; 0.94 min below the printed 7.6. Recomputed from the traces (onset to onset within one wave) it is 6.66 min (7 rats with an interval before stimulation) or 6.23 min (first three marked voids, 9 rats), inside the CI.

table1-hfpo-frequency¶

High-frequency pressure oscillations during voiding contractions had a centre frequency of 10.7 Hz (95% CI 8.3 to 13.0), n = 9 rats.

In [42]:
t1("table1-hfpo-frequency")
                              reading   n   mean  ci_low  ci_high  paper     paper_ci  inside_paper_ci
0                       a1: rat means   7  9.817   7.209   12.425   10.7  (8.3, 13.0)             True
1  a2: rat means, incomplete rats out   7  9.817   7.209   12.425   10.7  (8.3, 13.0)             True
2                    b: cycles pooled  21  9.817   8.588   11.046   10.7  (8.3, 13.0)             True
per-rat means: {'12_081': nan, '12_083': nan, 'R18-208': 9.03, 'R18-243': 7.8, 'R18-248': 9.66, 'R18-262': 8.03, 'R18-270': 9.16, 'R18-273': 16.04, 'R18-294': 9.01}
rats: 7 ; cycles: 21 ; range of cycle values 7.63 to 16.95
recomputed from the pressure traces:
  source        selection definition           reading   n   mean  ci_low  ci_high  inside_paper_ci
0  trace  pre-stimulation     hfpo_a     a1: rat means   9  8.046   5.483   10.609            False
1  trace  pre-stimulation     hfpo_a  b: cycles pooled  24  7.979   6.280    9.678            False
2  trace  pre-stimulation     hfpo_b     a1: rat means   7  7.109   5.687    8.531            False
3  trace  pre-stimulation     hfpo_b  b: cycles pooled  16  7.382   6.741    8.023            False
4  trace      first three     hfpo_a     a1: rat means   9  8.037   5.479   10.595            False
5  trace      first three     hfpo_a  b: cycles pooled  27  8.037   6.538    9.536            False
6  trace      first three     hfpo_b     a1: rat means   8  7.266   6.031    8.502            False
7  trace      first three     hfpo_b  b: cycles pooled  18  7.455   6.882    8.027            False

Result: reproduced. Mean HFPO frequency 9.82 Hz (95% CI 7.21 to 12.43), within the printed CI 8.3 to 13.0, but from 7 rats: the derivative has no HFPO value for 12-081 and 12-083, where the paper states n = 9. Recomputed from the traces, the spectrum peak gives 8.05 Hz (9 rats) and the count of oscillation peaks 7.11 Hz (7 rats), both below the CI; these use a 3 to 30 Hz band-pass and an HFPO period defined here, so the derivative's value decides the outcome. The outcome rests on an assumption: that the derivative's HFPO frequency, whose method neither the paper nor the dataset states, matches one of the criterion's readings. Nothing recomputed here supports it, and it comes from 7 rats.

table1-comparable-to-published¶

Voiding parameters after array implantation were comparable to published values in naive rats, including Wiedmann et al. (2020) for threshold pressure, peak pressure, contraction duration and inter-void interval.

The comparison values are Wiedmann et al. (2020) as printed in the paper's Table 1 (an outside input, quoted in the claim's criterion). Reproduced when each of the four 95% CIs computed here overlaps the printed Wiedmann CI.

In [43]:
W20 = {"mmhg_init_rel": (1.8, 7.3), "mmhg_peak_rel": (15.3, 74.0), "contraction_dur_s": (25.1, 49.3), "ivi_minute": (5.3, 10.6)}
rows = []
for pid, (lo, hi) in W20.items():
    for rd, x in (("a1", ratm[pid]), ("a2", ratm_drop[pid])):
        m, l, h, n = P.mean_ci(x)
        rows.append(dict(parameter=pid, reading=rd, mean=m, ci_low=l, ci_high=h, wiedmann_ci=(lo, hi),
                         overlaps=(l <= hi) and (h >= lo)))
cm = pd.DataFrame(rows)
print(cm.round(2).to_string())
print("overlapping, reading a1:", int(cm[cm.reading == "a1"].overlaps.sum()), "of 4; reading a2:",
      int(cm[cm.reading == "a2"].overlaps.sum()), "of 4")
           parameter reading   mean  ci_low  ci_high   wiedmann_ci  overlaps
0      mmhg_init_rel      a1   6.96    5.15     8.77    (1.8, 7.3)      True
1      mmhg_init_rel      a2   6.96    5.15     8.77    (1.8, 7.3)      True
2      mmhg_peak_rel      a1  46.59   33.79    59.39  (15.3, 74.0)      True
3      mmhg_peak_rel      a2  46.59   33.79    59.39  (15.3, 74.0)      True
4  contraction_dur_s      a1  32.19   16.04    48.33  (25.1, 49.3)      True
5  contraction_dur_s      a2  26.06   16.96    35.17  (25.1, 49.3)      True
6         ivi_minute      a1   6.66    5.74     7.59   (5.3, 10.6)      True
7         ivi_minute      a2   6.66    5.74     7.59   (5.3, 10.6)      True
overlapping, reading a1: 4 of 4; reading a2: 4 of 4

Result: reproduced. The 95% CIs computed here overlap the Wiedmann et al. (2020) CIs printed in Table 1 for all four parameters under both readings: relative threshold 5.15 to 8.77 against 1.8 to 7.3 mmHg, relative peak 33.79 to 59.39 against 15.3 to 74.0 mmHg, contraction duration 16.04 to 48.33 (or 16.96 to 35.17) against 25.1 to 49.3 s, and inter-void interval 5.74 to 7.59 against 5.3 to 10.6 min.

Stimulation responses in awake rats (blocked)¶

stim-evoked-voiding, stim-void-trials, stim-early-void, stim-nonvoiding, stim-voiding-to-nonvoiding and fig3e-eight-week-responses need, for each stimulation train in eight rats (and the two 8-week rats), whether urine was released. The files hold stimulation trains for four rats only (18-196, 18-243, 18-262, 18-294) and no annotation of urine release; the 8-week rats have no stimulation trains. These claims are blocked as data_missing.

What the four rats allow is shown below as partial tests, which cannot decide the claims (their counts are of eight rats). The deposited schema of the cystometry files says what /Voids holds:

In [44]:
txt = P.read_bytes("files/docs/hdf5_cystometry_schema.json").decode()
print(txt[txt.index('Group "/Voids"'):txt.index('Group "/Stimuli"')])
Group "/Voids" 
        Dataset "ContractionDuration" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "s"
        Dataset "Index" 
            Size:  (n_voids)x1
        Dataset "PeakPressure" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "mmHg"
        Dataset "PeakTime" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "s"
        Dataset "PostBaselinePressure" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "mmHg"
        Dataset "PostBaselineTime" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "s"
        Dataset "RelaxationTimeConstant" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "s"
        Dataset "ThresholdPressure" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "mmHg"
        Dataset "ThresholdTime" 
            Size:  (n_voids)x1
            Attributes:
                "Units":  "s"

    

The schema lists the /Voids columns with units only; it does not say whether an entry means that urine was released, or how an entry was chosen. Each /Voids entry is read here as a voiding contraction marked by the authors (an assumption: the group is named "Voids", the derivative's cycles come from it, and its entries have the threshold, peak and post-void baseline of a voiding contraction). Per train: the marked void whose onset (ThresholdTime) follows the train onset most closely, timed from the onset and from the end of the train (the claims file's two starts of the 30 s window); the time since the previous marked void, against the rat's mean interval between marked voids before the first train (stim-early-void readings: under half, under a quarter); and the pressure rise after the train (highest 1 s mean pressure from the onset to 30 s after the end, minus the mean of the 30 s before the onset), against the rat's relative threshold pressure (stim-nonvoiding reading (a): a rise above it with no marked void within 30 s of the end).

In [45]:
rows = []
for s in cy_meta[cy_meta.stim_trains > 0]["sub"]:
    W, V, S = CY[s]
    V = V.sort_values("ThresholdTime").reset_index(drop=True)
    times = S["Time"].values if "Time" in S else np.array([S.attrs["Time"]])
    D = float(S.attrs["StimDuration"])
    pre_v = V[V.ThresholdTime < times.min()]
    ivi_pre = np.array([P.ivi_min(W, V, k) for k in pre_v.index])
    ivi_pre = ivi_pre[np.isfinite(ivi_pre)]
    ivi_src = "marked voids before the first train"
    if len(ivi_pre) == 0 and "R" + s in set(dv.subject_id):
        ivi_pre = dv[(dv.subject_id == "R" + s) & (dv.parameter_id == "ivi_minute")].value.dropna().values
        ivi_src = "derivative table"
    rel_thr = np.nanmean([P.void_params(W, V, k, next_onset=V.ThresholdTime[k + 1] if k + 1 < len(V) else np.inf).get("thr_a_rel", np.nan)
                          for k in pre_v.index])
    for t0 in times:
        dt = V.ThresholdTime.values - t0
        nxt = dt[dt > -1]
        prev = V.ThresholdTime.values[V.ThresholdTime.values < t0]
        w = P._wave_at(W, t0)
        rise = np.nan
        if w is not None and w["t"][0] <= t0 - 30 and t0 + D + 30 <= w["t"][-1]:
            ps = P.smooth(w["p"], float(w["attrs"]["SampleRate"]))
            tt = w["t"]
            rise = float(np.nanmax(ps[(tt >= t0) & (tt <= t0 + D + 30)]) - np.nanmean(w["p"][(tt >= t0 - 30) & (tt < t0)]))
        rows.append(dict(sub=s, onset_s=round(t0, 1), mA=S["Stim"].values[list(times).index(t0)] if "Stim" in S else S.attrs.get("Stim"),
                         next_void_from_onset_s=round(nxt.min(), 1) if len(nxt) else np.nan,
                         next_void_from_end_s=round(nxt.min() - D, 1) if len(nxt) else np.nan,
                         since_prev_void_min=(t0 - prev.max()) / 60 if len(prev) else np.nan,
                         rat_mean_ivi_pre_min=ivi_pre.mean() if len(ivi_pre) else np.nan, n_ivi_pre=len(ivi_pre), ivi_from=ivi_src,
                         rise_mmHg=rise, rat_rel_thr_mmHg=rel_thr))
st = pd.DataFrame(rows)
st["void_30s_onset"] = st.next_void_from_onset_s <= 30
st["void_30s_end"] = st.next_void_from_end_s <= 30
st["early_half"] = st.void_30s_end & (st.since_prev_void_min < 0.5 * st.rat_mean_ivi_pre_min)
st["early_quarter"] = st.void_30s_end & (st.since_prev_void_min < 0.25 * st.rat_mean_ivi_pre_min)
st["nonvoid_a"] = (st.rise_mmHg > st.rat_rel_thr_mmHg) & ~st.void_30s_end
print(st.round(2).to_string())
per = st.groupby("sub")[["void_30s_onset", "void_30s_end", "early_half", "early_quarter", "nonvoid_a"]].sum()
per["trains"] = st.groupby("sub").size()
print(per.to_string())
print("rats (of the 4 with trains) with a marked void within 30 s of onset:", int((per.void_30s_onset > 0).sum()),
      "; of the end:", int((per.void_30s_end > 0).sum()),
      "; trains followed by a marked void within 30 s of the end:", int(st.void_30s_end.sum()), "of", len(st))
print("rats with such voids in 3 to 6 trains:", int(per.void_30s_end.between(3, 6).sum()))
print("rats with an early evoked void, under half / a quarter of the mean interval:",
      int((per.early_half > 0).sum()), "/", int((per.early_quarter > 0).sum()))
print("rats with a non-voiding response under reading (a):", int((per.nonvoid_a > 0).sum()), "of 4")
      sub  onset_s    mA  next_void_from_onset_s  next_void_from_end_s  since_prev_void_min  rat_mean_ivi_pre_min  n_ivi_pre                             ivi_from  rise_mmHg  rat_rel_thr_mmHg  void_30s_onset  void_30s_end  early_half  early_quarter  nonvoid_a
0  18-196   3798.8  1.10                     0.8                  -9.2                13.88                 11.63          1  marked voids before the first train      15.18             12.11            True          True       False          False      False
1  18-243   7432.9  0.65                     6.7                  -3.3                 3.44                  5.47          3                     derivative table      47.02             16.56            True          True       False          False      False
2  18-262  11396.5  0.95                    68.3                  58.3                 9.16                  6.74          4  marked voids before the first train       7.82             10.68           False         False       False          False      False
3  18-262  11457.3  0.95                     7.5                  -2.5                10.17                  6.74          4  marked voids before the first train      70.02             10.68            True          True       False          False      False
4  18-294   1520.4  0.80                   157.5                 147.5                 3.86                  5.66          3                     derivative table       1.39              5.39           False         False       False          False      False
5  18-294   1579.4  0.95                    98.5                  88.5                 4.84                  5.66          3                     derivative table       2.04              5.39           False         False       False          False      False
6  18-294   1637.2  1.10                    40.7                  30.7                 5.80                  5.66          3                     derivative table       2.05              5.39           False         False       False          False      False
7  18-294   2209.8  1.10                    66.9                  56.9                 3.52                  5.66          3                     derivative table       1.21              5.39           False         False       False          False      False
8  18-294   2267.8  1.25                     8.9                  -1.1                 4.48                  5.66          3                     derivative table      17.81              5.39            True          True       False          False      False
        void_30s_onset  void_30s_end  early_half  early_quarter  nonvoid_a  trains
sub                                                                               
18-196               1             1           0              0          0       1
18-243               1             1           0              0          0       1
18-262               1             1           0              0          0       2
18-294               1             1           0              0          0       5
rats (of the 4 with trains) with a marked void within 30 s of onset: 4 ; of the end: 4 ; trains followed by a marked void within 30 s of the end: 4 of 9
rats with such voids in 3 to 6 trains: 0
rats with an early evoked void, under half / a quarter of the mean interval: 0 / 0
rats with a non-voiding response under reading (a): 0 of 4

fig3e-eight-week-responses, the half on void parameters. The 8-week rats (15-759, 15-760) have marked voids but no trains, so only their filling-evoked voids can be compared: their mean parameters over the first three marked voids, recomputed from the traces as for Table 1, against the range of the per-rat means of the nine short-term rats (pre-stimulation cycles), widened by 10% of each bound, under the (a) definitions and under the (b) ones.

In [46]:
rows = []
for s in ["15-759", "15-760"]:
    W, V, S = CY[s]
    V = V.sort_values("ThresholdTime").reset_index(drop=True)
    for k in range(min(3, len(V))):
        d = P.void_params(W, V, k, next_onset=V.ThresholdTime[k + 1] if k + 1 < len(V) else np.inf)
        d.update(sub=s, void=k, ivi_min=P.ivi_min(W, V, k))
        rows.append(d)
LT = pd.DataFrame(rows)
short = TR[TR.selection == "pre-stimulation"].groupby("sub").mean(numeric_only=True)
rows = []
for defs in (("a", ["minimum", "thr_a_rel", "peak_rel", "dur_a", "ivi_min", "hfpo_a"]),
             ("b", ["minimum", "thr_b_rel", "peak_rel", "dur_b", "ivi_min", "hfpo_b"])):
    for s in ["15-759", "15-760"]:
        m = LT[LT["sub"] == s].mean(numeric_only=True)
        inside = []
        for par in defs[1]:
            lo, hi = short[par].min(), short[par].max()
            lo_w, hi_w = lo - 0.1 * abs(lo), hi + 0.1 * abs(hi)
            ok = bool(np.isfinite(m.get(par, np.nan)) and lo_w <= m[par] <= hi_w)
            inside.append(ok)
            rows.append(dict(definitions=defs[0], sub=s, parameter=par, value=m.get(par, np.nan), short_min=lo, short_max=hi, inside_widened=ok))
        print(f"definitions {defs[0]}, {s}: {sum(inside)} of 6 parameters inside the widened short-term range")
print(pd.DataFrame(rows).round(2).to_string())
definitions a, 15-759: 5 of 6 parameters inside the widened short-term range
definitions a, 15-760: 6 of 6 parameters inside the widened short-term range
definitions b, 15-759: 3 of 6 parameters inside the widened short-term range
definitions b, 15-760: 4 of 6 parameters inside the widened short-term range
   definitions     sub  parameter  value  short_min  short_max  inside_widened
0            a  15-759    minimum   0.00      -0.83      11.28            True
1            a  15-759  thr_a_rel   6.87       5.39      16.56            True
2            a  15-759   peak_rel  22.18      19.13      80.14            True
3            a  15-759      dur_a  39.60      16.97     161.32            True
4            a  15-759    ivi_min  13.68       4.91       8.18           False
5            a  15-759     hfpo_a   8.17       3.00      15.33            True
6            a  15-760    minimum   2.60      -0.83      11.28            True
7            a  15-760  thr_a_rel   6.57       5.39      16.56            True
8            a  15-760   peak_rel  23.73      19.13      80.14            True
9            a  15-760      dur_a  35.30      16.97     161.32            True
10           a  15-760    ivi_min   4.94       4.91       8.18            True
11           a  15-760     hfpo_a  11.33       3.00      15.33            True
12           b  15-759    minimum   0.00      -0.83      11.28            True
13           b  15-759  thr_b_rel    NaN       9.34      24.53           False
14           b  15-759   peak_rel  22.18      19.13      80.14            True
15           b  15-759      dur_b  19.00      12.61     123.13            True
16           b  15-759    ivi_min  13.68       4.91       8.18           False
17           b  15-759     hfpo_b    NaN       4.00       8.83           False
18           b  15-760    minimum   2.60      -0.83      11.28            True
19           b  15-760  thr_b_rel    NaN       9.34      24.53           False
20           b  15-760   peak_rel  23.73      19.13      80.14            True
21           b  15-760      dur_b  24.78      12.61     123.13            True
22           b  15-760    ivi_min   4.94       4.91       8.18            True
23           b  15-760     hfpo_b    NaN       4.00       8.83           False

Partial results (the claims stay blocked). Reading each /Voids entry as a marked void, all four rats with trains have a marked void starting within 30 s of a train's onset and of its end (4 of 9 trains), where stim-evoked-voiding counts 7 of 8 rats; no rat has such voids after 3 to 6 trains, as only 18-294 has more than two trains. No train is followed by a void earlier than half the rat's mean interval (0 rats under either stim-early-void reading). Under reading (a) of stim-nonvoiding no train in the four rats gives a pressure rise above the rat's relative threshold without a marked void (0 of 4 rats; the rises without a void are 1.2 to 7.8 mmHg). For fig3e, the 8-week rats' mean parameters lie inside the widened short-term range for 5 (15-759) and 6 (15-760) of six parameters under the (a) definitions, and 3 and 4 under the (b) ones, where neither 8-week rat has an HFPO period under the proxy used here. None of these decides a claim, as the counts are of eight stimulated rats and urine release is not recorded.

Histology, c-Fos and post-mortem (blocked)¶

fig4-atf3-rare, fig4ef-axons-intact, fig5-cfos-distribution, fig5-cfos-no-side-difference, fig5-no-lamina1 and macroscopic-no-pathology need images, c-Fos counts or post-mortem notes. None is in the dataset (data check), although the README lists "Summary derived data from c-Fos activation mapping". They are blocked as data_missing.

Summary¶

Summary. 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.

Claim Outcome
anes-ecap-recorded reproduced (assumed peak detection)
anes-ecap-latencies not reproduced (assumed peak detection)
anes-conduction-velocity not reproduced (assumed peak detection)
anes-threshold-order not reproduced (assumed peak detection)
fig2c-p3-above-p1 reproduced under one reading (assumed peak detection, unadjusted Dunn)
fig2ab-one-rat-p2-below-p1 not reproduced (assumed peak detection)
awake-ecap-latencies not reproduced (assumed peak detection)
awake-threshold-increase blocked, metadata_insufficient
impedance-increase partially reproduced (8-week value not in the data)
electrode-failures blocked, data_missing
colonic-pressure not reproduced
no-fecal-expulsion-or-erection blocked, data_missing
table1-minimum-pressure reproduced
table1-threshold-pressure reproduced
table1-peak-pressure reproduced
table1-contraction-duration reproduced
table1-intervoid-interval reproduced
table1-hfpo-frequency reproduced (7 rats; assumed: the derivative's unstated method)
table1-comparable-to-published reproduced (with the Wiedmann values printed in Table 1)
stim-evoked-voiding, stim-void-trials, stim-early-void, stim-nonvoiding, stim-voiding-to-nonvoiding, fig3e-eight-week-responses blocked, data_missing
fig4-atf3-rare, fig4ef-axons-intact, fig5-cfos-distribution, fig5-cfos-no-side-difference, fig5-no-lamina1, macroscopic-no-pathology blocked, data_missing

How the analysis differs from the paper's. The paper does not say how ECAP peaks were identified, so P1 to P3 come from rules assumed here: the first three positive peaks above k noise SDs after the artefact at the highest current (main rule), the three largest, the triple inside the paper's own ranges, and the first three of the inverted traces. The latency, velocity, threshold-order, one-rat and awake outcomes are the same under all four; the fig2c pass holds under each rule in some reading, unadjusted. The acute files hold currents up to 1.6 mA in logarithmic steps, not 0 to 2 mA in 0.1 mA steps, and no 0 mA trace; the lowest current stands for 0 mA. The 0.05 uV threshold of the Methods is applied as written although noise alone passes it in most files; raised pass levels are shown as variants. Table 1 is tested on the derivative table the authors deposited, and recomputed from the pressure traces as a check, with definitions chosen here; peak pressure, the time above threshold and the inter-void interval agree with Table 1 under that recomputation, while minimum pressure and threshold pressure at onset depend on how the minimum is taken, threshold pressure at the start of the HFPOs is above the CI under both, and the HFPO frequency comes out lower. The stimulation claims are blocked; partial counts over the four rats with trains are shown. The colonic windows are the claims file's.

What was found about the dataset. The dataset holds the acute and awake ECAPs, the colonic recordings, the unstimulated cystometry with a derivative table for Table 1, and impedances; it holds none of the histology, c-Fos counts or observation notes (the README lists c-Fos summary data that are not there), and no annotation of urine release. The ECAP files are at 200 kHz with a 500 to 3000 Hz filter, not the stated 100 kHz and 300 to 5000 Hz. The awake ECAP files are seven subjects (four at day 0, three at day 7) with no link between weeks. The derivative cystometry table differs from the /Voids tables of the same rats in most cycles and does not give Table 1's exact means, though each lies within Table 1's CI; it has HFPO values for 7 of 9 rats. In 15-758 the colonic response precedes each recorded stimulus time by the length of a train. The per-array impedance file reproduces the paper's values exactly; the per-electrode files cover 8 arrays. The dataset lists 29 subjects; the paper reports 24 rats.

In [47]:
print("runtime %.1f min; peak memory %.2f GB" % ((time.time() - T0) / 60,
      resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1e6))
print("files read:", len(P.READ))
runtime 0.7 min; peak memory 0.92 GB
files read: 54