Browse Source

first commit

master
biochenglinliu 1 year ago
commit
39acb5082f
5 changed files with 73 additions and 0 deletions
  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 View File


+ 5
- 0
defaults View File

{
"battenberg_docker":"registry.cn-shanghai.aliyuncs.com/shaolab2023_docker/trec:7.0",
"battenberg_cluster":"OnDemand bcs.es.r.6xlarge img-ubuntu-vpc",
"disk_size":"200"
}

+ 9
- 0
inputs View File

{
"{{ 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 View File

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

/opt/conda/envs/batternberg/bin/samtools view -h -@ 16 -o ${normal_id}.sorted.deduped.sam ./${normal_id}.bam

>>>

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

output {
File normal_bam_data = "${normal_id}.sorted.deduped.sam"
}

}



+ 24
- 0
workflow.wdl View File

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…
Cancel
Save