This repository stores code and analyses for the preprint entitled
Signatures of pubertal brain development and health revealed through domain adapted brain network fusion
Before running the code, please make sure to set up a new conda environment first:
conda create --name <env> python=3.7.11conda activate <env>pip install -r requirements.txt
Make sure to activate env for all analyses within this repo: conda activate <env>
main_abcd.pyandmain_hbn.pyare the backbone of the analyes, performing all steps from data loading to machine learning with domain adaptation- the remaining
.pyfiles store functions used inmain_abcd.pyandmain_hbn.py - association analyses with pubertal and mental health measures were performed in the
ABCD_*.ipynb and HBN_*.ipynbfiles. Xemb.ipynbcontains code that calculates feature - embedding correlations for brain map vizualisations and spin permutation testing*.Ruses output fromXemb.ipynband generates brain maps for Suppl. Materials (ggseg 1.6.5 running in R 4.2.3)