-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
249 lines (217 loc) · 7.98 KB
/
pyproject.toml
File metadata and controls
249 lines (217 loc) · 7.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "corticalfields"
version = "0.2.7"
description = "Spectral cortical and subcortical analysis with statistical testing (RSA, CCA, PLS, PERMANOVA, TFCE, NBS, laterality classification), on meshes and point clouds — Laplace-Beltrami decomposition, atlas-free asymmetry, GPU-accelerated optimal transport, hippocampal subfield analysis (HippUnfold), ShapeDNA/BrainPrint spectral fingerprinting, geometric deep learning, Bayesian inference, and normative modeling for structural neuroimaging."
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.9"
authors = [
{name = "rdneuro", email = "r.debona@ufrj.br"},
]
keywords = [
"neuroimaging", "cortical-surface", "point-cloud",
"gaussian-process", "normative-modeling", "epilepsy",
"heat-kernel-signature", "laplace-beltrami", "surprise-maps",
"spectral-analysis", "functional-maps", "optimal-transport",
"bayesian-inference", "horseshoe-prior", "pymc",
"geometric-deep-learning", "diffusionnet", "equivariant",
"hippocampus", "hippunfold", "subcortical", "shape-analysis",
"mtle-hs", "temporal-lobe-epilepsy", "shapedna", "brainprint",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
# ── Core dependencies (always installed) ────────────────────────────────
# These are required for the spectral analysis pipeline (surface I/O,
# Laplace-Beltrami, HKS/WKS/GPS, GP kernels, normative modeling).
# Note: pymc is NOT a core dep — it's in [bayesian] below.
dependencies = [
"numpy>=1.24",
"scipy>=1.10",
"nibabel>=5.0",
"torch>=2.0",
"gpytorch>=1.11",
"scikit-sparse>=0.4",
"trimesh>=4.0",
"pyvista>=0.42",
"matplotlib>=3.7",
"tqdm>=4.65",
"joblib>=1.3",
"pandas>=2.0",
]
# ── Optional dependency groups ──────────────────────────────────────────
#
# Install what you need:
#
# pip install corticalfields # core spectral pipeline
# pip install corticalfields[pointcloud] # + point cloud LBO + morphometrics
# pip install corticalfields[pointcloud-dl] # + DiffusionNet, EGNN, PyG
# pip install corticalfields[pointcloud-ot] # + GPU Sinkhorn (GeomLoss)
# pip install corticalfields[all-pointcloud] # all point cloud extras
# pip install corticalfields[bayesian] # + Bayesian analysis
# pip install corticalfields[bayesian-fast] # + nutpie (fastest CPU sampler)
# pip install corticalfields[bayesian-gpu] # + numpyro/blackjax (GPU)
# pip install corticalfields[viz] # + brain surface viz
# pip install corticalfields[all] # everything
[project.optional-dependencies]
# ── Point cloud processing ──────────────────────────────────────────────
# Lightweight: LBO on point clouds + morphometrics + Open3D
pointcloud = [
"robust-laplacian>=0.2.4",
"open3d>=0.18",
"potpourri3d>=0.0.8",
]
# Deep learning on point clouds: DiffusionNet, EGNN, PyG
pointcloud-dl = [
"corticalfields[pointcloud]",
"torch-geometric>=2.4",
]
# GPU-accelerated optimal transport on point clouds
pointcloud-ot = [
"corticalfields[pointcloud]",
"POT>=0.9",
"geomloss>=0.2",
]
# Point cloud registration (CPD, BCPD)
pointcloud-reg = [
"corticalfields[pointcloud]",
"pycpd>=2.0",
]
# All point cloud extras
all-pointcloud = [
"corticalfields[pointcloud]",
"corticalfields[pointcloud-dl]",
"corticalfields[pointcloud-ot]",
"corticalfields[pointcloud-reg]",
]
# ── Bayesian analysis ───────────────────────────────────────────────────
# PyMC + ArViz + PreLiz + PgmPy + Bambi
bayesian = [
"pymc>=5.10",
"arviz>=0.15",
"preliz==0.17",
"pgmpy>=0.1.25",
"bambi>=0.13",
"pymc-extras>=0.1",
"seaborn>=0.13",
]
# Bayesian + nutpie (fastest CPU sampler, ~2x speedup)
bayesian-fast = [
"corticalfields[bayesian]",
"nutpie>=0.9",
]
# Bayesian + JAX GPU samplers
bayesian-gpu = [
"corticalfields[bayesian]",
"numpyro>=0.14",
"blackjax>=1.0",
"jax[cuda13]>=0.4",
]
bayesian-all = [
"corticalfields[bayesian]",
"corticalfields[bayesian-gpu]",
"corticalfields[bayesian-fast]",
]
# ── LaPy backend ────────────────────────────────────────────────────────
lapy = [
"lapy>=1.0",
]
lapy-fast = [
"lapy[chol]>=1.0",
]
# ── Misc GPU / graph backends ───────────────────────────────────────────
igraph = [
"igraph>=0.10",
]
cuda = [
"cupy-cuda13x",
]
# ── Hippocampal analysis ─────────────────────────────────────────────────
hippocampus = [
"corticalfields[viz]",
"brainspace>=0.1",
]
# ── Subcortical shape analysis ──────────────────────────────────────────
subcortical = [
"corticalfields[pointcloud]",
"corticalfields[pointcloud-ot]",
]
# ── Tutorials (synthetic clinical data + statistical testing) ───────────
tutorials = [
"pandas>=2.0",
"seaborn>=0.13",
]
# ── Visualization ───────────────────────────────────────────────────────
viz = [
"surfplot>=0.2",
"brainspace>=0.1",
"neuromaps>=0.0.4",
]
# ── Full spectral pipeline extras (no GPU, no Bayesian) ────────────────
spectral-full = [
"robust-laplacian>=0.2",
"corticalfields[lapy-fast]",
"corticalfields[igraph]",
"potpourri3d>=0.0.8",
"geometric-kernels>=0.2",
]
# ── Everything ──────────────────────────────────────────────────────────
all = [
"corticalfields[spectral-full]",
"corticalfields[all-pointcloud]",
"corticalfields[bayesian-all]",
"corticalfields[stats-all]",
"corticalfields[cuda]",
"corticalfields[viz]",
"corticalfields[lapy-fast]",
"corticalfields[igraph]",
"corticalfields[hippocampus]",
"corticalfields[subcortical]",
"corticalfields[tutorials]",
]
# ── Development ─────────────────────────────────────────────────────────
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.1",
]
[project.urls]
Homepage = "https://github.com/rdneuro/corticalfields"
Documentation = "https://corticalfields.readthedocs.io"
[tool.setuptools.packages.find]
where = ["src"]
[tool.ruff]
line-length = 88
target-version = "py39"
# ── Statistical analysis (NEW v0.3.0) ──────────────────────────────────
stats = [
"scikit-learn>=1.3",
"scikit-bio>=0.5",
"hyppo>=0.4",
"dcor>=0.6",
]
stats-laterality = [
"corticalfields[stats]",
"xgboost>=2.0",
"shap>=0.43",
]
stats-conformal = [
"corticalfields[stats]",
"mapie>=0.8",
]
stats-harmonize = [
"neuroCombat>=0.2",
]
stats-all = [
"corticalfields[stats]",
"corticalfields[stats-laterality]",
"corticalfields[stats-conformal]",
"corticalfields[stats-harmonize]",
]