pipeline/wdl/chemo.wdl

51 lines
986 B
Plaintext
Raw Normal View History

2023-12-28 09:14:58 +08:00
# chemo
2023-12-25 14:06:30 +08:00
2023-12-19 13:37:52 +08:00
task run_chemo {
String name
String output_dir
String probe
String vcf
String cancer
String project
command <<<
if [ ! -d ${output_dir}/chemo ];then
mkdir ${output_dir}/chemo
fi
2023-12-25 14:06:30 +08:00
2023-12-19 13:37:52 +08:00
chemo.py -d $DATABASE/chemo_database.xlsx -probe ${probe} -n ${name} -v ${vcf} -o ${output_dir}/chemo -c ${cancer} -p ${project}
2023-12-26 10:18:15 +08:00
2023-12-19 13:37:52 +08:00
>>>
output {
2023-12-25 14:06:30 +08:00
String run_chemo_res = "${output_dir}/chemo/${name}.drug.res.txt"
2023-12-19 13:37:52 +08:00
}
}
workflow call_chemo {
Boolean run=true
String name
String output_dir
String probe
String vcf
String cancer
String project
if (run) {
call run_chemo {
input:
name=name,
output_dir=output_dir,
probe=probe,
vcf=vcf,
cancer=cancer,
project=project
}
}
output {
String chemo_res = "${output_dir}/chemo/${name}.drug.res.txt"
}
2023-11-29 15:13:30 +08:00
}