pcntoolkit 0.32.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pcntoolkit/__init__.py +4 -0
- pcntoolkit/configs.py +9 -0
- pcntoolkit/dataio/__init__.py +1 -0
- pcntoolkit/dataio/fileio.py +608 -0
- pcntoolkit/model/KnuOp.py +48 -0
- pcntoolkit/model/NP.py +88 -0
- pcntoolkit/model/NPR.py +86 -0
- pcntoolkit/model/SHASH.py +509 -0
- pcntoolkit/model/__init__.py +6 -0
- pcntoolkit/model/architecture.py +219 -0
- pcntoolkit/model/bayesreg.py +585 -0
- pcntoolkit/model/core.21290 +0 -0
- pcntoolkit/model/gp.py +489 -0
- pcntoolkit/model/hbr.py +1584 -0
- pcntoolkit/model/rfa.py +245 -0
- pcntoolkit/normative.py +1647 -0
- pcntoolkit/normative_NP.py +336 -0
- pcntoolkit/normative_model/__init__.py +6 -0
- pcntoolkit/normative_model/norm_base.py +62 -0
- pcntoolkit/normative_model/norm_blr.py +303 -0
- pcntoolkit/normative_model/norm_gpr.py +112 -0
- pcntoolkit/normative_model/norm_hbr.py +752 -0
- pcntoolkit/normative_model/norm_np.py +333 -0
- pcntoolkit/normative_model/norm_rfa.py +109 -0
- pcntoolkit/normative_model/norm_utils.py +29 -0
- pcntoolkit/normative_parallel.py +1420 -0
- pcntoolkit/regression_model/blr/warp.py +1 -0
- pcntoolkit/trendsurf.py +315 -0
- pcntoolkit/util/__init__.py +1 -0
- pcntoolkit/util/bspline.py +149 -0
- pcntoolkit/util/hbr_utils.py +242 -0
- pcntoolkit/util/utils.py +1698 -0
- pcntoolkit-0.32.0.dist-info/LICENSE +674 -0
- pcntoolkit-0.32.0.dist-info/METADATA +134 -0
- pcntoolkit-0.32.0.dist-info/RECORD +37 -0
- pcntoolkit-0.32.0.dist-info/WHEEL +4 -0
- pcntoolkit-0.32.0.dist-info/entry_points.txt +5 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pcntoolkit
|
|
3
|
+
Version: 0.32.0
|
|
4
|
+
Summary: Predictive Clinical Neuroscience Toolkit
|
|
5
|
+
License: GNU GPLv3
|
|
6
|
+
Author: Andre Marquand
|
|
7
|
+
Requires-Python: >=3.10,<3.13
|
|
8
|
+
Classifier: License :: Other/Proprietary License
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Requires-Dist: bspline (>=0.1.1,<0.2.0)
|
|
14
|
+
Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
|
|
15
|
+
Requires-Dist: nibabel (>=5.3.1,<6.0.0)
|
|
16
|
+
Requires-Dist: numba (>=0.60.0,<0.61.0)
|
|
17
|
+
Requires-Dist: nutpie (>=0.13.2,<0.14.0)
|
|
18
|
+
Requires-Dist: pymc (>=5.18.0,<6.0.0)
|
|
19
|
+
Requires-Dist: scikit-learn (>=1.5.2,<2.0.0)
|
|
20
|
+
Requires-Dist: scipy (>=1.12,<2.0)
|
|
21
|
+
Requires-Dist: seaborn (>=0.13.2,<0.14.0)
|
|
22
|
+
Requires-Dist: six (>=1.16.0,<2.0.0)
|
|
23
|
+
Requires-Dist: torch (>=2.1.1)
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# Predictive Clinical Neuroscience Toolkit
|
|
27
|
+
[](https://pcntoolkit.readthedocs.io/en/latest/?badge=latest) [](https://doi.org/10.5281/zenodo.5207839)
|
|
28
|
+
|
|
29
|
+
[Github](https://github.com/amarquand/PCNtoolkit)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Predictive Clinical Neuroscience software toolkit (formerly nispat).
|
|
33
|
+
|
|
34
|
+
Methods for normative modelling, spatial statistics and pattern recognition. Documentation, including tutorials can be found on [readthedocs](https://pcntoolkit.readthedocs.io/en/latest/). Click on the docs button above to visit the site.
|
|
35
|
+
|
|
36
|
+
## Basic installation (on a local machine)
|
|
37
|
+
|
|
38
|
+
#### Install anaconda3
|
|
39
|
+
|
|
40
|
+
using the download here: https://www.anaconda.com/download
|
|
41
|
+
|
|
42
|
+
#### Create environment
|
|
43
|
+
```
|
|
44
|
+
conda create -n <env_name> python==3.12
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Activate environment
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
source activate <env_name>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Install PCNtoolkit
|
|
54
|
+
|
|
55
|
+
Using pip:
|
|
56
|
+
```
|
|
57
|
+
pip install pcntoolkit
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Using a local clone of the repo:
|
|
61
|
+
```
|
|
62
|
+
python -m pip install .
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
#### Test installation
|
|
66
|
+
```
|
|
67
|
+
python -c "import pcntoolkit as pk;print(pk.__file__)"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Troubleshooting
|
|
71
|
+
|
|
72
|
+
#### Nutpie installation failure
|
|
73
|
+
On some older architectures, the installation of nutpie may fail due to a missing Rust compiler. If this is the case, you can install it manually using conda prior to installing PCNtoolkit:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
# install nutpie
|
|
77
|
+
conda install -c conda-forge nutpie
|
|
78
|
+
# install PCNtoolkit
|
|
79
|
+
pip install pcntoolkit
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Alternative installation (on a shared resource)
|
|
83
|
+
|
|
84
|
+
#### Make sure conda is available on the system.
|
|
85
|
+
Otherwise install it first from https://www.anaconda.com/
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
conda --version
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### Create a conda environment in a shared location
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
conda create -y python==3.12 --prefix=/shared/conda/<env_name>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
#### Activate the conda environment
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
conda activate /shared/conda/<env_name>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### Clone the repo
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
git clone https://github.com/amarquand/PCNtoolkit.git
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
#### Install in the conda environment
|
|
110
|
+
|
|
111
|
+
```
|
|
112
|
+
cd PCNtoolkit/
|
|
113
|
+
python -m pip install .
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### Test installation
|
|
117
|
+
```
|
|
118
|
+
python -c "import pcntoolkit as pk;print(pk.__file__)"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Quickstart usage
|
|
122
|
+
|
|
123
|
+
For normative modelling, functionality is handled by the normative.py script, which can be run from the command line, e.g.
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
# python normative.py -c /path/to/training/covariates -t /path/to/test/covariates -r /path/to/test/response/variables /path/to/my/training/response/variables
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
For more information, please see the following resources:
|
|
130
|
+
|
|
131
|
+
* [documentation](https://github.com/amarquand/PCNtoolkit/wiki/Home)
|
|
132
|
+
* [developer documentation](https://amarquand.github.io/PCNtoolkit/doc/build/html/)
|
|
133
|
+
* a tutorial and worked through example on a [real-world dataset](https://github.com/predictive-clinical-neuroscience/PCNtoolkit-demo)
|
|
134
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
pcntoolkit/__init__.py,sha256=PLMiNsEIeY0RoS8BoX5Jnup3F_i1deq4ZG8ZvPBBr_Y,108
|
|
2
|
+
pcntoolkit/configs.py,sha256=PRleFYyzOpkA5uk4Zq4s5pJpnwB1dye3PUTnfhoO6tM,129
|
|
3
|
+
pcntoolkit/dataio/__init__.py,sha256=pe1p7BkjmJJmVzdX1ViPQ1VPJnJXfZap2OighpNmSn8,21
|
|
4
|
+
pcntoolkit/dataio/fileio.py,sha256=DhrGfMQcGpYFNQalY6dxeQkvphP5D24Zbt-X5iGJiRc,16064
|
|
5
|
+
pcntoolkit/model/KnuOp.py,sha256=5zlzWhpt13E7h-NqD8Z8jtk02_3J2T6Y2wKvmj9g-I4,1218
|
|
6
|
+
pcntoolkit/model/NP.py,sha256=-ddgCDBpKyxpDwXKFSzyZnv85bbrZJ17cCkQNh3xZxw,3014
|
|
7
|
+
pcntoolkit/model/NPR.py,sha256=kKghpsZOAyN1ZJsP-9cVGd2o_tduBOWy1HVt0A7XYEQ,3162
|
|
8
|
+
pcntoolkit/model/SHASH.py,sha256=D53uVQFmU5uNcsHRuUSdX70YfkTwkZHVH_pT-Y4jWP0,15101
|
|
9
|
+
pcntoolkit/model/__init__.py,sha256=GoTDm0lk31xLfNHdz5QM_3r8kmxxXQqhXWYmDsJEH0A,120
|
|
10
|
+
pcntoolkit/model/architecture.py,sha256=Sg5_0hdCtPFnuj_IRgNwG4uo0TVXyI49SAs_1h7T8oE,11993
|
|
11
|
+
pcntoolkit/model/bayesreg.py,sha256=sRZEXE_tK6Qt_H7D1CWV0aMVzeyH1EG4Cp-kztVkcAM,21966
|
|
12
|
+
pcntoolkit/model/core.21290,sha256=c7wLIZKZprdGvPdrDotyOnNzVbFXcuuJFQfi-UYkRys,83619840
|
|
13
|
+
pcntoolkit/model/gp.py,sha256=PBzl-ORoZPs-pY2QyXo8l89aG5VY_YUugwEZMbDbet4,15178
|
|
14
|
+
pcntoolkit/model/hbr.py,sha256=shroFwDane5hf_3qq3vQhSb6jDTdAR3EeG1XblDDBPI,65435
|
|
15
|
+
pcntoolkit/model/rfa.py,sha256=n5R-gtEd9j_P5zgKAjq4DFGZHJypjTJoySiMbTnquNI,7779
|
|
16
|
+
pcntoolkit/normative.py,sha256=f3O8SOw4WLvF6xdfy4vQCH3ycNopWbFkD90yTlOFNbQ,63451
|
|
17
|
+
pcntoolkit/normative_NP.py,sha256=qK1ySDSsYBGLrixImo3G9tiNBoMqEJmoKLdC25mvUkg,15800
|
|
18
|
+
pcntoolkit/normative_model/__init__.py,sha256=5t60K6WzkuBQgsh84Tww3On90yJOk6IR-Yr7ytN3pdM,141
|
|
19
|
+
pcntoolkit/normative_model/norm_base.py,sha256=1acShPZAVfsD3lbliSdmgc4ZVT6tCHS1epFNIqRQ5wI,1527
|
|
20
|
+
pcntoolkit/normative_model/norm_blr.py,sha256=EUnKmYxeInalwOGnwNphdL2qNXD8461Ooef6N909NDA,11827
|
|
21
|
+
pcntoolkit/normative_model/norm_gpr.py,sha256=P-FKO3SMT2tHV-Ja3Q4pc5FxNeFT1ju5xuUFSJFpz6w,4062
|
|
22
|
+
pcntoolkit/normative_model/norm_hbr.py,sha256=DQY4CuYdYjFoIWaQxX2dEVUTHKTHUZdlUiv6HzPNAKo,31908
|
|
23
|
+
pcntoolkit/normative_model/norm_np.py,sha256=j_EqMlKkrU1iCO1GX6l5g-DEhv8EqQzfZmyMNjFaA9E,12447
|
|
24
|
+
pcntoolkit/normative_model/norm_rfa.py,sha256=GZ1ii-hHJZsbIIlQqcm4DfcZ1YqQaYUpqxp9Fl_m44s,3891
|
|
25
|
+
pcntoolkit/normative_model/norm_utils.py,sha256=6KJnjBWuuCVDLYJeivlEKIsugr9IuJ3sjlH0ZdmHZt8,999
|
|
26
|
+
pcntoolkit/normative_parallel.py,sha256=hokaWUYmLdHWiIOxxd5ohv8PRokqaORNmWzZo6QCn40,59250
|
|
27
|
+
pcntoolkit/regression_model/blr/warp.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
28
|
+
pcntoolkit/trendsurf.py,sha256=K9uPD9sRiJBkcpwFmCi8wr-_LFChUybh_scnMTP340w,11310
|
|
29
|
+
pcntoolkit/util/__init__.py,sha256=7Rm61zLv75HByr03XlwSkoP0Dhwr-ne1z39qFE1f7r8,20
|
|
30
|
+
pcntoolkit/util/bspline.py,sha256=xILN-MLwQxZOsx1Gtsuuw34uVk0GcIvagOa9pzedEbk,5808
|
|
31
|
+
pcntoolkit/util/hbr_utils.py,sha256=Pl7_EkH2TnkvfDqAaTVWWuWYef1MEiFU2lHqbmUqkOQ,8007
|
|
32
|
+
pcntoolkit/util/utils.py,sha256=uBKfB0DtutLW0rBhe5sQDK6ROuWSy8A-kr2pdbsR9iw,56500
|
|
33
|
+
pcntoolkit-0.32.0.dist-info/LICENSE,sha256=YyPk95Sa7OGbauFOYvDkKh3o1m5qznkTPh36Bsz5mU8,35140
|
|
34
|
+
pcntoolkit-0.32.0.dist-info/METADATA,sha256=E6MyRuAVAXhWvUOR4WMv8-6m8vTN7G1axQRscj8MN3k,3725
|
|
35
|
+
pcntoolkit-0.32.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
36
|
+
pcntoolkit-0.32.0.dist-info/entry_points.txt,sha256=_NXEZujBsm_vTi9JuXrwCz9a1HLyAQhXvsOg8mbqhp4,163
|
|
37
|
+
pcntoolkit-0.32.0.dist-info/RECORD,,
|