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
|
2024-02-20 15:13:06 +08:00
|
|
|
String bam
|
|
|
|
|
String ref
|
2024-01-01 14:25:34 +08:00
|
|
|
command {
|
2023-12-19 13:37:52 +08:00
|
|
|
if [ ! -d ${output_dir}/chemo ];then
|
|
|
|
|
mkdir ${output_dir}/chemo
|
|
|
|
|
fi
|
2023-12-25 14:06:30 +08:00
|
|
|
|
2024-02-20 15:13:06 +08:00
|
|
|
chemo.py -d $DATABASE/chemo_database.xlsx -probe ${probe} -n ${name} -v ${vcf} -o ${output_dir}/chemo -c ${cancer} -p ${project} -b ${bam} -r ${ref}
|
2023-12-26 10:18:15 +08:00
|
|
|
|
2024-01-01 14:25:34 +08:00
|
|
|
}
|
|
|
|
|
output {
|
|
|
|
|
String 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
|
2024-02-20 15:13:06 +08:00
|
|
|
String? normal
|
2023-12-19 13:37:52 +08:00
|
|
|
String output_dir
|
|
|
|
|
String probe
|
|
|
|
|
String vcf
|
|
|
|
|
String cancer
|
|
|
|
|
String project
|
2024-02-20 15:13:06 +08:00
|
|
|
String tumor_rmdup_bam
|
|
|
|
|
String? normal_rmdup_bam
|
|
|
|
|
String ref
|
2023-12-19 13:37:52 +08:00
|
|
|
|
|
|
|
|
if (run) {
|
2024-02-20 15:13:06 +08:00
|
|
|
if (defined(normal)) {
|
|
|
|
|
call run_chemo as run_chemo_normal {
|
|
|
|
|
input:
|
|
|
|
|
name=name,
|
|
|
|
|
output_dir=output_dir,
|
|
|
|
|
probe=probe,
|
|
|
|
|
vcf=vcf,
|
|
|
|
|
cancer=cancer,
|
|
|
|
|
project=project,
|
|
|
|
|
bam=normal_rmdup_bam,
|
|
|
|
|
ref=ref
|
|
|
|
|
}
|
2023-12-19 13:37:52 +08:00
|
|
|
}
|
2024-02-20 15:13:06 +08:00
|
|
|
if (!defined(normal)) {
|
|
|
|
|
call run_chemo as run_chemo_tumor {
|
|
|
|
|
input:
|
|
|
|
|
name=name,
|
|
|
|
|
output_dir=output_dir,
|
|
|
|
|
probe=probe,
|
|
|
|
|
vcf=vcf,
|
|
|
|
|
cancer=cancer,
|
|
|
|
|
project=project,
|
|
|
|
|
bam=tumor_rmdup_bam,
|
|
|
|
|
ref=ref
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-19 13:37:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
output {
|
|
|
|
|
String chemo_res = "${output_dir}/chemo/${name}.drug.res.txt"
|
|
|
|
|
}
|
2023-11-29 15:13:30 +08:00
|
|
|
}
|