Browse Source

Fix bug: workflow

master
YaqingLiu 4 years ago
parent
commit
6196521d5e
1 changed files with 20 additions and 21 deletions
  1. +20
    -21
      workflow.wdl

+ 20
- 21
workflow.wdl View File

String disk_size String disk_size
if (fastq_1!= "") { if (fastq_1!= "") {
call mapping.mapping as mapping {
call mapping.mapping as fastq_mapping {
input: input:
group=sample_id, group=sample_id,
sample=sample_id, sample=sample_id,
cluster_config=cluster_config cluster_config=cluster_config
} }


call Dedup.Dedup as Dedup {
call Dedup.Dedup as fastq_Dedup {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
sorted_bam=mapping.sorted_bam,
sorted_bam_index=mapping.sorted_bam_index,
sorted_bam=fastq_mapping.sorted_bam,
sorted_bam_index=fastq_mapping.sorted_bam_index,
sample=sample_id, sample=sample_id,
docker=sentieon_docker, docker=sentieon_docker,
disk_size=disk_size, disk_size=disk_size,
cluster_config=cluster_config cluster_config=cluster_config
} }


call Realigner.Realigner as Realigner {
call Realigner.Realigner as fastq_Realigner {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
fasta=fasta, fasta=fasta,
ref_dir=ref_dir, ref_dir=ref_dir,
deduped_bam=Dedup.deduped_bam,
deduped_bam_index=Dedup.deduped_bam_index,
deduped_bam=fastq_Dedup.deduped_bam,
deduped_bam_index=fastq_Dedup.deduped_bam_index,
db_mills=db_mills, db_mills=db_mills,
dbmills_dir=dbmills_dir, dbmills_dir=dbmills_dir,
docker=sentieon_docker, docker=sentieon_docker,
cluster_config=cluster_config cluster_config=cluster_config
} }


call BQSR.BQSR as BQSR {
call BQSR.BQSR as fastq_BQSR {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
fasta=fasta, fasta=fasta,
ref_dir=ref_dir, ref_dir=ref_dir,
realigned_bam=Realigner.realigner_bam,
realigned_bam_index=Realigner.realigner_bam_index,
realigned_bam=fastq_Realigner.realigner_bam,
realigned_bam_index=fastq_Realigner.realigner_bam_index,
db_mills=db_mills, db_mills=db_mills,
dbmills_dir=dbmills_dir, dbmills_dir=dbmills_dir,
dbsnp=dbsnp, dbsnp=dbsnp,
cluster_config=cluster_config cluster_config=cluster_config
} }


call PoN.PoN as PoN {
call PoN.PoN as fastq_PoN {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
fasta=fasta, fasta=fasta,
ref_dir=ref_dir, ref_dir=ref_dir,
regions=regions, regions=regions,
normal_bam=BQSR.recaled_bam,
normal_bam_index=BQSR.recaled_bam_index,
normal_bam=fastq_BQSR.recaled_bam,
normal_bam_index=fastq_BQSR.recaled_bam_index,
docker=sentieon_docker, docker=sentieon_docker,
disk_size=disk_size, disk_size=disk_size,
cluster_config=cluster_config cluster_config=cluster_config
} }
} }

if (deduped_bam!= "") { if (deduped_bam!= "") {
call Realigner.Realigner as Realigner {
call Realigner.Realigner as bam_Realigner {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
cluster_config=cluster_config cluster_config=cluster_config
} }


call BQSR.BQSR as BQSR {
call BQSR.BQSR as bam_BQSR {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
fasta=fasta, fasta=fasta,
ref_dir=ref_dir, ref_dir=ref_dir,
realigned_bam=Realigner.realigner_bam,
realigned_bam_index=Realigner.realigner_bam_index,
realigned_bam=bam_Realigner.realigner_bam,
realigned_bam_index=bam_Realigner.realigner_bam_index,
db_mills=db_mills, db_mills=db_mills,
dbmills_dir=dbmills_dir, dbmills_dir=dbmills_dir,
dbsnp=dbsnp, dbsnp=dbsnp,
cluster_config=cluster_config cluster_config=cluster_config
} }


call PoN.PoN as PoN {
call PoN.PoN as bam_PoN {
input: input:
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR,
SENTIEON_LICENSE=SENTIEON_LICENSE, SENTIEON_LICENSE=SENTIEON_LICENSE,
fasta=fasta, fasta=fasta,
ref_dir=ref_dir, ref_dir=ref_dir,
regions=regions, regions=regions,
normal_bam=BQSR.recaled_bam,
normal_bam_index=BQSR.recaled_bam_index,
normal_bam=bam_BQSR.recaled_bam,
normal_bam_index=bam_BQSR.recaled_bam_index,
docker=sentieon_docker, docker=sentieon_docker,
disk_size=disk_size, disk_size=disk_size,
cluster_config=cluster_config cluster_config=cluster_config

Loading…
Cancel
Save