Skip to content
Snippets Groups Projects
Commit d05ae22d authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Switch to new tool

parent 756c2d59
No related branches found
No related tags found
1 merge request!48Added Cromwell array tool
......@@ -244,6 +244,39 @@ task SampleConfig {
}
}
task SampleConfigCromwellArrays {
input {
File? toolJar
String? preCommand
Array[File]+ inputFiles
String outputPath
Int memory = 4
Float memoryMultiplier = 2.0
}
String toolCommand = if defined(toolJar)
then "java -Xmx" + memory + "G -jar " +toolJar
else "biopet-sampleconfig -Xmx" + memory + "G"
command {
set -e -o pipefail
~{preCommand}
mkdir -p . ~{"$(dirname " + outputPath + ")"}
~{toolCommand} CromwellArrays \
-i ~{sep="-i " inputFiles} \
~{"-o " + outputPath}
}
output {
File outputFile = outputPath
}
runtime {
memory: ceil(memory * memoryMultiplier)
}
}
task ScatterRegions {
input {
String? preCommand
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment