nettracer3d 1.3.1__py3-none-any.whl → 1.3.6__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.
Potentially problematic release.
This version of nettracer3d might be problematic. Click here for more details.
- nettracer3d/community_extractor.py +3 -2
- nettracer3d/endpoint_joiner.py +286 -0
- nettracer3d/filaments.py +348 -106
- nettracer3d/histos.py +1182 -0
- nettracer3d/modularity.py +14 -96
- nettracer3d/neighborhoods.py +3 -2
- nettracer3d/nettracer.py +91 -50
- nettracer3d/nettracer_gui.py +359 -803
- nettracer3d/network_analysis.py +12 -5
- nettracer3d/network_graph_widget.py +302 -101
- nettracer3d/segmenter.py +1 -1
- nettracer3d/segmenter_GPU.py +0 -1
- nettracer3d/tutorial.py +41 -25
- {nettracer3d-1.3.1.dist-info → nettracer3d-1.3.6.dist-info}/METADATA +4 -6
- nettracer3d-1.3.6.dist-info/RECORD +32 -0
- {nettracer3d-1.3.1.dist-info → nettracer3d-1.3.6.dist-info}/WHEEL +1 -1
- nettracer3d-1.3.1.dist-info/RECORD +0 -30
- {nettracer3d-1.3.1.dist-info → nettracer3d-1.3.6.dist-info}/entry_points.txt +0 -0
- {nettracer3d-1.3.1.dist-info → nettracer3d-1.3.6.dist-info}/licenses/LICENSE +0 -0
- {nettracer3d-1.3.1.dist-info → nettracer3d-1.3.6.dist-info}/top_level.txt +0 -0
nettracer3d/network_analysis.py
CHANGED
|
@@ -442,6 +442,17 @@ def combine_lists_to_sublists(master_list):
|
|
|
442
442
|
|
|
443
443
|
return combined_list
|
|
444
444
|
|
|
445
|
+
def combine_lists_to_sublists_no_edges(master_list):
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
list1 = master_list[0]
|
|
449
|
+
list2 = master_list[1]
|
|
450
|
+
|
|
451
|
+
# Combine the lists into one list of sublists
|
|
452
|
+
combined_list = [list(sublist) for sublist in zip(list1, list2)]
|
|
453
|
+
|
|
454
|
+
return combined_list
|
|
455
|
+
|
|
445
456
|
|
|
446
457
|
def find_centroids(nodes, down_factor = None, network = None):
|
|
447
458
|
|
|
@@ -867,11 +878,7 @@ def buckets(dists, num_objects, rad_dist, directory = None):
|
|
|
867
878
|
|
|
868
879
|
try:
|
|
869
880
|
|
|
870
|
-
if directory is None:
|
|
871
|
-
# Save the DataFrame to an Excel file
|
|
872
|
-
df.to_excel('radial_distribution.xlsx', index=False)
|
|
873
|
-
print("Radial distribution saved to radial_distribution.xlsx")
|
|
874
|
-
else:
|
|
881
|
+
if directory is not None:
|
|
875
882
|
df.to_excel(f'{directory}/radial_distribution.xlsx', index=False)
|
|
876
883
|
print(f"Radial distribution saved to {directory}/radial_distribution.xlsx")
|
|
877
884
|
except:
|