瀏覽代碼

first commit

master
biochenglinliu 1 年之前
當前提交
45ca45904a
共有 5 個文件被更改,包括 73 次插入0 次删除
  1. +0
    -0
      README.md
  2. +5
    -0
      defaults
  3. +9
    -0
      inputs
  4. +35
    -0
      tasks/battenberg.wdl
  5. +24
    -0
      workflow.wdl

+ 0
- 0
README.md 查看文件


+ 5
- 0
defaults 查看文件

@@ -0,0 +1,5 @@
{
"battenberg_docker":"registry.cn-shanghai.aliyuncs.com/shaolab2023_docker/battenberg_lcl:2.9",
"battenberg_cluster":"OnDemand bcs.ps.r.8xlarge img-ubuntu-vpc",
"disk_size":"200"
}

+ 9
- 0
inputs 查看文件

@@ -0,0 +1,9 @@
{
"{{ project_name }}.battenberg_docker": "{{ battenberg_docker }}",
"{{ project_name }}.sample_id": "{{ sample_id }}",
"{{ project_name }}.tumor_bam": "{{ tumor_bam }}",
"{{ project_name }}.normal_id": "{{ normal_id }}",
"{{ project_name }}.normal_bam": "{{ normal_bam }}",
"{{ project_name }}.battenberg_cluster": "{{ battenberg_cluster }}",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

+ 35
- 0
tasks/battenberg.wdl 查看文件

@@ -0,0 +1,35 @@
task battenberg {
String sample_id
File tumor_bam
String normal_id
File normal_bam

String docker
String cluster
String disk_size

command <<<

set -o pipefail
set -e
cp ${normal_bam} ./${normal_id}.bam
cp ${tumor_bam} ./${sample_id}.bam


>>>

runtime {
docker : docker
cluster: cluster
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}

output {
File tumor_bam_data = "${normal_id}.bam"
File normal_bam_data = "${sample_id}.bam"
}

}



+ 24
- 0
workflow.wdl 查看文件

@@ -0,0 +1,24 @@
import "./tasks/battenberg.wdl" as battenberg
workflow {{ project_name }} {
String sample_id
File tumor_bam
String normal_id
File normal_bam

String battenberg_docker
String battenberg_cluster
String disk_size

call battenberg.battenberg as battenberg {
input:
sample_id=sample_id,
tumor_bam=tumor_bam,
normal_id=normal_id,
normal_bam=normal_bam,
docker=battenberg_docker,
cluster=battenberg_cluster,
disk_size=disk_size
}


}

Loading…
取消
儲存