nettracer3d 0.4.9__tar.gz → 0.5.1__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-0.4.9/src/nettracer3d.egg-info → nettracer3d-0.5.1}/PKG-INFO +1 -1
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/pyproject.toml +1 -1
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/nettracer_gui.py +38 -24
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/smart_dilate.py +1 -1
- {nettracer3d-0.4.9 → nettracer3d-0.5.1/src/nettracer3d.egg-info}/PKG-INFO +1 -1
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/LICENSE +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/README.md +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/setup.cfg +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/__init__.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/community_extractor.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/hub_getter.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/modularity.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/morphology.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/nettracer.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/network_analysis.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/network_draw.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/node_draw.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/proximity.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/run.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/segmenter.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d/simple_network.py +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d.egg-info/SOURCES.txt +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d.egg-info/dependency_links.txt +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d.egg-info/entry_points.txt +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d.egg-info/requires.txt +0 -0
- {nettracer3d-0.4.9 → nettracer3d-0.5.1}/src/nettracer3d.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: nettracer3d
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
|
|
5
5
|
Author-email: Liam McLaughlin <boom2449@gmail.com>
|
|
6
6
|
Project-URL: User_Manual, https://drive.google.com/drive/folders/1fTkz3n4LN9_VxKRKC8lVQSlrz_wq0bVn?usp=drive_link
|
|
@@ -1300,11 +1300,12 @@ class ImageViewerWindow(QMainWindow):
|
|
|
1300
1300
|
my_network.nodes = my_network.nodes * mask
|
|
1301
1301
|
self.load_channel(0, my_network.nodes, True)
|
|
1302
1302
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1303
|
+
if my_network.network_lists is not None:
|
|
1304
|
+
for i in range(len(my_network.network_lists[0]) - 1, -1, -1):
|
|
1305
|
+
if my_network.network_lists[0][i] in self.clicked_values['nodes'] or my_network.network_lists[0][i] in self.clicked_values['nodes']:
|
|
1306
|
+
del my_network.network_lists[0][i]
|
|
1307
|
+
del my_network.network_lists[1][i]
|
|
1308
|
+
del my_network.network_lists[2][i]
|
|
1308
1309
|
|
|
1309
1310
|
|
|
1310
1311
|
|
|
@@ -1314,11 +1315,12 @@ class ImageViewerWindow(QMainWindow):
|
|
|
1314
1315
|
my_network.edges = my_network.edges * mask
|
|
1315
1316
|
self.load_channel(1, my_network.edges, True)
|
|
1316
1317
|
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1318
|
+
if my_network.network_lists is not None:
|
|
1319
|
+
for i in range(len(my_network.network_lists[1]) - 1, -1, -1):
|
|
1320
|
+
if my_network.network_lists[2][i] in self.clicked_values['edges']:
|
|
1321
|
+
del my_network.network_lists[0][i]
|
|
1322
|
+
del my_network.network_lists[1][i]
|
|
1323
|
+
del my_network.network_lists[2][i]
|
|
1322
1324
|
|
|
1323
1325
|
my_network.network_lists = my_network.network_lists
|
|
1324
1326
|
|
|
@@ -2063,18 +2065,19 @@ class ImageViewerWindow(QMainWindow):
|
|
|
2063
2065
|
x_idx = int(round(event.xdata))
|
|
2064
2066
|
y_idx = int(round(event.ydata))
|
|
2065
2067
|
# Check if Ctrl key is pressed (using matplotlib's key_press system)
|
|
2066
|
-
ctrl_pressed = 'ctrl' in event.modifiers
|
|
2067
|
-
if self.channel_data[self.active_channel]
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2068
|
+
ctrl_pressed = 'ctrl' in event.modifiers
|
|
2069
|
+
if len(self.channel_data[self.active_channel].shape) != 4:
|
|
2070
|
+
if self.channel_data[self.active_channel][self.current_slice, y_idx, x_idx] != 0:
|
|
2071
|
+
clicked_value = self.channel_data[self.active_channel][self.current_slice, y_idx, x_idx]
|
|
2072
|
+
else:
|
|
2073
|
+
if not ctrl_pressed:
|
|
2074
|
+
self.clicked_values = {
|
|
2075
|
+
'nodes': [],
|
|
2076
|
+
'edges': []
|
|
2077
|
+
}
|
|
2078
|
+
self.create_highlight_overlay()
|
|
2079
|
+
return
|
|
2080
|
+
|
|
2078
2081
|
|
|
2079
2082
|
starting_vals = copy.deepcopy(self.clicked_values)
|
|
2080
2083
|
|
|
@@ -5832,8 +5835,12 @@ class MachineWindow(QMainWindow):
|
|
|
5832
5835
|
|
|
5833
5836
|
if self.parent().active_channel == 0:
|
|
5834
5837
|
if self.parent().channel_data[0] is not None:
|
|
5835
|
-
|
|
5836
|
-
|
|
5838
|
+
try:
|
|
5839
|
+
active_data = self.parent().channel_data[0]
|
|
5840
|
+
act_channel = 0
|
|
5841
|
+
except:
|
|
5842
|
+
active_data = self.parent().channel_data[1]
|
|
5843
|
+
act_channel = 1
|
|
5837
5844
|
else:
|
|
5838
5845
|
active_data = self.parent().channel_data[1]
|
|
5839
5846
|
act_channel = 1
|
|
@@ -7347,6 +7354,13 @@ class BranchDialog(QDialog):
|
|
|
7347
7354
|
run_button.clicked.connect(self.branch_label)
|
|
7348
7355
|
layout.addRow(run_button)
|
|
7349
7356
|
|
|
7357
|
+
if self.parent().channel_data[0] is not None:
|
|
7358
|
+
QMessageBox.critical(
|
|
7359
|
+
self,
|
|
7360
|
+
"Alert",
|
|
7361
|
+
"The nodes channel will be intermittently overwritten when running this method"
|
|
7362
|
+
)
|
|
7363
|
+
|
|
7350
7364
|
def branch_label(self):
|
|
7351
7365
|
|
|
7352
7366
|
try:
|
|
@@ -23,7 +23,7 @@ def dilate_3D(tiff_array, dilated_x, dilated_y, dilated_z):
|
|
|
23
23
|
Arguments are an array, and the desired pixel dilation amounts in X, Y, Z."""
|
|
24
24
|
|
|
25
25
|
if tiff_array.shape[0] == 1:
|
|
26
|
-
return dilate_2D(tiff_array, ((dilated_x - 1) / 2))
|
|
26
|
+
return nettracer.dilate_2D(tiff_array, ((dilated_x - 1) / 2))
|
|
27
27
|
|
|
28
28
|
if dilated_x == 3 and dilated_y == 3 and dilated_z == 3:
|
|
29
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: nettracer3d
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
|
|
5
5
|
Author-email: Liam McLaughlin <boom2449@gmail.com>
|
|
6
6
|
Project-URL: User_Manual, https://drive.google.com/drive/folders/1fTkz3n4LN9_VxKRKC8lVQSlrz_wq0bVn?usp=drive_link
|
|
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
|