Skip to main content
Ctrl K

PCNtoolkit

PCNtoolkit is an open-source Python package for Normative Modelling of neuroimaging data.

19
contributors
Get started
1312 commitsLast commit ≈ 2 days ago175 stars81 forks

Cite this software

Description

PCNtoolkit

Downloads DOI License: GPL v3 OpenSSF Best Practices

PCNtoolkit is an open-source Python package for Normative Modelling of neuroimaging data.

Deprecation warning

With version 1.X.X (June 2025), PCNtoolkit was rewritten to be object-oriented, making it more extendable and maintainable. As a result, version 0.X.X is not compatible with 1.X.X and is no longer actively maintained.

Installation

pip install pcntoolkit

Example usage

from pcntoolkit import load_fcon1000, BLR, NormativeModel

fcon1000 = load_fcon1000()

train, test = fcon1000.train_test_split()

# Create a BLR model with heteroskedastic noise
model = NormativeModel(BLR(heteroskedastic=True), 
                       inscaler='standardize', 
                       outscaler='standardize')

model.fit_predict(train, test)

Help and support

Users

The best place to learn Normative Modelling and the PCNtoolkit is our website documentation.

Feel free to ask your questions and engage in discussions with the community on the NeuroStars online forum. Please add the tag pcntoolkit to your post.

Contributors

Contributions are always welcome! To start see our website contributing guidelines.

You can find more in depth guidelines in our GitHub Wiki.

Funding

This software has received funding from the:

  • Wellcome Trust (Digital Innovator award 'BRAINCHART', 215698/Z/19/Z),
  • European Research Council (ERC grant 'MENTALPRECISION', 101001118),
  • Dutch Research Council (NWO VIDI grants 016.156.415, 864.12.003 and NWO Gravitation grant 024.001.006),
  • Dutch Sectorplan 'AI and data-driven Innovation'.

License

PCNtoolkit is released under the GPL-3.0-only license.

Keywords
Programming language
  • Python 100%
License
</>Source code
Packages

Reference papers

Contributors

AM
Andre Marquand
Author and Creator
King's College London
0000-0001-5903-203X
SdB
Stijn de Boer
SR
Saige Rutherford
KT
Konstantinos Tsilimparis
SK
Seyed Mostafa Kia
TW
Thomas Wolfers
PB
Pierre Berthet
HH
Hester Huijsdens
Donders Institute for Brain, Cognition and Behaviour
0000-0001-7039-8390
LP
Linden Parkes
CF
Charlotte Fraza
ES
Emin Serin
DJ
Divye Joshi