pipeline/wdl/postprocess.wdl

77 lines
1.6 KiB
Plaintext
Raw Normal View History

2023-12-28 09:14:58 +08:00
# postprocess
2023-12-25 14:06:30 +08:00
2023-12-19 13:37:52 +08:00
task run_post {
String? mutation
String? fusion
String? cnv
2023-12-28 09:14:58 +08:00
String? msi
String? tmb
2023-12-19 13:37:52 +08:00
String? hereditary
String? chemo
2023-12-25 14:06:30 +08:00
String? neoantigen
2023-12-19 13:37:52 +08:00
String? pollution
String name
String? normal
String output_dir
String cancer
String project
2023-12-26 10:18:15 +08:00
2024-01-01 14:25:34 +08:00
command {
2023-12-19 13:37:52 +08:00
if [ ! -d ${output_dir}/report ];then
mkdir ${output_dir}/report
fi
indication.pl ${output_dir} ${cancer} ${project}
sample_post.py -s ${name} -o ${output_dir}
postprocess.py -n ${name} -s ${normal} -c ${output_dir} -o ${output_dir}/report/${name}.merged_file.xlsx
2024-01-01 14:25:34 +08:00
sleep 2m
2023-12-26 10:18:15 +08:00
2024-01-01 14:25:34 +08:00
}
output {
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
}
2023-12-19 13:37:52 +08:00
}
workflow call_postprocess {
Boolean run=true
String? mutation
String? fusion
String? cnv
String? msi
2023-12-28 09:14:58 +08:00
String? tmb
2023-12-19 13:37:52 +08:00
String? hereditary
String? pollution
String? chemo
2023-12-25 14:06:30 +08:00
String? neoantigen
2023-12-19 13:37:52 +08:00
String name
String? normal
String output_dir
String cancer
String project
if (run) {
call run_post {
input:
mutation=mutation,
fusion=fusion,
cnv=cnv,
msi=msi,
2023-12-28 09:14:58 +08:00
tmb=tmb,
2023-12-19 13:37:52 +08:00
hereditary=hereditary,
chemo=chemo,
2023-12-25 14:06:30 +08:00
neoantigen=neoantigen,
2023-12-19 13:37:52 +08:00
pollution=pollution,
name=name,
normal=normal,
output_dir=output_dir,
cancer=cancer,
project=project
}
}
output {
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
}
}