Browse Source

test: boolean

master
YaqingLiu 4 years ago
parent
commit
d30daceb59
4 changed files with 14 additions and 14 deletions
  1. +2
    -2
      tasks/TNscope.wdl
  2. +2
    -2
      tasks/TNseq.wdl
  3. +2
    -2
      tasks/bcftools.wdl
  4. +8
    -8
      workflow.wdl

+ 2
- 2
tasks/TNscope.wdl View File

@@ -19,12 +19,12 @@ task TNscope {
String dbsnp
String disk_size
String set_pon
Boolean set_pon
String? cosmic_vcf
File? cosmic_dir
File? pon_vcf
String pon_command = if (set_pon == "true") then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
Boolean TN = if defined(corealigner_bam) then true else false
command <<<

+ 2
- 2
tasks/TNseq.wdl View File

@@ -17,12 +17,12 @@ task TNseq {
String dbsnp
String disk_size
String set_pon
Boolean set_pon
String? cosmic_vcf
File? cosmic_dir
File? pon_vcf
String pon_command = if (set_pon == "true") then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
String pon_command = if set_pon then "--pon /cromwell_root/tmp/PON/$(basename ${pon_vcf}) --cosmic /cromwell_root/tmp/PON/${cosmic_vcf}" else ""
Boolean TN = if defined(corealigner_bam) then true else false
command <<<

+ 2
- 2
tasks/bcftools.wdl View File

@@ -4,14 +4,14 @@ task bcftools {
String docker
String cluster_config
String disk_size
String set_pon
Boolean set_pon


command <<<
set -o pipefail
set -e
if [ ${set_pon} == "true" ] ; then
if ${set_pon} ; then
mkdir -p /cromwell_root/tmp/bcftools/
for i in ${sep=" " pon_vcf}
do

+ 8
- 8
workflow.wdl View File

@@ -38,15 +38,15 @@ workflow {{ project_name }} {
String disk_size
String cluster_config

String set_pon
Boolean set_pon
File? pon_vcf
File? cosmic_dir
String? cosmic_vcf

String set_annovar
Boolean set_annovar
File? database
String set_vcf2maf
String germline
Boolean set_vcf2maf
Boolean germline


call mapping.mapping as mapping {
@@ -141,7 +141,7 @@ workflow {{ project_name }} {
cluster_config=cluster_config
}

if (set_pon == "true" && type == "normal") {
if (set_pon && type == "normal") {
call PON.PON as PON {
input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
@@ -161,7 +161,7 @@ workflow {{ project_name }} {
}
}

if (germline == "true") {
if (germline) {
call Haplotyper.Haplotyper as Haplotyper {
input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
@@ -252,7 +252,7 @@ workflow {{ project_name }} {
}
}

if (set_annovar == "true" && defined(TNscope.TNscope_vcf) && defined(TNseq.TNseq_vcf)){
if (set_annovar && defined(TNscope.TNscope_vcf) && defined(TNseq.TNseq_vcf)){
call annovar.annovar as annovar {
input:
docker=annovar_docker,
@@ -264,7 +264,7 @@ workflow {{ project_name }} {
disk_size=disk_size
}

if (set_vcf2maf == "true"){
if (set_vcf2maf){
call vcf2maf.vcf2maf as vcf2maf {
input:
docker=maftools_docker,

Loading…
Cancel
Save