improved preprocessing UI, added selective spectrum plot accordig to type (centroid, profile), potentially fixed a bug to retrieve folders on dropdown selectors in startup, improved preprocessing functions and test suite, testing a version control for preprocessing steps
This commit is contained in:
@@ -151,6 +151,7 @@ end
|
||||
@out available_folders = String[]
|
||||
@out image_available_folders = String[]
|
||||
@private registry_init_done = false
|
||||
@in refetch_folders = false
|
||||
|
||||
@out imgInt = "" # Path to current slice
|
||||
@out current_msi = ""
|
||||
@@ -711,6 +712,23 @@ end
|
||||
end
|
||||
end
|
||||
|
||||
@onbutton refetch_folders begin
|
||||
# First, re-run the logic to populate the folder list
|
||||
registry = load_registry(registry_path)
|
||||
all_folders = sort(collect(keys(registry)), lt=natural)
|
||||
img_folders = filter(folder -> get(get(registry, folder, Dict()), "is_imzML", false), all_folders)
|
||||
|
||||
available_folders = deepcopy(all_folders)
|
||||
image_available_folders = deepcopy(img_folders)
|
||||
|
||||
# Apply the logic to select the first item if none is selected
|
||||
if !isempty(image_available_folders) && isempty(selected_folder_main)
|
||||
# This ensures the list is up-to-date
|
||||
image_available_folders = deepcopy(img_folders)
|
||||
selected_folder_main = first(image_available_folders)
|
||||
end
|
||||
end
|
||||
|
||||
@onchange isready begin
|
||||
if isready && !registry_init_done
|
||||
sleep(1.0) # Give frontend time to initialize
|
||||
|
||||
Reference in New Issue
Block a user