-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b83623
commit 2e502e0
Showing
2 changed files
with
85 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version 1.0 | ||
|
||
import "TasksMakeCohortVcf.wdl" as tasks | ||
|
||
workflow ConcatTextFiles { | ||
|
||
input { | ||
Array[File] text_files | ||
String output_prefix | ||
String output_suffix = ".concat.txt" | ||
Boolean headered = false | ||
|
||
String linux_docker | ||
String sv_base_mini_docker | ||
} | ||
|
||
if (!headered) { | ||
call tasks.CatUncompressedFiles { | ||
input: | ||
shards=text_files, | ||
outfile_name="~{output_prefix}.~{output_suffix}", | ||
sv_base_mini_docker=sv_base_mini_docker | ||
} | ||
} | ||
|
||
if (headered) { | ||
call tasks.ConcatHeaderedTextFiles { | ||
input: | ||
text_files=text_files, | ||
output_filename="~{output_prefix}.~{output_suffix}", | ||
linux_docker=linux_docker | ||
} | ||
} | ||
|
||
output { | ||
File concatenated_files = select_first([ConcatHeaderedTextFiles.out, CatUncompressedFiles.outfile]) | ||
} | ||
} |
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