Array[File] clippedR1 = if defined(split) then r1Paths else [outputPathR1]
Array[File] clippedR2 = if defined(split) then r2Paths else [outputPathR2]
}
runtime {
cpu: cores
memory: memory
time_minutes: timeMinutes
docker: dockerImage
}
parameter_meta {
r1: {description: "The R1 fastq file.", category: "required"}
r2: {description: "The R2 fastq file.", category: "required"}
outputPathR1: {description: "The output path for the R1 file.", category: "required"}
outputPathR2: {description: "The output path for the R2 file.", category: "required"}
htmlPath: {description: "The path to write the html report to.", category: "required"}
jsonPath: {description: "The path to write the json report to.", category: "required"}
compressionLevel: {description: "The compression level to use for the output.", category: "advanced"}
correction: {description: "Whether or not to apply overlap based correction.", category: "advanced"}
lengthRequired: {description: "The minimum read length.", category: "advanced"}
split: {description: "The number of chunks to split the files into.", category: "common"}
threads: {description: "The number of threads to use.", category: "advanced"}
memory: {description: "The amount of memory this job will use.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}