AxonDeepSeg 5.1.0.dev0__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.
Files changed (34) hide show
  1. AxonDeepSeg/__init__.py +20 -0
  2. AxonDeepSeg/ads_napari/Settings_menu_ui.ui +83 -0
  3. AxonDeepSeg/ads_napari/__init__.py +5 -0
  4. AxonDeepSeg/ads_napari/_widget.py +1120 -0
  5. AxonDeepSeg/ads_napari/napari.yaml +11 -0
  6. AxonDeepSeg/ads_napari/settings_menu_ui.py +78 -0
  7. AxonDeepSeg/ads_utils.py +243 -0
  8. AxonDeepSeg/apply_model.py +192 -0
  9. AxonDeepSeg/download_model.py +112 -0
  10. AxonDeepSeg/download_tests.py +75 -0
  11. AxonDeepSeg/integrity_test.py +91 -0
  12. AxonDeepSeg/logo_ads-alpha.png +0 -0
  13. AxonDeepSeg/logo_ads-alpha_small.png +0 -0
  14. AxonDeepSeg/model_cards.py +70 -0
  15. AxonDeepSeg/morphometrics/__init__.py +0 -0
  16. AxonDeepSeg/morphometrics/compute_morphometrics.py +548 -0
  17. AxonDeepSeg/morphometrics/launch_morphometrics_computation.py +302 -0
  18. AxonDeepSeg/params.py +78 -0
  19. AxonDeepSeg/postprocessing.py +171 -0
  20. AxonDeepSeg/segment.py +308 -0
  21. AxonDeepSeg/testing/__init__.py +0 -0
  22. AxonDeepSeg/testing/launch_performance_metrics.py +39 -0
  23. AxonDeepSeg/testing/segmentation_scoring.py +348 -0
  24. AxonDeepSeg/version.txt +1 -0
  25. AxonDeepSeg/visualization/__init__.py +0 -0
  26. AxonDeepSeg/visualization/colorization.py +114 -0
  27. AxonDeepSeg/visualization/merge_masks.py +39 -0
  28. AxonDeepSeg/visualization/simulate_axons.py +110 -0
  29. axondeepseg-5.1.0.dev0.dist-info/LICENSE +21 -0
  30. axondeepseg-5.1.0.dev0.dist-info/METADATA +132 -0
  31. axondeepseg-5.1.0.dev0.dist-info/RECORD +34 -0
  32. axondeepseg-5.1.0.dev0.dist-info/WHEEL +5 -0
  33. axondeepseg-5.1.0.dev0.dist-info/entry_points.txt +9 -0
  34. axondeepseg-5.1.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,20 @@
1
+ import os
2
+ import sys
3
+
4
+ __name__ = "AxonDeepSeg"
5
+
6
+ version_file = os.path.abspath(os.path.join(__file__, os.pardir, "version.txt"))
7
+ with open(version_file, 'r') as f:
8
+ __version__ = f.read().rstrip()
9
+
10
+ # make sure repo directory (two directories up) is on path (to access config.py)
11
+ __repo_dir__ = os.path.abspath(os.path.join(__file__, os.pardir, os.pardir))
12
+ sys.path.append(__repo_dir__)
13
+
14
+ # verify that the repo was downloaded with `git clone`
15
+ if os.path.exists(os.path.join(__repo_dir__, ".git")):
16
+ import subprocess
17
+ __git_sha1__ = subprocess.check_output(["git", "-C", __repo_dir__, "rev-parse", "HEAD"]).decode("utf-8").rstrip()
18
+ else:
19
+ __git_sha1__ = "unknown commit"
20
+ __version_string__ = f"AxonDeepSeg v{__version__} - {__git_sha1__}"
@@ -0,0 +1,83 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <ui version="4.0">
3
+ <class>Settings_menu_ui</class>
4
+ <widget class="QWidget" name="Settings_menu_ui">
5
+ <property name="windowModality">
6
+ <enum>Qt::WindowModal</enum>
7
+ </property>
8
+ <property name="geometry">
9
+ <rect>
10
+ <x>0</x>
11
+ <y>0</y>
12
+ <width>399</width>
13
+ <height>209</height>
14
+ </rect>
15
+ </property>
16
+ <property name="windowTitle">
17
+ <string>Settings menu</string>
18
+ </property>
19
+ <layout class="QVBoxLayout" name="verticalLayout">
20
+ <item>
21
+ <layout class="QHBoxLayout" name="horizontalLayout_6">
22
+ <item>
23
+ <widget class="QLabel" name="label_5">
24
+ <property name="text">
25
+ <string>GPU ID</string>
26
+ </property>
27
+ </widget>
28
+ </item>
29
+ <item>
30
+ <widget class="QSpinBox" name="gpu_id_spinBox"/>
31
+ </item>
32
+ </layout>
33
+ </item>
34
+ <item>
35
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
36
+ <item>
37
+ <widget class="QLabel" name="label_4">
38
+ <property name="text">
39
+ <string>Axon Shape</string>
40
+ </property>
41
+ </widget>
42
+ </item>
43
+ <item>
44
+ <widget class="QComboBox" name="axon_shape_comboBox">
45
+ <item>
46
+ <property name="text">
47
+ <string>circle</string>
48
+ </property>
49
+ </item>
50
+ <item>
51
+ <property name="text">
52
+ <string>ellipse</string>
53
+ </property>
54
+ </item>
55
+ </widget>
56
+ </item>
57
+ </layout>
58
+ </item>
59
+ <item>
60
+ <widget class="QPushButton" name="done_button">
61
+ <property name="text">
62
+ <string>Done</string>
63
+ </property>
64
+ </widget>
65
+ </item>
66
+ <item>
67
+ <spacer name="verticalSpacer">
68
+ <property name="orientation">
69
+ <enum>Qt::Vertical</enum>
70
+ </property>
71
+ <property name="sizeHint" stdset="0">
72
+ <size>
73
+ <width>20</width>
74
+ <height>40</height>
75
+ </size>
76
+ </property>
77
+ </spacer>
78
+ </item>
79
+ </layout>
80
+ </widget>
81
+ <resources/>
82
+ <connections/>
83
+ </ui>
@@ -0,0 +1,5 @@
1
+ from ._widget import ADSplugin
2
+
3
+ __all__ = (
4
+ "ADSplugin"
5
+ )