Skip to content
Snippets Groups Projects
seqtk.wdl 670 B
Newer Older
Ruben Vorderman's avatar
Ruben Vorderman committed
version 1.0

Ruben Vorderman's avatar
Ruben Vorderman committed
    input {
        File sequenceFile
        String outFilePath = "subsampledReads.fq.gz"
Ruben Vorderman's avatar
Ruben Vorderman committed
        String? preCommand
        Int? seed
        Boolean twoPassMode
Ruben Vorderman's avatar
Ruben Vorderman committed
        Float? fraction
        Int? number
        Boolean zip = true
Ruben Vorderman's avatar
Ruben Vorderman committed
    }
Ruben Vorderman's avatar
Ruben Vorderman committed

    command {
Ruben Vorderman's avatar
Ruben Vorderman committed
        set -e -o pipefail
        mkdir -p $(dirname outFilePath)
Ruben Vorderman's avatar
Ruben Vorderman committed
        ~{preCommand}
        seqtk sample \
        ~{"-s " + seed} \
        ~{true="-2 " false="" twoPassMode} \
        ~{sequenceFile} \
        ~{number} \
        ~{fraction} \
Ruben Vorderman's avatar
Ruben Vorderman committed
        ~{true="| gzip" false="" zip} \
Ruben Vorderman's avatar
Ruben Vorderman committed
    output {
        File subsampledReads = outFilePath