subcortex-visualization 0.1.11__tar.gz → 0.1.12__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.
- {subcortex_visualization-0.1.11/subcortex_visualization.egg-info → subcortex_visualization-0.1.12}/PKG-INFO +18 -17
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/README.md +18 -17
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/pyproject.toml +1 -1
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/setup.py +1 -1
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_L.svg +883 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_L_ordering.csv +36 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_R.svg +883 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_R_ordering.csv +36 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_both.svg +1920 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_AICHA_both_ordering.csv +71 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_L.svg +788 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_L_ordering.csv +33 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_R.svg +953 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_R_ordering.csv +33 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_both.svg +1687 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Brainnetome_both_ordering.csv +65 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_L.svg +316 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_L_ordering.csv +14 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_R.svg +316 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_R_ordering.csv +14 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_both.svg +588 -0
- subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Thalamus_Nuclei_HCP_both_ordering.csv +27 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization/plotting.py +7 -5
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12/subcortex_visualization.egg-info}/PKG-INFO +18 -17
- subcortex_visualization-0.1.12/subcortex_visualization.egg-info/SOURCES.txt +49 -0
- subcortex_visualization-0.1.11/subcortex_visualization.egg-info/SOURCES.txt +0 -31
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/LICENSE.txt +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/MANIFEST.in +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/setup.cfg +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization/__init__.py +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization/data/__init__.py +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S1_base_L.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_L.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S1_L_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_L_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S1_base_R.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_R.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S1_R_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_R_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S1_base_both.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_both.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S1_both_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S1_both_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S2_base_L.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_L.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S2_L_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_L_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S2_base_R.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_R.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S2_R_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_R_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_Tian_S2_base_both.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_both.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/Tian_S2_both_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_Melbourne_S2_both_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_aseg_base_L.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_L.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/aseg_L_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_L_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_aseg_base_R.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_R.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/aseg_R_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_R_ordering.csv +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/subcortex_aseg_base_both.svg → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_both.svg +0 -0
- /subcortex_visualization-0.1.11/subcortex_visualization/data/aseg_both_ordering.csv → /subcortex_visualization-0.1.12/subcortex_visualization/data/subcortex_aseg_both_ordering.csv +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization/data/subcortical_aseg_paths_lookup.csv +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization.egg-info/dependency_links.txt +0 -0
- {subcortex_visualization-0.1.11 → subcortex_visualization-0.1.12}/subcortex_visualization.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: subcortex_visualization
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.12
|
|
4
4
|
Summary: A package to visualize subcortical brain data in two dimensions.
|
|
5
5
|
Author: Annie G. Bryant
|
|
6
6
|
Author-email: "Annie G. Bryant" <anniegbryant@gmail.com>
|
|
@@ -25,27 +25,34 @@ Dynamic: license-file
|
|
|
25
25
|
|
|
26
26
|
# Subcortical data visualization in 2D
|
|
27
27
|
|
|
28
|
+
This python package currently includes the following six subcortical atlases for data visualization in two-dimensional vector graphics:
|
|
29
|
+
|
|
30
|
+
<img src="images/all_atlas_showcase.png" width="100%">
|
|
31
|
+
|
|
32
|
+
More information about these atlases, including the process of rendering the surfaces and tracing the outlines for each, can be found in the [`atlas_info/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/atlas_info) directory.
|
|
33
|
+
|
|
34
|
+
|
|
28
35
|
## 🙋♀️ Motivation
|
|
29
36
|
|
|
30
37
|
This Python package was created to generate two-dimensional subcortex images in the style of the popular [`ggseg` package](https://github.com/ggseg/ggseg) in R.
|
|
31
|
-
We based our vector graphic outlines on the three-dimensional subcortical meshes provided as part of the [ENIGMA toolbox](https://github.com/MICA-MNI/ENIGMA)
|
|
38
|
+
We based our vector graphic outlines on the three-dimensional subcortical meshes either (1) provided as part of the [ENIGMA toolbox](https://github.com/MICA-MNI/ENIGMA) for the aseg atlas or (2) meshes generated in-house using rendering software from [Chris Rorden's lab](https://github.com/neurolabusc) (either [nii2mesh](https://github.com/neurolabusc/nii2mesh) or [Surf Ice](https://github.com/neurolabusc/surf-ice); check out [`custom_segmentation_pipeline/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/custom_segmentation_pipeline) for more information).
|
|
32
39
|
|
|
33
|
-
The below graphic summarizes the transformation from 3D volumetric meshes to 2D surfaces, starting from the ENIGMA toolbox ('aseg' atlas, left) or a custom-rendered mesh from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master)
|
|
40
|
+
The below graphic summarizes the transformation from 3D volumetric meshes to 2D surfaces, starting from the ENIGMA toolbox ('aseg' atlas, left) or a custom-rendered mesh from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master) as published in [Tian et al. (2020)]()https://www.nature.com/articles/s41593-020-00711-6 -- ('S1' granularity level, right).
|
|
34
41
|
|
|
35
|
-
<img src="images/
|
|
42
|
+
<img src="images/aseg_and_Melbourne_S1_3D_to_2D_schematic.png" width="90%">
|
|
36
43
|
|
|
37
44
|
|
|
38
45
|
While `ggseg` offers subcortical plotting with the `aseg` atlas, it is [not currently possible](https://github.com/ggseg/ggseg/issues/104) to show data from all seven subcortical regions (accumbens, amygdala, caudate, hippocampus, pallidum, putamen, thalamus) in the same figure.
|
|
39
|
-
|
|
46
|
+
Moreover, there is currently no other software available to visualize any of the other above subcortical/thalamic atlases in 2D with real data, hence development here.
|
|
40
47
|
|
|
41
48
|
|
|
42
49
|
## 🖥️ Installation
|
|
43
50
|
|
|
44
51
|
The package can be installed from GitHub in two ways.
|
|
45
|
-
First, you can install directly with pip:
|
|
52
|
+
First, you can install directly with pip from the [PyPI repository](https://pypi.org/project/subcortex-visualization/):
|
|
46
53
|
|
|
47
54
|
```bash
|
|
48
|
-
pip install
|
|
55
|
+
pip install subcortex-visualization
|
|
49
56
|
```
|
|
50
57
|
|
|
51
58
|
If you would like to make your own modifications before installing, you can also clone this repository first and then install from your local version:
|
|
@@ -124,29 +131,23 @@ plot_subcortical_data(subcortex_data=example_continuous_data, atlas='aseg',
|
|
|
124
131
|
<img src="images/example_aseg_subcortex_normdist.png" width="80%">
|
|
125
132
|
|
|
126
133
|
|
|
127
|
-
### 🧠 Usage with different levels of granularity in the Melbourne Subcortex Atlas
|
|
128
|
-
|
|
129
|
-
We currently offer two levels of detail from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master): S1 (total of 16 regions) and S2 (total of 32 regions).
|
|
130
|
-
Here's a schematic overview of the conversion from 3D to 2D for these two segmentations:
|
|
131
|
-
|
|
132
|
-
<img src="images/Tian_S1_and_S2_3D_to_2D_schematic.png" width="90%">
|
|
133
|
-
|
|
134
134
|
## 💡 Want to generate your own mesh and/or parcellation?
|
|
135
135
|
|
|
136
|
-
This package provides
|
|
136
|
+
This package provides six subcortical atlases as a starting point.
|
|
137
137
|
The workflow can readily be extended to your favorite segmentation atlas, though!
|
|
138
138
|
We have a dedicated folder for a custom segmentation pipeline that will walk you through the two key steps:
|
|
139
|
-
1. Rendering a series of triangulated surface meshes from your parcellation atlas (starting from a .nii.gz volume), using the [`nii2mesh`](https://github.com/neurolabusc/nii2mesh) software developed by Chris Rorden; and
|
|
139
|
+
1. Rendering a series of triangulated surface meshes from your parcellation atlas (starting from a .nii.gz volume), using either the [`nii2mesh`](https://github.com/neurolabusc/nii2mesh) or [`surfice_atlas`](https://github.com/neurolabusc/surfice_atlas) software, both developed by Chris Rorden; and
|
|
140
140
|
2. Tracing the outline of each region in the rendered mesh in vector graphic editing software (we use Inkscape in the tutorial as a powerful and free option), to yield a two-dimensional image of your atlas in scalable vector graphic (.svg) format.
|
|
141
141
|
|
|
142
142
|
Check out the walkthrough in the [`custom_segmentation_pipeline/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/custom_segmentation_pipeline) folder for more information on how to render your own volumetric segmentation with an interactive mesh and convert to a two-dimensional vector graphic that can be integrated with this package.
|
|
143
143
|
|
|
144
144
|
## 🙏 Acknowledgments
|
|
145
145
|
|
|
146
|
-
Thank you very much to [
|
|
146
|
+
Thank you very much to [Chris Rorden](https://github.com/rordenlab), [Ye Tian](https://github.com/yetianmed), and [Sid Chopra](https://github.com/sidchop) for their suggestions and continued development of open tools for neuroimaging visualization that enabled development of this project!
|
|
147
147
|
|
|
148
148
|
## ❓📧 Questions, comments, or suggestions always welcome!
|
|
149
149
|
|
|
150
150
|
Please feel free to ask questions, report bugs, or share suggestions by creating an issue or by emailing me (Annie) at ([anniegbryant@gmail.com](mailto:anniegbryant@gmail.com)) 😊
|
|
151
151
|
|
|
152
152
|
As an [open-source tool](https://opensource.guide/how-to-contribute/), pull requests are always welcome from the community, too.
|
|
153
|
+
If you create your own custom vector graphic for your segmentation atlas of choice, feel free to create a pull request to incorporate and be acknowledged.
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
# Subcortical data visualization in 2D
|
|
2
2
|
|
|
3
|
+
This python package currently includes the following six subcortical atlases for data visualization in two-dimensional vector graphics:
|
|
4
|
+
|
|
5
|
+
<img src="images/all_atlas_showcase.png" width="100%">
|
|
6
|
+
|
|
7
|
+
More information about these atlases, including the process of rendering the surfaces and tracing the outlines for each, can be found in the [`atlas_info/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/atlas_info) directory.
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
## 🙋♀️ Motivation
|
|
4
11
|
|
|
5
12
|
This Python package was created to generate two-dimensional subcortex images in the style of the popular [`ggseg` package](https://github.com/ggseg/ggseg) in R.
|
|
6
|
-
We based our vector graphic outlines on the three-dimensional subcortical meshes provided as part of the [ENIGMA toolbox](https://github.com/MICA-MNI/ENIGMA)
|
|
13
|
+
We based our vector graphic outlines on the three-dimensional subcortical meshes either (1) provided as part of the [ENIGMA toolbox](https://github.com/MICA-MNI/ENIGMA) for the aseg atlas or (2) meshes generated in-house using rendering software from [Chris Rorden's lab](https://github.com/neurolabusc) (either [nii2mesh](https://github.com/neurolabusc/nii2mesh) or [Surf Ice](https://github.com/neurolabusc/surf-ice); check out [`custom_segmentation_pipeline/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/custom_segmentation_pipeline) for more information).
|
|
7
14
|
|
|
8
|
-
The below graphic summarizes the transformation from 3D volumetric meshes to 2D surfaces, starting from the ENIGMA toolbox ('aseg' atlas, left) or a custom-rendered mesh from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master)
|
|
15
|
+
The below graphic summarizes the transformation from 3D volumetric meshes to 2D surfaces, starting from the ENIGMA toolbox ('aseg' atlas, left) or a custom-rendered mesh from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master) as published in [Tian et al. (2020)]()https://www.nature.com/articles/s41593-020-00711-6 -- ('S1' granularity level, right).
|
|
9
16
|
|
|
10
|
-
<img src="images/
|
|
17
|
+
<img src="images/aseg_and_Melbourne_S1_3D_to_2D_schematic.png" width="90%">
|
|
11
18
|
|
|
12
19
|
|
|
13
20
|
While `ggseg` offers subcortical plotting with the `aseg` atlas, it is [not currently possible](https://github.com/ggseg/ggseg/issues/104) to show data from all seven subcortical regions (accumbens, amygdala, caudate, hippocampus, pallidum, putamen, thalamus) in the same figure.
|
|
14
|
-
|
|
21
|
+
Moreover, there is currently no other software available to visualize any of the other above subcortical/thalamic atlases in 2D with real data, hence development here.
|
|
15
22
|
|
|
16
23
|
|
|
17
24
|
## 🖥️ Installation
|
|
18
25
|
|
|
19
26
|
The package can be installed from GitHub in two ways.
|
|
20
|
-
First, you can install directly with pip:
|
|
27
|
+
First, you can install directly with pip from the [PyPI repository](https://pypi.org/project/subcortex-visualization/):
|
|
21
28
|
|
|
22
29
|
```bash
|
|
23
|
-
pip install
|
|
30
|
+
pip install subcortex-visualization
|
|
24
31
|
```
|
|
25
32
|
|
|
26
33
|
If you would like to make your own modifications before installing, you can also clone this repository first and then install from your local version:
|
|
@@ -99,29 +106,23 @@ plot_subcortical_data(subcortex_data=example_continuous_data, atlas='aseg',
|
|
|
99
106
|
<img src="images/example_aseg_subcortex_normdist.png" width="80%">
|
|
100
107
|
|
|
101
108
|
|
|
102
|
-
### 🧠 Usage with different levels of granularity in the Melbourne Subcortex Atlas
|
|
103
|
-
|
|
104
|
-
We currently offer two levels of detail from the [Melbourne Subcortex Atlas](https://github.com/yetianmed/subcortex/tree/master): S1 (total of 16 regions) and S2 (total of 32 regions).
|
|
105
|
-
Here's a schematic overview of the conversion from 3D to 2D for these two segmentations:
|
|
106
|
-
|
|
107
|
-
<img src="images/Tian_S1_and_S2_3D_to_2D_schematic.png" width="90%">
|
|
108
|
-
|
|
109
109
|
## 💡 Want to generate your own mesh and/or parcellation?
|
|
110
110
|
|
|
111
|
-
This package provides
|
|
111
|
+
This package provides six subcortical atlases as a starting point.
|
|
112
112
|
The workflow can readily be extended to your favorite segmentation atlas, though!
|
|
113
113
|
We have a dedicated folder for a custom segmentation pipeline that will walk you through the two key steps:
|
|
114
|
-
1. Rendering a series of triangulated surface meshes from your parcellation atlas (starting from a .nii.gz volume), using the [`nii2mesh`](https://github.com/neurolabusc/nii2mesh) software developed by Chris Rorden; and
|
|
114
|
+
1. Rendering a series of triangulated surface meshes from your parcellation atlas (starting from a .nii.gz volume), using either the [`nii2mesh`](https://github.com/neurolabusc/nii2mesh) or [`surfice_atlas`](https://github.com/neurolabusc/surfice_atlas) software, both developed by Chris Rorden; and
|
|
115
115
|
2. Tracing the outline of each region in the rendered mesh in vector graphic editing software (we use Inkscape in the tutorial as a powerful and free option), to yield a two-dimensional image of your atlas in scalable vector graphic (.svg) format.
|
|
116
116
|
|
|
117
117
|
Check out the walkthrough in the [`custom_segmentation_pipeline/`](https://github.com/anniegbryant/subcortex_visualization/tree/main/custom_segmentation_pipeline) folder for more information on how to render your own volumetric segmentation with an interactive mesh and convert to a two-dimensional vector graphic that can be integrated with this package.
|
|
118
118
|
|
|
119
119
|
## 🙏 Acknowledgments
|
|
120
120
|
|
|
121
|
-
Thank you very much to [
|
|
121
|
+
Thank you very much to [Chris Rorden](https://github.com/rordenlab), [Ye Tian](https://github.com/yetianmed), and [Sid Chopra](https://github.com/sidchop) for their suggestions and continued development of open tools for neuroimaging visualization that enabled development of this project!
|
|
122
122
|
|
|
123
123
|
## ❓📧 Questions, comments, or suggestions always welcome!
|
|
124
124
|
|
|
125
125
|
Please feel free to ask questions, report bugs, or share suggestions by creating an issue or by emailing me (Annie) at ([anniegbryant@gmail.com](mailto:anniegbryant@gmail.com)) 😊
|
|
126
126
|
|
|
127
|
-
As an [open-source tool](https://opensource.guide/how-to-contribute/), pull requests are always welcome from the community, too.
|
|
127
|
+
As an [open-source tool](https://opensource.guide/how-to-contribute/), pull requests are always welcome from the community, too.
|
|
128
|
+
If you create your own custom vector graphic for your segmentation atlas of choice, feel free to create a pull request to incorporate and be acknowledged.
|