OSCR

Prefrontal and Cerebellar Contributions to Semantic Memory Retrieval.

Code ↔ Paper

2 matches 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 2 matches
  1. [1] § MATERIALS AND METHODS › Statistical Analysis ↔ R_syntax/R3_Bayesian_mediation.R, lines 41 to 129 · score 0.91 · mediation parameters, Bayesian mediation, mediator model, brms, outcome model, Bernoulli · Report a mismatch
  2. [2] § RESULTS › Bayesian Mediation Analysis ↔ R_syntax/R3_Bayesian_mediation.R, lines 41 to 129 · score 0.61 · mediator model, outcome model, mediation, indirect, Bayesian, mediated · 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

R · 129 lines · 4.7 KB · no license · 2 matches

  1. ################################################################################
  2. # Project: ADT tDCS Study — Mediation analysis
  3. # Author: M. Marko (contact: [email hidden])
  4. ################################################################################
  5. #This study employed a Bayesian mediation analysis to investigate whether the
  6. #effect of prefrontal transcranial direct current stimulation (tDCS) on
  7. #response time (RT) is mediated by intrusions (an intermediate variable).
  8. ## 1) Packages -----------------------------------------------------------------
  9. require(readr)
  10. library(mediation)
  11. library(broom.mixed)
  12. library(lme4)
  13. library(boot)
  14. library(brms)
  15. library(bayestestR)
  16. library(brms)
  17. library(tidybayes)
  18. ## 2) Data import --------------------------------------------------------------
  19. DATA_ADT <- read_delim("C:/WORKSTATION/DATA_ADT.txt",
  20. delim = "\t",
  21. escape_double = FALSE,
  22. trim_ws = TRUE,
  23. locale = locale(encoding = "Windows-1250"))
  24. # Select correct dissociative trials from sham and PFC groups
  25. DATA_ADT_DA = subset(DATA_ADT, Exclude == 0)
  26. DATA_ADT_DA = subset(DATA_ADT_DA, Retrieval == "Unrelated")
  27. DATA_ADT_DA = subset(DATA_ADT_DA, tDCS != "CER")
  28. DATA_ADT_DA = na.omit(DATA_ADT_DA)
  29. ## 3) Bayesian Mediation -------------------------------------------------------
  30. # Rename SHAM -> CONTROL
  31. DATA_ADT_DA$tDCS = ifelse(DATA_ADT_DA$tDCS == "PFC", "PFC", "CONTROL")
  32. # Conversion to factors
  33. DATA_ADT_DA$tDCS <- factor(DATA_ADT_DA$tDCS, levels = c("CONTROL", "PFC"))
  34. DATA_ADT_DA$Block <- factor(DATA_ADT_DA$Block, levels = c("B1_PRE", "B2_POST"))
  35. # Mediator model
  36. brm_med <- brm(INT ~ Block * tDCS + (1+Block|ID) + (1|Stimulus),
  37. data = DATA_ADT_DA, family = bernoulli(),
  38. iter = 4000, warmup = 1000, chains = 4, cores = 4, seed = 4321,
  39. control = list(adapt_delta = 0.95))
  40. # Outcome model
  41. brm_out <- brm(wRT ~ Block * tDCS + INT + (1+Block|ID) + (1|Stimulus),
  42. data = DATA_ADT_DA, family = Gamma("log"),
  43. iter = 4000, warmup = 1000, chains = 4, cores = 4, seed = 4321,
  44. control = list(adapt_delta = 0.95))
  45. summary(brm_med)
  46. summary(brm_out)
  47. capture.output(summary(brm_med), file = "modmed_brm_med.txt")
  48. capture.output(summary(brm_out), file = "modmed_brm_out.txt")
  49. sink()
  50. ## Posterior draws and mediation parameters ------------------------------------
  51. # Extract posterior draws for brm_med (INT ~ Block * tDCS)
  52. post_med <- as_draws_df(brm_med)
  53. colnames(post_med)
  54. # Extract posterior draws for brm_out (wRT ~ Block * tDCS + INT)
  55. post_out <- as_draws_df(brm_out)
  56. colnames(post_out)
  57. # Extract coefficients
  58. a <- post_med$`b_BlockB2_POST:tDCSPFC` # Effect of Block*tDCS on INT
  59. b <- post_out$`b_INT` # Effect of INT on wRT
  60. # Compute indirect effect
  61. indirect_effect <- a * b
  62. # Compute direct and total effects (+proportion mediated)
  63. direct_effect <- post_out$`b_BlockB2_POST:tDCSPFC`
  64. total_effect <- indirect_effect + direct_effect
  65. prop_mediated <- indirect_effect / total_effect
  66. # Analysis summary
  67. posterior_summary <- describe_posterior(data.frame(
  68. Indirect_Effect = indirect_effect,
  69. Direct_Effect = direct_effect,
  70. Total_Effect = total_effect,
  71. Prop_Mediated = prop_mediated
  72. ))
  73. posterior_summary
  74. # Transform to interpretable response format -----------------------------------
  75. baseline_RT_pretest <- mean(DATA_ADT_DA$wRT[DATA_ADT_DA$Block == "B1_PRE"])
  76. # Function to transform effects to RT and percentage change
  77. transform_effect <- function(effect) {
  78. RT_change <- baseline_RT_pretest * (exp(effect) - 1)
  79. perc_change <- (exp(effect) - 1) * 100
  80. return(c(RT_change, perc_change))
  81. }
  82. {
  83. # Fetch effect values dynamically from the summary table
  84. effects <- posterior_summary$Median[posterior_summary$Parameter %in% c("Indirect_Effect", "Direct_Effect", "Total_Effect")]
  85. # Apply transformation
  86. transformed_values <- t(sapply(effects, transform_effect))
  87. # Add transformed values to the table
  88. posterior_summary$RT_Change <- NA
  89. posterior_summary$Percent_Change <- NA
  90. # Assign transformed values only to effect rows
  91. posterior_summary$RT_Change[posterior_summary$Parameter %in% c("Indirect_Effect", "Direct_Effect", "Total_Effect")] <- transformed_values[,1]
  92. posterior_summary$Percent_Change[posterior_summary$Parameter %in% c("Indirect_Effect", "Direct_Effect", "Total_Effect")] <- transformed_values[,2]
  93. # Print the updated posterior summary table
  94. print(posterior_summary)
  95. }
  96. write.table(posterior_summary,"modmed_posterior_summary.txt",sep="\t",row.names=FALSE)
  97. sink()
  98. #-------------------------------------------------------------------------------

R3_Bayesian_mediation.R, no license · at the source

Overview

  1. Department of Behavioural Neuroscience, Institute of Normal and Pathological Physiology, Centre of Experimental Medicine, Slovak Academy of Sciences, Bratislava, Slovakia
  2. Department of Psychiatry, Faculty of Medicine, Slovak Medical University in Bratislava, Bratislava, Slovakia
  3. Department of Applied Informatics, Faculty of Mathematics, Physics and Informatics, Comenius University in Bratislava, Bratislava, Slovakia
Journal: Neurobiology of language (Cambridge, Mass.), volume 7, article NOL.a.235
Dates: received 2 October 2025; accepted 6 January 2026; published online 26 March 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1162/nol.a.235 · PMID 41971750 · PMCID PMC13065103 · OpenAlex W7119598968
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), cognitive (subfield)
Methods: Statistics, Physiology & signal measures
Keywords: cerebellum, executive functions, inhibition, language, noninvasive neuromodulation, prefrontal cortex, semantic memory
Topic: Memory Processes and Influences (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Vedecká Grantová Agentúra MŠVVaŠ SR a SAV (2/0052/23, 2/0067/25); Agentúra na Podporu Výskumu a Vývoja (APVV-23-0145, APVV-23)
Citations: not cited yet (Europe PMC); 112 references in the paper

Abstract

Semantic memory retrieval is essential for language, thought, and adaptive behavior. Although both the prefrontal cortex (PFC) and the cerebellum have been implicated in this function, the role of the PFC remains poorly understood and the contribution of the cerebellum largely overlooked in current neurocognitive models. To address these gaps, we conducted a double-blind, randomized, placebo-controlled experiment in which healthy adults received anodal transcranial direct current stimulation (tDCS) targeting the left lateral PFC, the right posterior cerebellum, or sham stimulation. Participants completed a novel process-sensitive paradigm comprising lexical decision, free-associative (FA; automatic) retrieval, dissociative (DA; controlled) retrieval, and intrusion monitoring, while manipulating response predictability and rule switching. Cerebellar tDCS selectively impaired FA performance, particularly for cues evoking predictable responses, supporting its role in automatic access to overlearned associations. In contrast, prefrontal tDCS disrupted DA performance and increased associative intrusions, implicating the PFC in retrieval inhibition. Importantly, mediation analysis showed that the reduction in DA fluency was largely explained by higher probability of intrusions, indicating a perturbation of proactive inhibitory control that normally prevents irrelevant memory activations from entering working memory. Further exploratory analyses ruled out several alternative accounts of these stimulation effects, underscoring their process specificity. Together, these findings advance models of semantic cognition by demonstrating complementary contributions of the cerebellum to automatic retrieval and of the PFC to inhibitory control over intrusions.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

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

OSF y7edf

License: none: the authors keep all their rights
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Languages: R (4)
Size: 116 files, 4 scripts
Software Heritage: not checked
Found in: “Code and Data Availability Statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: brms (4 files), easystats (4 files), lme4 (4 files), tidyverse (4 files), car (3 files), glmmTMB (3 files), lmerTest (3 files), multcomp (3 files), psych (3 files), reshape2 (3 files), broom (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
4 files
At the source: osf.io/y7edf/

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;
  • 4 scripts, each with its path and the digest of its content;
  • 2 matches 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 data, materials, and codes are available on the Open Science Framework website (https://osf.io/y7edf/).

Reproduced under the paper's license (CC BY), from the paper cited above.

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, 30 September 2026: the first record

Recorded: type, language, journal, volume, pages, dates, 4 authors, 7 keywords, 2 funders, 112 references.

Cite

This paper

Kubinec, A., Rovný, R., Riečanský, I., & Marko, M. (2026). Prefrontal and Cerebellar Contributions to Semantic Memory Retrieval. Neurobiology of language (Cambridge, Mass.), 7, NOL.a.235. https://doi.org/10.1162/nol.a.235

BibTeX

@article{kubinec2026prefrontal,
author = {Kubinec, Adam and Rovný, Rastislav and Riečanský, Igor and Marko, Martin},
title = {{Prefrontal and Cerebellar Contributions to Semantic Memory Retrieval}},
journal = {Neurobiology of language (Cambridge, Mass.)},
year = {2026},
month = mar,
volume = {7},
pages = {NOL.a.235},
publisher = {MIT Press},
issn = {2641-4368},
doi = {10.1162/nol.a.235},
url = {https://doi.org/10.1162/nol.a.235},
pmid = {41971750},
pmcid = {PMC13065103}
}

RIS

TY - JOUR
AU - Kubinec, Adam
AU - Rovný, Rastislav
AU - Riečanský, Igor
AU - Marko, Martin
TI - Prefrontal and Cerebellar Contributions to Semantic Memory Retrieval
T2 - Neurobiology of language (Cambridge, Mass.)
J2 - Neurobiol Lang (Camb)
PY - 2026
DA - 2026/03/26
VL - 7
SP - NOL.a.235
SN - 2641-4368
PB - MIT Press
DO - 10.1162/nol.a.235
UR - https://doi.org/10.1162/nol.a.235
LA - en
ER -

CSL-JSON

{
"id": "10.1162/nol.a.235",
"type": "article-journal",
"title": "Prefrontal and Cerebellar Contributions to Semantic Memory Retrieval",
"container-title": "Neurobiology of language (Cambridge, Mass.)",
"author": [
{
"family": "Kubinec",
"given": "Adam"
},
{
"family": "Rovný",
"given": "Rastislav"
},
{
"family": "Riečanský",
"given": "Igor"
},
{
"family": "Marko",
"given": "Martin"
}
],
"container-title-short": "Neurobiol Lang (Camb)",
"volume": "7",
"page": "NOL.a.235",
"DOI": "10.1162/nol.a.235",
"PMID": "41971750",
"PMCID": "PMC13065103",
"ISSN": "2641-4368",
"publisher": "MIT Press",
"URL": "https://doi.org/10.1162/nol.a.235",
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
26
]
]
}
}

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.1038/s42003-022-03547-x
An investigation of the cognitive and neural correlates of semantic memory search related to creative ability.
Journal: Communications biology
In common: cognitive, 13 references
[2] doi:10.3389/fpsyt.2026.1850241 [code]
Probing the linguistic cerebellum: a qualitative review of the effects of cerebellar neurostimulation on language processing.
Journal: Frontiers in psychiatry
In common: tidyverse, 10 references
[3] doi:10.1093/brain/awaf302 [code]
Parkinson's disease progression is shaped by longitudinal changes in cerebral compensation.
Journal: Brain : a journal of neurology
In common: brms, multcomp, broom, 7 other tools
[4] doi:10.1093/brain/awad325 [code]
Clinical severity in Parkinson's disease is determined by decline in cortical compensation.
Journal: Brain : a journal of neurology
In common: brms, multcomp, broom, 7 other tools
[5] doi:10.1186/s11689-025-09651-3 [code]
The association between infant EEG aperiodic exponent and the trajectory of restricted and repetitive behaviors for toddlers with and without autism.
Journal: Journal of neurodevelopmental disorders
In common: glmmTMB, brms, multcomp, 6 other tools
[6] doi:10.3758/s13415-025-01303-2 [code]
Impaired reinforcement learning and coding of prediction errors in patients with cerebellar degeneration - a study with EEG and voxel-based morphometry.
Journal: Cognitive, affective & behavioral neuroscience
In common: glmmTMB, easystats, psych, 5 other tools, cognitive, 2 references
[7] doi:10.1523/jneurosci.0238-25.2025 [code]
Emotional and Social Dimension of Abstract Concepts Meet with Interoception in Right Anterior Insula.
Journal: The Journal of neuroscience : the official journal of the Society for Neuroscience
In common: glmmTMB, multcomp, easystats, 5 other tools, cognitive, 1 reference
[8] doi:10.1038/s41593-024-01672-w [code]
Cognitive control training with domain-general response inhibition does not change children's brains or behavior.
Journal: Nature neuroscience
In common: brms, multcomp, broom, 6 other tools, cognitive
[9] doi:10.1038/s41598-024-64054-z [code]
Cortical processes of multisensory plausibility modulation of vibrotactile perception in virtual environments in middled-aged and older adults.
Journal: Scientific reports
In common: brms, multcomp, easystats, 6 other tools, cognitive
[10] doi:10.1038/s42003-022-04318-4 [code]
Congruence-based contextual plausibility modulates cortical activity during vibrotactile perception in virtual multisensory environments.
Journal: Communications biology
In common: brms, multcomp, easystats, 6 other tools, cognitive

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.1162/nol.a.235.svg)](https://openscicode.org/badge/doi/10.1162/nol.a.235)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1162/nol.a.235.svg
   :target: https://openscicode.org/badge/doi/10.1162/nol.a.235
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1162/nol.a.235"><img src="https://openscicode.org/badge/doi/10.1162/nol.a.235.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.