2023-11-29 15:13:30 +08:00
|
|
|
task run_post {
|
|
|
|
|
String? mutation
|
|
|
|
|
String? fusion
|
|
|
|
|
String? cnv
|
|
|
|
|
String? msi
|
|
|
|
|
String? hereditary
|
|
|
|
|
String? chemo
|
2023-11-30 16:50:29 +08:00
|
|
|
String? pollution
|
2023-11-29 15:13:30 +08:00
|
|
|
String name
|
|
|
|
|
String? normal
|
|
|
|
|
String output_dir
|
|
|
|
|
String cancer
|
2023-12-12 11:20:52 +08:00
|
|
|
String project
|
2023-11-29 15:13:30 +08:00
|
|
|
command <<<
|
|
|
|
|
|
|
|
|
|
if [ ! -d ${output_dir}/report ];then
|
|
|
|
|
mkdir ${output_dir}/report
|
|
|
|
|
fi
|
2023-12-12 11:20:52 +08:00
|
|
|
indication.pl ${output_dir} ${cancer} ${project}
|
2023-12-05 15:15:30 +08:00
|
|
|
sample_post.py -s ${name} -o ${output_dir}
|
2023-11-29 15:13:30 +08:00
|
|
|
postprocess.py -n ${name} -s ${normal} -c ${output_dir} -o ${output_dir}/report/${name}.merged_file.xlsx
|
|
|
|
|
>>>
|
|
|
|
|
|
|
|
|
|
output {
|
|
|
|
|
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
workflow call_postprocess {
|
|
|
|
|
|
|
|
|
|
Boolean run=true
|
|
|
|
|
|
|
|
|
|
String? mutation
|
|
|
|
|
String? fusion
|
|
|
|
|
String? cnv
|
2023-11-30 15:31:35 +08:00
|
|
|
String? msi
|
2023-11-29 15:13:30 +08:00
|
|
|
String? hereditary
|
2023-11-30 15:31:35 +08:00
|
|
|
String? pollution
|
2023-11-29 15:13:30 +08:00
|
|
|
String? chemo
|
|
|
|
|
String name
|
|
|
|
|
String? normal
|
|
|
|
|
String output_dir
|
|
|
|
|
String cancer
|
2023-12-12 11:20:52 +08:00
|
|
|
String project
|
2023-11-29 15:13:30 +08:00
|
|
|
|
|
|
|
|
if (run) {
|
|
|
|
|
call run_post {
|
|
|
|
|
input:
|
|
|
|
|
mutation=mutation,
|
|
|
|
|
fusion=fusion,
|
|
|
|
|
cnv=cnv,
|
|
|
|
|
msi=msi,
|
|
|
|
|
hereditary=hereditary,
|
|
|
|
|
chemo=chemo,
|
2023-11-30 15:31:35 +08:00
|
|
|
pollution=pollution,
|
2023-11-29 15:13:30 +08:00
|
|
|
name=name,
|
|
|
|
|
normal=normal,
|
|
|
|
|
output_dir=output_dir,
|
2023-12-12 11:20:52 +08:00
|
|
|
cancer=cancer,
|
|
|
|
|
project=project
|
2023-11-29 15:13:30 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
output {
|
|
|
|
|
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
|
|
|
|
|
}
|
|
|
|
|
}
|