Skip to content
Snippets Groups Projects
Commit f9152ab2 authored by Cats's avatar Cats
Browse files

add Somatic strelka task

parent dc365941
No related branches found
No related tags found
1 merge request!40Add Various new tasks
version 1.0
task Somatic {
input {
String? preCommand
String? installDir
String runDir
File normalBam
File tumorBam
File refFasta
Int cores = 1
Int memory = 4
}
String toolCommand = if defined(installDir)
then installDir + "bin/configureStrelkaSomaticWorkflow.py"
else "configureStrelkaSomaticWorkflow.py"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
--normalBam ~{normalBam} \
--tumorBam ~{tumorBam} \
--ref ~{refFasta} \
--runDir ~{runDir}
~{runDir}/runWorkflow.py \
-m local \
-J ~{cores} \
-g ~{memory}
}
output {
String runDir = runDir
File indelsVcf = runDir + "/results/variants/somatic.indels.vcf.gz"
File indelsIndex = runDir + "/results/variants/somatic.indels.vcf.gz.tbi"
File snvVcf = runDir + "/results/variants/somatic.snvs.vcf.gz"
File snvIndex = runDir + "/results/variants/somatic.snvs.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
}
}
\ No newline at end of file
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