Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
✓DOI references
Found 34 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.3%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: dutchconnectomelab
- License: other
- Language: MATLAB
- Default Branch: main
- Size: 152 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
Table of Contents
- Introduction
- Prerequisites
- Setup
- Input Data Format
- Usage in Python, MATLAB, and R
- Function Parameters
- Supported Disorders
- Global Mean Correction (gmean)
- Supported Atlas Parcellation Schemes
- Output PCS Scores
- Citing the PCS toolbox
- License
Introduction
The PCS toolbox calculates polyconnectomic score (PCS) to quantify the presence of disease-related brain connectivity signatures in individual connectomes. PCS integrates existing knowledge of disorder-related brain circuitry, aggregating these connectivity signatures or connectome summary statistics (CSS) across the entire brain into a single, interpretable metric.
This repository includes toolbox scripts and CSS of resting-state functional connectivity (FC) signatures for various neuropsychiatric disorders. These CSS represent the strength and direction of associations between brain connections and specific disorders across connectomes. The CSS were generated through the following process: - Effect size estimation per dataset: Cohen’s d was computed for each FC, corrected for age, sex, in-scanner motion, and site, generating a connectivity matrix for each dataset within a disorder. This matrix indicates connections with hypo-connectivity in patients (negative d) or hyper-connectivity in patients compared to controls (positive d). - Meta-Analysis: these connectivity-wise effects were aggregated across datasets for each disorder using a meta-analytic approach with a random-effects model.
We provide the meta-analytic CSS for 11 neuropsychiatric and neurological disorders, encompassing 10,667 individuals (5,325 patients, 5,342 unique controls) across 22 datasets, allowing researchers to compute PCS on their own data.
Prerequisites
- Python 3.7+, MATLAB, or R #### Required packages:
- Python: NumPy >= v1.21.0
- R: No additional packages required
- MATLAB: No additional toolboxes required
Setup
Clone this repository:
git clone https://github.com/dutchconnectomelab/pcs-toolbox.git
For R Users
Download Required Files: Similarly, download the R script
calculate_PCS.Rfrom this repository.Source Script: Use the following command within R to source the
calculate_PCS.Rscript for use: ```r source("/path/to/calculate_PCS.R")
For MATLAB Users
Download Required Files: Instead of cloning the repository, download the MATLAB script
calculate_PCS.mdirectly.Add Path: Add the directory containing
calculate_PCS.mto MATLAB's path usingaddpath('/path/to/folder/containing/calculate_PCS').
Installation Dependencies
In Python, ensure you have the following packages installed:
- NumPy
You can install these packages in python using pip:
bash
pip install numpy
Input Data Format:
The cnn parameter is a connectivity matrix representing functional brain connections, typically a correlation matrix. The function calculate_PCS automatically detects the dimensions of the input cnn matrix to determine the number of regions of interest (ROI) and subjects:
2D Matrix (Nregions × Nregions): If
cnnis a 2D matrix, PCS is calculated assuming it represents the connectivity between ROIs for a single subject.3D Matrix (Nregions × Nregions × N_subjects): If
cnnis a 3D matrix, PCS is calculated for each subject represented in the third dimension; computed individually for each subject's connectivity data.
This allows for flexibility in handling both single-subject and multi-subject connectivity data. It is crucial to ensure that the atlas used to generate the input connectivity matrix matches the atlas specified in the function parameters for accurate PCS calculation.
Ensure consistency in dimensions and region order
To successfully calculate PCS, the connectivity matrix of a subject must match the dimensions of the CSS for the specified atlas. If the dimensions do not align, PCS calculations will not function correctly. Additionally, it is crucial that the order of regions in the connectivity matrix corresponds exactly to the order in the CSS. You can verify the order of regions by checking the index and columns of the CSS files provided. Please make sure to verify these details before running your analysis.
Usage in R, MATLAB, and Python
R
```r
Source the calculate_PCS.R script from your cloned repository:
source("path/to/your-repository/calculate_PCS.R")
Load RDS file with connectivity data
cnn <- readRDS("path/to/your-connectivity-matrix.rds")
Calculate the PCS for schizophrenia using Desikian-Killiany atlas and global mean corrected
PCSsubject <- calculatePCS(cnn, disorder='schizophrenia', gmean=TRUE, atlas='aparc') ```
MATLAB
```matlab % Add the directory containing calculatePCS.m to MATLAB's path: addpath('path/to/your-repository') % Load .mat or .csv connectivity data cnn = load('path/to/your-repository/connectivitydata.mat');
cnn = readmatrix('or/path/to/connectivity_data/in/csv/format.csv');
Calculate the PCS for schizophrenia using Desikian-Killiany atlas and global mean corrected
PCSsubject = calculatePCS(cnn, 'disorder', 'schizophrenia', 'gmean', true, 'atlas', 'aparc'); ```
Python
```python
Install the required Python packages:
pip install numpy
Ensure the calculate_PCS.py script is available in your working directory or in your Python path:
sys.path.append('path/to/your-repository')
import numpy as np from calculate_PCS import *
Load .npy connectivity data
cnn = np.load('path/to/your-repository/connectivity_data.npy')
Calculate the PCS for schizophrenia using Desikian-Killiany atlas and global mean corrected
PCSsubject = calculatePCS(cnn, disorder='schizophrenia', gmean=True, atlas='aparc') ```
Function Parameters
cnn: User connectivity data (2D or 3D array)disorder: Name of the disorder (string)gmean: Boolean, whether to use functional global mean normalizationatlas: Name of the brain atlas used in bothcnnand CSS creation
The PCS toolbox supports the following neuropsychiatric and neurodegenerative disorders:
- Alzheimer's disease:
"alzheimer" - Anxiety-related disorders:
"anxiety" - Attention-deficit/hyperactivity disorder:
"adhd" - Autism spectrum disorder:
"autism" - Bipolar disorder:
"bipolar" - Frontotemporal dementia:
"ftd" - Major depressive disorder:
"depression" - Obsessive-compulsive disorder:
"ocd" - Parkinson's disease:
"parkinson" - Schizoaffective disorder:
"schizoaffective" - Schizophrenia:
"schizophrenia"
When using the calculate_PCS function, specify the disorder parameter using its key (e.g., 'adhd', 'ftd', 'schizophrenia', etc.).
The demographics of the samples used to compute the CSS per disorder are as follows:
| Disorder | Patients, n | Controls, n | Age (Mean ± SD) | Male/Female, n | Datasets, n | |------------------------------------------|---------------|---------------|-------------------|------------------|---------------| | Alzheimer's disease | 270 | 866 | 72.0 ± 8.9 | 510/626 | 4 | | Anxiety-related disorders | 366 | 840 | 27.1 ± 21.3 | 505/701 | 3 | | Attention-deficit/hyperactivity disorder | 1211 | 1417 | 19.1 ± 16.7 | 1518/1110 | 4 | | Autism spectrum disorder | 1151 | 2086 | 21.6 ± 14.3 | 2530/707 | 4 | | Bipolar disorder | 320 | 1790 | 36.3 ± 13.8 | 975/1135 | 5 | | Frontotemporal dementia | 156 | 143 | 64.0 ± 8.5 | 144/155 | 2 | | Major depressive disorder | 884 | 1605 | 33.9 ± 15.8 | 1122/1367 | 4 | | Obsessive-compulsive disorder | 98 | 261 | 12.7 ± 4.5 | 170/189 | 3 | | Parkinson’s disease | 102 | 125 | 66.4 ± 8.5 | 110/117 | 4 | | Schizoaffective disorder | 235 | 812 | 37.2 ± 12.8 | 403/644 | 3 | | Schizophrenia | 532 | 1882 | 36.5 ± 13.6 | 1254/1160 | 6 |
Global Mean Correction (gmean)
Global mean signal correction is a technique used to reduce the impact of non-neural physiological noise in fMRI data, although its use is debated in the neuroimaging community as it can also remove some neural signals of interest. The PCS toolbox provides options for both corrected and uncorrected CSS, allowing researchers to choose based on their specific research questions and methodological preferences.
When
gmean=True(Python) orgmeanis included (MATLAB/R), the toolbox uses functional CSS that have been corrected for global mean signal. This correction involved regressing out the framewise mean signal intensity of all brain voxels.When
gmean=False(Python) or the parameter is omitted (MATLAB/R), the toolbox uses functional CSS without global mean signal correction.
We advise using CSS with gmean if the provided cnn also uses this preprocessing method.
The PCS toolbox supports the following atlas parcellation schemes:
aparc (Desikan-Killiany)(68 regions)BB50human(76 regions)Brodmann(78 regions)brainnetome(210 regions)Campbell(34 regions)EconomoCT(30 regions)economo(86 regions)Flechsig(92 regions)hcp-mmp-b (Glasser)(360 regions)Kleist(98 regions)lausanne120(114 regions)lausanne250(219 regions)lausanne500(448 regions)nspn500(308 regions)schaefer100-yeo7(100 regions)schaefer300-yeo7(300 regions)schaefer400-yeo7(400 regions)schaefer500-yeo7(500 regions)schaefer600-yeo7(600 regions)schaefer700-yeo7(700 regions)schaefer800-yeo7(800 regions)schaefer900-yeo7(900 regions)schaefer1000-yeo7(1000 regions)Smith(88 regions)yeo17dil(116 regions)
Output PCS Scores:
The calculate_PCS function returns an array of PCS scores, one for each subject in the input data. Higher PCS indicate a stronger presence of connectivity patterns associated with the specified disorder. Importantly, scores are relative measures and should be interpreted in comparison to a control group or normative data.
Datasets
Datasets used in the creation of CSS can be accessed via their respective websites:
Openly Accessible Datasets - Autism Brain Imaging Data Exchange (ABIDE-I & ABIDE-II): fcon_1000.projects.nitrc.org/indi/abide - Advancing Research and Treatment for Frontotemporal Lobar Degeneration - Longitudinal Evaluation of Familial Frontotemporal Dementia Subjects (ARTFL-LEFFTDS): memory.ucsf.edu/research/studies/nifd - ADHD-200 Sample: nitrc.org/frs/?group_id=383 - Alzheimer's Disease Neuroimaging Initiative (ADNI-2/GO & ADNI-3): ida.loni.usc.edu - Boston Adolescent Neuroimaging of Depression and Anxiety (BANDA): (NDA; NDAR ID: 3037) - Bipolar & Schizophrenia Consortium for Parsing Intermediate Phenotypes (B-SNIP1): (NDA; NDAR ID: 2274) - Bipolar & Schizophrenia Consortium for Parsing Intermediate Phenotypes 2 (B-SNIP2): (NDA; NDAR ID: 2165) - Latin American Brain Health Institute (BrainLat): synapse.org - Centre for Biomedical Research Excellence (COBRE): schizconnect.org - Consortium for Neuropsychiatric Phenomics (CNP): OpenNeuro openneuro.org - Healthy Brain Network (HBN): fcon1000.projects.nitrc.org/indi/cmihealthybrainnetwork - Enhanced Nathan Kline Institute (NKI-Enhanced): fcon_1000.projects.nitrc.org/indi/enhanced/ - Open Access Series of Imaging Studies (OASIS-3): oasis-brains.org - Brain Function and Genetics in Pediatric Obsessive-Compulsive Behaviors (OCD-Pediatric): (NDA; NDAR ID: 2955) - Task Control Circuit Targets for Obsessive Compulsive Behaviors in Children (OCD-Task): (NDA; NDAR ID: 3044) - Parkinson’s Disease Yonemaya: openfmri.org - Parkinson’s Disease Tao Wu and NEUROCON: fcon_1000.projects.nitrc.org/indi/retro/parkinsons.html - Japanese Strategic Research Program for the Promotion of Brain Science (SRPBS): bicr-resource.atr.jp/srpbs1600
Restricted Access Datasets - Marburg-Münster Affective Disorders Cohort Study (FOR2107): for2107.de
Citing the PCS toolbox
When using PCS toolbox, please cite the following paper: Libedinsky, I., Helwegen, K., Boonstra, J., Guerrero Simón, L., Gruber, M., Repple, J., et al. (2024). Polyconnectomic scoring of functional connectivity patterns across eight neuropsychiatric and three neurodegenerative disorders. Biological Psychiatry. https://doi.org/10.1016/j.biopsych.2024.10.007
When computing PCS for a particular disorder using the precomputed CSS, please cite the corresponding papers listed in Citations. These sources were used for computing the CSS.
License
pcs-toolbox © 2024 by dutchconnectomelab is licensed under CC BY-NC 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc/4.0/
Owner
- Name: dutchconnectomelab
- Login: dutchconnectomelab
- Kind: organization
- Repositories: 2
- Profile: https://github.com/dutchconnectomelab
Citation (citations.md)
# Citations When using PCS scores for a particular disorder using the precomputed CSS, please cite the corresponding papers listed below (data used for computation of the CSS). Alzheimer's disease: - Beckett LA, Donohue MC, Wang C, Aisen P, Harvey DJ, Saito N, Alzheimer’s Disease Neuroimaging Initiative (2015): The Alzheimer’s Disease Neuroimaging Initiative phase 2: Increasing the length, breadth, and depth of our understanding. Alzheimers Dement 11: 823–831. - Weiner MW, Veitch DP, Aisen PS, Beckett LA, Cairns NJ, Green RC, et al. (2017): The Alzheimer’s Disease Neuroimaging Initiative 3: Continued innovation for clinical trial improvement. Alzheimers Dement 13: 561–571. - Prado P, Medel V, Gonzalez-Gomez R, Sainz-Ballesteros A, Vidal V, Santamaría-García H, et al. (2023): The BrainLat project, a multimodal neuroimaging dataset of neurodegeneration from underrepresented backgrounds. Sci Data 10: 889. - LaMontagne PJ, Benzinger TLS, Morris JC, Keefe S, Hornbeck R, Xiong C, et al. (2019): OASIS-3: Longitudinal Neuroimaging, Clinical, and Cognitive Dataset for Normal Aging and Alzheimer Disease. Radiology and Imaging. Anxiety-related disorders: - Tanaka SC, Yamashita A, Yahata N, Itahashi T, Lisi G, Yamada T, et al. (2021): A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 8: 227. - Hubbard NA, Siless V, Frosch IR, Goncalves M, Lo N, Wang J, et al. (2020): Brain function and clinical characterization in the Boston adolescent neuroimaging of depression and anxiety study. NeuroImage Clin 27: 102240. - Alexander LM, Escalera J, Ai L, Andreotti C, Febre K, Mangone A, et al. (2017): An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4: 170181. Attention-deficit/hyperactivity disorder: - ADHD-200 Consortium T (2012): The ADHD-200 Consortium: a model to advance the translational potential of neuroimaging in clinical neuroscience. Front Syst Neurosci 6. - Tobe RH, MacKay-Brandt A, Lim R, Kramer M, Breland MM, Tu L, et al. (2022): A longitudinal resource for studying connectome development and its psychiatric associations during childhood. Sci Data 9: 300. - Poldrack RA, Congdon E, Triplett W, Gorgolewski KJ, Karlsgodt KH, Mumford JA, et al. (2016): A phenome-wide examination of neural and cognitive function. Sci Data 3: 160110. - Alexander LM, Escalera J, Ai L, Andreotti C, Febre K, Mangone A, et al. (2017): An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4: 170181. Autism spectrum disorder: - Di Martino A, Yan C-G, Li Q, Denio E, Castellanos FX, Alaerts K, et al. (2014): The autism brain imaging data exchange: towards a large-scale evaluation of the intrinsic brain architecture in autism. Mol Psychiatry 19: 659–667. - Di Martino A, O’Connor D, Chen B, Alaerts K, Anderson JS, Assaf M, et al. (2017): Enhancing studies of the connectome in autism using the autism brain imaging data exchange II. Sci Data 4: 170010. - Alexander LM, Escalera J, Ai L, Andreotti C, Febre K, Mangone A, et al. (2017): An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4: 170181. - Tanaka SC, Yamashita A, Yahata N, Itahashi T, Lisi G, Yamada T, et al. (2021): A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 8: 227. Bipolar disorder: - Tanaka SC, Yamashita A, Yahata N, Itahashi T, Lisi G, Yamada T, et al. (2021): A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 8: 227. - Poldrack RA, Congdon E, Triplett W, Gorgolewski KJ, Karlsgodt KH, Mumford JA, et al. (2016): A phenome-wide examination of neural and cognitive function. Sci Data 3: 160110. - Kircher T, Wöhr M, Nenadic I, Schwarting R, Schratt G, Alferink J, et al. (2019): Neurobiology of the major psychoses: a translational perspective on brain structure and function—the FOR2107 consortium. Eur Arch Psychiatry Clin Neurosci 269: 949–962. - Tamminga CA, Ivleva EI, Keshavan MS, Pearlson GD, Clementz BA, Witte B, et al. (2013): Clinical Phenotypes of Psychosis in the Bipolar-Schizophrenia Network on Intermediate Phenotypes (B-SNIP). Am J Psychiatry 170: 1263–1274. - Huang L-Y, Jackson BS, Rodrigue AL, Tamminga CA, Gershon ES, Pearlson GD, et al. (2022): Antisaccade error rates and gap effects in psychosis syndromes from bipolar-schizophrenia network for intermediate phenotypes 2 (B-SNIP2). Psychol Med 52: 2692–2701. Frontotemporal dementia: - Prado P, Medel V, Gonzalez-Gomez R, Sainz-Ballesteros A, Vidal V, Santamaría-García H, et al. (2023): The BrainLat project, a multimodal neuroimaging dataset of neurodegeneration from underrepresented backgrounds. Sci Data 10: 889. - Heuer HW, Forsberg LK, Mester CT, Johnson N, Ramos EM, Kantarci K, et al. (2023): ALLFTD: Identifying and Characterizing Frontotemporal Lobar Degeneration Participants in a Multi‐center North American Study. Alzheimers Dement 19: e080463. Major depressive disorder: - Tanaka SC, Yamashita A, Yahata N, Itahashi T, Lisi G, Yamada T, et al. (2021): A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 8: 227. - Hubbard NA, Siless V, Frosch IR, Goncalves M, Lo N, Wang J, et al. (2020): Brain function and clinical characterization in the Boston adolescent neuroimaging of depression and anxiety study. NeuroImage Clin 27: 102240. - Alexander LM, Escalera J, Ai L, Andreotti C, Febre K, Mangone A, et al. (2017): An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4: 170181. - Kircher T, Wöhr M, Nenadic I, Schwarting R, Schratt G, Alferink J, et al. (2019): Neurobiology of the major psychoses: a translational perspective on brain structure and function—the FOR2107 consortium. Eur Arch Psychiatry Clin Neurosci 269: 949–962. Obsessive-compulsive disorder: - Alexander LM, Escalera J, Ai L, Andreotti C, Febre K, Mangone A, et al. (2017): An open resource for transdiagnostic research in pediatric mental health and learning disorders. Sci Data 4: 170181. - Rosenberg DR, Mirza Y, Russell A, Tang J, Smith JM, Banerjee SP, et al. (2004): Reduced Anterior Cingulate Glutamatergic Concentrations in Childhood OCD and Major Depression Versus Healthy Controls. J Am Acad Child Adolesc Psychiatry 43: 1146–1153. - Pagliaccio D, Cha J, He X, Cyr M, Yanes‐Lukin P, Goldberg P, et al. (2020): Structural neural markers of response to cognitive behavioral therapy in pediatric obsessive‐compulsive disorder. J Child Psychol Psychiatry 61: 1299–1308. Parkinson’s disease: - Badea L, Onu M, Wu T, Roceanu A, Bajenaru O (2017): Exploring the reproducibility of functional connectivity alterations in Parkinson’s disease ((S. Hayasaka, editor)). PLOS ONE 12: e0188196. - Prado P, Medel V, Gonzalez-Gomez R, Sainz-Ballesteros A, Vidal V, Santamaría-García H, et al. (2023): The BrainLat project, a multimodal neuroimaging dataset of neurodegeneration from underrepresented backgrounds. Sci Data 10: 889. - Yoneyama N, Watanabe H, Kawabata K, Bagarinao E, Hara K, Tsuboi T, et al. (2018): Severe hyposmia and aberrant functional connectivity in cognitively normal Parkinson’s disease ((S. Hayasaka, editor)). PLOS ONE 13: e0190072. Schizoaffective disorder: - Kircher T, Wöhr M, Nenadic I, Schwarting R, Schratt G, Alferink J, et al. (2019): Neurobiology of the major psychoses: a translational perspective on brain structure and function—the FOR2107 consortium. Eur Arch Psychiatry Clin Neurosci 269: 949–962. - Tamminga CA, Ivleva EI, Keshavan MS, Pearlson GD, Clementz BA, Witte B, et al. (2013): Clinical Phenotypes of Psychosis in the Bipolar-Schizophrenia Network on Intermediate Phenotypes (B-SNIP). Am J Psychiatry 170: 1263–1274. - Huang L-Y, Jackson BS, Rodrigue AL, Tamminga CA, Gershon ES, Pearlson GD, et al. (2022): Antisaccade error rates and gap effects in psychosis syndromes from bipolar-schizophrenia network for intermediate phenotypes 2 (B-SNIP2). Psychol Med 52: 2692–2701. Schizophrenia: - Aine CJ, Bockholt HJ, Bustillo JR, Cañive JM, Caprihan A, Gasparovic C, et al. (2017): Multimodal Neuroimaging in Schizophrenia: Description and Dissemination. Neuroinformatics 15: 343–364. - Kircher T, Wöhr M, Nenadic I, Schwarting R, Schratt G, Alferink J, et al. (2019): Neurobiology of the major psychoses: a translational perspective on brain structure and function—the FOR2107 consortium. Eur Arch Psychiatry Clin Neurosci 269: 949–962. - Poldrack RA, Congdon E, Triplett W, Gorgolewski KJ, Karlsgodt KH, Mumford JA, et al. (2016): A phenome-wide examination of neural and cognitive function. Sci Data 3: 160110. - Tanaka SC, Yamashita A, Yahata N, Itahashi T, Lisi G, Yamada T, et al. (2021): A multi-site, multi-disorder resting-state magnetic resonance image database. Sci Data 8: 227. - Tamminga CA, Ivleva EI, Keshavan MS, Pearlson GD, Clementz BA, Witte B, et al. (2013): Clinical Phenotypes of Psychosis in the Bipolar-Schizophrenia Network on Intermediate Phenotypes (B-SNIP). Am J Psychiatry 170: 1263–1274. - Huang L-Y, Jackson BS, Rodrigue AL, Tamminga CA, Gershon ES, Pearlson GD, et al. (2022): Antisaccade error rates and gap effects in psychosis syndromes from bipolar-schizophrenia network for intermediate phenotypes 2 (B-SNIP2). Psychol Med 52: 2692–2701.
GitHub Events
Total
- Watch event: 2
- Push event: 4
Last Year
- Watch event: 2
- Push event: 4
Dependencies
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite