Metadata-Version: 2.4
Name: pcntoolkit
Version: 1.4.0
Summary: Predictive Clinical Neuroscience Toolkit
Author: Andre Marquand, Stijn de Boer, Konstantinos Tsilimparis, Seyed Mostafa Kia, Saige Rutherford, Charlotte Fraza, Barbora Rehák Bučková, Pieter Barkema, Thomas Wolfers, Mariam Zabihi, Richard Dinga, Johanna Bayer, Maarten Mennes, Hester Huijsdens, Linden Parkes, Pierre Berthet
License-Expression: GPL-3.0-only
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <3.14,>=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=2.1.0
Requires-Dist: scipy>=1.14.1
Requires-Dist: pandas>=2.2.3
Requires-Dist: xarray>=2024.11.0
Requires-Dist: pymc<7.0.0,>=6.0.0
Requires-Dist: pytensor<4.0.0,>=3.0.0
Requires-Dist: arviz<2.0.0,>=1.0.0
Requires-Dist: pymc-extras>=0.11.0
Requires-Dist: nutpie>=0.16.9
Requires-Dist: numba>=0.61.0
Requires-Dist: scikit-learn>=1.5.2
Requires-Dist: nibabel>=5.3.1
Requires-Dist: h5py>=3.12.1
Requires-Dist: h5netcdf>=1.3.0
Requires-Dist: cloudpickle>=3.0.0
Requires-Dist: packaging>=21.3
Requires-Dist: matplotlib>=3.9.2
Requires-Dist: seaborn>=0.13.2
Requires-Dist: dask>=2025.11.0
Requires-Dist: filelock>=3.13.0
Requires-Dist: ipywidgets>=8.1.5
Requires-Dist: ipykernel>=6.29.5
Requires-Dist: ipython>=8.0.0
Provides-Extra: dev
Requires-Dist: toml; extra == "dev"
Requires-Dist: sphinx-tabs>=3.4.7; extra == "dev"
Requires-Dist: pytest>=8.3.3; extra == "dev"
Requires-Dist: black>=24.10.0; extra == "dev"
Requires-Dist: pydata-sphinx-theme>=0.15.2; extra == "dev"
Requires-Dist: ruff>=0.8.6; extra == "dev"
Requires-Dist: coverage[toml]>=7.0.0; extra == "dev"
Requires-Dist: nbconvert>=7.15.0; extra == "dev"
Dynamic: license-file

# <img src="https://raw.githubusercontent.com/predictive-clinical-neuroscience/PCNtoolkit/dev/doc/_static/pcn-icon.png" alt="PCNtoolkit logo" height="52" align="top" style="vertical-align: middle; margin-bottom: 20px;" /> PCNtoolkit

[![Downloads][downloads-badge]][downloads-link]
[![DOI][doi-badge]][doi-link]
[![License: GPL v3][license-badge]][license-link]
[![OpenSSF Best Practices][openssf-badge]][openssf-link]

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

```bash
pip install pcntoolkit
```

## Example usage

```python
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](https://pcntoolkit.readthedocs.io/en/latest/).

Feel free to ask your questions and engage in discussions with the community on the [NeuroStars online forum](https://neurostars.org/tags/pcntoolkit). Please add the tag *pcntoolkit* to your post.

### Contributors

Contributions are always welcome! To start see our [website contributing guidelines](https://pcntoolkit.readthedocs.io/en/stable/pages/contributing.html).

You can find more in depth guidelines in our [GitHub Wiki](https://github.com/predictive-clinical-neuroscience/PCNtoolkit/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](https://github.com/predictive-clinical-neuroscience/PCNtoolkit/blob/dev/LICENSE) license.

<!-- Badge and link definitions -->
[downloads-badge]: https://static.pepy.tech/personalized-badge/pcntoolkit?period=month&units=international_system&left_color=grey&right_color=blue&left_text=PyPI%20downloads/month
[downloads-link]: https://pypi.org/project/pcntoolkit/

[license-badge]: https://img.shields.io/badge/License-GPLv3-blue.svg
[license-link]: https://www.gnu.org/licenses/gpl-3.0

[doi-badge]: https://img.shields.io/badge/DOI-10.5281%2Fzenodo.7498917-blue.svg
[doi-link]: https://doi.org/10.5281/zenodo.7498917

[openssf-badge]: https://www.bestpractices.dev/projects/14129/badge
[openssf-link]: https://www.bestpractices.dev/projects/14129

