OSCR

Psilocybin shapes the slow, global propagation of brain activity over the cortical layout of 5HT2a receptors.

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 · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Cortical gradients ↔ run_gradients.m, the whole file · a weak match · score 0.74 · BrainSpace, diffusion embedding, gradient score, alignment, Schaefer, components · 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

MATLAB · 150 lines · 4.7 KB · other · 1 match

  1. % addpath BrainSpace toolbox to path
  2. % Schaefer parcellation file should be on path
  3. load conn_Schaef
  4. [surf_lh, surf_rh] = load_conte69();
  5. parcelSch=ft_read_cifti('Schaefer2018_200Parcels_7Networks_order.dlabel.nii');
  6. labeling = parcelSch.parcels(1:64984);
  7. % All_subjects
  8. cont1 = 1;
  9. cont2 = 1;
  10. cont3 = 1;
  11. cont4 = 1;
  12. cont5 = 1;
  13. for i =1:size(connAll,1)
  14. Mx_z_sparse = squeeze(connAll(i,1,:,:));
  15. symmetric_matrix = Mx_z_sparse + Mx_z_sparse';
  16. symmetric_matrix(eye(size(symmetric_matrix)) == 1) = 0;
  17. non_zero_indices = any(symmetric_matrix, 2);
  18. filtered_matrix = symmetric_matrix(non_zero_indices, non_zero_indices);
  19. % Normalize each row of the filtered matrix
  20. if ~isempty(filtered_matrix)
  21. norms = sqrt(sum(filtered_matrix.^2, 2));
  22. normalized_matrix = filtered_matrix ./ norms;
  23. connmatrixAll_B1{cont1} = normalized_matrix;
  24. cont1 = cont1 + 1;
  25. end
  26. clear normalized_matrix
  27. Mx_z_sparse = squeeze(connAll(i,2,:,:));
  28. symmetric_matrix = Mx_z_sparse + Mx_z_sparse';
  29. symmetric_matrix(eye(size(symmetric_matrix)) == 1) = 0;
  30. non_zero_indices = any(symmetric_matrix, 2);
  31. filtered_matrix = symmetric_matrix(non_zero_indices, non_zero_indices);
  32. % Normalize each row of the filtered matrix
  33. if ~isempty(filtered_matrix)
  34. norms = sqrt(sum(filtered_matrix.^2, 2));
  35. normalized_matrix = filtered_matrix ./ norms;
  36. connmatrixAll_B2{cont2} = normalized_matrix;
  37. cont2 = cont2 + 1;
  38. end
  39. clear normalized_matrix
  40. Mx_z_sparse = squeeze(connAll(i,3,:,:));
  41. symmetric_matrix = Mx_z_sparse + Mx_z_sparse';
  42. symmetric_matrix(eye(size(symmetric_matrix)) == 1) = 0;
  43. non_zero_indices = any(symmetric_matrix, 2);
  44. filtered_matrix = symmetric_matrix(non_zero_indices, non_zero_indices);
  45. if ~isempty(filtered_matrix) % Check if there are non-zero rows/columns
  46. norms = sqrt(sum(filtered_matrix.^2, 2));
  47. normalized_matrix = filtered_matrix ./ norms;
  48. connmatrixAll_B3{cont3} = normalized_matrix;
  49. cont3 = cont3 + 1;
  50. end
  51. clear normalized_matrix
  52. Mx_z_sparse = squeeze(connAll(i,4,:,:));
  53. symmetric_matrix = Mx_z_sparse + Mx_z_sparse';
  54. symmetric_matrix(eye(size(symmetric_matrix)) == 1) = 0;
  55. non_zero_indices = any(symmetric_matrix, 2);
  56. filtered_matrix = symmetric_matrix(non_zero_indices, non_zero_indices);
  57. if ~isempty(filtered_matrix) % Check if there are non-zero rows/columns
  58. norms = sqrt(sum(filtered_matrix.^2, 2));
  59. normalized_matrix = filtered_matrix ./ norms;
  60. connmatrixAll_D{cont4} = normalized_matrix;
  61. cont4 = cont4 + 1;
  62. end
  63. clear normalized_matrix
  64. Mx_z_sparse = squeeze(connAll(i,5,:,:));
  65. symmetric_matrix = Mx_z_sparse + Mx_z_sparse';
  66. symmetric_matrix(eye(size(symmetric_matrix)) == 1) = 0;
  67. non_zero_indices = any(symmetric_matrix, 2);
  68. filtered_matrix = symmetric_matrix(non_zero_indices, non_zero_indices);
  69. if ~isempty(filtered_matrix) % Check if there are non-zero rows/columns
  70. norms = sqrt(sum(filtered_matrix.^2, 2));
  71. normalized_matrix = filtered_matrix ./ norms;
  72. connmatrixAll_M{cont5} = normalized_matrix;
  73. cont5 = cont5 + 1;;
  74. end
  75. clear normalized_matrix
  76. end
  77. Gp = GradientMaps('kernel','cs','approach','diffusionEmbedding','alignment','pa','n_components',5);
  78. % Calculate gradient scores
  79. Gp = Gp.fit(connmatrixAll_B1);
  80. for i= 1:11
  81. pg0(i,:)=Gp.aligned{i}(:,1);
  82. end
  83. Gp = Gp.fit(connmatrixAll_B2);
  84. for i= 1:7
  85. pg(i,:)=Gp.aligned{i}(:,1);
  86. end
  87. Gp = Gp.fit(connmatrixAll_B3);
  88. for i= 1:7
  89. pg2(i,:)=Gp.aligned{i}(:,1);
  90. end
  91. Gp = Gp.fit(connmatrixAll_D);
  92. for i= 1:11
  93. pgPSI(i,:)=Gp.aligned{i}(:,1);
  94. end
  95. Gp = Gp.fit(connmatrixAll_M);
  96. for i= 1:11
  97. pgMET(i,:)=Gp.aligned{i}(:,1);
  98. end
  99. plot_hemispheres([nanmean([-pg; -pg0;pg2]); nanmean(-pgMET); nanmean(pgPSI)]', ...
  100. {surf_lh,surf_rh},'parcellation',labeling, ...
  101. 'labeltext',{'PLCB','MET','PSI'});
  102. % Calculate gradient score difference
  103. Gp = Gp.fit(connmatrixAll_B1);
  104. for i = 1:length(connmatrixAll_B1)
  105. scoredif0(i) = max(Gp.aligned{i}(:,1))-min(Gp.aligned{i}(:,1));
  106. end
  107. Gp = Gp.fit(connmatrixAll_B2);
  108. for i = 1:length(connmatrixAll_B2)
  109. scoredif(i) = max(Gp.aligned{i}(:,1))-min(Gp.aligned{i}(:,1));
  110. end
  111. Gp = Gp.fit(connmatrixAll_B3);
  112. for i = 1:length(connmatrixAll_B3)
  113. scoredif2(i) = max(Gp.aligned{i}(:,1))-min(Gp.aligned{i}(:,1));
  114. end
  115. Gp = Gp.fit(connmatrixAll_D);
  116. for i = 1:length(connmatrixAll_D)
  117. scoredifPSI(i) = max(Gp.aligned{i}(:,1))-min(Gp.aligned{i}(:,1));
  118. end
  119. Gp = Gp.fit(connmatrixAll_M);
  120. for i = 1:length(connmatrixAll_M)
  121. scoredifMET(i) = max(Gp.aligned{i}(:,1))-min(Gp.aligned{i}(:,1));
  122. end

run_gradients.m at commit 78a1477, under other · at the source

Overview

  1. Division of Mental Health and Addiction, Oslo University Hospital, Oslo, Norway
Institutions: Oslo University Hospital (Norway)
Journal: Communications biology, volume 9, issue 1, article 672
Dates: received 2 January 2026; accepted 12 March 2026; published online 26 March 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s42003-026-09912-4 · PMID 41882058 · PMCID PMC13183898 · OpenAlex W7140297251
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: fMRI (modality), human (organism), cellular / molecular (subfield)
Methods: Statistics, Preprocessing, Machine learning
Keywords: Consciousness, Neurophysiology
MeSH: Brain*, Hallucinogens*, Psilocybin*, Receptor, Serotonin, 5-HT2A*, Brain Mapping, Humans, Magnetic Resonance Imaging, Serotonin 5-HT2 Receptor Agonists (* major topic)
Topic: Psychedelics and Drug Studies (Clinical Psychology, Psychology), according to OpenAlex
Citations: cited by 2 papers (Europe PMC); 75 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

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

Zenodo 18933134

License: CC-BY-4.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FieldTrip (3 files), Statistics and Machine Learning Toolbox (3 files), BrainSpace (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers (HTTP 200)
  • 30 September 2026: the link answers (HTTP 200)
6 files
At the source:

veronicamaki-marttunen/psilocybin-shapes-propagation-of-brain-activity

License: other
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 78a14774c72610b058a2616d9e1fe4c05dc5306d, 22 September 2026
Languages: MATLAB (4)
Size: 6 files, 4 scripts
Software Heritage: not archived
Found in: the Zenodo archive record
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: FieldTrip (3 files), Statistics and Machine Learning Toolbox (3 files), BrainSpace (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
6 files

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s42003-026-09912-4.

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:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 8 scripts, 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

Datasets cited

Code and data availability statement

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

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s42003-026-09912-4.

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, issue, pages, dates, 1 author, 2 keywords, 8 MeSH terms, 74 references.

Cite

This paper

Mäki-Marttunen, V. (2026). Psilocybin shapes the slow, global propagation of brain activity over the cortical layout of 5HT2a receptors. Communications biology, 9(1), 672. https://doi.org/10.1038/s42003-026-09912-4

BibTeX

@article{makimarttunen2026psilocybin,
author = {Mäki-Marttunen, Verónica},
title = {{Psilocybin shapes the slow, global propagation of brain activity over the cortical layout of 5HT2a receptors}},
journal = {Communications biology},
year = {2026},
month = mar,
volume = {9},
number = {1},
pages = {672},
publisher = {Nature Publishing Group},
issn = {2399-3642},
doi = {10.1038/s42003-026-09912-4},
url = {https://doi.org/10.1038/s42003-026-09912-4},
pmid = {41882058},
pmcid = {PMC13183898}
}

RIS

TY - JOUR
AU - Mäki-Marttunen, Verónica
TI - Psilocybin shapes the slow, global propagation of brain activity over the cortical layout of 5HT2a receptors
T2 - Communications biology
J2 - Commun Biol
PY - 2026
DA - 2026/03/26
VL - 9
IS - 1
SP - 672
SN - 2399-3642
PB - Nature Publishing Group
DO - 10.1038/s42003-026-09912-4
UR - https://doi.org/10.1038/s42003-026-09912-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s42003-026-09912-4",
"type": "article-journal",
"title": "Psilocybin shapes the slow, global propagation of brain activity over the cortical layout of 5HT2a receptors",
"container-title": "Communications biology",
"author": [
{
"family": "Mäki-Marttunen",
"given": "Verónica"
}
],
"container-title-short": "Commun Biol",
"volume": "9",
"issue": "1",
"page": "672",
"DOI": "10.1038/s42003-026-09912-4",
"PMID": "41882058",
"PMCID": "PMC13183898",
"ISSN": "2399-3642",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s42003-026-09912-4",
"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.1073/pnas.2218949120 [code]
Human brain effects of DMT assessed via EEG-fMRI.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: BrainSpace, FieldTrip, Statistics and Machine Learning Toolbox, fMRI, 14 references
[2] doi:10.1038/s41380-026-03447-0 [code]
Spatiotemporal mapping of brain organisation following the administration of 2C-B and psilocybin.
Journal: Molecular psychiatry
In common: 14 references
[3] doi:10.1162/imag_a_00420
LSD flattens the hierarchy of directed information flow in fast whole-brain dynamics.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 14 references
[4] doi:10.1038/s42003-025-08078-9 [code]
Network control energy reductions under DMT relate to serotonin receptors, signal diversity, and subjective experience.
Journal: Communications biology
In common: FieldTrip, Statistics and Machine Learning Toolbox, cellular / molecular, 12 references
[5] doi:10.1038/s41591-026-04287-9 [code]
An international mega-analysis of psychedelic drug effects on brain circuit function.
Journal: Nature medicine
In common: fMRI, 12 references
[6] doi:10.1038/s41467-022-33578-1 [code]
Receptor-informed network control theory links LSD and psilocybin to a flattening of the brain's control energy landscape.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, fMRI, 12 references
[7] doi:10.1038/s42003-025-07576-0 [code]
Transient destabilization of whole brain dynamics induced by N,N-Dimethyltryptamine (DMT).
Journal: Communications biology
In common: 12 references
[8] doi:10.1038/s41586-026-10910-z [code]
Psychedelics align brain activity with context.
Journal: Nature
In common: BrainSpace, FieldTrip, Statistics and Machine Learning Toolbox, fMRI, 9 references
[9] doi:10.1126/sciadv.adf8332 [code]
In vivo mapping of pharmacologically induced functional reorganization onto the human brain's neurotransmitter landscape.
Journal: Science advances
In common: cellular / molecular, 12 references
[10] doi:10.1038/s41467-026-74215-5 [code]
Multi-metric evaluations of acute psychedelic effects on fMRI brain entropy.
Journal: Nature communications
In common: Statistics and Machine Learning Toolbox, fMRI, 10 references

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.1038/s42003-026-09912-4.svg)](https://openscicode.org/badge/doi/10.1038/s42003-026-09912-4)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s42003-026-09912-4.svg
   :target: https://openscicode.org/badge/doi/10.1038/s42003-026-09912-4
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s42003-026-09912-4"><img src="https://openscicode.org/badge/doi/10.1038/s42003-026-09912-4.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

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)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

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