subcortex-visualization 1.3.3__py3-none-any.whl → 1.3.4__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.
- subcortex_visualization/__init__.py +3 -1
- subcortex_visualization/plotting.py +84 -15
- subcortex_visualization/segmentation.py +11 -4
- subcortex_visualization/utils.py +13 -19
- {subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/METADATA +23 -7
- {subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/RECORD +9 -9
- {subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/WHEEL +1 -1
- {subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/licenses/LICENSE.txt +0 -0
- {subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/top_level.txt +0 -0
|
@@ -630,29 +630,85 @@ def _plot_helper_cerebellum(atlas_ordering, paths, value_column='value', hemisph
|
|
|
630
630
|
return fig, ax
|
|
631
631
|
|
|
632
632
|
|
|
633
|
-
|
|
633
|
+
_SVG_VIEWS = ('medial', 'lateral', 'superior', 'inferior')
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
def _composite_svg_name(atlas, hemi, view):
|
|
637
|
+
"""File name of a composite (all-regions-in-one) SVG for one hemisphere/view."""
|
|
638
|
+
return f"{atlas}_{hemi}_{view}.svg"
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
def _detect_svg_layout(atlas, atlas_data_path):
|
|
642
|
+
"""
|
|
643
|
+
Determine how an atlas's vector graphics are stored, based on the files present.
|
|
644
|
+
|
|
645
|
+
Parameters
|
|
646
|
+
----------
|
|
647
|
+
atlas : str
|
|
648
|
+
Atlas name (also the prefix of any composite SVG files).
|
|
649
|
+
|
|
650
|
+
atlas_data_path : pathlib.Path or importlib.resources.abc.Traversable
|
|
651
|
+
Directory holding the atlas's ordering CSVs and SVGs.
|
|
652
|
+
|
|
653
|
+
Returns
|
|
654
|
+
-------
|
|
655
|
+
str
|
|
656
|
+
'individual' if the atlas has a ``vectors/`` subdirectory with one SVG per
|
|
657
|
+
region/hemisphere/view (``{region}_{H}_{view}.svg``), or 'composite' if it has
|
|
658
|
+
one traced SVG per hemisphere and view (``{atlas}_{L|R|both}_{view}.svg``) in which
|
|
659
|
+
each region's ``<path>`` is identified by a ``<title>`` of ``{region}_{view}_{H}``.
|
|
660
|
+
If both layouts are present, 'individual' takes precedence.
|
|
661
|
+
|
|
662
|
+
Raises
|
|
663
|
+
------
|
|
664
|
+
FileNotFoundError
|
|
665
|
+
If neither layout is found.
|
|
666
|
+
"""
|
|
667
|
+
if atlas_data_path.joinpath('vectors').is_dir():
|
|
668
|
+
return 'individual'
|
|
669
|
+
|
|
670
|
+
composite_names = {_composite_svg_name(atlas, h, v)
|
|
671
|
+
for h in ('L', 'R', 'both') for v in _SVG_VIEWS}
|
|
672
|
+
if any(f.name in composite_names for f in atlas_data_path.iterdir()):
|
|
673
|
+
return 'composite'
|
|
674
|
+
|
|
675
|
+
raise FileNotFoundError(
|
|
676
|
+
f"No vector graphics found for atlas '{atlas}' in {atlas_data_path}. Expected either "
|
|
677
|
+
f"a 'vectors/' subdirectory with one SVG per region (named '{{region}}_{{L|R}}_{{view}}.svg'), "
|
|
678
|
+
f"or one traced SVG per hemisphere and view (named '{atlas}_{{L|R}}_{{view}}.svg')."
|
|
679
|
+
)
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
def _plot_helper(atlas_ordering, atlas_data_path, atlas, value_column='value',
|
|
634
683
|
hemisphere='L', subcortex_data=None,
|
|
635
|
-
views=['medial', 'lateral'], color_lookup=None,
|
|
684
|
+
views=['medial', 'lateral'], color_lookup=None,
|
|
636
685
|
cmap=None, NA_fill="#cccccc", fill_alpha=1.0,
|
|
637
686
|
fill_by_significance=False, nonsig_fill_alpha=0.5,
|
|
638
687
|
norm=None, line_color='black', line_thickness=1.5):
|
|
639
688
|
"""
|
|
640
|
-
|
|
689
|
+
Plot helper for 'composite' atlases, where all regions for a given hemisphere and view are
|
|
690
|
+
traced in one SVG and each region's <path> is identified by its <title>
|
|
691
|
+
(format: {region}_{view}_{hemisphere}). This is the layout produced by the manual tracing
|
|
692
|
+
pipeline (e.g., the Brainstem Navigator atlas), and handles midline (bilateral) regions.
|
|
641
693
|
|
|
642
694
|
SVG naming conventions handled here:
|
|
643
|
-
- medial / lateral views -->
|
|
644
|
-
- superior / inferior views (hemisphere='both') --> combined file
|
|
645
|
-
|
|
695
|
+
- medial / lateral views --> per-hemisphere files: {atlas}_{H}_{view}.svg
|
|
696
|
+
- superior / inferior views (hemisphere='both') --> combined file {atlas}_both_{view}.svg
|
|
697
|
+
if present; otherwise the per-hemisphere files are drawn as separate L and R panels
|
|
698
|
+
- superior / inferior views (hemisphere='L'/'R') --> per-hemisphere files: {atlas}_{H}_{view}.svg
|
|
646
699
|
|
|
647
700
|
Parameters
|
|
648
701
|
----------
|
|
649
|
-
|
|
702
|
+
|
|
650
703
|
atlas_ordering : pandas.DataFrame
|
|
651
704
|
DataFrame containing the atlas ordering information.
|
|
652
705
|
|
|
653
706
|
atlas_data_path : pathlib.Path
|
|
654
707
|
Path to the directory containing the SVG files for the atlas.
|
|
655
708
|
|
|
709
|
+
atlas : str
|
|
710
|
+
Atlas name, used as the prefix of the SVG file names.
|
|
711
|
+
|
|
656
712
|
value_column : str, default='value'
|
|
657
713
|
The name of the column in `atlas_ordering` that contains the values to be visualized.
|
|
658
714
|
|
|
@@ -714,8 +770,16 @@ def _plot_helper(atlas_ordering, atlas_data_path, value_column='value',
|
|
|
714
770
|
lm_panels = [('L', 'medial'), ('L', 'lateral'), ('R', 'lateral'), ('R', 'medial')]
|
|
715
771
|
lm_panels = [(h, v) for h, v in lm_panels if v in views]
|
|
716
772
|
|
|
717
|
-
# superior/inferior → one "both" SVG per view, rendered as a single panel
|
|
718
|
-
|
|
773
|
+
# superior/inferior → one "both" SVG per view, rendered as a single panel, if available;
|
|
774
|
+
# otherwise fall back to separate L and R panels (same order as the per-region layout)
|
|
775
|
+
si_panels = []
|
|
776
|
+
for v in SUP_INF_VIEWS:
|
|
777
|
+
if v not in views:
|
|
778
|
+
continue
|
|
779
|
+
if atlas_data_path.joinpath(_composite_svg_name(atlas, 'both', v)).is_file():
|
|
780
|
+
si_panels.append(('both', v))
|
|
781
|
+
else:
|
|
782
|
+
si_panels.extend([('L', v), ('R', v)] if v == 'superior' else [('R', v), ('L', v)])
|
|
719
783
|
|
|
720
784
|
else: # 'L' or 'R'
|
|
721
785
|
# Enforce (medial, lateral) order for L and (lateral, medial) order for R
|
|
@@ -848,7 +912,7 @@ def _plot_helper(atlas_ordering, atlas_data_path, value_column='value',
|
|
|
848
912
|
# ------------------------------------------------------------------
|
|
849
913
|
def _svg_filename(h, view):
|
|
850
914
|
"""Return the full path to the SVG for a given hemisphere/view combination."""
|
|
851
|
-
return str(atlas_data_path /
|
|
915
|
+
return str(atlas_data_path / _composite_svg_name(atlas, h, view))
|
|
852
916
|
|
|
853
917
|
for col_idx, (panel_hemi, view) in enumerate(lm_panels):
|
|
854
918
|
ax = axes[0, col_idx]
|
|
@@ -871,7 +935,7 @@ def _plot_helper(atlas_ordering, atlas_data_path, value_column='value',
|
|
|
871
935
|
for col_idx, (panel_hemi, view) in enumerate(si_panels):
|
|
872
936
|
ax = axes[row_idx, col_idx]
|
|
873
937
|
|
|
874
|
-
if
|
|
938
|
+
if panel_hemi == 'both':
|
|
875
939
|
# Use the combined "both" SVG; keep all rows (both hemispheres)
|
|
876
940
|
df_panel = (atlas_ordering
|
|
877
941
|
.loc[atlas_ordering['face'] == view]
|
|
@@ -1315,11 +1379,16 @@ def plot_subcortical_data(subcortex_data=None, atlas='aseg_subcortex', value_col
|
|
|
1315
1379
|
|
|
1316
1380
|
# Generate plot
|
|
1317
1381
|
|
|
1318
|
-
#
|
|
1319
|
-
if atlas == '
|
|
1382
|
+
# Work out how this atlas's vector graphics are stored (SUIT has its own single-SVG layout)
|
|
1383
|
+
svg_layout = None if atlas == 'SUIT_cerebellar_lobule' else _detect_svg_layout(atlas, atlas_data_path)
|
|
1384
|
+
|
|
1385
|
+
# Case 1: composite atlases, where all regions are traced in the same SVG for each hemisphere/view
|
|
1386
|
+
# and identified by their <title> (e.g., Brainstem_Navigator, or any manually traced atlas)
|
|
1387
|
+
if svg_layout == 'composite':
|
|
1320
1388
|
fig, axes = _plot_helper(
|
|
1321
|
-
atlas_ordering,
|
|
1389
|
+
atlas_ordering,
|
|
1322
1390
|
atlas_data_path,
|
|
1391
|
+
atlas=atlas,
|
|
1323
1392
|
value_column=value_column,
|
|
1324
1393
|
hemisphere=hemisphere,
|
|
1325
1394
|
subcortex_data=subcortex_data,
|
|
@@ -1379,7 +1448,7 @@ def plot_subcortical_data(subcortex_data=None, atlas='aseg_subcortex', value_col
|
|
|
1379
1448
|
flat_axes = [ax]
|
|
1380
1449
|
is_multi_panel = False
|
|
1381
1450
|
|
|
1382
|
-
#
|
|
1451
|
+
# Case 3: per-region atlases, with one SVG per region/hemisphere/view in vectors/
|
|
1383
1452
|
else:
|
|
1384
1453
|
svg_dir=f'{atlas_data_path}/vectors/'
|
|
1385
1454
|
|
|
@@ -3,9 +3,8 @@ import os
|
|
|
3
3
|
import numpy as np
|
|
4
4
|
import pandas as pd
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Neuroimaging imports (nilearn is imported inside parcel_segstats, since it is slow to import)
|
|
7
7
|
import nibabel as nib
|
|
8
|
-
from nilearn.image import resample_img
|
|
9
8
|
|
|
10
9
|
# Files
|
|
11
10
|
from importlib.resources import files
|
|
@@ -60,6 +59,8 @@ def parcel_segstats(input_vol, atlas_space='MNI152NLin6Asym',
|
|
|
60
59
|
-----
|
|
61
60
|
- Users should ensure that the input volume is in the same standard space as the atlas specified by `atlas_space` to avoid issues with affine and spatial dimension mismatches. If resampling is necessary, users must specify an interpolation method.
|
|
62
61
|
"""
|
|
62
|
+
from nilearn.image import resample_img
|
|
63
|
+
|
|
63
64
|
|
|
64
65
|
if isinstance(atlas, str):
|
|
65
66
|
atlas = [atlas]
|
|
@@ -81,9 +82,15 @@ def parcel_segstats(input_vol, atlas_space='MNI152NLin6Asym',
|
|
|
81
82
|
# Iterate over user-specified atlas(es)
|
|
82
83
|
for this_atlas in atlas:
|
|
83
84
|
|
|
84
|
-
|
|
85
|
+
# Atlases are stored either as one labelled volume ('{atlas}.nii.gz' or '{atlas}_subcortex.nii.gz')
|
|
86
|
+
# or as one binary NIfTI file per ROI (e.g., Brainstem_Navigator); detect which from the files present
|
|
87
|
+
atlas_dir = files("subcortex_visualization.atlases").joinpath(f"{atlas_space}/{this_atlas}")
|
|
88
|
+
single_volume_names = {f"{this_atlas}.nii.gz", f"{this_atlas}_subcortex.nii.gz"}
|
|
89
|
+
one_file_per_roi = (atlas_dir.is_dir() and
|
|
90
|
+
not any(f.name in single_volume_names for f in atlas_dir.iterdir()))
|
|
91
|
+
|
|
92
|
+
if one_file_per_roi:
|
|
85
93
|
# One NIFTI file per ROI — discover all .nii.gz files in the atlas directory
|
|
86
|
-
atlas_dir = files("subcortex_visualization.atlases").joinpath(f"{atlas_space}/{this_atlas}")
|
|
87
94
|
nifti_files = sorted([f for f in atlas_dir.iterdir() if f.name.endswith('.nii.gz')])
|
|
88
95
|
|
|
89
96
|
for roi_idx, nifti_path in enumerate(nifti_files):
|
subcortex_visualization/utils.py
CHANGED
|
@@ -19,7 +19,8 @@ def get_atlas_regions(atlas_name):
|
|
|
19
19
|
np.ndarray or tuple of np.ndarray
|
|
20
20
|
For most atlases: a 1-D array of region names ordered by segmentation index.
|
|
21
21
|
For 'SUIT_cerebellar_lobule': a tuple of (hemisphere_regions, vermis_regions).
|
|
22
|
-
For '
|
|
22
|
+
For atlases with midline regions (Hemisphere 'B' in the ordering file, e.g. 'Brainstem_Navigator'):
|
|
23
|
+
a tuple of (hemisphere_regions, midline_regions).
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
# If the atlas is the SUIT cerebellar lobules, use hemisphere of 'both'
|
|
@@ -30,32 +31,25 @@ def get_atlas_regions(atlas_name):
|
|
|
30
31
|
atlas_ordering = pd.read_csv(files("subcortex_visualization").joinpath(f"data/{atlas_name}/{atlas_name}_{hemisphere}_ordering.csv"))
|
|
31
32
|
|
|
32
33
|
# Identify regions for left/right cerebellar hemispheres versus vermis
|
|
33
|
-
hemisphere_regions = atlas_ordering.query("Hemisphere == 'L'").sort_values('seg_index').region.unique()
|
|
34
|
-
vermis_regions = atlas_ordering.query("Hemisphere=='V'").sort_values('seg_index').region.unique()
|
|
34
|
+
hemisphere_regions = np.asarray(atlas_ordering.query("Hemisphere == 'L'").sort_values('seg_index').region.unique())
|
|
35
|
+
vermis_regions = np.asarray(atlas_ordering.query("Hemisphere=='V'").sort_values('seg_index').region.unique())
|
|
35
36
|
|
|
36
37
|
# Return both lists of regions as a tuple
|
|
37
38
|
return (hemisphere_regions, vermis_regions)
|
|
38
39
|
|
|
39
|
-
#
|
|
40
|
-
|
|
41
|
-
# Load ordering file
|
|
42
|
-
atlas_ordering = pd.read_csv(files("subcortex_visualization").joinpath(f"data/{atlas_name}/{atlas_name}_L_ordering.csv"))
|
|
40
|
+
# Load the left-hemisphere ordering file just to get names
|
|
41
|
+
atlas_ordering = pd.read_csv(files("subcortex_visualization").joinpath(f"data/{atlas_name}/{atlas_name}_L_ordering.csv"))
|
|
43
42
|
|
|
43
|
+
# If some regions are midline ('B', e.g. Brainstem_Navigator) and some are 'L' or 'R', return both sets
|
|
44
|
+
if (atlas_ordering['Hemisphere'] == 'B').any():
|
|
44
45
|
# Sort by segmentation index and print the array of region names
|
|
45
|
-
hemisphere_regions = atlas_ordering.query("Hemisphere=='L'").sort_values('seg_index').region.unique()
|
|
46
|
-
midline_regions = atlas_ordering.query("Hemisphere=='B'").sort_values('seg_index').region.unique()
|
|
46
|
+
hemisphere_regions = np.asarray(atlas_ordering.query("Hemisphere=='L'").sort_values('seg_index').region.unique())
|
|
47
|
+
midline_regions = np.asarray(atlas_ordering.query("Hemisphere=='B'").sort_values('seg_index').region.unique())
|
|
47
48
|
|
|
48
49
|
# Return both lists of regions as a tuple
|
|
49
50
|
return (hemisphere_regions, midline_regions)
|
|
50
51
|
|
|
51
|
-
# Else,
|
|
52
|
-
|
|
53
|
-
hemisphere='L'
|
|
54
|
-
|
|
55
|
-
# Load ordering file
|
|
56
|
-
atlas_ordering = pd.read_csv(files("subcortex_visualization").joinpath(f"data/{atlas_name}/{atlas_name}_{hemisphere}_ordering.csv"))
|
|
57
|
-
|
|
58
|
-
# Sort by segmentation index and print the array of region names
|
|
59
|
-
unique_regions = atlas_ordering.sort_values('seg_index').region.unique()
|
|
52
|
+
# Else, sort by segmentation index and return the array of region names
|
|
53
|
+
unique_regions = np.asarray(atlas_ordering.sort_values('seg_index').region.unique())
|
|
60
54
|
|
|
61
|
-
|
|
55
|
+
return unique_regions
|
{subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: subcortex_visualization
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.4
|
|
4
4
|
Summary: A package to visualize subcortical and cerebellar brain data in two dimensions.
|
|
5
5
|
Author: Annie G. Bryant
|
|
6
6
|
Author-email: "Annie G. Bryant" <anniegbryant@gmail.com>
|
|
@@ -20,12 +20,19 @@ Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
|
|
|
20
20
|
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE.txt
|
|
23
|
+
Requires-Dist: numpy
|
|
24
|
+
Requires-Dist: pandas>=2.2
|
|
25
|
+
Requires-Dist: matplotlib
|
|
26
|
+
Requires-Dist: svgpath2mpl
|
|
27
|
+
Requires-Dist: nibabel
|
|
28
|
+
Requires-Dist: nilearn
|
|
23
29
|
Dynamic: author
|
|
24
30
|
Dynamic: license-file
|
|
31
|
+
Dynamic: requires-python
|
|
25
32
|
|
|
26
33
|
# subcortex_visualization: A toolbox for custom data visualization in the subcortex and cerebellum
|
|
27
34
|
|
|
28
|
-
[](https://doi.org/10.52294/001c.165884)
|
|
29
36
|
|
|
30
37
|
This package (implemented in Python and R) currently includes the following sixteen subcortical and cerebellar atlases for data visualization in two-dimensional vector graphics:
|
|
31
38
|
|
|
@@ -115,9 +122,11 @@ remotes::install_github("anniegbryant/subcortex_visualization", subdir = "subcor
|
|
|
115
122
|
|
|
116
123
|
### ❗️ Quick start
|
|
117
124
|
|
|
118
|
-
Running the code below (in either Python or R) will produce an image of the left subcortex in the `
|
|
125
|
+
Running the code below (in either Python or R) will produce an image of the left subcortex in the `Melbourne_S1` atlas, each region colored by its index, with the viridis color scheme:
|
|
119
126
|
|
|
120
127
|
```python
|
|
128
|
+
from subcortex_visualization import plot_subcortical_data
|
|
129
|
+
|
|
121
130
|
plot_subcortical_data(hemisphere='L', fill_title="Subcortical region index", atlas='Melbourne_S1')
|
|
122
131
|
```
|
|
123
132
|
|
|
@@ -148,10 +157,10 @@ The core plotting function in both Python and R is `plot_subcortical_data`, whic
|
|
|
148
157
|
| `subcortex_data` | `None` / `NULL` | Optional dataframe with columns `region`, `Hemisphere`, and `value_column`. If omitted, regions are colored by index. |
|
|
149
158
|
| `atlas` | `'aseg_subcortex'` | Atlas name (see full list below). |
|
|
150
159
|
| `value_column` | `'value'` | Column in `subcortex_data` to visualize. |
|
|
151
|
-
| `hemisphere` | `'L'` | `'L'`, `'R'`, `'
|
|
160
|
+
| `hemisphere` | `'L'` | `'L'`, `'R'`, `'both'`. |
|
|
152
161
|
| `views` | `['medial', 'lateral']` | Which faces to show. Options: `'medial'`, `'lateral'`, `'superior'`, `'inferior'`. Not applicable to SUIT. |
|
|
153
162
|
| `line_color` | `'black'` | Outline color for each region. |
|
|
154
|
-
| `line_thickness` | `0.5` | Outline thickness, or a column name in `subcortex_data` for per-region thickness. |
|
|
163
|
+
| `line_thickness` | `1.5` (`0.5` in R) | Outline thickness, or a column name in `subcortex_data` for per-region thickness. |
|
|
155
164
|
| `cmap` | `'viridis'` | Colormap name, a `matplotlib.colors.Colormap`, or (in R) a vector of hex colors or palette function. |
|
|
156
165
|
| `NA_fill` | `'#cccccc'` | Fill color for regions with missing data. |
|
|
157
166
|
| `fill_alpha` | `1.0` | Region opacity (0–1). |
|
|
@@ -162,6 +171,9 @@ The core plotting function in both Python and R is `plot_subcortical_data`, whic
|
|
|
162
171
|
| `show_legend` | `True` / `TRUE` | Whether to display the colorbar/legend. |
|
|
163
172
|
| `fill_title` | `'values'` | Colorbar label. |
|
|
164
173
|
| `fontsize` | `12` | Font size for figure text. |
|
|
174
|
+
| `plot_title` (Python-only) | `None` | Title for the plot. |
|
|
175
|
+
| `show_figure` (Python-only) | `True` | Whether figure should be displayed using `plt.show()`. |
|
|
176
|
+
| `ax` (Python-only) | `None` | Axes object to plot on, if applicable. |
|
|
165
177
|
|
|
166
178
|
Two additional utility functions are also available.
|
|
167
179
|
Check out the full [Python API](https://anniegbryant.github.io/subcortex_visualization/python_api/) or [R API](https://anniegbryant.github.io/subcortex_visualization/R_api/) reference:
|
|
@@ -172,8 +184,10 @@ Check out the full [Python API](https://anniegbryant.github.io/subcortex_visuali
|
|
|
172
184
|
Here's an example in Python for plotting both hemispheres with data randomly sampled from a normal distribution, using a blue–white–red diverging colormap centered at zero:
|
|
173
185
|
|
|
174
186
|
```python
|
|
187
|
+
from subcortex_visualization import plot_subcortical_data, get_atlas_regions
|
|
175
188
|
import matplotlib.colors as mcolors
|
|
176
189
|
import numpy as np
|
|
190
|
+
import pandas as pd
|
|
177
191
|
|
|
178
192
|
np.random.seed(127)
|
|
179
193
|
|
|
@@ -222,7 +236,7 @@ The following subcortical and cerebellar atlases are currently supported with mo
|
|
|
222
236
|
|
|
223
237
|
## 💡 Want to generate your own mesh and/or parcellation?
|
|
224
238
|
|
|
225
|
-
<img src="docs-site/docs/images/custom_vector_method.png" width="
|
|
239
|
+
<img src="docs-site/docs/images/custom_vector_method.png" width="85%">
|
|
226
240
|
|
|
227
241
|
This package provides sixteen subcortical, thalamic, and cerebellar atlases as a starting point.
|
|
228
242
|
The workflow can readily be extended to your favorite segmentation atlas, though!
|
|
@@ -251,7 +265,7 @@ We're also very grateful for ongoing contributions from members of the GitHub co
|
|
|
251
265
|
|
|
252
266
|
📜 Wu et al. (2026) *NeuroImage*: https://www.sciencedirect.com/science/article/pii/S1053811926000315
|
|
253
267
|
|
|
254
|
-
📜 Lawn et al. (2026) *
|
|
268
|
+
📜 Lawn et al. (2026) *Human Brain Mapping*: https://doi.org/10.1002/hbm.70645
|
|
255
269
|
|
|
256
270
|
📜 Guo et al. (2026) *Progress in Neuro-Psychopharmacology and Biological Psychiatry*: https://doi.org/10.1016/j.pnpbp.2026.111883
|
|
257
271
|
|
|
@@ -259,6 +273,8 @@ We're also very grateful for ongoing contributions from members of the GitHub co
|
|
|
259
273
|
|
|
260
274
|
📜 Levitis et al. (2026) *medRxiv* https://doi.org/10.64898/2026.08.28.26361643
|
|
261
275
|
|
|
276
|
+
📜 Zaffina et al. (2026) *bioRxiv* https://www.biorxiv.org/content/10.64898/2026.09.26.754452
|
|
277
|
+
|
|
262
278
|
|
|
263
279
|
## ❓📧 Questions, comments, or suggestions always welcome!
|
|
264
280
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
subcortex_visualization/__init__.py,sha256=
|
|
2
|
-
subcortex_visualization/plotting.py,sha256=
|
|
3
|
-
subcortex_visualization/segmentation.py,sha256=
|
|
4
|
-
subcortex_visualization/utils.py,sha256
|
|
1
|
+
subcortex_visualization/__init__.py,sha256=KcvCFqVfGRFjUC4OEKmarDYtOw2dFp5gOlCaLQGsSdQ,123
|
|
2
|
+
subcortex_visualization/plotting.py,sha256=AFs-pFAhm1N_Flo9_abq8uVmU0yrM0KHnqqAJZ2h07o,65853
|
|
3
|
+
subcortex_visualization/segmentation.py,sha256=x6hG9a8cDtn3Iqo-LzPlRsuVCrsGUU74BhIiI0J8K_w,14436
|
|
4
|
+
subcortex_visualization/utils.py,sha256=8BtQZVQf_1Q9VcvTE6pdNenNgi0iR9BH6L7dyhfmcf8,2449
|
|
5
5
|
subcortex_visualization/atlases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
subcortex_visualization/atlases/MNI152NLin2009cAsym/AICHA_subcortex/AICHA_subcortex.nii.gz,sha256=ka2HXpaUJghxtS_Zh5cR0PGFXPs67U4TG3cKYVkRpkw,168722
|
|
7
7
|
subcortex_visualization/atlases/MNI152NLin2009cAsym/AICHA_subcortex/AICHA_subcortex_lookup.csv,sha256=SZ0XQsuM7pIkd052ynmi7rG8RiK4CTv-BThE-w776a4,702
|
|
@@ -2363,8 +2363,8 @@ subcortex_visualization/data/aseg_subcortex/vectors/thalamus_R_lateral.svg,sha25
|
|
|
2363
2363
|
subcortex_visualization/data/aseg_subcortex/vectors/thalamus_R_medial.svg,sha256=LAQCGimQBzYKtYtN445p89dSaVlTvQi9gLGRlPcHvzU,903
|
|
2364
2364
|
subcortex_visualization/data/aseg_subcortex/vectors/thalamus_R_posterior.svg,sha256=m-RhJNViY5G4DtdzZkbBiK3S3MF2wIf6Eh5Zb_Mih2w,889
|
|
2365
2365
|
subcortex_visualization/data/aseg_subcortex/vectors/thalamus_R_superior.svg,sha256=1JbE6IPqZ33Dz69AXbFkqJJDQrrcpwhVHkKMjqq3ckE,1139
|
|
2366
|
-
subcortex_visualization-1.3.
|
|
2367
|
-
subcortex_visualization-1.3.
|
|
2368
|
-
subcortex_visualization-1.3.
|
|
2369
|
-
subcortex_visualization-1.3.
|
|
2370
|
-
subcortex_visualization-1.3.
|
|
2366
|
+
subcortex_visualization-1.3.4.dist-info/licenses/LICENSE.txt,sha256=XimfHe3DgLiY7Sd9GPyH3u_SjNfg0IF3QvCNBAYC6Rc,35137
|
|
2367
|
+
subcortex_visualization-1.3.4.dist-info/METADATA,sha256=0PgHPHC5wnoEUvdCVlH0XRxmTe-wd9bQoJiF79TmOBg,17659
|
|
2368
|
+
subcortex_visualization-1.3.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
2369
|
+
subcortex_visualization-1.3.4.dist-info/top_level.txt,sha256=NrC151UjYD1USCUAj_JFSZN6prg-WqbJWlP5CoC4r4E,24
|
|
2370
|
+
subcortex_visualization-1.3.4.dist-info/RECORD,,
|
|
File without changes
|
{subcortex_visualization-1.3.3.dist-info → subcortex_visualization-1.3.4.dist-info}/top_level.txt
RENAMED
|
File without changes
|