77 lines
1.6 KiB
Plaintext
Executable File
77 lines
1.6 KiB
Plaintext
Executable File
# postprocess
|
|
|
|
task run_post {
|
|
String? mutation
|
|
String? fusion
|
|
String? cnv
|
|
String? msi
|
|
String? tmb
|
|
String? hereditary
|
|
String? chemo
|
|
String? neoantigen
|
|
String? pollution
|
|
String name
|
|
String? normal
|
|
String output_dir
|
|
String cancer
|
|
String project
|
|
|
|
command {
|
|
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
|
|
sleep 2m
|
|
|
|
}
|
|
output {
|
|
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
|
|
}
|
|
}
|
|
|
|
workflow call_postprocess {
|
|
|
|
Boolean run=true
|
|
|
|
String? mutation
|
|
String? fusion
|
|
String? cnv
|
|
String? msi
|
|
String? tmb
|
|
String? hereditary
|
|
String? pollution
|
|
String? chemo
|
|
String? neoantigen
|
|
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,
|
|
tmb=tmb,
|
|
hereditary=hereditary,
|
|
chemo=chemo,
|
|
neoantigen=neoantigen,
|
|
pollution=pollution,
|
|
name=name,
|
|
normal=normal,
|
|
output_dir=output_dir,
|
|
cancer=cancer,
|
|
project=project
|
|
}
|
|
}
|
|
|
|
output {
|
|
String merged = "${output_dir}/report/${name}.merged_file.xlsx"
|
|
}
|
|
}
|