Browse Source

first commit

master
biolcl 3 years ago
commit
863f591dff
5 changed files with 90 additions and 0 deletions
  1. +0
    -0
      README.md
  2. +5
    -0
      defaults
  3. +12
    -0
      inputs
  4. +42
    -0
      tasks/lohhla.wdl
  5. +31
    -0
      workflow.wdl

+ 0
- 0
README.md View File


+ 5
- 0
defaults View File

@@ -0,0 +1,5 @@
{
"lohhla_docker":"registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/lohhla_hg38:v3.6.3",
"lohhla_cluster":"OnDemand bcs.ps.r.xlarge img-ubuntu-vpc",
"disk_size":"200"
}

+ 12
- 0
inputs View File

@@ -0,0 +1,12 @@
{
"{{ project_name }}.sample_id": "{{ sample_id }}",
"{{ project_name }}.normBAM": "{{ normBAM }}",
"{{ project_name }}.normBAM_bai": "{{ normBAM_bai }}",
"{{ project_name }}.tumorBAM": "{{ tumorBAM }}",
"{{ project_name }}.tumorBAM_bai": "{{ tumorBAM_bai }}",
"{{ project_name }}.hlas": "{{ hlas }}",
"{{ project_name }}.ascat": "{{ ascat }}",
"{{ project_name }}.lohhla_docker": "{{ lohhla_docker }}",
"{{ project_name }}.lohhla_cluster": "{{ lohhla_cluster }}",
"{{ project_name }}.disk_size": "{{ disk_size }}"
}

+ 42
- 0
tasks/lohhla.wdl View File

@@ -0,0 +1,42 @@
task lohhla {
String sample_id
File normBAM
File normBAM_bai
File tumorBAM
File tumorBAM_bai
File hlas
File ascat

String docker
String cluster
String disk_size

command <<<

set -o pipefail
set -e

echo ${sample_id} >a.txt
ls ${normBAM}
ls ${normBAM_bai}
ls ${tumorBAM}
ls ${tumorBAM_bai}
ls ${hlas}
ls ${ascat}
>>>

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

output {
Array[File] lohhla_xls = glob("*.txt")
}

}



+ 31
- 0
workflow.wdl View File

@@ -0,0 +1,31 @@
import "./tasks/lohhla.wdl" as lohhla
workflow run_lohhla {
String sample_id
File normBAM
File normBAM_bai
File tumorBAM
File tumorBAM_bai
File hlas
File ascat

String lohhla_docker
String lohhla_cluster
String disk_size

call lohhla.lohhla as lohhla {
input:
sample_id=sample_id,
normBAM=normBAM,
normBAM_bai=normBAM_bai,
tumorBAM=tumorBAM,
tumorBAM_bai=tumorBAM_bai,
hlas=hlas,
ascat=ascat,
docker=lohhla_docker
cluster=lohhla_cluster,
disk_size=disk_size

}


}

Loading…
Cancel
Save