Skip to content

Commit 94cb119

Browse files
Refactored VB Index (#73)
feat: Refactor codebase into py_vb_toolbox package for volumetric analysis Refactors the original `app.py` and `vb_index.py` scripts into a modular Python package (`vb_toolbox`). - Organizes code into modules: `vb_cli`, `vol_pipe`, `math_util`, `multiprocess_util`, `io_util`. - Focuses implementation on volumetric searchlight analysis (VB Index & ReHo). - Improves CLI using `argparse` subparsers (currently `volumetric`). - Variety of old (untested) functionality removed - to consider adding at a later date. - Still need to add unit test
1 parent 3008e51 commit 94cb119

File tree

12 files changed

+999
-2388
lines changed

12 files changed

+999
-2388
lines changed

README.md

Lines changed: 51 additions & 208 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "vb_tool"
7+
version = "2.3"
8+
authors = [
9+
{ name="Claude J. Bajada", email="claude.bajada@um.edu.mt" },
10+
{ name = "Lucas Campos"},
11+
{ name = "Christine Farrugia"},
12+
{ name = "Kenneth Scerri"},
13+
{ name = "Aitor Alberdi"},
14+
{ name = "Paola Galdi"},
15+
{ name = "Keith George Ciantar"},
16+
{ name = "Stephan Heunis"}
17+
]
18+
description = "Vogt-Bailey Index toolbox in Python"
19+
readme = "README.md"
20+
requires-python = ">=3.7"
21+
license-files = ["LICENSE.txt"]
22+
keywords = ["Vogt-Bailey Index", "VB Index", "Neuroimaging", "fMRI", "Brain"]
23+
classifiers = [
24+
"Programming Language :: Python :: 3",
25+
"Operating System :: POSIX :: Linux",
26+
"Operating System :: MacOS"
27+
]
28+
29+
dependencies = [
30+
"dill==0.4.0",
31+
"multiprocess==0.70.18",
32+
"nibabel==5.3.2",
33+
"numpy==2.2.5",
34+
"packaging==25.0",
35+
"scipy==1.15.2",
36+
"textwrap3==0.9.2",
37+
"typing_extensions==4.13.2"
38+
]
39+
40+
[project.scripts]
41+
# CLI entry points:
42+
vb_tool = "vb_toolbox.vb_cli:main"
43+
44+
[tool.setuptools]
45+
packages = ["vb_toolbox"]

requirements.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
argparse
2-
numpy
3-
scipy
4-
nibabel
5-
multiprocess
6-
textwrap3
1+
dill==0.4.0
2+
multiprocess==0.70.18
3+
nibabel==5.3.2
4+
numpy==2.2.5
5+
packaging==25.0
6+
scipy==1.15.2
7+
textwrap3==0.9.2
8+
typing_extensions==4.13.2

setup.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

vb_toolbox/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)