瀏覽代碼

first commit

master
biochenglinliu 1 年之前
當前提交
fc560517b4
共有 5 個檔案被更改,包括 89 行新增0 行删除
  1. +0
    -0
      README.md
  2. +5
    -0
      defaults
  3. +11
    -0
      inputs
  4. +45
    -0
      tasks/battenberg.wdl
  5. +28
    -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:3.1",
"battenberg_cluster":"OnDemand bcs.es.r.6xlarge img-ubuntu-vpc",
"disk_size":"200"
}

+ 11
- 0
inputs 查看文件

@@ -0,0 +1,11 @@
{
"{{ 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 }}.tumor_bam_bai": "{{ tumor_bam_bai }}",
"{{ project_name }}.normal_bam_bai": "{{ normal_bam_bai }}",
"{{ project_name }}.battenberg_cluster": "{{ battenberg_cluster }}",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

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

@@ -0,0 +1,45 @@
task battenberg {
String sample_id
File tumor_bam
File tumor_bam_bai
String normal_id
File normal_bam
File normal_bam_bai

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
cp ${normal_bam_bai} ./${normal_id}.bam.bai
cp ${tumor_bam_bai} ./${sample_id}.bam.bai
cp /opt/battenberg_reference/a.R ./
Rscript a.R
echo ${sample_id}
echo ${sample_id} > ${sample_id}_test.txt
cp data.csv ${sample_id}.csv

>>>

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

output {
File subclones = "${sample_id}.csv"
File s_test = "${sample_id}_test.txt"
}

}



+ 28
- 0
workflow.wdl 查看文件

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

String battenberg_docker
String battenberg_cluster
String disk_size

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


}

Loading…
取消
儲存