2023-08-25 10:06:31 +08:00
|
|
|
import "./wdl/task.wdl" as mytask
|
|
|
|
|
import "./wdl/qc.wdl"
|
|
|
|
|
import "./wdl/alignment.wdl"
|
2023-09-27 10:47:03 +08:00
|
|
|
import "./wdl/call_mutation.wdl"
|
2023-08-29 10:31:06 +08:00
|
|
|
|
2023-08-25 10:06:31 +08:00
|
|
|
workflow pipeline {
|
|
|
|
|
|
|
|
|
|
String tumor
|
|
|
|
|
String? normal
|
2023-09-27 10:47:03 +08:00
|
|
|
Boolean umi=false
|
|
|
|
|
|
|
|
|
|
String input_dir
|
|
|
|
|
String output_dir
|
|
|
|
|
|
|
|
|
|
String bed
|
|
|
|
|
|
|
|
|
|
String codesDir="/home/zhangchao/project/pipeline/workflow/script"
|
2023-08-25 10:06:31 +08:00
|
|
|
String ref = "/dataseq/jmdna/database/genome/hg19/hg19.fa"
|
|
|
|
|
|
2023-09-27 10:47:03 +08:00
|
|
|
String workdir="${output_dir}"
|
2023-08-25 10:06:31 +08:00
|
|
|
|
|
|
|
|
call mytask.create_dir as create_dir {
|
|
|
|
|
input:
|
|
|
|
|
workdir=workdir
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
call qc.qc as qc {
|
|
|
|
|
input:
|
|
|
|
|
tumor=tumor,
|
|
|
|
|
normal=normal,
|
2023-09-27 10:47:03 +08:00
|
|
|
umi=umi,
|
|
|
|
|
input_dir=input_dir,
|
|
|
|
|
output_dir=workdir
|
2023-08-25 10:06:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
call alignment.alignment as alignment {
|
|
|
|
|
|
|
|
|
|
input:
|
|
|
|
|
tumor=tumor,
|
|
|
|
|
tumor_r1=qc.tumor_r1,
|
|
|
|
|
tumor_r2=qc.tumor_r2,
|
|
|
|
|
|
|
|
|
|
normal=normal,
|
|
|
|
|
normal_r1=qc.normal_r1,
|
|
|
|
|
normal_r2=qc.normal_r2,
|
|
|
|
|
|
2023-09-27 10:47:03 +08:00
|
|
|
umi=umi,
|
2023-08-29 10:31:06 +08:00
|
|
|
|
|
|
|
|
ref=ref,
|
|
|
|
|
bed=bed,
|
2023-09-27 10:47:03 +08:00
|
|
|
output_dir=workdir
|
2023-08-25 10:06:31 +08:00
|
|
|
}
|
|
|
|
|
|
2023-09-27 10:47:03 +08:00
|
|
|
call call_mutation.call_mutation as call_mutation {
|
2023-08-25 10:06:31 +08:00
|
|
|
input:
|
|
|
|
|
tumor=tumor,
|
2023-09-27 10:47:03 +08:00
|
|
|
tumor_rmdup_bam=alignment.tumor_rmdup_bam,
|
2023-08-25 10:06:31 +08:00
|
|
|
normal=normal,
|
2023-09-27 10:47:03 +08:00
|
|
|
normal_rmdup_bam=alignment.normal_rmdup_bam,
|
2023-08-25 10:06:31 +08:00
|
|
|
|
2023-09-27 10:47:03 +08:00
|
|
|
umi=umi,
|
2023-08-25 10:06:31 +08:00
|
|
|
ref=ref,
|
|
|
|
|
bed=bed,
|
2023-09-27 10:47:03 +08:00
|
|
|
output_dir=workdir
|
2023-08-29 17:46:31 +08:00
|
|
|
}
|
2023-08-25 10:06:31 +08:00
|
|
|
}
|