@@ -31,7 +31,7 @@ def reset_button_state():
3131JOB_ID = ss_values ["JOB_ID" ]
3232WORK_DIR = ss_values ["WORK_DIR" ]
3333OUTPUT_DIR = ss_values ["OUTPUT_DIR" ]
34- BAM_DIR = ss_values ["BAM_DIR " ]
34+ IN_DIR = ss_values ["IN_DIR " ]
3535run_pipeline_clicked = ss_values ["run_pipeline_clicked" ]
3636button_clicked = ss_values ["button_clicked" ]
3737custom_sample_list = ss_values ["custom_sample_list" ] # only availanle if custom sample is selected
@@ -92,7 +92,15 @@ def reset_button_state():
9292 )
9393WORK_DIR = st .text_input ("Working directory" , value = WORK_DIR or SCRATCH )
9494OUTPUT_DIR = st .text_input ("Output directory" , value = OUTPUT_DIR or SCRATCH )
95- BAM_DIR = st .text_input ("Adapted BAM directory" , value = BAM_DIR or "/data/rds/DGE/DUDGE/OGENETIC/Data/Nanopore/samples" )
95+
96+ # very specific field for default values that I would like to remove
97+ default_path = ""
98+ if PIPELINE == "icr-nanopore-pauses" and PROJECT == "genomrep-support" :
99+ default_path = "/data/rds/DBI/DUDBI/GENOMREP/bdelpino/Nanopore\ Sequencing/Raw\ data/250506_K562_AvsS/no_sample_id"
100+ elif PROJECT == "nf-long-reads" :
101+ default_path = "/data/rds/DGE/DUDGE/OGENETIC/Data/Nanopore/samples"
102+
103+ IN_DIR = st .text_input ("Sample directory" , value = IN_DIR or default_path )
96104
97105dry_run = st .checkbox ("Dry run (do not execute the job)" , value = False )
98106
@@ -106,7 +114,7 @@ def reset_button_state():
106114 selected_samples = SAMPLE ,
107115 work_dir = WORK_DIR ,
108116 output_dir = OUTPUT_DIR ,
109- bam_dir = BAM_DIR ,
117+ bam_dir = IN_DIR , # not always bam files, TODO: rename it
110118 custom_sample_list = custom_sample_list ,
111119 bed_file = BED_FILE ,
112120 dry_run = dry_run ,
@@ -129,7 +137,7 @@ def reset_button_state():
129137 # "JOB_ID": JOB_ID,
130138 "WORK_DIR" : WORK_DIR ,
131139 "OUTPUT_DIR" : OUTPUT_DIR ,
132- "BAM_DIR " : BAM_DIR ,
140+ "IN_DIR " : IN_DIR ,
133141 "run_pipeline_clicked" : run_pipeline_clicked ,
134142 "button_clicked" : button_clicked ,
135143 "custom_sample_list" : custom_sample_list ,
0 commit comments