Skip to content
Snippets Groups Projects
flash.wdl 1.29 KiB
Newer Older
Ruben Vorderman's avatar
Ruben Vorderman committed
version 1.0

import "common.wdl" as common

Ruben Vorderman's avatar
Ruben Vorderman committed
    input {
        String? preCommand
        FastqPair inputFastq
Ruben Vorderman's avatar
Ruben Vorderman committed
        String outdirPath
        String outPrefix = "flash"
Ruben Vorderman's avatar
Ruben Vorderman committed
        Int? minOverlap
        Int? maxOverlap
        Boolean compress = true
        Int threads = 2
        Int memory = 2
Ruben Vorderman's avatar
Ruben Vorderman committed
    }
Pappas's avatar
Pappas committed

    command {
        set -e -o pipefail
Ruben Vorderman's avatar
Ruben Vorderman committed
        mkdir -p ~{outdirPath}
        ~{preCommand}
Pappas's avatar
Pappas committed
        flash \
Ruben Vorderman's avatar
Ruben Vorderman committed
        ~{"--threads=" + threads} \
        ~{"--output-directory=" + outdirPath} \
        ~{"--output-prefix=" + outPrefix} \
        ~{true="--compress " false="" compress} \
Ruben Vorderman's avatar
Ruben Vorderman committed
        ~{"--min-overlap=" + minOverlap} \
        ~{"--max-overlap=" + maxOverlap} \
        ~{inputFastq.R1} ~{inputFastq.R2}
Pappas's avatar
Pappas committed
    }

    output {
        File extendedFrags = outdirPath + "/" + outPrefix + ".extendedFrags.fastq.gz"
        File notCombined1 = outdirPath + "/" + outPrefix + ".notCombined_1.fastq.gz"
        File notCombined2 = outdirPath + "/" + outPrefix + ".notCombined_2.fastq.gz"
        FastqPair notCombined = object {
          R1: notCombined1,
          R2: notCombined2
        }
        File hist = outdirPath + "/" + outPrefix + ".hist"
        File histogram = outdirPath + "/" + outPrefix + ".histogram"
Pappas's avatar
Pappas committed
    }

    runtime {
        cpu: threads
        memory: memory
Pappas's avatar
Pappas committed
    }

}