pipeline/wdl/chemo.wdl

47 lines
984 B
Plaintext
Raw Normal View History

2023-11-29 15:13:30 +08:00
task run_chemo {
2023-11-01 10:09:29 +08:00
String name
String output_dir
2023-11-29 15:13:30 +08:00
String probe
2023-11-01 10:09:29 +08:00
String vcf
2023-11-29 15:13:30 +08:00
String cancer
String project
2023-11-01 10:09:29 +08:00
command <<<
if [ ! -d ${output_dir}/chemo ];then
mkdir ${output_dir}/chemo
fi
2023-11-29 15:13:30 +08:00
chemo.py -probe ${probe} -n ${name} -v ${vcf} -o ${output_dir}/chemo -c ${cancer} -p ${project}
2023-11-01 10:09:29 +08:00
>>>
2023-11-29 15:13:30 +08:00
output {
String chemo_res = "${output_dir}/chemo/${name}.drug.res.txt"
}
2023-11-01 10:09:29 +08:00
}
2023-11-29 15:13:30 +08:00
workflow call_chemo {
Boolean run=true
2023-11-01 10:09:29 +08:00
2023-11-29 15:13:30 +08:00
String name
String output_dir
String probe
String vcf
String cancer
String project
2023-11-01 10:09:29 +08:00
2023-11-29 15:13:30 +08:00
if (run) {
call run_chemo {
input:
name=name,
output_dir=output_dir,
probe=probe,
vcf=vcf,
cancer=cancer,
project=project
}
}
2023-11-01 10:09:29 +08:00
2023-11-29 15:13:30 +08:00
output {
String chemo_res = "${output_dir}/chemo/${name}.drug.res.txt"
}
}