Browse Source

first commit

master
biochenglinliu 1 year ago
commit
87595025d1
5 changed files with 59 additions and 0 deletions
  1. +0
    -0
      README.md
  2. +5
    -0
      defaults
  3. +6
    -0
      inputs
  4. +30
    -0
      tasks/battenberg.wdl
  5. +18
    -0
      workflow.wdl

+ 0
- 0
README.md View File


+ 5
- 0
defaults View File

@@ -0,0 +1,5 @@
{
"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"
}

+ 6
- 0
inputs View File

@@ -0,0 +1,6 @@
{
"{{ project_name }}.battenberg_docker": "{{ battenberg_docker }}",
"{{ project_name }}.sample_id": "{{ sample_id }}",
"{{ project_name }}.battenberg_cluster": "{{ battenberg_cluster }}",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

+ 30
- 0
tasks/battenberg.wdl View File

@@ -0,0 +1,30 @@
task battenberg {
String sample_id

String docker
String cluster
String disk_size

command <<<

set -o pipefail
set -e
cp /software/TREC_script.Rscript ./

>>>

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

output {
File subclones = "TREC_script.Rscript"
}

}



+ 18
- 0
workflow.wdl View File

@@ -0,0 +1,18 @@
import "./tasks/battenberg.wdl" as battenberg
workflow {{ project_name }} {
String sample_id

String battenberg_docker
String battenberg_cluster
String disk_size

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


}

Loading…
Cancel
Save