OSCR

Biochemical and brain heterogeneity characterizes psychiatric and non-psychiatric illness.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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 · 69 lines · 2 KB · no license

  1. # GAMLSS Z-score Calculation Script for Biochemical Data (SHASH Distribution)
  2. # Author: Maria Di Biase
  3. # Description: This script fits a GAMLSS model using the SHASH distribution
  4. # and computes z-scores for all subjects in the dataset based on predicted
  5. # distribution parameters (mu, sigma, nu, tau).
  6. rm(list = ls())
  7. # Load necessary libraries
  8. library(gamlss)
  9. library(R.matlab)
  10. library(pracma)
  11. # Set working directory
  12. setwd("GAMLSS_input_biochem/")
  13. # Define output path
  14. PATH_OUT <- "GAMLSS_output/"
  15. # Define the biochemical measure
  16. biochem_measure <- 'Eosinophill_percentage'
  17. FN <- paste("GAMLSSinput_Biochem_", biochem_measure, ".mat", sep="")
  18. # Load input data
  19. M <- readMat(FN)
  20. biochem_measure_data <- as.data.frame(M$biochem.measure)
  21. mydata_tmp <- as.data.frame(cbind(M$AGE, M$SEX, M$data))
  22. names(mydata_tmp) <- c("age", "sex", "phenotype")
  23. # Filter healthy controls
  24. ind <- which(M$DX[,1] %in% c(1))
  25. mydata <- mydata_tmp[ind, ]
  26. # Fit the GAMLSS model
  27. fam_dist <- 'SHASH'
  28. mdl <- gamlss(phenotype ~ fp(age, npoly=1) + sex,
  29. sigma.fo = ~fp(age, npoly=1),
  30. family = fam_dist,
  31. data = mydata,
  32. robust = TRUE)
  33. # Generate z-scores for all subjects
  34. n <- nrow(mydata_tmp)
  35. z_scores <- rep(NA, n)
  36. p <- rep(NA, n)
  37. for (sub in 1:n) {
  38. sub_data <- data.frame(age = mydata_tmp$age[sub],
  39. sex = mydata_tmp$sex[sub],
  40. phenotype = mydata_tmp$phenotype[sub])
  41. # Predict parameters
  42. params <- predictAll(mdl, newdata = sub_data)
  43. # Calculate CDF value for observed phenotype
  44. p[sub] <- pSHASH(mydata_tmp$phenotype[sub],
  45. mu = params$mu,
  46. sigma = params$sigma,
  47. nu = params$nu,
  48. tau = params$tau)
  49. # Convert CDF to z-score using standard normal inverse
  50. z_scores[sub] <- qNO(p[sub])
  51. }
  52. # Export results
  53. output_file <- paste(PATH_OUT, "GAMLSSout_main_ZSCORES", biochem_measure, ".mat", sep = "")
  54. writeMat(output_file, z_scores_unseen_subs = z_scores)

gamlss_zscore.R at commit 512b732, no license · at the source

Overview

Authors: Maria A. Di Biase1,2,3, William R. Reay4, Hadis Jameei1, Yuanzhe Liu1, Ye E. Tian1, Elysha Ringin1, Susan Rossell5,6, James A. Karantonis1,5, Tamsyn E. Van Rheenen1,5, Junhao Wen7, Christos Pantelis1,8,9, Andrew Zalesky1,10
  1. Department of Psychiatry, Melbourne Medical School, The University of Melbourne,Melbourne, VIC Australia
  2. Department of Anatomy and Physiology, School of Biomedical Sciences, The University of Melbourne,Melbourne, VIC Australia
  3. Department of Psychiatry, Brigham and Women’s Hospital, Harvard Medical School,Boston, MA USA
  4. Menzies Institute for Medical Research, University of Tasmania,Hobart, TAS Australia
  5. Centre for Mental Health and Brain Sciences, Swinburne University,Melbourne, VIC Australia
  6. InsideOut Institute, University of Sydney and Sydney Local Health District,Sydney, NSW Australia
  7. Laboratory of AI and Biomedical Science (LABS), Columbia University,New York, NY USA
  8. Western Centre for Health Research & Education (WCHRE), University of Melbourne & Western Health, Sunshine Hospital,St. Albans, VIC Australia
  9. Monash Institute of Pharmaceutical Sciences (MIPS), Monash University,Melbourne, Australia
  10. Faculty of Engineering and Information Technology, The University of Melbourne,Melbourne, VIC Australia
Institutions: The University of Melbourne (Australia); Brigham and Women's Hospital (United States); University of Tasmania (Australia); Swinburne University of Technology (Australia); The University of Sydney (Australia); Columbia University (United States); Monash University (Australia)
Journal: Nature communications, volume 17, issue 1, article 6235
Dates: received 26 August 2025; accepted 16 April 2026; published online 8 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-72604-4 · PMID 42103728 · PMCID PMC13369505 · OpenAlex W7160716036
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: human (organism), schizophrenia / psychosis (population), clinical / translational (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, Preprocessing, fMRI & imaging, Physiology & signal measures
Keywords: Diseases of the nervous system, Computational biology and bioinformatics
MeSH: Brain*, Mental Disorders*, Biomarkers, Blood Glucose, Female, Glycated Hemoglobin, Humans, Male, Schizophrenia (* major topic)
Topic: Health, Environment, Cognitive Aging (Health, Toxicology and Mutagenesis, Environmental Science), according to OpenAlex
Citations: cited by 1 paper (Europe PMC); 57 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.

Repository

Its files are read in the Code ↔ Paper reader above.

mdibiase1/Heterogeneity-Project---GAMLSS-modeling

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 512b7321d3cf8b86991f05148a2a75c14034dd1c, 16 June 2025
Languages: R (1)
Size: 2 files, 1 script
Software Heritage: not archived
Found in: “Code availability”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
2 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:

Read it in the paper: doi.org/10.1038/s41467-026-72604-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:

  • 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;
  • no match between paragraphs and code yet;
  • 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 paper has a 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/s41467-026-72604-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, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 12 authors, 2 keywords, 9 MeSH terms, 1 funder, 51 references.

Cite

This paper

Di Biase, M. A., Reay, W. R., Jameei, H., Liu, Y., Tian, Y. E., Ringin, E., Rossell, S., Karantonis, J. A., Van Rheenen, T. E., Wen, J., Pantelis, C., & Zalesky, A. (2026). Biochemical and brain heterogeneity characterizes psychiatric and non-psychiatric illness. Nature communications, 17(1), 6235. https://doi.org/10.1038/s41467-026-72604-4

BibTeX

@article{dibiase2026biochemical,
author = {Di Biase, Maria A. and Reay, William R. and Jameei, Hadis and Liu, Yuanzhe and Tian, Ye E. and Ringin, Elysha and Rossell, Susan and Karantonis, James A. and Van Rheenen, Tamsyn E. and Wen, Junhao and Pantelis, Christos and Zalesky, Andrew},
title = {{Biochemical and brain heterogeneity characterizes psychiatric and non-psychiatric illness}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {6235},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/s41467-026-72604-4},
url = {https://doi.org/10.1038/s41467-026-72604-4},
pmid = {42103728},
pmcid = {PMC13369505}
}

RIS

TY - JOUR
AU - Di Biase, Maria A.
AU - Reay, William R.
AU - Jameei, Hadis
AU - Liu, Yuanzhe
AU - Tian, Ye E.
AU - Ringin, Elysha
AU - Rossell, Susan
AU - Karantonis, James A.
AU - Van Rheenen, Tamsyn E.
AU - Wen, Junhao
AU - Pantelis, Christos
AU - Zalesky, Andrew
TI - Biochemical and brain heterogeneity characterizes psychiatric and non-psychiatric illness
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/08
VL - 17
IS - 1
SP - 6235
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/s41467-026-72604-4
UR - https://doi.org/10.1038/s41467-026-72604-4
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-72604-4",
"type": "article-journal",
"title": "Biochemical and brain heterogeneity characterizes psychiatric and non-psychiatric illness",
"container-title": "Nature communications",
"author": [
{
"family": "Di Biase",
"given": "Maria A."
},
{
"family": "Reay",
"given": "William R."
},
{
"family": "Jameei",
"given": "Hadis"
},
{
"family": "Liu",
"given": "Yuanzhe"
},
{
"family": "Tian",
"given": "Ye E."
},
{
"family": "Ringin",
"given": "Elysha"
},
{
"family": "Rossell",
"given": "Susan"
},
{
"family": "Karantonis",
"given": "James A."
},
{
"family": "Van Rheenen",
"given": "Tamsyn E."
},
{
"family": "Wen",
"given": "Junhao"
},
{
"family": "Pantelis",
"given": "Christos"
},
{
"family": "Zalesky",
"given": "Andrew"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "6235",
"DOI": "10.1038/s41467-026-72604-4",
"PMID": "42103728",
"PMCID": "PMC13369505",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://doi.org/10.1038/s41467-026-72604-4",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
8
]
]
}
}

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.1162/imag.a.1153 [code]
TRAMFIX: TRavelling Across Melbourne for FIXel-based analysis (a reproducibility and reliability study).
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 2 authors
[2] doi:10.1038/s41537-026-00728-z
An ENIGMA Consortium study of the relationship between white matter microstructure and positive and negative symptom severity in patients with schizophrenia.
Journal: Schizophrenia (Heidelberg, Germany)
In common: schizophrenia / psychosis, clinical / translational, 1 reference, author Christos Pantelis
[3] doi:10.1038/s41380-026-03547-x [code]
Multiscale characterization of cortical signatures in positive and negative schizotypy: a worldwide ENIGMA study.
Journal: Molecular psychiatry
In common: schizophrenia / psychosis, 1 reference, author Christos Pantelis
[4] doi:10.64898/2026.08.13.26360304 [code]
Lifespan brain structural variation reveals shared organization across mental health conditions
Journal: medRxiv (preprint)
In common: clinical / translational, 1 reference, author Christos Pantelis
[5] doi:10.64898/2026.03.31.26349848 [code]
Mapping Individual Neuroanatomical Alterations to Schizophrenia Psychopathology with Normative Modeling
Journal: medRxiv (preprint)
In common: schizophrenia / psychosis, 3 references
[6] doi:10.1097/j.pain.0000000000003995 [code]
Cumulative impacts of early-life interpersonal adversity and persistent/recurrent pain in children: a longitudinal normative modelling study from the ABCD study cohort.
Journal: Pain
In common: author William R. Reay
[7] doi:10.1162/netn.a.550 [code]
Evaluating oscillatory mechanisms underlying flexible neural communication in the human brain.
Journal: Network neuroscience (Cambridge, Mass.)
In common: author Andrew Zalesky
[8] doi:10.64898/2026.05.18.26353539 [code]
The Hidden Architecture of Brain Structural Variability in 22q11.2 Deletion Syndrome: A Multi-site Study
Journal: medRxiv (preprint)
In common: 3 references
[9] doi:10.1038/s41467-026-75585-6 [code]
Brain network dynamics reflect psychiatric illness status and transdiagnostic symptom profiles across health and disease.
Journal: Nature communications
In common: schizophrenia / psychosis, 2 references
[10] doi:10.21203/rs.3.rs-9246968/v1 [code]
Copy number variants reveal divergent genetic and diagnostic cortical signatures across psychiatric disorders
Journal: Research Square (preprint)
In common: clinical / translational, 3 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.

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.