nettracer3d 0.5.9__py3-none-any.whl → 0.6.1__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.
nettracer3d/nettracer.py CHANGED
@@ -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
  """