Deviations in effective connectivity explain different hallucination subtypes in Parkinson's disease psychosis.
5 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 6 matches · 2 of them tie a paragraph to a whole file without given lines: weak matches, whose lines are not tinted
- [1] § Methods › Exploratory receptor binding atlases and MMN source-reconstructed signal analysis ↔ eeg-pet_extracting.m, the whole file · a weak match · score 0.89 · NIfTI, receptor density, MMN maps, PET map, alignment, imcalc · block
oscr:b:ETA9EEJ6H6EAY-P· Report a mismatch - [2] § Methods › Statistical analysis › Linear regressions and LMM for exploratory receptor binding atlases and MMN source-reconstructed signal analysis ↔ eeg-pet_extracting.m, the whole file · a weak match · score 0.69 · NIfTI, receptor density, variable, regional, atlas, MMN · block
oscr:b:ETA9EEJ6H6EAY-P· Report a mismatch - [3] § Methods › Statistical analysis › Leave one out multiple regression models by hallucination subtype ↔ loocvd-regress_example.r, lines 1 to 45 · score 0.63 · cross validation, complex VH, regression, predicting, severity, connection · block
oscr:b:726TE3V04B8BB-X· Report a mismatch - [4] § Methods › Statistical analysis › Second-level analysis with PEB ↔ pdp_peb_recursive_final_Bmatexample.m, lines 127 to 139 · score 0.56 · spm_dcm_peb, winning model, bmr · block
oscr:b:VZ65Z52B97T98-T· Report a mismatch - [5] § Results › vMMN differences correlate with decreased top-down connectivity in PD-VH ↔ pdp_peb_recursive_final_Bmatexample.m, lines 1 to 43 · score 0.51 · parametrical empirical, Recursive PEB, connected · block
oscr:b:XF197XQKHC62V-C· Report a mismatch - [6] § Methods › Statistical analysis › Second-level analysis with PEB ↔ pdp_peb_recursive_final_Bmatexample.m, lines 100 to 124 · score 0.51 · free energy, recursive PEB, model · block
oscr:b:4RXJQTGPD0KM6-B· 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 · 143 lines · 4.7 KB · no license · 3 matches
- %--------------------------------------------------------------------------
- % SECOND-LEVEL ANALYSIS: PARAMETRICAL EMPIRICAL BAYES PEB
- %--------------------------------------------------------------------------
- clear all;
- %--------------------------------------------------------------------------
- % Setup a group DCM
- %-------------------------------------------------------------------------
- % Select all DCM files
- dcms = spm_select ();
- %if cannot find headmodel give path:
- %headmodel = ft_read_headmodel ('/PATH/single_subj_T1_EEG_BEM.mat');
- % turn character array in cell array
- GCM = cellstr ( dcms );
- % DCM filenames -> DCM structures
- GCM = spm_dcm_load (GCM);
- %--------------------------------------------------------------------------
- %if needed load GCM and dm
- load('design_matrix3.mat');
- load('GCM_full3.mat');
- %--------------------------------------------------------------------------
- % Setup of the design matrix
- %--------------------------------------------------------------------------
- %M.Q - choice of precision components: all', the between-subject
- %variability for each DCM connection will be individually estimated.
- M = struct ();
- M.Q = 'all ';
- M.X = X;
- M. Xnames = X_labels;
- %--------------------------------------------------------------------------
- %________________________________ RECURSIVE PEB __________________________%
- %________________________________ MATRIX B _______________________________%
- %--------------------------------------------------------------------------
- clear C PEB F Ep labels fam_idx families
- %% basics for recursive peb
- C_fwd = {'B{1}(3,1)','B{1}(4,2)','B{1}(5,3)','B{1}(6,4)','B{1}(5,1)','B{1}(6,2)'}; % forward conns
- C_bwd = {'B{1}(1,3)','B{1}(2,4)','B{1}(3,5)','B{1}(4,6)','B{1}(1,5)','B{1}(2,6)'}; % backward conns
- C_self = {'B{1}(1,1)','B{1}(2,2)','B{1}(3,3)','B{1}(4,4)','B{1}(5,5)','B{1}(6,6)'}; % self conns (diagonal elements)
- C_lateral = {'B{1}(1,2)','B{1}(2,1)','B{1}(3,4)','B{1}(4,3)','B{1}(5,6)','B{1}(6,5)'}; %lateral/crosshemi
- %% --- Parameter groups definitions (names + sets; no lateral) ---
- %% comment in and out whatever you want, this system does not have issues
- % with N of models used and labels like the previous version
- families = {
- 'B(full extrinsic+self)', [C_fwd, C_bwd, C_self]
- 'B(full)', [C_fwd, C_bwd]
- 'B(forward)', C_fwd
- 'B(backward)', C_bwd
- 'B(forward+self)', [C_fwd, C_self]
- 'B(backward+self)', [C_bwd, C_self]
- 'B(self)', C_self
- 'B(forward+s)', [C_fwd, {'S'}]
- 'B(back+s)', [C_bwd, {'S'}]
- % 'B (cross-hemi)', C_lateral
- 'B(bwd)+G', [[C_bwd], {'S'}]
- 'B(fwd)+G', [[C_fwd], {'S'}]
- 'B(full)+G', [[C_fwd, C_bwd], {'S'}]
- % 'S', {'S'}
- 'G', {'G'}
- 'T', {'T'}
- % 'G+S', {'G','S'}
- };
- K = size(families,1);
- % Normalise labels to a 1xK cell array of char
- raw_labels = families(:,1); % Kx1 (cell or string)
- if isstring(raw_labels) % string array -> cellstr
- labels = cellstr(raw_labels);
- elseif iscell(raw_labels)
- labels = raw_labels;
- else % char array fallback
- labels = cellstr(raw_labels);
- end
- labels = labels(:)';
- %% --- Run PEB for each family ---
- F = nan(K,1);
- PEB = cell(K,1);
- for k = 1:K
- Cset = families{k,2};
- PEB{k} = spm_dcm_peb(GCM, M, Cset);
- F(k) = PEB{k}.F;
- end
- %% --- Winner and plots (Free Energy: bigger is better) ---
- [~, order] = sort(F,'descend');
- best_idx = order(1); second_idx = order(2);
- dF = F(best_idx) - F(second_idx);
- save ('/..../recursive_PEB.mat','PEB');
- figure;
- % Panel 1: ΔF (winner at 0)
- subplot(2,1,1);
- bar(F - max(F));
- ylabel('\DeltaF (model - best)');
- title(sprintf('Family BMC: winner = %s, \\DeltaF_{best-second}=%.2f', ...
- labels{best_idx}, F(best_idx)-F(order(2)))); % <-- single { }
- set(gca,'XTick',1:K,'XTickLabel',labels); xtickangle(45);
- % Panel 2: softmax posteriors
- model_post = spm_softmax(F - max(F));
- subplot(2,1,2);
- bar(model_post);
- ylabel('Model posterior (approx.)');
- title('Family posteriors from Free Energy');
- set(gca,'XTick',1:K,'XTickLabel',labels); xtickangle(45);
- set(gcf,'color','w');
- %% Repeat PEB in the winning model and run BMR
- %--------------------------------------------------------------------------
- [REB, RCM] = spm_dcm_peb(GCM,M, MODEL);
- RMA = spm_dcm_peb_bmc(REB);
- spm_dcm_peb_review (RMA ,GCM);
- % example for other type of model, like second best
- [REB, RCM] = spm_dcm_peb(GCM,M, {'B(full)'});
- RMA = spm_dcm_peb_bmc(REB);
- spm_dcm_peb_review (RMA ,GCM);
pdp_peb_recursive_final_Bmatexample.m at commit e66cacd, no license · at the source
Overview
- Centre for Neuroimaging Sciences, Institute of Psychiatry, Psychology and Neuroscience, King’s College London, London, UK
- Institute of Psychiatry, Psychology and Neuroscience, King’s College London, London, UK
- Department of Psychology, University of Southampton, Southampton, UK
- Department of Psychology, University of Exeter, Exeter, UK
- Department of Clinical Neurosciences, Herchel Smith Building, University of Cambridge, Cambridge, UK
- University of London, London, UK
- Imperial College London, Faculty of Medicine, Department of Brain Sciences, The Hammersmith Hospital, London, UK
- Parkinson Foundation Centre of Excellence, King’s College Hospital NHS Foundation Trust, London, UK
- Fondazione IRCCS Istituto Neurologico Carlo Besta, Department of Clinical Neurosciences, Parkinson and Movement Disorders Unit, Milan, Italy
- John Van Geest Centre for Brain Repair, Department of Clinical Neurosciences, University of Cambridge/Cambridge University Hospitals NHS Foundation Trust, Cambridge, UK
Abstract
Psychosis and visual hallucinations (VH) in Parkinson’s disease (PD) substantially impact patient outcomes, yet the underlying neural mechanisms remain unclear, limiting effective treatments. Here we used dynamic causal modeling to leverage the fast temporal dynamics captured with electroencephalography data during a visual mismatch negativity task in people with PD with (N = 20) and without (N = 18) VH to examine effective connectivity. We found reduced top-down and enhanced bottom-up connectivity in ventral visual and prefrontal regions during task performance in PD-VH, suggesting deficits in sensory prediction updating and an overreliance on visual input. Connectivity patterns differed with hallucination complexity, with complex VH being associated with altered top-down and bottom-up right-hemisphere connectivity, and multimodal hallucinations to more widespread bilateral disruption. Increased task activity, as computed with source reconstruction, correlated positively with normative serotonergic 5-HT2A receptor distribution. These findings highlight specific neural targets for early therapeutic interventions, supporting a transdiagnostic computational architecture of hallucinations.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
VMiri/visual-MMN-DCM-
e66cacd71aaa880e0cd8ba74b8926ca369522c40, 3 June 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
5 files
- brainsmash_code.py, Python, 75 lines
- eeg-pet_extracting.m, MATLAB, 134 lines, 2 matches
- loocvd-regress_example.r
, R, 118 lines, 1 match - pdp_peb_recursive_final_
Bmatexample.m , MATLAB, 143 lines, 3 matches - README.md, Text, 19 lines
OSF umd89
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
3 files
- DCM article code/
brainsmash_code (1).py , Python, 75 lines - DCM article code/
eeg-pet_extracting (1).m , MATLAB, 134 lines - DCM article code/
loocvd-regress_example (1).r , R, 118 lines
Code availability
All the code used in the study is available via GitHub at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 7 scripts, each with its path and the digest of its content;
- 6 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 data supporting the analyses presented in the main text is openly available from the King’s College London research data repository, KORDS, at 10.18742/
All the code used in the study is available via GitHub at https://
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 2, 28 September 2026
- Publisher: n/a → Springer Science+Business Media
- Funding: added National Institute for Health and Care Research: (NIHR203312; Department of Health and Social Care; King's College London; University College London; Alzheimer’s Research UK: ARUK-RF2022B-002; NIHR Maudsley Biomedical Research Centre; Medical Research Council: MR/R005931/1, NIHR203312, MR/W029235/1; NIHR Cambridge Biomedical Research Centre: NIHR 203312
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 13 authors, 3 keywords, 78 references.
Cite
This paper
Vignando, M., Ffytche, D., Mazibuko, N., Palma, G., Bhat, A., Montagnese, M., Dave, S., Tai, Y. F., Batzu, L., Leta, V., Chaudhuri, K. R., Williams Gray, C. H., & Mehta, M. A. (2026). Deviations in effective connectivity explain different hallucination subtypes in Parkinson's disease psychosis. Nature. Mental health, 4(6), 994-1009. https://
BibTeX
@article{vignando2026dev
author = {Vignando, Miriam and Ffytche, Dominic and Mazibuko, Ndabezinhle and Palma, Giulio and Bhat, Anjali and Montagnese, Marcella and Dave, Sonali and Tai, Yen F and Batzu, Lucia and Leta, Valentina and Chaudhuri, K Ray and Williams Gray, Caroline H and Mehta, Mitul A},
title = {{Deviations in effective connectivity explain different hallucination subtypes in Parkinson's disease psychosis}},
journal = {Nature. Mental health},
year = {2026},
month = jun,
volume = {4},
number = {6},
pages = {994--1009},
publisher = {Springer Science+Business Media},
issn = {2731-6076},
doi = {10.1038/
url = {https://
pmid = {42291779},
pmcid = {PMC13259922}
}
RIS
TY - JOUR
AU - Vignando, Miriam
AU - Ffytche, Dominic
AU - Mazibuko, Ndabezinhle
AU - Palma, Giulio
AU - Bhat, Anjali
AU - Montagnese, Marcella
AU - Dave, Sonali
AU - Tai, Yen F
AU - Batzu, Lucia
AU - Leta, Valentina
AU - Chaudhuri, K Ray
AU - Williams Gray, Caroline H
AU - Mehta, Mitul A
TI - Deviations in effective connectivity explain different hallucination subtypes in Parkinson's disease psychosis
T2 - Nature. Mental health
J2 - Nat Ment Health
PY - 2026
DA - 2026/
VL - 4
IS - 6
SP - 994
EP - 1009
SN - 2731-6076
PB - Springer Science+Business Media
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Deviations in effective connectivity explain different hallucination subtypes in Parkinson's disease psychosis",
"container-title": "Nature. Mental health",
"author": [
{
"family": "Vignando",
"given": "Miriam"
},
{
"family": "Ffytche",
"given": "Dominic"
},
{
"family": "Mazibuko",
"given": "Ndabezinhle"
},
{
"family": "Palma",
"given": "Giulio"
},
{
"family": "Bhat",
"given": "Anjali"
},
{
"family": "Montagnese",
"given": "Marcella"
},
{
"family": "Dave",
"given": "Sonali"
},
{
"family": "Tai",
"given": "Yen F"
},
{
"family": "Batzu",
"given": "Lucia"
},
{
"family": "Leta",
"given": "Valentina"
},
{
"family": "Chaudhuri",
"given": "K Ray"
},
{
"family": "Williams Gray",
"given": "Caroline H"
},
{
"family": "Mehta",
"given": "Mitul A"
}
],
"container-title-short":
"volume": "4",
"issue": "6",
"page": "994-1009",
"DOI": "10.1038/
"PMID": "42291779",
"PMCID": "PMC13259922",
"ISSN": "2731-6076",
"publisher": "Springer Science+Business Media",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
10
]
]
}
}
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.21203/rs.3.rs-6627999/v1 [code]
- Anomalies in effective connectivity explain different hallucination subtypes in Parkinson’s disease psychosisJournal: Research Square (preprint)In common: schizophrenia / psychosis, Parkinson's, EEG, 39 references, 3 authors
- [2] doi:10.1093/braincomms/fcae291 [code]
- Visual mismatch negativity in Parkinson's psychosis and potential for testing treatment mechanisms.Journal: Brain communicationsIn common: schizophrenia / psychosis, Parkinson's, EEG, 18 references, 3 authors
- [3] doi:10.1038/s41467-022-28087-0
- Mapping brain structural differences and neuroreceptor correlates in Parkinson's disease visual hallucinations.Journal: Nature communicationsIn common: schizophrenia / psychosis, Parkinson's, 13 references, 3 authors
- [4] doi:10.1093/braincomms/fcaf185 [code]
- Disrupted functional brain network associated with presence of hallucinations in Parkinson's disease.Journal: Brain communicationsIn common: ggplot2, tidyverse, schizophrenia / psychosis, Parkinson's, 11 references, author Marcella Montagnese
- [5] doi:10.3390/brainsci13081173
- Visual Dysfunction in Parkinson's Disease.Journal: Brain sciencesIn common: Parkinson's, 11 references
- [6] doi:10.1038/s41593-022-01186-3 [code]
- Mapping neurotransmitter systems to the structural and functional organization of the human neocortex.Journal: Nature neuroscienceIn common: BrainSMASH, NiBabel, SciPy, 1 other tool, computational, 9 references
- [7] doi:10.1038/s42003-024-06361-9 [code]
- Neural correlates of obesity across the lifespan.Journal: Communications biologyIn common: NiBabel, ggplot2, tidyverse, 2 other tools, 9 references
- [8] doi:10.1038/s42003-026-09560-8 [code]
- Controlling the human connectome with spatially diffuse input signals.Journal: Communications biologyIn common: BrainSMASH, NiBabel, SciPy, 1 other tool, computational, 8 references
- [9] doi:10.1038/s41467-023-38585-4 [code]
- Assortative mixing in micro-architecturally annotated brain connectomes.Journal: Nature communicationsIn common: BrainSMASH, NiBabel, SciPy, 1 other tool, 9 references
- [10] doi:10.1038/s42003-024-07404-x [code]
- mFusion: a multiscale fusion method bridging neuroimages to genes through neurotransmissions in mental health disorders.Journal: Communications biologyIn common: SPM, ggplot2, tidyverse, 9 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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 7 scripts, and 6 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:9dc938c801105fee…
Add the badge to the code's README
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 -->
[](https://openscicode.org/badge/doi/10.1038/s44220-026-00669-7)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s44220-026-00669-7.svg
:target: https://openscicode.org/badge/doi/10.1038/s44220-026-00669-7
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s44220-026-00669-7"><img src="https://openscicode.org/badge/doi/10.1038/s44220-026-00669-7.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.
