Skip to content

Commit 8221cdc

Browse files
committed
start work on new workflow not done yet
1 parent 194c44e commit 8221cdc

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version 1.0
2+
3+
import "../tasks/tasks_ncbi_tools.wdl" as ncbi_tools
4+
import "../tasks/tasks_terra.wdl" as terra
5+
6+
workflow submit_sra {
7+
meta {
8+
description: "Submit FTP-eligible genomes to NCBI Genbank (currently only flu A/B/C and SARS-CoV-2)"
9+
author: "Broad Viral Genomics"
10+
email: "viral-ngs@broadinstitute.org"
11+
allowNestedInputs: true
12+
}
13+
14+
input {
15+
#Array[File] submission_files
16+
String batch_id
17+
18+
File genbank_xml
19+
File genbank_zip
20+
21+
File ncbi_ftp_config_js
22+
String prod_test = "Production" # Production or Test
23+
}
24+
25+
String prefix = "/~{prod_test}/~{batch_id}"
26+
27+
# TO DO: work in progress, not ready yet
28+
29+
call ncbi_tools.ncbi_sftp_upload as genbank_upload {
30+
input:
31+
config_js = ncbi_ftp_config_js,
32+
submission_xml = genbank_xml,
33+
additional_files = [genbank_zip],
34+
target_path = "~{prefix}/genbank",
35+
wait_for = "1"
36+
}
37+
38+
output {
39+
Array[File] genbank_response = genbank_upload.reports_xmls
40+
}
41+
}

pipes/WDL/workflows/submit_sra.wdl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ workflow submit_sra {
2525

2626
String prefix = "/~{prod_test}/~{flowcell_id}"
2727

28-
2928
call terra.gcs_copy as gcs_sra_dump_reads {
3029
input:
3130
infiles = reads_bams,

0 commit comments

Comments
 (0)