|
|
|
|
|
|
|
|
sample=sample_id + '_normal', |
|
|
sample=sample_id + '_normal', |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
ref_dir=ref_dir, |
|
|
ref_dir=ref_dir, |
|
|
deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
|
|
|
recaled_bam=normal_BQSR.recaled_bam, |
|
|
|
|
|
recaled_bam_index=normal_BQSR.recaled_bam_index, |
|
|
dbsnp=dbsnp, |
|
|
dbsnp=dbsnp, |
|
|
dbsnp_dir=dbsnp_dir, |
|
|
dbsnp_dir=dbsnp_dir, |
|
|
regions=regions, |
|
|
regions=regions, |
|
|
|
|
|
|
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
normal_deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
tumor_deduped_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_deduped_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
tumor_recal_table=tumor_BQSR.recal_table, |
|
|
|
|
|
|
|
|
normal_recaled_bam=normal_BQSR.recaled_bam, |
|
|
|
|
|
normal_recaled_bam_index=normal_BQSR.recaled_bam_index, |
|
|
|
|
|
tumor_recaled_bam=tumor_BQSR.recaled_bam, |
|
|
|
|
|
tumor_recaled_bam_index=tumor_BQSR.recaled_bam_index, |
|
|
normal_name=sample_id + "_normal", |
|
|
normal_name=sample_id + "_normal", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
|
|
|
|
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
normal_deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
tumor_deduped_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_deduped_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
tumor_recal_table=tumor_BQSR.recal_table, |
|
|
|
|
|
|
|
|
normal_recaled_bam=normal_BQSR.recaled_bam, |
|
|
|
|
|
normal_recaled_bam_index=normal_BQSR.recaled_bam_index, |
|
|
|
|
|
tumor_recaled_bam=tumor_BQSR.recaled_bam, |
|
|
|
|
|
tumor_recaled_bam_index=tumor_BQSR.recaled_bam_index, |
|
|
normal_name=sample_id + "_normal", |
|
|
normal_name=sample_id + "_normal", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
|
|
|
|
|
|
call somatic.somatic as somatic { |
|
|
call somatic.somatic as somatic { |
|
|
input: |
|
|
input: |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
tumor_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
|
|
|
normal_bam=normal_BQSR.recaled_bam, |
|
|
|
|
|
normal_bam_index=normal_BQSR.recaled_bam_index, |
|
|
|
|
|
tumor_bam=tumor_BQSR.recaled_bam, |
|
|
|
|
|
tumor_bam_index=tumor_BQSR.recaled_bam_index, |
|
|
ref_dir=ref_dir, |
|
|
ref_dir=ref_dir, |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
docker=varscan_docker, |
|
|
docker=varscan_docker, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (input_bam) { |
|
|
if (input_bam) { |
|
|
if (tumor_deduped_bam != "") { |
|
|
if (tumor_deduped_bam != "") { |
|
|
call BQSR.BQSR as tumor_BQSR { |
|
|
|
|
|
|
|
|
call BQSR.BQSR as tumor_BQSR_fb { |
|
|
input: |
|
|
input: |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (normal_deduped_bam != "") { |
|
|
if (normal_deduped_bam != "") { |
|
|
call BQSR.BQSR as normal_BQSR { |
|
|
|
|
|
|
|
|
call BQSR.BQSR as normal_BQSR_fb { |
|
|
input: |
|
|
input: |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (haplotyper) { |
|
|
if (haplotyper) { |
|
|
call Haplotyper.Haplotyper as Haplotyper { |
|
|
|
|
|
|
|
|
call Haplotyper.Haplotyper as Haplotyper_fb { |
|
|
input: |
|
|
input: |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
sample=sample_id + '_normal', |
|
|
sample=sample_id + '_normal', |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
ref_dir=ref_dir, |
|
|
ref_dir=ref_dir, |
|
|
deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
|
|
|
recaled_bam=normal_BQSR_fb.recaled_bam, |
|
|
|
|
|
recaled_bam_index=normal_BQSR_fb.recaled_bam_index, |
|
|
dbsnp=dbsnp, |
|
|
dbsnp=dbsnp, |
|
|
dbsnp_dir=dbsnp_dir, |
|
|
dbsnp_dir=dbsnp_dir, |
|
|
regions=regions, |
|
|
regions=regions, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (tnseq) { |
|
|
if (tnseq) { |
|
|
call TNseq.TNseq as TNseq { |
|
|
|
|
|
|
|
|
call TNseq.TNseq as TNseq_fb { |
|
|
input: |
|
|
input: |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
normal_deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
tumor_deduped_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_deduped_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
tumor_recal_table=tumor_BQSR.recal_table, |
|
|
|
|
|
|
|
|
normal_recaled_bam=normal_BQSR_fb.recaled_bam, |
|
|
|
|
|
normal_recaled_bam_index=normal_BQSR_fb.recaled_bam_index, |
|
|
|
|
|
tumor_recaled_bam=tumor_BQSR_fb.recaled_bam, |
|
|
|
|
|
tumor_recaled_bam_index=tumor_BQSR_fb.recaled_bam_index, |
|
|
normal_name=sample_id + "_normal", |
|
|
normal_name=sample_id + "_normal", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (annovar) { |
|
|
if (annovar) { |
|
|
call ANNOVAR.ANNOVAR as TNseq_annovar { |
|
|
|
|
|
|
|
|
call ANNOVAR.ANNOVAR as TNseq_annovar_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=TNseq.TNseq_vcf, |
|
|
|
|
|
|
|
|
vcf=TNseq_fb.TNseq_vcf, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
annovar_database=annovar_database, |
|
|
annovar_database=annovar_database, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (vep) { |
|
|
if (vep) { |
|
|
call VEP.VEP as TNseq_VEP { |
|
|
|
|
|
|
|
|
call VEP.VEP as TNseq_VEP_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=TNseq.TNseq_vcf, |
|
|
|
|
|
|
|
|
vcf=TNseq_fb.TNseq_vcf, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
sample_id=sample_id, |
|
|
sample_id=sample_id, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (tnscope) { |
|
|
if (tnscope) { |
|
|
call TNscope.TNscope as TNscope { |
|
|
|
|
|
|
|
|
call TNscope.TNscope as TNscope_fb { |
|
|
input: |
|
|
input: |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_INSTALL_DIR=SENTIEON_INSTALL_DIR, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
SENTIEON_LICENSE=SENTIEON_LICENSE, |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
normal_deduped_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_deduped_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_recal_table=normal_BQSR.recal_table, |
|
|
|
|
|
tumor_deduped_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_deduped_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
tumor_recal_table=tumor_BQSR.recal_table, |
|
|
|
|
|
|
|
|
normal_recaled_bam=normal_BQSR_fb.recaled_bam, |
|
|
|
|
|
normal_recaled_bam_index=normal_BQSR_fb.recaled_bam_index, |
|
|
|
|
|
tumor_recaled_bam=tumor_BQSR_fb.recaled_bam, |
|
|
|
|
|
tumor_recaled_bam_index=tumor_BQSR_fb.recaled_bam_index, |
|
|
normal_name=sample_id + "_normal", |
|
|
normal_name=sample_id + "_normal", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
tumor_name=sample_id + "_tumor", |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (annovar) { |
|
|
if (annovar) { |
|
|
call ANNOVAR.ANNOVAR as TNscope_annovar { |
|
|
|
|
|
|
|
|
call ANNOVAR.ANNOVAR as TNscope_annovar_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=TNscope.TNscope_vcf, |
|
|
|
|
|
|
|
|
vcf=TNscope_fb.TNscope_vcf, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
annovar_database=annovar_database, |
|
|
annovar_database=annovar_database, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (vep) { |
|
|
if (vep) { |
|
|
call VEP.VEP as TNscope_VEP { |
|
|
|
|
|
|
|
|
call VEP.VEP as TNscope_VEP_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=TNscope.TNscope_vcf, |
|
|
|
|
|
|
|
|
vcf=TNscope_fb.TNscope_vcf, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
sample_id=sample_id, |
|
|
sample_id=sample_id, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (varscan) { |
|
|
if (varscan) { |
|
|
call somatic.somatic as somatic { |
|
|
|
|
|
|
|
|
call somatic.somatic as somatic_fb { |
|
|
input: |
|
|
input: |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
tumor_bam=tumor_Dedup.deduped_bam, |
|
|
|
|
|
tumor_bam_index=tumor_Dedup.deduped_bam_index, |
|
|
|
|
|
normal_bam=normal_Dedup.deduped_bam, |
|
|
|
|
|
normal_bam_index=normal_Dedup.deduped_bam_index, |
|
|
|
|
|
|
|
|
normal_bam=normal_BQSR_fb.recaled_bam, |
|
|
|
|
|
normal_bam_index=normal_BQSR_fb.recaled_bam_index, |
|
|
|
|
|
tumor_bam=tumor_BQSR_fb.recaled_bam, |
|
|
|
|
|
tumor_bam_index=tumor_BQSR_fb.recaled_bam_index, |
|
|
ref_dir=ref_dir, |
|
|
ref_dir=ref_dir, |
|
|
fasta=fasta, |
|
|
fasta=fasta, |
|
|
docker=varscan_docker, |
|
|
docker=varscan_docker, |
|
|
|
|
|
|
|
|
cluster_config=cluster_config |
|
|
cluster_config=cluster_config |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
call processSomatic.processSomatic as processSomatic { |
|
|
|
|
|
|
|
|
call processSomatic.processSomatic as processSomatic_fb { |
|
|
input: |
|
|
input: |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
varscan_snp=somatic.varscan_snp, |
|
|
|
|
|
varscan_indel=somatic.varscan_indel, |
|
|
|
|
|
|
|
|
varscan_snp=somatic_fb.varscan_snp, |
|
|
|
|
|
varscan_indel=somatic_fb.varscan_indel, |
|
|
docker=varscan_docker, |
|
|
docker=varscan_docker, |
|
|
disk_size=disk_size, |
|
|
disk_size=disk_size, |
|
|
cluster_config=cluster_config |
|
|
cluster_config=cluster_config |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
call somaticFilter.somaticFilter as somaticFilter { |
|
|
|
|
|
|
|
|
call somaticFilter.somaticFilter as somaticFilter_fb { |
|
|
input: |
|
|
input: |
|
|
sample=sample_id, |
|
|
sample=sample_id, |
|
|
varscan_snp_somatic_hc=processSomatic.varscan_snp_somatic_hc, |
|
|
|
|
|
varscan_snp_germline_hc=processSomatic.varscan_snp_germline_hc, |
|
|
|
|
|
varscan_snp_loh_hc=processSomatic.varscan_snp_loh_hc, |
|
|
|
|
|
varscan_indel_somatic_hc=processSomatic.varscan_indel_somatic_hc, |
|
|
|
|
|
varscan_indel_germline_hc=processSomatic.varscan_indel_germline_hc, |
|
|
|
|
|
varscan_indel_loh_hc=processSomatic.varscan_indel_loh_hc, |
|
|
|
|
|
varscan_indel=somatic.varscan_indel, |
|
|
|
|
|
|
|
|
varscan_snp_somatic_hc=processSomatic_fb.varscan_snp_somatic_hc, |
|
|
|
|
|
varscan_snp_germline_hc=processSomatic_fb.varscan_snp_germline_hc, |
|
|
|
|
|
varscan_snp_loh_hc=processSomatic_fb.varscan_snp_loh_hc, |
|
|
|
|
|
varscan_indel_somatic_hc=processSomatic_fb.varscan_indel_somatic_hc, |
|
|
|
|
|
varscan_indel_germline_hc=processSomatic_fb.varscan_indel_germline_hc, |
|
|
|
|
|
varscan_indel_loh_hc=processSomatic_fb.varscan_indel_loh_hc, |
|
|
|
|
|
varscan_indel=somatic_fb.varscan_indel, |
|
|
docker=varscan_docker, |
|
|
docker=varscan_docker, |
|
|
disk_size=disk_size, |
|
|
disk_size=disk_size, |
|
|
cluster_config=cluster_config |
|
|
cluster_config=cluster_config |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (annovar) { |
|
|
if (annovar) { |
|
|
call ANNOVAR.ANNOVAR as VarScan_annovar { |
|
|
|
|
|
|
|
|
call ANNOVAR.ANNOVAR as VarScan_annovar_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=somaticFilter.varscan_somatic_filter, |
|
|
|
|
|
|
|
|
vcf=somaticFilter_fb.varscan_somatic_filter, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
annovar_database=annovar_database, |
|
|
annovar_database=annovar_database, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (vep) { |
|
|
if (vep) { |
|
|
call VEP.VEP as VarScan_VEP { |
|
|
|
|
|
|
|
|
call VEP.VEP as VarScan_VEP_fb { |
|
|
input: |
|
|
input: |
|
|
vcf=VarScan.VarScan_vcf, |
|
|
|
|
|
|
|
|
vcf=VarScan_fb.VarScan_vcf, |
|
|
hg=hg, |
|
|
hg=hg, |
|
|
only_pass=only_pass, |
|
|
only_pass=only_pass, |
|
|
sample_id=sample_id, |
|
|
sample_id=sample_id, |