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=$(md5sum ~{file} | cut -d ' ' -f 1)
[ $MD5SUM = ~{MD5sum} ]
input {
Array[File] fileList
String combinedFilePath
Boolean unzip = false
Boolean zip = false
~{"mkdir -p $(dirname " + combinedFilePath + ")"}
~{true='zcat' false= 'cat' unzip} ~{sep=' ' fileList} \
~{true="| gzip -c" false="" zip} > ~{combinedFilePath}
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
}