From c7c2b716df5c9f0c013666f883891fab6ead4839 Mon Sep 17 00:00:00 2001 From: ammarcsj <70114795+ammarcsj@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:12:17 +0200 Subject: [PATCH] ensure values are always updated --- directlfq/dashboard_parts.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/directlfq/dashboard_parts.py b/directlfq/dashboard_parts.py index 29d08e5..d20f447 100644 --- a/directlfq/dashboard_parts.py +++ b/directlfq/dashboard_parts.py @@ -327,16 +327,17 @@ def create(self): self.run_pipeline_button.on_click(self.run_pipeline) return self.layout + def run_pipeline(self, *args): self.run_pipeline_progress.active = True - input_file = self.path_analysis_file.value + input_file = self.path_analysis_file.value_input input_type_to_use = self.dropdown_menu_for_input_type.value - mq_protein_groups_txt = None if self.path_protein_groups_file.value == '' else self.path_protein_groups_file.value - additional_headers = [] if self.additional_headers.value == '' else self.additional_headers.value + mq_protein_groups_txt = None if self.path_protein_groups_file.value_input == '' else self.path_protein_groups_file.value_input + additional_headers = [] if self.additional_headers.value_input == '' else self.additional_headers.value_input min_nonan = self.num_nonan_vals.value - file_of_proteins_for_normalization = None if self.protein_subset_for_normalization_file.value == '' else self.protein_subset_for_normalization_file.value + file_of_proteins_for_normalization = None if self.protein_subset_for_normalization_file.value_input == '' else self.protein_subset_for_normalization_file.value_input num_cores = None if self.num_cores_vals.value == -1 else self.num_cores_vals.value - yaml_filt_dict_path = None if self.yaml_filt_dict_path.value == '' else self.yaml_filt_dict_path.value + yaml_filt_dict_path = None if self.yaml_filt_dict_path.value_input == '' else self.yaml_filt_dict_path.value_input if isinstance(additional_headers, str): # The user will enter a string with semicolon-separated values additional_headers = additional_headers.split(';') @@ -357,6 +358,7 @@ def run_pipeline(self, *args): self.run_pipeline_progress.active = False + class Tabs(object): def __init__(self, pipeline):