nettracer3d 1.2.8__tar.gz → 1.2.9__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.
- {nettracer3d-1.2.8/src/nettracer3d.egg-info → nettracer3d-1.2.9}/PKG-INFO +3 -12
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/README.md +2 -11
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/pyproject.toml +1 -1
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/nettracer.py +1 -1
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/smart_dilate.py +9 -5
- {nettracer3d-1.2.8 → nettracer3d-1.2.9/src/nettracer3d.egg-info}/PKG-INFO +3 -12
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/LICENSE +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/setup.cfg +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/__init__.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/branch_stitcher.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/cellpose_manager.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/community_extractor.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/excelotron.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/filaments.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/modularity.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/morphology.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/neighborhoods.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/nettracer_gui.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/network_analysis.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/network_draw.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/node_draw.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/painting.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/proximity.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/run.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/segmenter.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/segmenter_GPU.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/simple_network.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/stats.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d/tutorial.py +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d.egg-info/SOURCES.txt +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d.egg-info/dependency_links.txt +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d.egg-info/entry_points.txt +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d.egg-info/requires.txt +0 -0
- {nettracer3d-1.2.8 → nettracer3d-1.2.9}/src/nettracer3d.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nettracer3d
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
4
4
|
Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
|
|
5
5
|
Author-email: Liam McLaughlin <liamm@wustl.edu>
|
|
6
6
|
Project-URL: Documentation, https://nettracer3d.readthedocs.io/en/latest/
|
|
@@ -70,35 +70,27 @@ Please see: https://www.youtube.com/watch?v=_4uDy0mzG94&list=PLsrhxiimzKJMZ3_gTW
|
|
|
70
70
|
|
|
71
71
|
* pip install nettracer3d
|
|
72
72
|
|
|
73
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
74
73
|
|
|
75
74
|
3. **For 3D Displays**: Or if you also want Napari for 3D displays:
|
|
76
75
|
|
|
77
76
|
* pip install nettracer3d[viz]
|
|
78
77
|
|
|
79
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
80
78
|
|
|
81
79
|
4. **Optional Performance Boost**: If you are trying to process large images, you may also want to include the 'edt' module in your package. This will allow parallelized CPU calculations for several of the search functions which can increase their speed by an order of magnitude or more depending on how many cores your CPU has. This can be a major benefit if you have a strong CPU and sufficient RAM. It requires an extra pre-installation step, thus is not included by default. You will also have to install the C++ build tools from windows. Please head to this link, then download and run the installer: https://visualstudio.microsoft.com/visual-cpp-build-tools/. In the menu of the installer, select the 'Desktop Development with C++' option, then proceed to download/install it using the installation menu. You will likely want to be using the Python distributed from the actual Python website and not the windows store (or elsewhere) or the edt module may not work properly. To bundle with edt use:
|
|
82
80
|
|
|
83
81
|
* pip install nettracer3d[edt]
|
|
84
82
|
|
|
85
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
86
|
-
|
|
87
83
|
|
|
88
84
|
5. **Recommended full package**: Or if you want to just get both edt and napari at once:
|
|
89
85
|
|
|
90
86
|
* pip install nettracer3d[rec]
|
|
91
87
|
|
|
92
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
93
|
-
|
|
94
88
|
|
|
95
89
|
6. Likewise, if you already installed the default version, you can add napari and/or edt with just:
|
|
96
90
|
|
|
97
91
|
* pip install edt
|
|
98
92
|
* pip install napari
|
|
99
93
|
|
|
100
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
101
|
-
|
|
102
94
|
|
|
103
95
|
--- Installing as a Python package in Anaconda---
|
|
104
96
|
|
|
@@ -162,8 +154,7 @@ NetTracer3D is freely available for academic and nonprofit use and can obtained
|
|
|
162
154
|
|
|
163
155
|
NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
|
|
164
156
|
|
|
165
|
-
-- Version 1.2.
|
|
157
|
+
-- Version 1.2.9 Updates --
|
|
166
158
|
|
|
167
|
-
*
|
|
168
|
-
* Updated readme
|
|
159
|
+
* Some minor adjustments.
|
|
169
160
|
|
|
@@ -20,35 +20,27 @@ Please see: https://www.youtube.com/watch?v=_4uDy0mzG94&list=PLsrhxiimzKJMZ3_gTW
|
|
|
20
20
|
|
|
21
21
|
* pip install nettracer3d
|
|
22
22
|
|
|
23
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
24
23
|
|
|
25
24
|
3. **For 3D Displays**: Or if you also want Napari for 3D displays:
|
|
26
25
|
|
|
27
26
|
* pip install nettracer3d[viz]
|
|
28
27
|
|
|
29
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
30
28
|
|
|
31
29
|
4. **Optional Performance Boost**: If you are trying to process large images, you may also want to include the 'edt' module in your package. This will allow parallelized CPU calculations for several of the search functions which can increase their speed by an order of magnitude or more depending on how many cores your CPU has. This can be a major benefit if you have a strong CPU and sufficient RAM. It requires an extra pre-installation step, thus is not included by default. You will also have to install the C++ build tools from windows. Please head to this link, then download and run the installer: https://visualstudio.microsoft.com/visual-cpp-build-tools/. In the menu of the installer, select the 'Desktop Development with C++' option, then proceed to download/install it using the installation menu. You will likely want to be using the Python distributed from the actual Python website and not the windows store (or elsewhere) or the edt module may not work properly. To bundle with edt use:
|
|
32
30
|
|
|
33
31
|
* pip install nettracer3d[edt]
|
|
34
32
|
|
|
35
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
36
|
-
|
|
37
33
|
|
|
38
34
|
5. **Recommended full package**: Or if you want to just get both edt and napari at once:
|
|
39
35
|
|
|
40
36
|
* pip install nettracer3d[rec]
|
|
41
37
|
|
|
42
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
43
|
-
|
|
44
38
|
|
|
45
39
|
6. Likewise, if you already installed the default version, you can add napari and/or edt with just:
|
|
46
40
|
|
|
47
41
|
* pip install edt
|
|
48
42
|
* pip install napari
|
|
49
43
|
|
|
50
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
51
|
-
|
|
52
44
|
|
|
53
45
|
--- Installing as a Python package in Anaconda---
|
|
54
46
|
|
|
@@ -112,8 +104,7 @@ NetTracer3D is freely available for academic and nonprofit use and can obtained
|
|
|
112
104
|
|
|
113
105
|
NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
|
|
114
106
|
|
|
115
|
-
-- Version 1.2.
|
|
107
|
+
-- Version 1.2.9 Updates --
|
|
116
108
|
|
|
117
|
-
*
|
|
118
|
-
* Updated readme
|
|
109
|
+
* Some minor adjustments.
|
|
119
110
|
|
|
@@ -5608,7 +5608,7 @@ class Network_3D:
|
|
|
5608
5608
|
print(f"Using {volume} for the volume measurement (Volume of provided mask as scaled by xy and z scaling)")
|
|
5609
5609
|
|
|
5610
5610
|
# Compute distance transform on padded array
|
|
5611
|
-
legal = smart_dilate.compute_distance_transform_distance(legal, sampling = [self.z_scale, self.xy_scale, self.xy_scale])
|
|
5611
|
+
legal = smart_dilate.compute_distance_transform_distance(legal, sampling = [self.z_scale, self.xy_scale, self.xy_scale], fast_dil = True)
|
|
5612
5612
|
|
|
5613
5613
|
# Remove padding after distance transform
|
|
5614
5614
|
if dim == 2:
|
|
@@ -11,7 +11,7 @@ try:
|
|
|
11
11
|
import edt
|
|
12
12
|
print("Parallel search functions enabled")
|
|
13
13
|
except:
|
|
14
|
-
print("
|
|
14
|
+
print("Some parallel search functions disabled (requires edt package), will fall back to single-threaded")
|
|
15
15
|
import math
|
|
16
16
|
import re
|
|
17
17
|
from . import nettracer
|
|
@@ -297,9 +297,13 @@ def process_chunk(start_idx, end_idx, nodes, ring_mask, nearest_label_indices):
|
|
|
297
297
|
def smart_dilate(nodes, dilate_xy = 0, dilate_z = 0, directory = None, GPU = True, fast_dil = True, predownsample = None, use_dt_dil_amount = None, xy_scale = 1, z_scale = 1):
|
|
298
298
|
|
|
299
299
|
if fast_dil:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
try:
|
|
301
|
+
import edt
|
|
302
|
+
dilated = nettracer.dilate_3D_dt(nodes, use_dt_dil_amount, xy_scale, z_scale, fast_dil = True)
|
|
303
|
+
return smart_label_watershed(dilated, nodes, directory = None, remove_template = False)
|
|
304
|
+
except:
|
|
305
|
+
print("edt package not found. Please use 'pip install edt' if you would like to enable parallel searching.")
|
|
306
|
+
return smart_dilate_short(nodes, use_dt_dil_amount, directory, xy_scale, z_scale)
|
|
303
307
|
else:
|
|
304
308
|
return smart_dilate_short(nodes, use_dt_dil_amount, directory, xy_scale, z_scale)
|
|
305
309
|
|
|
@@ -703,7 +707,7 @@ def compute_distance_transform_distance(nodes, sampling=[1, 1, 1], fast_dil=Fals
|
|
|
703
707
|
str(nodes.dtype),
|
|
704
708
|
tuple(sampling)
|
|
705
709
|
)
|
|
706
|
-
result_shape, result_dtype = future.result(
|
|
710
|
+
result_shape, result_dtype = future.result()
|
|
707
711
|
|
|
708
712
|
distance = np.ndarray(result_shape, dtype=result_dtype, buffer=output_shm.buf).copy()
|
|
709
713
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nettracer3d
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
4
4
|
Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
|
|
5
5
|
Author-email: Liam McLaughlin <liamm@wustl.edu>
|
|
6
6
|
Project-URL: Documentation, https://nettracer3d.readthedocs.io/en/latest/
|
|
@@ -70,35 +70,27 @@ Please see: https://www.youtube.com/watch?v=_4uDy0mzG94&list=PLsrhxiimzKJMZ3_gTW
|
|
|
70
70
|
|
|
71
71
|
* pip install nettracer3d
|
|
72
72
|
|
|
73
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
74
73
|
|
|
75
74
|
3. **For 3D Displays**: Or if you also want Napari for 3D displays:
|
|
76
75
|
|
|
77
76
|
* pip install nettracer3d[viz]
|
|
78
77
|
|
|
79
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
80
78
|
|
|
81
79
|
4. **Optional Performance Boost**: If you are trying to process large images, you may also want to include the 'edt' module in your package. This will allow parallelized CPU calculations for several of the search functions which can increase their speed by an order of magnitude or more depending on how many cores your CPU has. This can be a major benefit if you have a strong CPU and sufficient RAM. It requires an extra pre-installation step, thus is not included by default. You will also have to install the C++ build tools from windows. Please head to this link, then download and run the installer: https://visualstudio.microsoft.com/visual-cpp-build-tools/. In the menu of the installer, select the 'Desktop Development with C++' option, then proceed to download/install it using the installation menu. You will likely want to be using the Python distributed from the actual Python website and not the windows store (or elsewhere) or the edt module may not work properly. To bundle with edt use:
|
|
82
80
|
|
|
83
81
|
* pip install nettracer3d[edt]
|
|
84
82
|
|
|
85
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
86
|
-
|
|
87
83
|
|
|
88
84
|
5. **Recommended full package**: Or if you want to just get both edt and napari at once:
|
|
89
85
|
|
|
90
86
|
* pip install nettracer3d[rec]
|
|
91
87
|
|
|
92
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
93
|
-
|
|
94
88
|
|
|
95
89
|
6. Likewise, if you already installed the default version, you can add napari and/or edt with just:
|
|
96
90
|
|
|
97
91
|
* pip install edt
|
|
98
92
|
* pip install napari
|
|
99
93
|
|
|
100
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
101
|
-
|
|
102
94
|
|
|
103
95
|
--- Installing as a Python package in Anaconda---
|
|
104
96
|
|
|
@@ -162,8 +154,7 @@ NetTracer3D is freely available for academic and nonprofit use and can obtained
|
|
|
162
154
|
|
|
163
155
|
NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
|
|
164
156
|
|
|
165
|
-
-- Version 1.2.
|
|
157
|
+
-- Version 1.2.9 Updates --
|
|
166
158
|
|
|
167
|
-
*
|
|
168
|
-
* Updated readme
|
|
159
|
+
* Some minor adjustments.
|
|
169
160
|
|
|
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
|