OSCR

Optimizing functional connectivity scanning conditions for predicting autistic traits.

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.

2 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 2 matches · 1 of them tie a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [1] § Methods › Connectome-based predictive modeling ↔ CPM_code/cpm_main.m, the whole file · a weak match · score 0.70 · head motion, partial correlation, connectivity matrices, feature selection, split, edge · block oscr:b:7W8BKRYJQKQ4K-4 · Report a mismatch
  2. [2] § Methods › Preprocessing of functional imaging data ↔ preproc_template/template_skull_strip.sh, lines 1 to 12 · score 0.57 · optiBET, skull stripping, preprocessing · block oscr:b:RD9R985X3AA5Q-L · 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 · 83 lines · 2.8 KB · no license · 1 match

  1. function [y_predict, performance,randinds,pmask_hold] = cpm_main(x,y,varargin)
  2. % Performs Connectome-Based Predictive Modeling (CPM)
  3. %
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. %
  6. % REQUIRED INPUTS
  7. % x Predictor variable (e.g., connectivity matrix)
  8. % Allowed dimensions are 2D (n x nsubs) OR 3D (nx m x nsubs)
  9. % y Outcome variable (e.g., behavioral scores)
  10. % Allowed dimensions are 2D (i x nsubs)
  11. % z Variable to use during partial correlation during
  12. % feature selection (e.g., head motion)
  13. % Allowed dimensions are 2D (i x nsubs)
  14. % 'pthresh' p-value threshold for feature selection
  15. % 'kfolds' Number of partitions for dividing the sample
  16. % (e.g., 2 =split half, 10 = ten fold)
  17. % 'corrtype' Type of correlation we want to do (Pearson, partial,
  18. % etc.)
  19. % 'z' If using partialcorr, indicates the variable to
  20. % control for
  21. %
  22. %
  23. %
  24. % OUTPUTS
  25. % y_predict Predictions of outcome variable
  26. % performance Correlation between predicted and actual values of y
  27. % randinds How we are randomizing for CV (note that y_predict is
  28. % output in the same order as y
  29. % pmask keeping track of which edges are used in CPM
  30. %
  31. % Example:
  32. %
  33. % [y_predict, performance,randinds,pmask] = cpm_main(matrices,behav,'pthresh',0.05,'kfolds',10,'corrtype','partial','z',head_motion);
  34. %
  35. %
  36. % References:
  37. % If you use this script, please cite:
  38. % Shen, X., Finn, E. S., Scheinost, D., Rosenberg, M. D., Chun, M. M.,
  39. % Papademetris, X., & Constable, R. T. (2017). Using connectome-based
  40. % predictive modeling to predict individual behavior from brain connectivity.
  41. % Nature Protocols, 12(3), 506.
  42. %
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44. %% Parse input
  45. p=inputParser;
  46. defaultpthresh=0.01;
  47. defaultkfolds=2;
  48. defaultcorrtype='pearsons';
  49. defaultz=[];
  50. addRequired(p,'x',@isnumeric);
  51. addRequired(p,'y',@isnumeric); % must be n x nsubs
  52. addParameter(p,'pthresh',defaultpthresh,@isnumeric);
  53. addParameter(p,'kfolds',defaultkfolds,@isnumeric);
  54. addParameter(p,'corrtype',defaultcorrtype);
  55. addParameter(p,'z',defaultz,@isnumeric);
  56. parse(p,x,y,varargin{:});
  57. pthresh = p.Results.pthresh;
  58. kfolds = p.Results.kfolds;
  59. corrtype=p.Results.corrtype;
  60. z=p.Results.z;
  61. clearvars p
  62. %% Check for errors
  63. [x,y]=cpm_check_errors(x,y,kfolds);
  64. %% Train & test Connectome-Based Predictive Model
  65. [y_predict,randinds,pmask_hold]=cpm_cv(x,y,pthresh,kfolds,'corrtype',corrtype,'z',z);
  66. %% Assess performance
  67. [performance(1),performance(2)]=corr(y_predict(:),y(:));
  68. %fprintf('\nDone.\n')
  69. end

cpm_main.m at commit 55ff3df, no license · at the source

Overview

Authors: Corey Horien1,2,3, Francesca Mandino4, Abigail S Greene2,5, Xilin Shen4, Kelly Powell6, Angelina Vernetti6, David O’Connor7, Brendan D Adkinson2, Link Tejavibulya8, James C McPartland6,9, Fred R Volkmar6,9, Marvin Chun9,10, Katarzyna Chawarska6,11,12, Evelyn M R Lake4,10,13, Monica D Rosenberg14,15, Theodore Satterthwaite1,3,16, Dustin Scheinost4,6,10,11,17, Emily S Finn18, R Todd Constable2,4,13,17,19
19 affiliations
  1. Department of Psychiatry, University of Pennsylvania, Philadelphia, PA USA
  2. MD–PhD Program, Yale School of Medicine, New Haven, CT USA
  3. Penn Lifespan Informatics and Neuroimaging Center (PennLINC), University of Pennsylvania, Philadelphia, PA USA
  4. Department of Radiology and Biomedical Imaging, Yale School of Medicine, New Haven, CT USA
  5. Department of Psychiatry, Brigham and Women’s Hospital, Boston, MA USA
  6. Child Study Center, Yale School of Medicine, New Haven, CT USA
  7. BioMedical Engineering and Imaging Institute, Icahn School of Medicine at Mount Sinai, New York, NY USA
  8. Department of Radiology, Weill Cornell Medicine, New York, NY USA
  9. Department of Psychology, Yale University, New Haven, CT USA
  10. Wu Tsai Institute, Yale University, New Haven, CT USA
  11. Department of Statistics and Data Science, Yale University, New Haven, CT USA
  12. Department of Pediatrics, Yale School of Medicine, New Haven, CT USA
  13. Department of Biomedical Engineering, Yale University, New Haven, CT USA
  14. Department of Psychology, University of Chicago, Chicago, IL USA
  15. Neuroscience Institute, University of Chicago, Chicago, IL USA
  16. Penn-CHOP Lifespan Brain Institute, University of Pennsylvania, Philadelphia, PA USA
  17. Interdepartmental Neuroscience Program, Yale University, New Haven, CT USA
  18. Department of Psychological and Brain Sciences, Dartmouth College, Dartmouth, NH USA
  19. Department of Neurosurgery, Yale School of Medicine, New Haven, CT USA
Institutions: Yale University (United States); University of Pennsylvania (United States); Brigham and Women's Hospital (United States); Icahn School of Medicine at Mount Sinai (United States); Weill Cornell Medicine (United States); University of Chicago (United States); Dartmouth College (United States)
Journal: Nature. Mental health, volume 4, issue 5, pages 792-805
Dates: received 10 January 2025; accepted 3 March 2026; published online 21 April 2026; in print 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s44220-026-00623-7 · PMID 42137910 · PMCID PMC13167459 · OpenAlex W7155094561
Open access: hybrid, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: human (organism), autism (population), clinical / translational (subfield)
Methods: Statistics, Machine learning, Connectivity, fMRI & imaging
Keywords: Diagnostic markers, Attention
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: U.S. Department of Health & Human Services | NIH | National Institute of General Medical Sciences (T32GM007205, TR001864); U.S. Department of Health & Human Services | NIH | National Institute of Mental Health (R25MH119043, P50MH115716)
Citations: not cited yet (Europe PMC); 129 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, with 2 matches between paragraphs and lines of code.

clhorien/tasks_versus_rest_in_autism_prediction

License: none: the authors keep all their rights
State: the link answers, verified on 29 September 2026
Evidence: files inventoried
Commit: 55ff3dfbda427a8369976acd73a5de256f137296, 10 September 2025
Languages: MATLAB (5), Shell (1)
Size: 14 files, 6 scripts
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 29 September 2026: the link answers
  • 29 September 2026: the link answers
7 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/s44220-026-00623-7.

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;
  • 6 scripts, 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 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/s44220-026-00623-7.

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, 29 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 19 authors, 2 keywords, 2 funders, 122 references.

Cite

This paper

Horien, C., Mandino, F., Greene, A. S., Shen, X., Powell, K., Vernetti, A., O’Connor, D., Adkinson, B. D., Tejavibulya, L., McPartland, J. C., Volkmar, F. R., Chun, M., Chawarska, K., Lake, E. M. R., Rosenberg, M. D., Satterthwaite, T., Scheinost, D., Finn, E. S., & Constable, R. T. (2026). Optimizing functional connectivity scanning conditions for predicting autistic traits. Nature. Mental health, 4(5), 792-805. https://doi.org/10.1038/s44220-026-00623-7

BibTeX

@article{horien2026optimizing,
author = {Horien, Corey and Mandino, Francesca and Greene, Abigail S and Shen, Xilin and Powell, Kelly and Vernetti, Angelina and O’Connor, David and Adkinson, Brendan D and Tejavibulya, Link and McPartland, James C and Volkmar, Fred R and Chun, Marvin and Chawarska, Katarzyna and Lake, Evelyn M R and Rosenberg, Monica D and Satterthwaite, Theodore and Scheinost, Dustin and Finn, Emily S and Constable, R Todd},
title = {{Optimizing functional connectivity scanning conditions for predicting autistic traits}},
journal = {Nature. Mental health},
year = {2026},
month = apr,
volume = {4},
number = {5},
pages = {792--805},
publisher = {Springer Science+Business Media},
issn = {2731-6076},
doi = {10.1038/s44220-026-00623-7},
url = {https://doi.org/10.1038/s44220-026-00623-7},
pmid = {42137910},
pmcid = {PMC13167459}
}

RIS

TY - JOUR
AU - Horien, Corey
AU - Mandino, Francesca
AU - Greene, Abigail S
AU - Shen, Xilin
AU - Powell, Kelly
AU - Vernetti, Angelina
AU - O’Connor, David
AU - Adkinson, Brendan D
AU - Tejavibulya, Link
AU - McPartland, James C
AU - Volkmar, Fred R
AU - Chun, Marvin
AU - Chawarska, Katarzyna
AU - Lake, Evelyn M R
AU - Rosenberg, Monica D
AU - Satterthwaite, Theodore
AU - Scheinost, Dustin
AU - Finn, Emily S
AU - Constable, R Todd
TI - Optimizing functional connectivity scanning conditions for predicting autistic traits
T2 - Nature. Mental health
J2 - Nat Ment Health
PY - 2026
DA - 2026/04/21
VL - 4
IS - 5
SP - 792
EP - 805
SN - 2731-6076
PB - Springer Science+Business Media
DO - 10.1038/s44220-026-00623-7
UR - https://doi.org/10.1038/s44220-026-00623-7
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s44220-026-00623-7",
"type": "article-journal",
"title": "Optimizing functional connectivity scanning conditions for predicting autistic traits",
"container-title": "Nature. Mental health",
"author": [
{
"family": "Horien",
"given": "Corey"
},
{
"family": "Mandino",
"given": "Francesca"
},
{
"family": "Greene",
"given": "Abigail S"
},
{
"family": "Shen",
"given": "Xilin"
},
{
"family": "Powell",
"given": "Kelly"
},
{
"family": "Vernetti",
"given": "Angelina"
},
{
"family": "O’Connor",
"given": "David"
},
{
"family": "Adkinson",
"given": "Brendan D"
},
{
"family": "Tejavibulya",
"given": "Link"
},
{
"family": "McPartland",
"given": "James C"
},
{
"family": "Volkmar",
"given": "Fred R"
},
{
"family": "Chun",
"given": "Marvin"
},
{
"family": "Chawarska",
"given": "Katarzyna"
},
{
"family": "Lake",
"given": "Evelyn M R"
},
{
"family": "Rosenberg",
"given": "Monica D"
},
{
"family": "Satterthwaite",
"given": "Theodore"
},
{
"family": "Scheinost",
"given": "Dustin"
},
{
"family": "Finn",
"given": "Emily S"
},
{
"family": "Constable",
"given": "R Todd"
}
],
"container-title-short": "Nat Ment Health",
"volume": "4",
"issue": "5",
"page": "792-805",
"DOI": "10.1038/s44220-026-00623-7",
"PMID": "42137910",
"PMCID": "PMC13167459",
"ISSN": "2731-6076",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.1038/s44220-026-00623-7",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
21
]
]
}
}

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_00540 [code]
Identifying dynamic reproducible brain states using a predictive modelling approach.
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: 16 references, 4 authors
[2] doi:10.1038/s41586-022-05118-w [code]
Brain-phenotype models fail for individuals who defy sample stereotypes.
Journal: Nature
In common: Statistics and Machine Learning Toolbox, 16 references, 4 authors
[3] doi:10.1038/s41467-026-73941-0 [code]
Using connectome-based predictive models to reveal the systems standardized tests and clinical symptoms are reflecting.
Journal: Nature communications
In common: 18 references, 3 authors
[4] doi:10.1016/j.neuroimage.2022.119364 [code]
Arousal impacts distributed hubs modulating the integration of brain functional connectivity.
Journal: NeuroImage
In common: Statistics and Machine Learning Toolbox, 13 references, 4 authors
[5] doi:10.3389/frdem.2023.1126016 [code]
Connectome-based predictive modeling shows sex differences in brain-based predictors of memory performance.
Journal: Frontiers in dementia
In common: Statistics and Machine Learning Toolbox, 16 references, 2 authors
[6] doi:10.1038/s41562-026-02447-y [code]
Feature selection leads to divergent neurobiological interpretations of brain-based machine learning biomarkers.
Journal: Nature human behaviour
In common: Statistics and Machine Learning Toolbox, clinical / translational, 12 references, 3 authors
[7] doi:10.1038/s41380-025-03196-6 [code]
Impulsivity and neuroticism share distinct functional connectivity signatures with alcohol-use risk in youth.
Journal: Molecular psychiatry
In common: 11 references, 2 authors
[8] doi:10.1016/j.xpro.2021.101077 [code]
A protocol for working with open-source neuroimaging datasets.
Journal: STAR protocols
In common: 7 references, 3 authors
[9] doi:10.1016/j.patter.2023.100756 [code]
Connectome-based machine learning models are vulnerable to subtle data manipulations.
Journal: Patterns (New York, N.Y.)
In common: Statistics and Machine Learning Toolbox, 10 references, 2 authors
[10] doi:10.1038/s42003-025-08037-4 [code]
Multimodal identification of the mouse brain using simultaneous Ca<sup>2+</sup> imaging and fMRI.
Journal: Communications biology
In common: 6 references, 3 authors

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

.. image:: https://openscicode.org/badge/doi/10.1038/s44220-026-00623-7.svg
   :target: https://openscicode.org/badge/doi/10.1038/s44220-026-00623-7
   :alt: OSCR

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