OSCR

Investigating Emotional Reactivity in Experienced Users of Psychedelics: A Cross-Sectional fMRI Study.

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 › Data Analysis › ROI Analysis ↔ Data_and_scripts/ROI_analysis/ROI_analysis.R, lines 1–47 · score 0.86 · anterior division, frontal pole, fusiform gyrus, cingulate gyrus, frontal medial cortex, parahippocampal gyrus
  2. [2] § Materials and Methods › Data Analysis › ROI Analysis ↔ Data_and_scripts/ROI_analysis/ROI_analysis.R, lines 49–89 · score 0.52 · aov_ez, post hoc, emmeans, mixed, Bonferroni, ANOVAs

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

R · 151 lines · 6.3 KB · no license · 2 matches

  1. ##########################
  2. ## ROI Final Analysis ##
  3. ##########################
  4. # Load necessary libraries
  5. library(tidyverse) # Data manipulation and visualization
  6. library(ggpubr) # Publication-ready plots
  7. library(ggplot2) # Data visualization
  8. library(emmeans) # Estimated marginal means for post-hoc tests
  9. library(rstatix) # Statistical tests and summaries
  10. library(marginaleffects) # Marginal effects analyses
  11. library(afex) # ANOVA and mixed models
  12. # Load data from CSV files
  13. roi_data <- read.csv(".../ROI_analysis_data.csv")
  14. Ids_data <- read.csv(".../IDs_matching.csv", sep = ";")
  15. Participants_data <- read.csv(".../participants_data_final.csv", sep = ",")
  16. # Check number of observations per ROI
  17. table(roi_data$ROI)
  18. # Convert IDs to numeric for joining
  19. roi_data$Sub <- as.numeric(roi_data$Sub)
  20. Ids_data$Analysis_id <- as.numeric(Ids_data$Analysis_id)
  21. # Join ROI data with IDs
  22. roi_combined_with_ids <- roi_data %>%
  23. left_join(Ids_data, by = c("Sub" = "Analysis_id"))
  24. # Join above with participant data
  25. roi_combined_full <- roi_combined_with_ids %>%
  26. left_join(Participants_data, by = "Sub_id")
  27. # Convert variables to factors as appropriate
  28. roi_combined_full$Sub <- as.factor(roi_combined_full$Sub)
  29. roi_combined_full$Group <- as.factor(roi_combined_full$Group)
  30. roi_combined_full$Condition <- as.factor(roi_combined_full$Condition)
  31. ##################
  32. # List of ROIs analyzed
  33. roi_list <- c("Cingulate Gyrus anterior division",
  34. "Frontal Medial Cortex",
  35. "Frontal Pole",
  36. "Left Amygdala",
  37. "Right Amygdala",
  38. "Parahippocampal Gyrus",
  39. "Fusiform gyrus")
  40. # Loop through each ROI and run ANOVA + post hoc tests + plots
  41. for (roi_name in roi_list) {
  42. # Run mixed ANOVA with Condition (within) and Group (between)
  43. anova <- aov_ez(
  44. id = "Sub",
  45. dv = "Mean_Beta",
  46. within = "Condition",
  47. between = "Group",
  48. data = roi_combined_full[roi_combined_full$ROI == roi_name,])
  49. # Print ANOVA results for current ROI
  50. cat(roi_name, "\n")
  51. print(get_anova_table(anova))
  52. cat("\n \n \n")
  53. # If main effect of Condition is significant, run and print post-hoc tests
  54. if (anova$anova_table["Condition","Pr(>F)"] < 0.05) {
  55. posthoc_1 <- emmeans(anova, specs = pairwise ~ Condition, adjust = "bonferroni")
  56. cat("\nPost-hoc tests main effect of Emotion:\n")
  57. print(posthoc_1$contrasts)
  58. cat("\n \n \n")
  59. }
  60. # Prepare data for plotting
  61. roi_data <- roi_combined_full %>%
  62. filter(ROI == roi_name)
  63. # Create barplot for mean activation by condition
  64. p <- ggplot(roi_data, aes(x = Condition, y = Mean_Beta, fill = Condition)) +
  65. stat_summary(fun = mean, geom = "bar", position = position_dodge(0.9), width = 0.7) +
  66. stat_summary(fun.data = mean_se, geom = "errorbar", position = position_dodge(0.9),
  67. width = 0.2) +
  68. scale_fill_manual(values = c("#FD8C80","#A1D3FF","#FFD0A1","#CBCBCB"), name = "Emotion") +
  69. labs(title = paste("Mean Activation:", roi_name),
  70. x = "Condition",
  71. y = "Mean Activation") +
  72. theme_minimal() +
  73. theme(axis.text.x = element_text(angle = 45, hjust = 1),
  74. legend.position = "top")
  75. print(p)
  76. # If interaction effect Group by Condition is significant, do group plots and post-hoc
  77. if (anova$anova_table["Group:Condition","Pr(>F)"] < 0.05) {
  78. # Bar plot by Group and Condition
  79. p_group <- ggplot(roi_data, aes(x = Group, y = Mean_Beta, fill = Condition)) +
  80. stat_summary(fun = mean, geom = "bar", position = position_dodge(0.9), width = 0.7) +
  81. stat_summary(fun.data = mean_se, geom = "errorbar", position = position_dodge(0.9),
  82. width = 0.2) +
  83. scale_fill_manual(values = c("#FD8C80","#A1D3FF","#FFD0A1","#CBCBCB"), name = "Emotion") +
  84. labs(title = paste("Mean Activation by Group:", roi_name),
  85. x = "Group",
  86. y = "Mean Activation") +
  87. theme_minimal() +
  88. theme(axis.text.x = element_text(angle = 45, hjust = 1),
  89. legend.position = "top")
  90. print(p_group)
  91. # Post hoc tests for Group x Condition interaction
  92. posthoc_2 <- emmeans(anova, specs = pairwise ~ Condition | Group, adjust = 'bonferroni')
  93. posthoc_3 <- emmeans(anova, specs = pairwise ~ Group | Condition, adjust = 'bonferroni')
  94. cat("\nPost-hoc tests for interaction:\n")
  95. print(posthoc_2$contrasts)
  96. print(posthoc_3$contrasts)
  97. }
  98. }
  99. # Additional plotting for selected ROIs side-by-side
  100. library(patchwork)
  101. roi_list <- c("Frontal Medial Cortex", "Parahippocampal Gyrus")
  102. plots <- list()
  103. for (roi_name in roi_list) {
  104. roi_data <- roi_combined_full %>%
  105. filter(ROI == roi_name) %>%
  106. mutate(Group = factor(Group, levels = c("Users", "Non-users")))
  107. p_group <- ggplot(roi_data, aes(x = Group, y = Mean_Beta, fill = Condition)) +
  108. stat_summary(fun = mean, geom = "bar", position = position_dodge(0.9), width = 0.7) +
  109. stat_summary(fun.data = mean_se, geom = "errorbar", position = position_dodge(0.9), width = 0.2, size = 0.5) +
  110. scale_fill_manual(values = c("#FD8C80", "#A1D3FF", "#FFD0A1", "#CBCBCB"), name = "Emotion") +
  111. labs(title = roi_name, x = "Group", y = "Mean Activation") +
  112. theme_minimal(base_size = 24) +
  113. theme(legend.position = "right")
  114. plots[[roi_name]] <- p_group
  115. }
  116. # Add significance annotations to plots
  117. plots[[1]] <- plots[[1]] +
  118. geom_signif(y_position = c(-270), xmin = c(1.65), xmax = c(2.1), annotation = c("***"), tip_length = -0.002, size = 1.4, textsize = 9, vjust = 1.7) +
  119. geom_signif(y_position = c(-239), xmin = c(1.9), xmax = c(2.1), annotation = c("**"), tip_length = -0.002, size = 1.4, textsize = 9, vjust = 1.7)
  120. plots[[2]] <- plots[[2]] +
  121. geom_signif(y_position = c(-255), xmin = c(1.65), xmax = c(2.1), annotation = c("***"), tip_length = -0.002, size = 1.4, textsize = 9, vjust = 1.7) +
  122. geom_signif(y_position = c(-230), xmin = c(1.9), xmax = c(2.1), annotation = c("***"), tip_length = -0.002, size = 1.4, textsize = 9, vjust = 1.7) +
  123. geom_signif(y_position = c(-280), xmin = c(1.65), xmax = c(2.35), annotation = c("*"), tip_length = -0.002, size = 1.4, textsize = 9, vjust = 1.7)
  124. # Combine the two plots side by side and print
  125. combined_plot <- plots[[1]] + plots[[2]] + plot_layout(ncol = 2)
  126. print(combined_plot)

ROI_analysis.R, no license · at the source

Overview

  1. Centre for Brain Research Jagiellonian University Kraków Poland
  2. Doctoral School in the Social Sciences Jagiellonian University Kraków Poland
Institutions: Jagiellonian University (Poland)
Journal: Human brain mapping, volume 47, issue 5, article e70522
Dates: received 22 October 2025; accepted 26 March 2026; published online 9 April 2026; in print April 2026
Type: Research article · Language: English
License: CC BY-NC
Identifiers: DOI 10.1002/hbm.70522 · PMID 41954041 · PMCID PMC13063118 · OpenAlex W7152618435
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), cognitive (subfield)
Methods: Connectivity, Statistics, Preprocessing, fMRI & imaging
Keywords: classic psychedelics, emotional reactivity, emotions, fMRI, long‐term effects, naturalistic use
MeSH: Cerebral Cortex*, Emotions*, Facial Recognition*, Hallucinogens*, Adult, Cross-Sectional Studies, Facial Expression, Female, Humans, Magnetic Resonance Imaging, Male, Young Adult (* major topic)
Topic: Psychedelics and Drug Studies (Clinical Psychology, Psychology), according to OpenAlex
Funding: Narodowe Centrum Nauki (2020/39/O/HS6/01545)
Citations: not cited yet (Europe PMC); 50 references in the paper

Abstract

Classic psychedelics profoundly alter emotional states, inducing intense acute experiences lasting hours, followed by subtler, longer‐lasting changes in emotional reactivity that can persist for weeks. While experimental and clinical studies document these prolonged effects, the highly context‐dependent nature of psychedelic experiences leaves open the question of whether naturalistic, nonclinical use similarly modulates emotional processing. To investigate this, we conducted a preregistered, cross‐sectional fMRI study comparing experienced psychedelic users (≥ 10 lifetime uses; N = 33) with closely matched nonusers (N = 34). Participants performed an emotional face recognition task, and we examined behavioral performance and neural responses to angry, happy, and fearful facial expressions. Behavioral results revealed that psychedelic users recognized angry expressions more quickly and accurately, indicating enhanced processing efficiency for threat‐related stimuli. Consistent with this, whole‐brain fMRI analyses showed reduced activation to anger in key limbic and salience network regions. Psychedelic users also exhibited heightened responses to happy expressions in parietal and sensorimotor cortices—aligning with prior clinical observations—as well as increased precuneus activation to fearful expressions. Region‐of‐interest analyses further demonstrated reduced differentiation between emotional categories in two default mode network nodes: the frontal medial cortex and parahippocampal gyrus. These findings provide a nuanced characterization of neurofunctional changes in emotional processing linked to repeated naturalistic psychedelic use. By bridging clinical and real‐world contexts, this work deepens our understanding of the potential long‐term consequences of psychedelics and complements existing evidence from controlled therapeutic settings.

Reproduced under the paper's license (CC BY-NC), 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 46gmu

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Languages: R (1)
Size: 9 files, 1 script
Software Heritage: not checked
Found in: “Data Availability Statement”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: afex (1 file), emmeans (1 file), ggplot2 (1 file), ggpubr (1 file), patchwork (1 file), rstatix (1 file), tidyverse (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
1 file
At the source: osf.io/46gmu

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;
  • 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.

Data Availability Statement

The statistical models of the whole‐brain analysis as well as the data and scripts used for the ROI analyses are accessible in the OSF repository (https://osf.io/46gmu). Data from earlier stages of the analysis is available from the corresponding author upon reasonable request.

Reproduced under the paper's license (CC BY-NC), 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, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 3 authors, 6 keywords, 12 MeSH terms, 1 funder, 46 references.

Cite

This paper

Orłowski, P., Domagalik, A., & Bola, M. (2026). Investigating Emotional Reactivity in Experienced Users of Psychedelics: A Cross-Sectional fMRI Study. Human brain mapping, 47(5), e70522. https://doi.org/10.1002/hbm.70522

BibTeX

@article{orowski2026investigating,
author = {Orłowski, Paweł and Domagalik, Aleksandra and Bola, Michał},
title = {{Investigating Emotional Reactivity in Experienced Users of Psychedelics: A Cross-Sectional fMRI Study}},
journal = {Human brain mapping},
year = {2026},
month = apr,
volume = {47},
number = {5},
pages = {e70522},
publisher = {Wiley},
issn = {1065-9471},
doi = {10.1002/hbm.70522},
url = {https://doi.org/10.1002/hbm.70522},
pmid = {41954041},
pmcid = {PMC13063118}
}

RIS

TY - JOUR
AU - Orłowski, Paweł
AU - Domagalik, Aleksandra
AU - Bola, Michał
TI - Investigating Emotional Reactivity in Experienced Users of Psychedelics: A Cross-Sectional fMRI Study
T2 - Human brain mapping
J2 - Hum Brain Mapp
PY - 2026
DA - 2026/04/01
VL - 47
IS - 5
SP - e70522
SN - 1065-9471
PB - Wiley
DO - 10.1002/hbm.70522
UR - https://doi.org/10.1002/hbm.70522
LA - en
ER -

CSL-JSON

{
"id": "10.1002/hbm.70522",
"type": "article-journal",
"title": "Investigating Emotional Reactivity in Experienced Users of Psychedelics: A Cross-Sectional fMRI Study",
"container-title": "Human brain mapping",
"author": [
{
"family": "Orłowski",
"given": "Paweł"
},
{
"family": "Domagalik",
"given": "Aleksandra"
},
{
"family": "Bola",
"given": "Michał"
}
],
"container-title-short": "Hum Brain Mapp",
"volume": "47",
"issue": "5",
"page": "e70522",
"DOI": "10.1002/hbm.70522",
"PMID": "41954041",
"PMCID": "PMC13063118",
"ISSN": "1065-9471",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/hbm.70522",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
1
]
]
}
}

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.1073/pnas.2603114123 [code]
The human hippocampus can pattern separate memories by meaning.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: afex, rstatix, emmeans, 4 other tools, cognitive, 1 reference
[2] doi:10.1093/sleep/zsag030 [code]
Divergent disruption of brain networks following total and chronic sleep loss: a longitudinal fMRI study.
Journal: Sleep
In common: fMRI, 4 references, author Aleksandra Domagalik
[3] doi:10.1126/sciadv.aec9291 [code]
Computational mechanisms of perception in autism revealed using games inspired by rodent operant tasks.
Journal: Science advances
In common: afex, rstatix, emmeans, 4 other tools, cognitive
[4] doi:10.1192/bjp.2026.10664 [code]
Early effects of a novel 5-HT&lt;sub&gt;4&lt;/sub&gt;R agonist (PF-04995274) and the SSRI citalopram on emotional cognition in unmedicated depression: RESTAND study.
Journal: The British journal of psychiatry : the journal of mental science
In common: afex, rstatix, emmeans, 4 other tools, cognitive
[5] doi:10.1093/nc/niag044 [code]
Aquahenosis: a non-pharmacological altered state of consciousness induced by floatation-REST in individuals with anxiety and depression.
Journal: Neuroscience of consciousness
In common: rstatix, ggpubr, tidyverse, cognitive, 4 references
[6] doi:10.1162/imag.a.1313 [code]
Functional specialization of angular gyrus and precuneus subregions for perspective-guided autobiographical memory retrieval.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: afex, emmeans, ggpubr, 3 other tools, cognitive, 1 reference
[7] doi:10.1038/s41398-026-04141-z [code]
Effects on hippocampal activity following novel 5-HT4 receptor agonism in unmedicated patients with depression: the RESTAND study.
Journal: Translational psychiatry
In common: afex, rstatix, emmeans, 4 other tools
[8] doi:10.3389/fnhum.2026.1874178
Longitudinal neural and psychological changes following psilocybin under compassion imagery priming.
Journal: Frontiers in human neuroscience
In common: fMRI, cognitive, 6 references
[9] doi:10.1093/braincomms/fcag255 [code]
Impaired consolidation of spatial memory during sleep in patients with leucine-rich glioma-inactivated 1-associated limbic encephalitis.
Journal: Brain communications
In common: afex, rstatix, emmeans, 3 other tools, cognitive
[10] doi:10.1371/journal.pone.0353990 [code]
Positive mood enhances accessibility of unrelated concepts in the first language but not in the foreign language.
Journal: PloS one
In common: afex, emmeans, ggpubr, 3 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.

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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

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