clabtoolkit 0.4.1__tar.gz → 0.4.2__tar.gz
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.
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/PKG-INFO +1 -1
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/freesurfertools.py +1 -1
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/imagetools.py +2 -2
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/pointstools.py +9 -10
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit.egg-info/PKG-INFO +1 -1
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit.egg-info/SOURCES.txt +0 -3
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/pyproject.toml +1 -1
- clabtoolkit-0.4.1/docs/build/html/_static/file.png +0 -0
- clabtoolkit-0.4.1/docs/build/html/_static/minus.png +0 -0
- clabtoolkit-0.4.1/docs/build/html/_static/plus.png +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/AUTHORS.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/CONTRIBUTING.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/HISTORY.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/LICENSE +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/MANIFEST.in +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/README.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/__init__.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/bidstools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/build_visualization_layout.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/colorstools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/bids.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/config.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/lobes.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/stats_mapping.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/viz_views.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/config/viz_views_test.json +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/connectivitytools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/connectome.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/dicomtools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/dwitools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/misctools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/misctools_utils.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/morphometrytools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/networktools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/old_dwitool.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/parcellationtools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/pipelinetools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/plottools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/qcqatools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/segmentationtools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/surfacetools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/tracttools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/visualization_utils.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit/visualizationtools.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit.egg-info/dependency_links.txt +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit.egg-info/requires.txt +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/clabtoolkit.egg-info/top_level.txt +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/Makefile +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/clabtoolkit.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/make.bat +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/modules.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/conf.py +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/index.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/bidstools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/connectivitytools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/dicomtools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/dwitools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/freesurfertools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/imagetools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/misctools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/morphometrytools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/networktools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/parcellationtools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/pipelinetools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/plottools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/qcqatools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/segmentationtools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/surfacetools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/docs/source/modules/visualizationtools.rst +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/setup.cfg +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-colorstools-methods.ipynb +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-misctools-methods.ipynb +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-parcellationtools-methods.ipynb +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-surfacetools-methods.ipynb +0 -0
- {clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-visualizationtools-methods.ipynb +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clabtoolkit
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A comprehensive toolkit for neuroimaging data processing and analysis
|
|
5
5
|
Author-email: Yasser Alemán-Gómez <yasseraleman@protonmail.com>
|
|
6
6
|
Maintainer-email: Yasser Alemán-Gómez <yasseraleman@protonmail.com>
|
|
@@ -3998,7 +3998,7 @@ class FreeSurferSubject:
|
|
|
3998
3998
|
)
|
|
3999
3999
|
fslut_file = os.path.join("/tmp", tmp_name)
|
|
4000
4000
|
|
|
4001
|
-
lut_dict =
|
|
4001
|
+
lut_dict = cltcol.ColorTableLoader.read_luttable(fslut_file)
|
|
4002
4002
|
|
|
4003
4003
|
# Remove the temporary file
|
|
4004
4004
|
os.remove(fslut_file)
|
|
@@ -1530,8 +1530,8 @@ def create_spams(
|
|
|
1530
1530
|
in_file=str(lut_table)
|
|
1531
1531
|
)
|
|
1532
1532
|
else:
|
|
1533
|
-
lut_dict =
|
|
1534
|
-
|
|
1533
|
+
lut_dict = cltcol.ColorTableLoader.read_luttable(
|
|
1534
|
+
str(lut_table)
|
|
1535
1535
|
)
|
|
1536
1536
|
|
|
1537
1537
|
sts_ids = lut_dict["index"]
|
|
@@ -10,8 +10,7 @@ import copy
|
|
|
10
10
|
|
|
11
11
|
# Importing local modules
|
|
12
12
|
from . import misctools as cltmisc
|
|
13
|
-
from . import
|
|
14
|
-
from . import colorstools as cltcolors
|
|
13
|
+
from . import colorstools as cltcol
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
# Utility function for interpolating streamline values
|
|
@@ -95,9 +94,9 @@ class PointCloud:
|
|
|
95
94
|
raise ValueError(f"Alpha value must be in the range [0, 1], got {alpha}")
|
|
96
95
|
|
|
97
96
|
# Handle color input
|
|
98
|
-
color =
|
|
97
|
+
color = cltcol.harmonize_colors(color, output_format="rgb") / 255
|
|
99
98
|
|
|
100
|
-
tmp_ctable =
|
|
99
|
+
tmp_ctable = cltcol.colors_to_table(colors=color, alpha_values=alpha)
|
|
101
100
|
tmp_ctable[:, :3] = tmp_ctable[:, :3] / 255 # Ensure colors are between 0 and 1
|
|
102
101
|
|
|
103
102
|
# Store parcellation information in organized structure
|
|
@@ -618,7 +617,7 @@ class PointCloud:
|
|
|
618
617
|
names = ctable["names"]
|
|
619
618
|
|
|
620
619
|
# Converting RGB to hex
|
|
621
|
-
colors =
|
|
620
|
+
colors = cltcol.harmonize_colors(color_table[:, :3], output_format="hex")
|
|
622
621
|
|
|
623
622
|
# Get point indices/values
|
|
624
623
|
point_indices = self.point_data[colortable_name]
|
|
@@ -845,7 +844,7 @@ class PointCloud:
|
|
|
845
844
|
|
|
846
845
|
# Load the colortable using the utility function
|
|
847
846
|
if lut_type == "lut":
|
|
848
|
-
lut_dict =
|
|
847
|
+
lut_dict = cltcol.ColorTableLoader.read_luttable(lut_dict)
|
|
849
848
|
else:
|
|
850
849
|
raise ValueError(
|
|
851
850
|
f"Unsupported lut_type: '{lut_type}'. Currently only 'lut' is supported."
|
|
@@ -859,9 +858,9 @@ class PointCloud:
|
|
|
859
858
|
raise ValueError(
|
|
860
859
|
f"Colortable in {lut_file} does not cover all IDs in point_data for map '{map_name}'."
|
|
861
860
|
)
|
|
862
|
-
color_table =
|
|
861
|
+
color_table = cltcol.colors_to_table(colors=colors, values=values)
|
|
863
862
|
else:
|
|
864
|
-
color_table =
|
|
863
|
+
color_table = cltcol.colors_to_table(colors=colors)
|
|
865
864
|
|
|
866
865
|
if isinstance(opacity, (int, float)):
|
|
867
866
|
# opacity is a scalar, apply to all entries
|
|
@@ -1563,8 +1562,8 @@ def merge_pointclouds(
|
|
|
1563
1562
|
|
|
1564
1563
|
# Creating a colortable in case it is not provided
|
|
1565
1564
|
if color_table is None:
|
|
1566
|
-
colors =
|
|
1567
|
-
color_table =
|
|
1565
|
+
colors = cltcol.create_distinguishable_colors(n_tracts)
|
|
1566
|
+
color_table = cltcol.colors_to_table(
|
|
1568
1567
|
colors=colors, alpha_values=1, values=range(n_tracts)
|
|
1569
1568
|
)
|
|
1570
1569
|
color_table[:, :3] = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clabtoolkit
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: A comprehensive toolkit for neuroimaging data processing and analysis
|
|
5
5
|
Author-email: Yasser Alemán-Gómez <yasseraleman@protonmail.com>
|
|
6
6
|
Maintainer-email: Yasser Alemán-Gómez <yasseraleman@protonmail.com>
|
|
@@ -45,9 +45,6 @@ docs/Makefile
|
|
|
45
45
|
docs/clabtoolkit.rst
|
|
46
46
|
docs/make.bat
|
|
47
47
|
docs/modules.rst
|
|
48
|
-
docs/build/html/_static/file.png
|
|
49
|
-
docs/build/html/_static/minus.png
|
|
50
|
-
docs/build/html/_static/plus.png
|
|
51
48
|
docs/source/conf.py
|
|
52
49
|
docs/source/index.rst
|
|
53
50
|
docs/source/modules/bidstools.rst
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "clabtoolkit"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.2"
|
|
8
8
|
description = "A comprehensive toolkit for neuroimaging data processing and analysis"
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "Yasser Alemán-Gómez", email = "yasseraleman@protonmail.com"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-parcellationtools-methods.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
{clabtoolkit-0.4.1 → clabtoolkit-0.4.2}/usage_examples/examples-visualizationtools-methods.ipynb
RENAMED
|
File without changes
|