pipeline/wdl/msi.wdl

74 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-12-28 09:14:58 +08:00
# msi
2023-12-25 14:06:30 +08:00
2024-01-02 02:01:20 +08:00
task run_msi {
2023-12-19 13:37:52 +08:00
String name
2024-01-02 02:01:20 +08:00
String probe
2023-12-19 13:37:52 +08:00
String output_dir
2024-01-02 02:01:20 +08:00
String tumor_rmdup_bam
String normal_rmdup_bam
2023-12-19 13:37:52 +08:00
command <<<
if [ ! -d ${output_dir}/msi ];then
mkdir ${output_dir}/msi
fi
2024-01-02 02:01:20 +08:00
if [ "${probe}" == "682" ]; then
echo "msi 682探针 "
msisensor2 msi \
-f 0.01 \
-d /dataseq/jmdna/software/msisensor2/msi.10-50.homosite.list \
-n ${normal_rmdup_bam} -t ${tumor_rmdup_bam} \
-e $PUBLIC/msi/624_650_intersect_depth50_177.bed \
-b 10 -c 30 -o ${output_dir}/msi/${name}.msi.txt
elif [ "${probe}" == "624" ]; then
echo "msi 624 探针 "
2023-12-19 13:37:52 +08:00
msisensor2 msi \
-M /dataseq/jmdna/software/msisensor2/models_hg19_GRCh37 \
2024-01-02 02:01:20 +08:00
-t ${tumor_rmdup_bam} -e $PUBLIC/msi//624_650_intersect_depth50_177.bed -b 10 \
2023-12-19 13:37:52 +08:00
-o ${output_dir}/msi/${name}.msi.txt
2024-01-02 02:01:20 +08:00
elif [ "${probe}" == "160" ]; then
2023-12-19 13:37:52 +08:00
2024-01-02 16:37:49 +08:00
echo "msi 160 探针 "
2024-01-02 02:01:20 +08:00
msisensor2 msi \
-M /dataseq/jmdna/software/msisensor2/models_hg19_GRCh37 \
2024-01-03 17:04:22 +08:00
-t ${tumor_rmdup_bam} -e $PUBLIC/msi/624_650_160_intersect_74.bed \
2024-01-02 02:01:20 +08:00
-b 10 ${output_dir}/msi/${name}.msi.txt
2023-12-19 13:37:52 +08:00
2024-01-02 02:01:20 +08:00
else
echo "未知的选项: ${probe}"
2023-12-19 13:37:52 +08:00
fi
>>>
}
workflow call_msi {
Boolean run=true
2024-01-02 02:01:20 +08:00
String probe
2023-12-19 13:37:52 +08:00
String tumor
String tumor_rmdup_bam
String? normal_rmdup_bam
String output_dir
if (run) {
2024-01-02 02:01:20 +08:00
call run_msi {
input:
name=tumor,
probe=probe,
output_dir=output_dir,
tumor_rmdup_bam=tumor_rmdup_bam,
normal_rmdup_bam=normal_rmdup_bam
2023-12-19 13:37:52 +08:00
}
}
output {
String msi_txt = "${output_dir}/msi/${tumor}.msi.txt"
}
}