This repository contains tutorials on normative modeling using the PCNtoolkit.
Please adhere to the citation guidelines availabe in each tutorial directory.
tutorials/
--> Contains the Python notebooks for all tutorials. Each tutorial is in a sub-directory within this folder.
- CPC_2020: Computational Psychiatry Course 2020 tutorial using Gaussian Process Regression (GPR)
- CPC_2021: Computational Psychiatry Course 2021 tutorial using Bayesian Linear Regression (BLR)
- BLR_protocol: The Normative Modeling Framework for Computational Psychiatry. Rutherford et al. 2022. Nature Protocols.
- HBR_FCON: A tutorial on Hierarchical Bayesian Linear Regression using FCON data (many sites).
- HBR_SHASH: SHASH mdoel extension of HBR.
- Long_NM: Tutorial for normative modelling on longitudinal data.
- SiteEffects_NM: Tutorial for using normative modelling for site effect correction.
- For a tutorial on GAMLSS see this repository and preprint.
data/
--> Contains the data used in the tutorials. Data created during the tutorial will be output into this folder.
It is recommended to run the tutorial via Google Colab python notebooks. These are essentially Jupyter notebooks run in the cloud. Running the code using Colab will save us from dealing with python library installation and virtual environment setup.
You can also locally clone this repository to your computer, however you are responsible for setting up your own python environment and installing the dependencies. Read more on how to do this and check the latest updates and dependencies on the PCNtoolkit's GitHub repository. Please note that some of the tutorials require different versions of the PCNtoolkit. You should always verify which version the tutorial requires before setting up your virtual environment.
For additional helpful tips on setting up Google colab and using keyboard shortcuts, also see the ReadMe file for the CPC course.
Each tutorial directory contains its' own ReadMe file containing specific instructions. When you are ready to run the analysis, you can launch the tutorial notebook by clicking the 'Open in Colab' button found in the tutorial's ReadMe file. You need to be signed in to a Google account in your internet browser and for best results, use Chrome web browser.