@@ -34,7 +34,7 @@ def reset_button_state():
3434run_pipeline_clicked = ss_values ["run_pipeline_clicked" ]
3535button_clicked = ss_values ["button_clicked" ]
3636custom_sample_list = ss_values ["custom_sample_list" ] # only availanle if custom sample is selected
37-
37+ BED_FILE = ss_values [ "BED_FILE" ]
3838samples = ["all" , "demo" , "customised" ] # , "test"]
3939
4040# Create the selectbox and update session state
@@ -73,7 +73,12 @@ def reset_button_state():
7373
7474 st .write ("Your custom samples:" , custom_sample_list )
7575 ss_set ("custom_sample_list" , custom_sample_list )
76-
76+ # Optional BED file path
77+ BED_FILE = st .text_input (
78+ "Optional BED file path" ,
79+ value = "" ,
80+ help = "Provide a full path to a BED file on Alma server, or leave empty to skip and use full genome" ,
81+ )
7782WORK_DIR = st .text_input ("Working directory" , value = WORK_DIR or SCRATCH )
7883OUTPUT_DIR = st .text_input ("Output directory" , value = OUTPUT_DIR or SCRATCH )
7984
@@ -88,6 +93,7 @@ def reset_button_state():
8893 work_dir = WORK_DIR ,
8994 output_dir = OUTPUT_DIR ,
9095 custom_sample_list = custom_sample_list ,
96+ bed_file = BED_FILE
9197 )
9298 save_in_ss (
9399 {
@@ -109,6 +115,7 @@ def reset_button_state():
109115 "run_pipeline_clicked" : run_pipeline_clicked ,
110116 "button_clicked" : button_clicked ,
111117 "custom_sample_list" : custom_sample_list ,
118+ "BED_FILE" :BED_FILE ,
112119 }
113120 )
114121else :
0 commit comments