OSCR

Intravenous midazolam alters short-interval paired-pulse TMS responses differently in younger and older adults.

Code ↔ Paper

1 match between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 1 match
  1. [1] § 2 Methods › 2.7 Statistical comparisons ↔ GABAM_Zenodo_Data_Package/analysis_code.py, lines 1 to 55 · score 0.78 · Shapiro Wilk, Benjamini Hochberg, Single pulse MEP, paired pulse MEP, mixed, ANOVA · Report a mismatch

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 455 lines · 17 KB · CC-BY-4.0 · 1 match

  1. #!/usr/bin/env python3
  2. """
  3. Analysis code for:
  4. Intravenous midazolam alters short-interval paired-pulse TMS responses differently
  5. in younger and older adults
  6. Purpose
  7. -------
  8. This script reproduces the article-style statistical analyses for the de-identified
  9. subject-level TMS dataset. It performs descriptive summaries, Shapiro-Wilk normality
  10. checks, independent-samples t-tests, paired-samples t-tests, Benjamini-Hochberg p-value
  11. adjustment, and ANOVA-style models for single-pulse and paired-pulse MEP outcomes.
  12. Input
  13. -----
  14. subject_level_data.csv
  15. Expected location
  16. -----------------
  17. Place this script in the same folder as subject_level_data.csv, or update DATA_FILE below.
  18. Outputs
  19. -------
  20. The script writes CSV output files to an analysis_outputs/ subfolder:
  21. - descriptive_statistics.csv
  22. - normality_tests.csv
  23. - article_style_ttests.csv
  24. - one_way_anovas.csv
  25. - repeated_measures_anovas_within_age_group.csv
  26. - mixed_effects_wald_tests_mep.csv
  27. - analysis_notes.txt
  28. Notes
  29. -----
  30. The primary manuscript analyses are the t-tests. ANOVA and mixed-model outputs are
  31. included as supplementary reproducibility checks. The default paired-pulse ratio uses
  32. the source ratio variables from the workbook because those are the values preserved
  33. from the manuscript source file. To instead analyze calculated PP/SP ratios, change
  34. RATIO_MODE from "source" to "calculated" below.
  35. """
  36. from pathlib import Path
  37. import warnings
  38. import numpy as np
  39. import pandas as pd
  40. from scipy import stats
  41. try:
  42. import statsmodels.formula.api as smf
  43. from statsmodels.stats.anova import anova_lm, AnovaRM
  44. from statsmodels.stats.multitest import multipletests
  45. STATSMODELS_AVAILABLE = True
  46. except ImportError:
  47. STATSMODELS_AVAILABLE = False
  48. # -----------------------------------------------------------------------------
  49. # User settings
  50. # -----------------------------------------------------------------------------
  51. DATA_FILE = Path("subject_level_data.csv")
  52. OUTPUT_DIR = Path("analysis_outputs")
  53. RATIO_MODE = "source" # options: "source" or "calculated"
  54. EQUAL_VAR_TTESTS = True # True matches conventional Student independent-samples t-tests
  55. ALPHA = 0.05
  56. # -----------------------------------------------------------------------------
  57. # Helper functions
  58. # -----------------------------------------------------------------------------
  59. def as_numeric(series):
  60. return pd.to_numeric(series, errors="coerce")
  61. def fmt_float(x):
  62. if pd.isna(x):
  63. return np.nan
  64. return float(x)
  65. def ensure_output_dir():
  66. OUTPUT_DIR.mkdir(exist_ok=True)
  67. def load_data():
  68. if not DATA_FILE.exists():
  69. raise FileNotFoundError(
  70. f"Could not find {DATA_FILE}. Place analysis_code.py in the same folder as "
  71. "subject_level_data.csv or edit DATA_FILE."
  72. )
  73. df = pd.read_csv(DATA_FILE)
  74. # Coerce expected numeric columns.
  75. numeric_cols = [
  76. "sp_baseline_mep_uv", "sp_midazolam_mep_uv", "sp_washout_mep_uv",
  77. "pp_baseline_mep_uv", "pp_midazolam_mep_uv", "pp_washout_mep_uv",
  78. "baseline_pp_sp_ratio_source", "midazolam_pp_sp_ratio_source",
  79. "baseline_pp_sp_ratio_calculated", "midazolam_pp_sp_ratio_calculated",
  80. ]
  81. for col in numeric_cols:
  82. if col in df.columns:
  83. df[col] = as_numeric(df[col])
  84. if RATIO_MODE == "source":
  85. df["baseline_pp_sp_ratio"] = df["baseline_pp_sp_ratio_source"]
  86. df["midazolam_pp_sp_ratio"] = df["midazolam_pp_sp_ratio_source"]
  87. elif RATIO_MODE == "calculated":
  88. df["baseline_pp_sp_ratio"] = df["baseline_pp_sp_ratio_calculated"]
  89. df["midazolam_pp_sp_ratio"] = df["midazolam_pp_sp_ratio_calculated"]
  90. else:
  91. raise ValueError('RATIO_MODE must be either "source" or "calculated".')
  92. # Categorical ordering for readable output.
  93. df["age_group"] = pd.Categorical(df["age_group"], categories=["younger", "older"], ordered=True)
  94. return df
  95. def descriptive_statistics(df):
  96. variables = [
  97. "sp_baseline_mep_uv", "sp_midazolam_mep_uv",
  98. "pp_baseline_mep_uv", "pp_midazolam_mep_uv",
  99. "baseline_pp_sp_ratio", "midazolam_pp_sp_ratio",
  100. ]
  101. rows = []
  102. for variable in variables:
  103. for age_group, sub in df.groupby("age_group", observed=False):
  104. values = sub[variable].dropna()
  105. rows.append({
  106. "variable": variable,
  107. "age_group": age_group,
  108. "n": int(values.shape[0]),
  109. "mean": fmt_float(values.mean()),
  110. "sd": fmt_float(values.std(ddof=1)),
  111. "median": fmt_float(values.median()),
  112. "min": fmt_float(values.min()),
  113. "max": fmt_float(values.max()),
  114. })
  115. return pd.DataFrame(rows)
  116. def shapiro_normality_tests(df):
  117. variables = [
  118. "sp_baseline_mep_uv", "sp_midazolam_mep_uv",
  119. "pp_baseline_mep_uv", "pp_midazolam_mep_uv",
  120. "baseline_pp_sp_ratio", "midazolam_pp_sp_ratio",
  121. ]
  122. rows = []
  123. for variable in variables:
  124. for age_group, sub in df.groupby("age_group", observed=False):
  125. values = sub[variable].dropna()
  126. if len(values) >= 3:
  127. stat, p_value = stats.shapiro(values)
  128. else:
  129. stat, p_value = np.nan, np.nan
  130. rows.append({
  131. "variable": variable,
  132. "age_group": age_group,
  133. "n": int(len(values)),
  134. "shapiro_w": fmt_float(stat),
  135. "p_value": fmt_float(p_value),
  136. })
  137. return pd.DataFrame(rows)
  138. def independent_ttest(df, label, variable, group_col="age_group", group_a="younger", group_b="older"):
  139. a = df.loc[df[group_col] == group_a, variable].dropna()
  140. b = df.loc[df[group_col] == group_b, variable].dropna()
  141. stat, p_value = stats.ttest_ind(a, b, equal_var=EQUAL_VAR_TTESTS)
  142. return {
  143. "test_family": "independent_samples_ttest",
  144. "comparison": label,
  145. "variable": variable,
  146. "group_a": group_a,
  147. "group_b": group_b,
  148. "n_a": int(len(a)),
  149. "mean_a": fmt_float(a.mean()),
  150. "sd_a": fmt_float(a.std(ddof=1)),
  151. "n_b": int(len(b)),
  152. "mean_b": fmt_float(b.mean()),
  153. "sd_b": fmt_float(b.std(ddof=1)),
  154. "t_statistic": fmt_float(stat),
  155. "df": int(len(a) + len(b) - 2) if EQUAL_VAR_TTESTS else np.nan,
  156. "p_value_raw": fmt_float(p_value),
  157. "equal_variance_assumed": EQUAL_VAR_TTESTS,
  158. }
  159. def paired_ttest(df, label, variable_a, variable_b, age_group=None):
  160. sub = df.copy()
  161. if age_group is not None:
  162. sub = sub.loc[sub["age_group"] == age_group].copy()
  163. paired = sub[["participant_id", "age_group", variable_a, variable_b]].dropna()
  164. a = paired[variable_a]
  165. b = paired[variable_b]
  166. if len(paired) >= 2:
  167. stat, p_value = stats.ttest_rel(a, b)
  168. else:
  169. stat, p_value = np.nan, np.nan
  170. return {
  171. "test_family": "paired_samples_ttest",
  172. "comparison": label,
  173. "variable": f"{variable_a} vs {variable_b}",
  174. "group_a": age_group if age_group is not None else "all",
  175. "group_b": "within_subject",
  176. "n_a": int(len(paired)),
  177. "mean_a": fmt_float(a.mean()),
  178. "sd_a": fmt_float(a.std(ddof=1)),
  179. "n_b": int(len(paired)),
  180. "mean_b": fmt_float(b.mean()),
  181. "sd_b": fmt_float(b.std(ddof=1)),
  182. "t_statistic": fmt_float(stat),
  183. "df": int(len(paired) - 1) if len(paired) >= 2 else np.nan,
  184. "p_value_raw": fmt_float(p_value),
  185. "equal_variance_assumed": np.nan,
  186. }
  187. def article_style_ttests(df):
  188. """Primary tests corresponding to the article narrative."""
  189. tests = []
  190. # Age-group comparisons.
  191. tests.append(independent_ttest(
  192. df, "Baseline single-pulse MEP amplitude: younger vs older",
  193. "sp_baseline_mep_uv"
  194. ))
  195. tests.append(independent_ttest(
  196. df, "Baseline paired-pulse/single-pulse ratio: younger vs older",
  197. "baseline_pp_sp_ratio"
  198. ))
  199. tests.append(independent_ttest(
  200. df, "Midazolam paired-pulse/single-pulse ratio: younger vs older",
  201. "midazolam_pp_sp_ratio"
  202. ))
  203. # Within-group single-pulse versus paired-pulse comparisons at baseline.
  204. for group in ["younger", "older"]:
  205. tests.append(paired_ttest(
  206. df, f"Baseline SP versus PP MEP amplitude within {group}",
  207. "sp_baseline_mep_uv", "pp_baseline_mep_uv", age_group=group
  208. ))
  209. # Midazolam effect on single-pulse MEP amplitude within each group.
  210. for group in ["younger", "older"]:
  211. tests.append(paired_ttest(
  212. df, f"Single-pulse baseline versus midazolam MEP amplitude within {group}",
  213. "sp_baseline_mep_uv", "sp_midazolam_mep_uv", age_group=group
  214. ))
  215. # Within-group single-pulse versus paired-pulse comparisons during midazolam.
  216. for group in ["younger", "older"]:
  217. tests.append(paired_ttest(
  218. df, f"Midazolam SP versus PP MEP amplitude within {group}",
  219. "sp_midazolam_mep_uv", "pp_midazolam_mep_uv", age_group=group
  220. ))
  221. # Baseline versus midazolam paired-pulse MEP amplitudes within each group.
  222. for group in ["younger", "older"]:
  223. tests.append(paired_ttest(
  224. df, f"Paired-pulse baseline versus midazolam MEP amplitude within {group}",
  225. "pp_baseline_mep_uv", "pp_midazolam_mep_uv", age_group=group
  226. ))
  227. out = pd.DataFrame(tests)
  228. pvals = out["p_value_raw"].astype(float).values
  229. valid = ~np.isnan(pvals)
  230. out["p_value_bh_adjusted"] = np.nan
  231. out["reject_bh_0_05"] = False
  232. if valid.sum() > 0 and STATSMODELS_AVAILABLE:
  233. reject, p_adj, _, _ = multipletests(pvals[valid], alpha=ALPHA, method="fdr_bh")
  234. out.loc[valid, "p_value_bh_adjusted"] = p_adj
  235. out.loc[valid, "reject_bh_0_05"] = reject
  236. return out
  237. def one_way_anovas(df):
  238. if not STATSMODELS_AVAILABLE:
  239. return pd.DataFrame({"note": ["statsmodels not installed; ANOVAs not run."]})
  240. variables = [
  241. "sp_baseline_mep_uv",
  242. "baseline_pp_sp_ratio",
  243. "sp_midazolam_mep_uv",
  244. "midazolam_pp_sp_ratio",
  245. ]
  246. rows = []
  247. for variable in variables:
  248. sub = df[["age_group", variable]].dropna().copy()
  249. if sub["age_group"].nunique() < 2:
  250. continue
  251. model = smf.ols(f"{variable} ~ C(age_group)", data=sub).fit()
  252. aov = anova_lm(model, typ=2).reset_index().rename(columns={"index": "term"})
  253. for _, r in aov.iterrows():
  254. rows.append({
  255. "model": f"{variable} ~ age_group",
  256. "term": r["term"],
  257. "sum_sq": fmt_float(r.get("sum_sq")),
  258. "df": fmt_float(r.get("df")),
  259. "F": fmt_float(r.get("F")),
  260. "p_value": fmt_float(r.get("PR(>F)")),
  261. })
  262. return pd.DataFrame(rows)
  263. def make_mep_long(df):
  264. rows = []
  265. for _, r in df.iterrows():
  266. for drug_condition, sp_col, pp_col in [
  267. ("baseline", "sp_baseline_mep_uv", "pp_baseline_mep_uv"),
  268. ("midazolam", "sp_midazolam_mep_uv", "pp_midazolam_mep_uv"),
  269. ]:
  270. for pulse_condition, col in [("single_pulse", sp_col), ("paired_pulse", pp_col)]:
  271. value = r[col]
  272. if pd.notna(value):
  273. rows.append({
  274. "participant_id": r["participant_id"],
  275. "age_group": r["age_group"],
  276. "drug_condition": drug_condition,
  277. "pulse_condition": pulse_condition,
  278. "mep_uv": value,
  279. })
  280. return pd.DataFrame(rows)
  281. def repeated_measures_anovas_within_age_group(df):
  282. """Within-age-group repeated-measures ANOVA for drug condition x pulse condition."""
  283. if not STATSMODELS_AVAILABLE:
  284. return pd.DataFrame({"note": ["statsmodels not installed; repeated-measures ANOVAs not run."]})
  285. long = make_mep_long(df)
  286. rows = []
  287. for group in ["younger", "older"]:
  288. sub = long.loc[long["age_group"] == group].copy()
  289. # AnovaRM requires complete balanced data for within-subject factors.
  290. counts = sub.groupby("participant_id").size()
  291. complete_ids = counts[counts == 4].index
  292. sub = sub.loc[sub["participant_id"].isin(complete_ids)].copy()
  293. if sub["participant_id"].nunique() < 2:
  294. rows.append({
  295. "age_group": group,
  296. "term": "not_run",
  297. "F Value": np.nan,
  298. "Num DF": np.nan,
  299. "Den DF": np.nan,
  300. "Pr > F": np.nan,
  301. "note": "Insufficient complete cases for repeated-measures ANOVA.",
  302. })
  303. continue
  304. try:
  305. aov = AnovaRM(
  306. data=sub,
  307. depvar="mep_uv",
  308. subject="participant_id",
  309. within=["drug_condition", "pulse_condition"],
  310. ).fit().anova_table.reset_index().rename(columns={"index": "term"})
  311. for _, r in aov.iterrows():
  312. rows.append({
  313. "age_group": group,
  314. "term": r["term"],
  315. "F Value": fmt_float(r.get("F Value")),
  316. "Num DF": fmt_float(r.get("Num DF")),
  317. "Den DF": fmt_float(r.get("Den DF")),
  318. "Pr > F": fmt_float(r.get("Pr > F")),
  319. "note": "Complete-case within-age-group repeated-measures ANOVA.",
  320. })
  321. except Exception as exc:
  322. rows.append({
  323. "age_group": group,
  324. "term": "model_error",
  325. "F Value": np.nan,
  326. "Num DF": np.nan,
  327. "Den DF": np.nan,
  328. "Pr > F": np.nan,
  329. "note": str(exc),
  330. })
  331. return pd.DataFrame(rows)
  332. def mixed_effects_wald_tests_mep(df):
  333. """Mixed-effects model for MEP amplitude with random participant intercepts."""
  334. if not STATSMODELS_AVAILABLE:
  335. return pd.DataFrame({"note": ["statsmodels not installed; mixed model not run."]})
  336. long = make_mep_long(df)
  337. try:
  338. with warnings.catch_warnings():
  339. warnings.simplefilter("ignore")
  340. model = smf.mixedlm(
  341. "mep_uv ~ C(age_group) * C(drug_condition) * C(pulse_condition)",
  342. data=long,
  343. groups=long["participant_id"],
  344. )
  345. fit = model.fit(reml=False, method="lbfgs")
  346. table = fit.wald_test_terms(scalar=True).table.reset_index().rename(columns={"index": "term"})
  347. table["model"] = "MixedLM: mep_uv ~ age_group * drug_condition * pulse_condition + random participant intercept"
  348. table = table.rename(columns={"chi2": "wald_chi_square", "P>chi2": "p_value"})
  349. cols = ["model", "term"] + [c for c in table.columns if c not in ["model", "term"]]
  350. return table[cols]
  351. except Exception as exc:
  352. return pd.DataFrame({
  353. "model": ["MixedLM: mep_uv ~ age_group * drug_condition * pulse_condition + random participant intercept"],
  354. "term": ["model_error"],
  355. "note": [str(exc)],
  356. })
  357. def write_analysis_notes(df):
  358. notes = []
  359. notes.append("Analysis notes")
  360. notes.append("==============")
  361. notes.append("")
  362. notes.append(f"Input file: {DATA_FILE}")
  363. notes.append(f"Ratio mode: {RATIO_MODE}")
  364. notes.append("Primary article-style tests use Student independent-samples t-tests for between-age-group comparisons and paired-samples t-tests for within-subject comparisons.")
  365. notes.append("Benjamini-Hochberg adjustment is applied across the article_style_ttests.csv p_value_raw column.")
  366. notes.append("One-way ANOVA outputs are included because a two-group one-way ANOVA is equivalent to the corresponding independent-samples t-test.")
  367. notes.append("Within-age-group repeated-measures ANOVAs are included for drug condition x pulse condition MEP amplitude as supplementary checks.")
  368. notes.append("Mixed-effects Wald tests are included as an additional exploratory model because the dataset contains incomplete midazolam data for some older participants.")
  369. notes.append("")
  370. notes.append("Important: The manuscript interprets paired-pulse responses as net physiological responses under the stimulation parameters used, not as a direct receptor-specific assay.")
  371. notes.append("")
  372. notes.append("Participant counts by age group:")
  373. counts = df.groupby("age_group", observed=False)["participant_id"].nunique()
  374. for k, v in counts.items():
  375. notes.append(f" {k}: {v}")
  376. notes.append("")
  377. notes.append("Missingness summary for primary variables:")
  378. for col in [
  379. "sp_baseline_mep_uv", "sp_midazolam_mep_uv",
  380. "pp_baseline_mep_uv", "pp_midazolam_mep_uv",
  381. "baseline_pp_sp_ratio", "midazolam_pp_sp_ratio",
  382. ]:
  383. notes.append(f" {col}: {int(df[col].isna().sum())} missing")
  384. (OUTPUT_DIR / "analysis_notes.txt").write_text("\n".join(notes), encoding="utf-8")
  385. def main():
  386. ensure_output_dir()
  387. df = load_data()
  388. descriptive_statistics(df).to_csv(OUTPUT_DIR / "descriptive_statistics.csv", index=False)
  389. shapiro_normality_tests(df).to_csv(OUTPUT_DIR / "normality_tests.csv", index=False)
  390. article_style_ttests(df).to_csv(OUTPUT_DIR / "article_style_ttests.csv", index=False)
  391. one_way_anovas(df).to_csv(OUTPUT_DIR / "one_way_anovas.csv", index=False)
  392. repeated_measures_anovas_within_age_group(df).to_csv(
  393. OUTPUT_DIR / "repeated_measures_anovas_within_age_group.csv", index=False
  394. )
  395. mixed_effects_wald_tests_mep(df).to_csv(OUTPUT_DIR / "mixed_effects_wald_tests_mep.csv", index=False)
  396. write_analysis_notes(df)
  397. print(f"Analysis complete. Output files written to: {OUTPUT_DIR.resolve()}")
  398. if __name__ == "__main__":
  399. main()

analysis_code.py, under CC-BY-4.0 · at the source

Overview

Authors: Keith M McGregor1, Seyed A Safavynia2, Thomas Novak3,4, Ashton M Weber1, Jessica Wang5, Joe R Nocera3,4,6, Anna Woodbury3,7,8, Bruce Crosson4,9, Paul S García10
  1. Department of Clinical and Diagnostic Sciences, School of Health Professions, University of Alabama at Birmingham, Birmingham, Alabama, United States of America
  2. Department of Anesthesiology, Division of Neuroanesthesiology, Weill Cornell Medicine, New York-Presbyterian Hospital, New York, New York, United States of America
  3. VA Rehabilitation R&D Center for Visual and Neurocognitive Rehabilitation, Atlanta VA Health Care System, Atlanta, Georgia, United States of America
  4. Department of Neurology, Emory University School of Medicine, Atlanta, Georgia, United States of America
  5. Wayne State University School of Medicine, Detroit, Michigan, United States of America
  6. Department of Rehabilitation Medicine, Emory University School of Medicine, Atlanta, Georgia, United States of America
  7. Department of Anesthesiology, Emory University School of Medicine, Atlanta, Georgia, United States of America
  8. Department of Geriatrics & Gerontology, Emory University School of Medicine, Atlanta, Georgia, United States of America
  9. Department of Radiology, Emory University School of Medicine, Atlanta, Georgia, United States of America
  10. Department of Anesthesiology, Neuroanesthesia Division, Columbia University Medical Center, New York-Presbyterian Hospital, New York, New York, United States of America
Institutions: University of Alabama at Birmingham (United States); NewYork–Presbyterian Hospital (United States); Emory University (United States); Atlanta VA Health Care System (United States); Wayne State University (United States); Columbia University Irving Medical Center (United States)
Journal: PloS one, volume 21, issue 11, article e0353088
Dates: received 27 June 2026; accepted 23 October 2026; published online 6 November 2026
Type: Research article · Language: English
License: none stated
Identifiers: DOI 10.1371/journal.pone.0353088 · PMID 42993790 · PMCID PMC13743024 · OpenAlex W7165649810
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: other (modality), human (organism), systems (subfield)
Methods: Spectral & time-frequency, Statistics, Preprocessing, Evoked potentials, Physiology & signal measures
MeSH: Evoked Potentials, Motor*, Midazolam*, Motor Cortex*, Transcranial Magnetic Stimulation*, Administration, Intravenous, Adolescent, Adult, Age Factors, Aged, Aging, Female, Humans, Male, Middle Aged, Young Adult (* major topic)
Topic: Transcranial Magnetic Stimulation Studies (Neurology, Neuroscience), according to OpenAlex
Citations: not cited yet (Europe PMC); 32 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (none stated) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repository

Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.

Zenodo 20734853

License: CC-BY-4.0
State: the link answers, verified on 9 November 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: “Data Availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (1 file), pandas (1 file), SciPy (1 file), statsmodels (1 file)
Availability: 1 check, the latest on 9 November 2026: the link answers (HTTP 200)
  • 9 November 2026: the link answers (HTTP 200)
1 file

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 1 script, each with its path and the digest of its content;
  • 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Code and data availability statement

The paper has a code and data availability statement. Its license (none stated) does not allow reproducing it here; in short, from what the harvester recognized in it:

Read it in the paper: doi.org/10.1371/journal.pone.0353088.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 9 November 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 9 authors, 15 MeSH terms, 1 funder, 32 references.

Cite

This paper

McGregor, K. M., Safavynia, S. A., Novak, T., Weber, A. M., Wang, J., Nocera, J. R., Woodbury, A., Crosson, B., & García, P. S. (2026). Intravenous midazolam alters short-interval paired-pulse TMS responses differently in younger and older adults. PloS one, 21(11), e0353088. https://doi.org/10.1371/journal.pone.0353088

BibTeX

@article{mcgregor2026intravenous,
author = {McGregor, Keith M and Safavynia, Seyed A and Novak, Thomas and Weber, Ashton M and Wang, Jessica and Nocera, Joe R and Woodbury, Anna and Crosson, Bruce and García, Paul S},
title = {{Intravenous midazolam alters short-interval paired-pulse TMS responses differently in younger and older adults}},
journal = {PloS one},
year = {2026},
month = nov,
volume = {21},
number = {11},
pages = {e0353088},
publisher = {PLOS},
issn = {1932-6203},
doi = {10.1371/journal.pone.0353088},
url = {https://doi.org/10.1371/journal.pone.0353088},
pmid = {42993790},
pmcid = {PMC13743024}
}

RIS

TY - JOUR
AU - McGregor, Keith M
AU - Safavynia, Seyed A
AU - Novak, Thomas
AU - Weber, Ashton M
AU - Wang, Jessica
AU - Nocera, Joe R
AU - Woodbury, Anna
AU - Crosson, Bruce
AU - García, Paul S
TI - Intravenous midazolam alters short-interval paired-pulse TMS responses differently in younger and older adults
T2 - PloS one
J2 - PLoS One
PY - 2026
DA - 2026/11/06
VL - 21
IS - 11
SP - e0353088
SN - 1932-6203
PB - PLOS
DO - 10.1371/journal.pone.0353088
UR - https://doi.org/10.1371/journal.pone.0353088
LA - en
ER -

CSL-JSON

{
"id": "10.1371/journal.pone.0353088",
"type": "article-journal",
"title": "Intravenous midazolam alters short-interval paired-pulse TMS responses differently in younger and older adults",
"container-title": "PloS one",
"author": [
{
"family": "McGregor",
"given": "Keith M"
},
{
"family": "Safavynia",
"given": "Seyed A"
},
{
"family": "Novak",
"given": "Thomas"
},
{
"family": "Weber",
"given": "Ashton M"
},
{
"family": "Wang",
"given": "Jessica"
},
{
"family": "Nocera",
"given": "Joe R"
},
{
"family": "Woodbury",
"given": "Anna"
},
{
"family": "Crosson",
"given": "Bruce"
},
{
"family": "García",
"given": "Paul S"
}
],
"container-title-short": "PLoS One",
"volume": "21",
"issue": "11",
"page": "e0353088",
"DOI": "10.1371/journal.pone.0353088",
"PMID": "42993790",
"PMCID": "PMC13743024",
"ISSN": "1932-6203",
"publisher": "PLOS",
"URL": "https://doi.org/10.1371/journal.pone.0353088",
"language": "en",
"issued": {
"date-parts": [
[
2026,
11,
6
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1113/jp290164 [code]
Improved subjective sleep quality in older adults by enhancing the GABAergic system in the sensorimotor cortex.
Journal: The Journal of physiology
In common: other, systems, 4 references
[2] doi:10.1038/s42003-022-03378-w [code]
The interaction between endogenous GABA, functional connectivity, and behavioral flexibility is critically altered with advanced age.
Journal: Communications biology
In common: systems, 4 references
[3] doi:10.1073/pnas.2413789122 [code]
Cortical signatures linked to behavior quantitatively track arousal levels.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: SciPy, NumPy, author Seyed A Safavynia
[4] doi:10.1111/ejn.15843
The recruitment of indirect waves within primary motor cortex during motor imagery: A directional transcranial magnetic stimulation study.
Journal: The European journal of neuroscience
In common: other, systems, 3 references
[5] doi:10.1016/j.brs.2024.05.014 [code]
TMS provokes target-dependent intracranial rhythms across human cortical and subcortical sites.
Journal: Brain stimulation
In common: statsmodels, pandas, SciPy, 1 other tool, other, systems, 1 reference
[6] doi:10.1093/braincomms/fcag091 [code]
Long-interval intracortical inhibition is similar in people with and without amyotrophic lateral sclerosis.
Journal: Brain communications
In common: other, 3 references
[7] doi:10.1371/journal.pone.0282751
Sex differences in mild vascular cognitive impairment: A multimodal transcranial magnetic stimulation study.
Journal: PloS one
In common: other, 3 references
[8] doi:10.1038/s41539-024-00278-y [code]
Native learning ability and not age determines the effects of brain stimulation.
Journal: NPJ science of learning
In common: pandas, SciPy, NumPy, 2 references
[9] doi:10.1126/sciadv.abo3505 [code]
Dissecting motor skill acquisition: Spatial coordinates take precedence.
Journal: Science advances
In common: pandas, SciPy, NumPy, 2 references
[10] doi:10.1038/s41386-023-01606-3 [code]
Long term structural and functional neural changes following a single infusion of Ketamine in PTSD.
Journal: Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology
In common: statsmodels, pandas, SciPy, 1 other tool, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1371/journal.pone.0353088.svg)](https://openscicode.org/badge/doi/10.1371/journal.pone.0353088)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1371/journal.pone.0353088.svg
   :target: https://openscicode.org/badge/doi/10.1371/journal.pone.0353088
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1371/journal.pone.0353088"><img src="https://openscicode.org/badge/doi/10.1371/journal.pone.0353088.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.