-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make standalone sarscov2_sequencing_reports workflow accept multiple …
…runs of input
- Loading branch information
Showing
1 changed file
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
version 1.0 | ||
|
||
import "../tasks/tasks_sarscov2.wdl" as sarscov2 | ||
import "../tasks/tasks_reports.wdl" as reports | ||
|
||
workflow sarscov2_sequencing_reports { | ||
meta { | ||
description: "Produce per-state and per-collaborator weekly reports of SARS-CoV-2 surveillance data." | ||
} | ||
|
||
call sarscov2.sequencing_report | ||
input { | ||
Array[File] assembly_stats_tsvs | ||
String max_date | ||
} | ||
|
||
call reports.tsv_join { | ||
input: | ||
input_tsvs = assembly_stats_tsvs, | ||
id_col = 'sample', | ||
out_basename = 'assembly_stats-cumulative-~{max_date}' | ||
} | ||
|
||
call sarscov2.sequencing_report { | ||
input: | ||
assembly_stats_tsv = tsv_join.out_tsv, | ||
max_date = max_date | ||
} | ||
|
||
output { | ||
Array[File] sequencing_reports_pdfs = sequencing_report.reports | ||
Array[File] sequencing_reports_xlsxs = sequencing_report.sheets | ||
File assembly_stats_cumulative_tsv = tsv_join.out_tsv | ||
Array[File] sequencing_reports_pdfs = sequencing_report.reports | ||
Array[File] sequencing_reports_xlsxs = sequencing_report.sheets | ||
File sequencing_reports_zip = sequencing_report.all_zip | ||
} | ||
} |