small-fish-gui 2.1.1__py3-none-any.whl → 2.1.2__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.
- small_fish_gui/__init__.py +1 -1
- small_fish_gui/gui/layout.py +3 -1
- small_fish_gui/gui/napari_visualiser.py +2 -2
- small_fish_gui/interface/settings.json +3 -3
- small_fish_gui/interface/testing.ipynb +4354 -0
- small_fish_gui/pipeline/_colocalisation.py +9 -2
- small_fish_gui/pipeline/actions.py +54 -40
- small_fish_gui/pipeline/spots.py +6 -6
- {small_fish_gui-2.1.1.dist-info → small_fish_gui-2.1.2.dist-info}/METADATA +6 -2
- {small_fish_gui-2.1.1.dist-info → small_fish_gui-2.1.2.dist-info}/RECORD +12 -14
- small_fish_gui/batch/values.txt +0 -65
- small_fish_gui/pipeline/testing.ipynb +0 -3636
- small_fish_gui/small_fish_gui.code-workspace +0 -7
- {small_fish_gui-2.1.1.dist-info → small_fish_gui-2.1.2.dist-info}/WHEEL +0 -0
- {small_fish_gui-2.1.1.dist-info → small_fish_gui-2.1.2.dist-info}/licenses/LICENSE +0 -0
small_fish_gui/__init__.py
CHANGED
|
@@ -37,7 +37,7 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
37
37
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
38
38
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
39
39
|
"""
|
|
40
|
-
__version__ = "2.1.
|
|
40
|
+
__version__ = "2.1.2"
|
|
41
41
|
__wiki__ = "https://github.com/2Echoes/small_fish_gui/wiki"
|
|
42
42
|
|
|
43
43
|
import os, platform
|
small_fish_gui/gui/layout.py
CHANGED
|
@@ -119,6 +119,8 @@ def path_layout(keys= [],look_for_dir = False, header=None, preset=settings.work
|
|
|
119
119
|
check_parameter(keys= list, header = (str, type(None)))
|
|
120
120
|
for key in keys : check_parameter(key = str)
|
|
121
121
|
|
|
122
|
+
initial_folder = preset if preset != "" else settings.working_directory
|
|
123
|
+
|
|
122
124
|
if look_for_dir : Browse = sg.FolderBrowse
|
|
123
125
|
else : Browse = sg.FileBrowse
|
|
124
126
|
|
|
@@ -446,7 +448,7 @@ def _detection_layout(
|
|
|
446
448
|
keys=['spots_extraction_folder'],
|
|
447
449
|
look_for_dir=True,
|
|
448
450
|
header= "Individual spot extraction",
|
|
449
|
-
preset= default_dict.setdefault('spots_extraction_folder',
|
|
451
|
+
preset= default_dict.setdefault('spots_extraction_folder', "")
|
|
450
452
|
)
|
|
451
453
|
default_filename = default_dict.setdefault("filename","") + "_spot_extraction"
|
|
452
454
|
layout += parameters_layout(
|
|
@@ -46,7 +46,7 @@ def correct_spots(
|
|
|
46
46
|
axis=0
|
|
47
47
|
)
|
|
48
48
|
if dim == 3 and type(nucleus_label) != type(None) :
|
|
49
|
-
if nucleus_label == 2 :
|
|
49
|
+
if nucleus_label.ndim == 2 :
|
|
50
50
|
nucleus_label = np.repeat(
|
|
51
51
|
nucleus_label[np.newaxis],
|
|
52
52
|
repeats= len(image),
|
|
@@ -171,7 +171,7 @@ def correct_spots(
|
|
|
171
171
|
if cell_label.ndim == 2 :
|
|
172
172
|
new_cell_label = new_cell_label.max(axis=0)
|
|
173
173
|
if dim == 3 and type(nucleus_label) != type(None) :
|
|
174
|
-
if nucleus_label == 2 :
|
|
174
|
+
if nucleus_label.ndim == 2 :
|
|
175
175
|
new_nucleus_label = new_nucleus_label.max(axis=0)
|
|
176
176
|
|
|
177
177
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"working_directory": "/
|
|
2
|
+
"working_directory": "/media/SSD_floricslimani",
|
|
3
3
|
"do_background_removal": false,
|
|
4
4
|
"background_channel": 0,
|
|
5
5
|
"multichannel_stack": true,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"do_dense_regions_deconvolution": false,
|
|
33
33
|
"do_cluster": false,
|
|
34
34
|
"show_napari_corrector": true,
|
|
35
|
-
"interactive_threshold_selector":
|
|
35
|
+
"interactive_threshold_selector": false,
|
|
36
36
|
"alpha": 0.5,
|
|
37
37
|
"beta": 1.0,
|
|
38
38
|
"gamma": 3.0,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"coloc_range": 400,
|
|
42
42
|
"do_csv": false,
|
|
43
43
|
"do_excel": false,
|
|
44
|
-
"spot_extraction_folder": "/home/floric
|
|
44
|
+
"spot_extraction_folder": "/home/floric",
|
|
45
45
|
"voxel_size": [
|
|
46
46
|
1,
|
|
47
47
|
2,
|