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; OSCR does not store it: 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 (how the code is found and 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 Portfolio},
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 Portfolio
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 Portfolio",
"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.1038/s41380-022-01460-7 [code]
Cell type-specific manifestations of cortical thickness heterogeneity in schizophrenia.
Journal: Molecular psychiatry
In common: schizophrenia / psychosis, 5 references, 4 authors
[2] doi:10.1073/pnas.2216798120 [code]
Mapping human brain charts cross-sectionally and longitudinally.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 2 references, 3 authors
[3] doi:10.1038/s41591-025-03999-8 [code]
MRI-based multi-organ clocks for healthy aging and disease assessment.
Journal: Nature medicine
In common: clinical / translational, 1 reference, 3 authors
[4] doi:10.1162/netn_a_00397 [code]
A generative model of the connectome with dynamic axon growth.
Journal: Network neuroscience (Cambridge, Mass.)
In common: 3 authors
[5] doi:10.1038/s41586-022-04554-y [code]
Brain charts for the human lifespan.
Journal: Nature
In common: 3 authors
[6] doi:10.1038/s41380-023-02069-0 [code]
Psychosis brain subtypes validated in first-episode cohorts and related to illness remission: results from the PHENOM consortium.
Journal: Molecular psychiatry
In common: schizophrenia / psychosis, clinical / translational, 1 reference, 2 authors
[7] 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
[8] doi:10.1038/s42003-024-06264-9 [code]
From pixels to connections: exploring in vitro neuron reconstruction software for network graph generation.
Journal: Communications biology
In common: 2 authors
[9] doi:10.1073/pnas.2300842120 [code]
Genomic loci influence patterns of structural covariance in the human brain.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: 2 authors
[10] doi:10.1038/s41398-022-02141-3
Evidence of genetic overlap and causal relationships between blood-based biochemical traits and human cortical anatomy.
Journal: Translational psychiatry
In common: 3 references, author William R. Reay

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

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

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72604-4"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72604-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.