Code for the high risk autism phenotype paper
Much of the code in this repo originated from ASD High Risk Endophenotype Code Supplement and was written by Sebastian Urchs and Hien Nguyen.
Data availability
All data to reproduce the analysis can be downloaded from
- The study uses data from ABIDE 1 and 2 datasets. Participants were matched using propensity score matching as part of another project, matching scripts can be found here ASD Subtype Code Supplement.
- Resting state functional connectivity data was preprocessed using NIAK, described in the paper. This study uses the seed maps.
- Using the following scripts the full analysis can be reproduced. Alternatively, to skip the data analysis part and recreate the figures, download only the results and atlas data from Zenodo.
Data analysis
These steps were run on the Alliance Canada Beluga server.
On an HPC server, first set up the R environment. After cloning the repository:
- Open R in the project directory
R install.packages("renv") renv::restore()
For scripts 1-5 do:
python -m venv hpc_py11_env
source hpc_py11_env/bin/activate
pip install -r environments/requirements_py11.txt
Update the paths and slurm preamble, then run:
Discovery_Conformal_Score.R
usingsubmit_discovery.sh
Discovery_Read_Conformal_Scores.R
Validation_Conformal_Score_Boot.R
usingsubmit_validation.sh
Validation_Read_Conformal_Scores.R
Null_Model.R
usingsubmit_null.sh
For script 6, do:
python -m venv hpc_py10_env
source hpc_py10_env/bin/activate
pip install -r environments/requirements_py10.txt
Run:
6. build_residuals_validation.py
using submit_residuals.py
Supplemental analyses and figures
Make sure you have downloaded the atlas files from Zenodo. If you skipped the data analysis part, just download the results and data files. Set up the local Python environment:
python -m venv env
source env/bin/activate
pip install -r environments/requirements_local.txt
Run:
medication_usage.ipynb
convert_ados.ipynb
correlate_severity.ipynb
Figures
get_boot_ids.py
- run this first.figure_1_network.ipynb
figure_1supplementary_null.ipynb
figure_2_profile.ipynb
figure_2supplementary_performance.ipynb
figure_3_nuisance.ipynb
figure_4_dice.ipynb
figure_4_ppv.ipynb
figure_7_conformal_space.ipynb
Version History
main @ d423b33 (earliest) Created 11th Apr 2025 at 22:49 by Natasha Clarke
Update README.md
Added links
Frozen
main
d423b33

Creators
Submitter
Views: 46 Downloads: 4
Created: 11th Apr 2025 at 22:49

This item has not yet been tagged.

None