Skip to content
Snippets Groups Projects
manta.wdl 2.09 KiB
Newer Older
Cats's avatar
Cats committed
version 1.0

Cats's avatar
Cats committed
    input {
        String? preCommand
Cats's avatar
Cats committed
        File tumorBam
        File tumorIndex
        File? normalBam
        File? normalIndex
        File refFasta
Cats's avatar
Cats committed
        File refFastaIndex
Cats's avatar
Cats committed
        String runDir
        File? callRegions
        File? callRegionsIndex
        Boolean exome = false
        String? preCommand
        String? installDir
    }

    String toolCommand = if defined(installDir)
        then installDir + "bin/configMata.py"
        else "configManta.py"

    command {
        set -e -o pipefail
        ~{preCommand}
        ~{toolCommand} \
        ~{"--normalBam " + normalBam} \
        ~{"--tumorBam " + tumorBam} \
        --referenceFasta ~{refFasta} \
        ~{"--callRegions " + callRegions} \
        --runDir ~{runDir} \
        ~{true="--exome" false="" exome}
Cats's avatar
Cats committed

        String? preCommand
        String runDir
        Int cores = 1
        Int memory = 4
        Boolean paired = true
    }

    command {
        set -e -o pipefail
        ~{preCommand}
Cats's avatar
Cats committed
        ~{runDir}/runWorkflow.py \
Cats's avatar
Cats committed
        -m local \
        -j ~{cores} \
        -g ~{memory}
    }

    output {
        File condidateSmallIndels = runDir + "/results/variants/candidateSmallIndels.vcf.gz"
        File condidateSmallIndelsIndex = runDir +
            "/results/variants/candidateSmallIndels.vcf.gz.tbi"
        File candidateSV = runDir + "/results/variants/candidateSV.vcf.gz"
        File candidateSVindex = runDir + "/results/variants/candidateSV.vcf.gz.tbi"
Cats's avatar
Cats committed
            then runDir + "/results/variants/somaticSV.vcf.gz"
            else runDir + "/results/variants/tumorSV.vcf.gz"
Cats's avatar
Cats committed
            then runDir + "/results/variants/somaticSV.vcf.gz.tbi"
            else runDir + "/results/variants/tumorSV.vcf.gz.tbi"
        File? diploidSV = "/results/variants/diploidSV.vcf.gz"
        File? diploidSVindex = "/results/variants/diploidSV.vcf.gz.tbi"
    }

    runtime {
        cpu: cores
        memory: memory
    }
}