Skip to content

Commit

Permalink
handle empty output scenario better
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Sep 19, 2024
1 parent 425a4db commit 4b074d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipes/WDL/workflows/scaffold_and_refine_multitaxa.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ workflow scaffold_and_refine_multitaxa {
}

### summary stats
if len(select_all(stats_by_taxon)) > 0 {
File assembly_stats_body = write_tsv(select_all(stats_by_taxon))
}
call utils.concatenate {
input:
infiles = [write_tsv([assembly_header]), write_tsv(select_all(stat_by_taxon))],
infiles = select_all([write_tsv([assembly_header]), assembly_stats_body]),
output_name = "assembly_metadata-~{sample_id}.tsv"
}

Expand Down

0 comments on commit 4b074d8

Please sign in to comment.