瀏覽代碼

first commit

master
huangyechao 6 年之前
當前提交
1aa6ca98d8
共有 3 個文件被更改,包括 55 次插入0 次删除
  1. +8
    -0
      inputs
  2. +29
    -0
      tasks/qualimap.wdl
  3. +18
    -0
      workflow.wdl

+ 8
- 0
inputs 查看文件

@@ -0,0 +1,8 @@
{
"{{ project_name }}.qualimap.out_dir": "String (optional, default = \"./\")",
"{{ project_name }}.cluster_config": "OnDemand ecs.sn1ne.4xlarge img-ubuntu-vpc",
"{{ project_name }}.bam": "{{ bam }}",
"{{ project_name }}.bed": "{{ bed }}",
"{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/qualimap:2.0.0"
}

+ 29
- 0
tasks/qualimap.wdl 查看文件

@@ -0,0 +1,29 @@
task qualimap {
File bam
File bed
String docker
String out_dir = "./"
String cluster_config
String disk_size

command <<<
set -o pipefail
set -e
nt=$(nproc)
/opt/qualimap/qualimap bamqc -bam ${bam} -gff ${bed} -nt $nt -outdir ${out_dir} --java-mem-size=16G
>>>

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

output {
File qualimap_txt = "genome_results.txt"
File qualimap_images = "images_qualimapReport"
File qualimap_html = "qualimapReport.html"
File qulimap_raw_data = "raw_data_qualimapReport"
}
}

+ 18
- 0
workflow.wdl 查看文件

@@ -0,0 +1,18 @@
import "./tasks/qualimap.wdl" as qualimap

workflow {{ project_name }} {
File bam
File bed
String docker
String cluster_config
String disk_size

call qualimap.qualimap as qualimap {
input:
bam=bam,
bed=bed,
docker=docker,
disk_size=disk_size,
cluster_config=cluster_config
}
}

Loading…
取消
儲存