nettracer3d 0.5.9__tar.gz → 0.6.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.
Files changed (26) hide show
  1. {nettracer3d-0.5.9/src/nettracer3d.egg-info → nettracer3d-0.6.1}/PKG-INFO +7 -3
  2. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/README.md +6 -2
  3. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/pyproject.toml +1 -1
  4. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/nettracer.py +0 -23
  5. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/nettracer_gui.py +432 -219
  6. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/segmenter.py +670 -54
  7. {nettracer3d-0.5.9 → nettracer3d-0.6.1/src/nettracer3d.egg-info}/PKG-INFO +7 -3
  8. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d.egg-info/SOURCES.txt +0 -1
  9. nettracer3d-0.5.9/src/nettracer3d/hub_getter.py +0 -248
  10. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/LICENSE +0 -0
  11. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/setup.cfg +0 -0
  12. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/__init__.py +0 -0
  13. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/community_extractor.py +0 -0
  14. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/modularity.py +0 -0
  15. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/morphology.py +0 -0
  16. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/network_analysis.py +0 -0
  17. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/network_draw.py +0 -0
  18. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/node_draw.py +0 -0
  19. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/proximity.py +0 -0
  20. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/run.py +0 -0
  21. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/simple_network.py +0 -0
  22. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d/smart_dilate.py +0 -0
  23. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d.egg-info/dependency_links.txt +0 -0
  24. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d.egg-info/entry_points.txt +0 -0
  25. {nettracer3d-0.5.9 → nettracer3d-0.6.1}/src/nettracer3d.egg-info/requires.txt +0 -0
  26. {nettracer3d-0.5.9 → nettracer3d-0.6.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.5.9
3
+ Version: 0.6.1
4
4
  Summary: Scripts for intializing and analyzing networks from segmentations of three dimensional images.
5
5
  Author-email: Liam McLaughlin <mclaughlinliam99@gmail.com>
6
6
  Project-URL: User_Tutorial, https://www.youtube.com/watch?v=cRatn5VTWDY
@@ -44,6 +44,10 @@ NetTracer3D is free to use/fork for academic/nonprofit use so long as citation i
44
44
 
45
45
  NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
46
46
 
47
- -- Version 0.5.9 updates --
47
+ -- Version 0.6.1 updates --
48
48
 
49
- 1. Bug fixes
49
+ 1. New feature for the machine learning segmenter. Now has a RAM lock mode which will always limit it to computing 1 chunk at a time, in both the interactive segmenter and the gross-segmenter. Feature map calculation within the chunk is made parallel to compensate which should allow this to function more optimally with RAM without really sacrificing performance. This should prevent the segmenter from majorly leaking memory in large arrays.
50
+ 2. New function - 'Image' -> 'Select Objects'. Essentially just arbitrary selects/deselects lists of nodes or edges from the user in case there are some they are interested in but can't conveniently find. Allows imports from spreadsheets in case the user preorganizes some set of objects they want to select/deselect.
51
+ 3. Brightness/Contrast now shades out of 65,535 instead of 255 which should allow better brightening options to images above 8bit depth.
52
+ 4. Select all function updated to use the mini highlight overlay in larger images. Also reports the number of nodes/edges in the array in the cmd window when used.
53
+ 5. Deleted the now unused 'hub_getter.py' script from the package.
@@ -8,6 +8,10 @@ NetTracer3D is free to use/fork for academic/nonprofit use so long as citation i
8
8
 
9
9
  NetTracer3D was developed by Liam McLaughlin while working under Dr. Sanjay Jain at Washington University School of Medicine.
10
10
 
11
- -- Version 0.5.9 updates --
11
+ -- Version 0.6.1 updates --
12
12
 
13
- 1. Bug fixes
13
+ 1. New feature for the machine learning segmenter. Now has a RAM lock mode which will always limit it to computing 1 chunk at a time, in both the interactive segmenter and the gross-segmenter. Feature map calculation within the chunk is made parallel to compensate which should allow this to function more optimally with RAM without really sacrificing performance. This should prevent the segmenter from majorly leaking memory in large arrays.
14
+ 2. New function - 'Image' -> 'Select Objects'. Essentially just arbitrary selects/deselects lists of nodes or edges from the user in case there are some they are interested in but can't conveniently find. Allows imports from spreadsheets in case the user preorganizes some set of objects they want to select/deselect.
15
+ 3. Brightness/Contrast now shades out of 65,535 instead of 255 which should allow better brightening options to images above 8bit depth.
16
+ 4. Select all function updated to use the mini highlight overlay in larger images. Also reports the number of nodes/edges in the array in the cmd window when used.
17
+ 5. Deleted the now unused 'hub_getter.py' script from the package.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nettracer3d"
3
- version = "0.5.9"
3
+ version = "0.6.1"
4
4
  authors = [
5
5
  { name="Liam McLaughlin", email="mclaughlinliam99@gmail.com" },
6
6
  ]
@@ -27,7 +27,6 @@ from skimage import morphology as mpg
27
27
  from . import smart_dilate
28
28
  from . import modularity
29
29
  from . import simple_network
30
- from . import hub_getter
31
30
  from . import community_extractor
32
31
  from . import network_analysis
33
32
  from . import morphology
@@ -3934,28 +3933,6 @@ class Network_3D:
3934
3933
 
3935
3934
  return degrees, nodes
3936
3935
 
3937
- def get_hubs(self, proportion = None, down_factor = 1, directory = None):
3938
- """
3939
- Method to isolate hub regions of a network (Removing all nodes below some proportion of highest degrees), also generating overlays that relate this information to the 3D structure.
3940
- Overlays include a grayscale image where nodes are assigned a grayscale value corresponding to their degree, and a numerical index where numbers are drawn at nodes corresponding to their degree.
3941
- These will be saved to the active directory if none is specified. Note calculations will be done with node_centroids unless a down_factor is passed. Note that a down_factor must be passed if there are no node_centroids.
3942
- :param proportion: (Optional - Val = None; Float). A float of 0 to 1 that details what proportion of highest node degrees to include in the output. Note that this value will be set to 0.1 by default.
3943
- :param down_factor: (Optional - Val = 1; int). A factor to downsample nodes by while calculating centroids, assuming no node_centroids property was set.
3944
- :param directory: (Optional - Val = None; string). A path to a directory to save outputs.
3945
- :returns: A dictionary of degree values for each node above the desired proportion of highest degree nodes.
3946
- """
3947
- if down_factor > 1:
3948
- centroids = self._node_centroids.copy()
3949
- for item in self._node_centroids:
3950
- centroids[item] = np.round((self._node_centroids[item]) / down_factor)
3951
- nodes = downsample(self._nodes, down_factor)
3952
- hubs = hub_getter.get_hubs(nodes, self._network, proportion, directory = directory, centroids = centroids)
3953
-
3954
- else:
3955
- hubs = hub_getter.get_hubs(self._nodes, self._network, proportion, directory = directory, centroids = self._node_centroids)
3956
-
3957
- return hubs
3958
-
3959
3936
 
3960
3937
  def isolate_connected_component(self, key = None, directory = None, full_edges = None, gen_images = True):
3961
3938
  """