Skip to content

Commit 2f53f51

Browse files
committed
parameterize more inputs for gisaid_meta_prep
1 parent 7bbacfb commit 2f53f51

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

pipes/WDL/tasks/tasks_ncbi.wdl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ task gisaid_meta_prep {
308308
String out_name
309309
String continent = "North America"
310310
Boolean strict = true
311+
String? username
312+
String? submitting_lab_name
313+
String? submitting_lab_addr
314+
String? originating_lab_addr
315+
String? authors
316+
String? fasta_filename
311317
}
312318
command <<<
313319
python3 << CODE
@@ -347,12 +353,12 @@ task gisaid_meta_prep {
347353
'covv_seq_technology': sample_to_cmt[row['Sequence_ID']]['Sequencing Technology'],
348354
349355
'covv_orig_lab': row['collected_by'],
350-
'covv_subm_lab': 'REQUIRED',
351-
'covv_authors': 'REQUIRED',
352-
'covv_orig_lab_addr': 'REQUIRED',
353-
'covv_subm_lab_addr': 'REQUIRED',
354-
'submitter': 'REQUIRED',
355-
'fn': 'REQUIRED',
356+
'covv_subm_lab': "~{default='REQUIRED' submitting_lab_name}"
357+
'covv_authors': "~{default='REQUIRED' authors}",
358+
'covv_orig_lab_addr': "~{default='REQUIRED' originating_lab_addr}",
359+
'covv_subm_lab_addr': "~{default='REQUIRED' submitting_lab_addr}",
360+
'submitter': "~{default='REQUIRED' username}",
361+
'fn': "~{default='REQUIRED' fasta_filename}",
356362
})
357363
358364
#covv_specimen

pipes/WDL/workflows/sarscov2_illumina_full.wdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ workflow sarscov2_illumina_full {
228228
input:
229229
source_modifier_table = biosample_to_genbank.genbank_source_modifier_table,
230230
structured_comments = structured_comments.structured_comment_table,
231+
fasta_filename = "gisaid-sequences-~{flowcell_id}.fasta",
231232
out_name = "gisaid-meta-~{flowcell_id}.tsv"
232233
}
233234

0 commit comments

Comments
 (0)