pipeline/wdl/tmb.wdl

54 lines
975 B
Plaintext
Raw Normal View History

2023-12-28 09:14:58 +08:00
# tmb
2023-12-25 14:06:30 +08:00
2023-12-19 13:37:52 +08:00
task run_tmb {
String name
String file
String project
String sample_type
String output_dir
2023-12-29 10:11:01 +08:00
2024-01-01 14:25:34 +08:00
command {
2023-12-19 13:37:52 +08:00
if [ ! -d ${output_dir}/tmb ];then
mkdir ${output_dir}/tmb
fi
filter_snpindel.pl \
${file} \
${output_dir}/tmb/${name}.tmb.txt \
${output_dir}/tmb/${name}.tmb.tag.txt \
${project} \
${sample_type} \
tmb
2024-01-01 14:25:34 +08:00
}
output {
String tmb_txt = "${output_dir}/tmb/${name}.tmb.txt"
}
2023-12-19 13:37:52 +08:00
}
workflow call_tmb {
Boolean run=true
String name
String file
String project
String output_dir
Boolean umi
if (run) {
2024-01-01 14:25:34 +08:00
call run_tmb {
input:
name=name,
file=file,
project=project,
sample_type=if umi then 'c' else 't',
output_dir=output_dir
2023-12-19 13:37:52 +08:00
}
}
output {
String tmb_txt = "${output_dir}/tmb/${name}.tmb.txt"
}
2023-11-29 15:13:30 +08:00
}