Newer
Older
task AppendToStringArray {
input {
Array[String] array
String string
}
# This task will fail if the MD5sum doesn't match the file.
task CheckFileMD5 {
MD5SUM_CORRECT=$(cat ~{md5} | grep ~{basename(file)} | cut -d ' ' -f 1)
input {
Array[File] fileList
String combinedFilePath
Boolean unzip = false
Boolean zip = false
# When input and output is both compressed decompression is not needed
String cmdPrefix = if (unzip && !zip) then "zcat " else "cat "
String cmdSuffix = if (!unzip && zip) then " | gzip -c " else ""
task CreateLink {
# Making this of type File will create a link to the copy of the file in the execution
# folder, instead of the actual file.
# DEPRECATED. USE BUILT-IN FLATTEN FUNCTION
# task FlattenStringArray {}
# Commented out to let pipelines that depend on this fail.
cat ~{write_object(the_object)} | md5sum - | sed -e 's/ -//'
echo ~{sep=',' stringArray} | md5sum - | sed -e 's/ -//'
struct Reference {
File fasta
File fai
File dict
}
}
struct IndexedBamFile {
File file
File index
struct CaseControl {
String inputName
IndexedBamFile inputBam
String controlName
IndexedBamFile controlBam
}
struct CaseControls {
Array[CaseControl] caseControls