@@ -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" | |||
} |
@@ -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 }}" | |||
} |
@@ -0,0 +1,38 @@ | |||
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 | |||
samtools view -h ./${normal_id}.bam |sed 's/chr//g'|samtools view -bS -o ./${normal_id}.sorted.deduped.nochr.bam | |||
samtools view -h ./${sample_id}.bam |sed 's/chr//g'|samtools view -bS -o ./${sample_id}.sorted.deduped.nochr.bam | |||
>>> | |||
runtime { | |||
docker : docker | |||
cluster: cluster | |||
systemDisk: "cloud_ssd 40" | |||
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" | |||
} | |||
output { | |||
File tumor_bam = "${normal_id}.sorted.deduped.nochr.bam" | |||
File normal_bam = "${sample_id}.sorted.deduped.nochr.bam" | |||
} | |||
} | |||
@@ -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 | |||
} | |||
} |