Browse Source

single input

master
LUYAO REN 4 years ago
parent
commit
afceffa425
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      inputs
  2. +5
    -5
      tasks/getBam.wdl
  3. +1
    -1
      workflow.wdl

+ 1
- 1
inputs View File

"{{ project_name }}.docker": "registry-vpc.cn-shanghai.aliyuncs.com/pgx-docker-registry/samtools:v1.3.1", "{{ project_name }}.docker": "registry-vpc.cn-shanghai.aliyuncs.com/pgx-docker-registry/samtools:v1.3.1",
"{{ project_name }}.cluster_config": "OnDemand bcs.a2.large img-ubuntu-vpc", "{{ project_name }}.cluster_config": "OnDemand bcs.a2.large img-ubuntu-vpc",
"{{ project_name }}.bam": "{{ bam }}", "{{ project_name }}.bam": "{{ bam }}",
"{{ project_name }}.pos": {{ pos_list | tojson }},
"{{ project_name }}.pos": {{ pos }},
"{{ project_name }}.sample": "{{ sample }}" "{{ project_name }}.sample": "{{ sample }}"
} }

+ 5
- 5
tasks/getBam.wdl View File

File bam File bam
File bam_idx File bam_idx
String sample String sample
Array[String] pos
String pos
String docker String docker
String cluster_config String cluster_config
String disk_size String disk_size
command <<< command <<<
/opt/conda/bin/samtools view -b ${bam} ${sep=" " pos} | /opt/conda/bin/samtools sort - > ${sample}.bam
/opt/conda/bin/samtools index ${sample}.bam
/opt/conda/bin/samtools view -b ${bam} ${pos} > ${sample}.${pos}.bam
/opt/conda/bin/samtools index ${sample}.${pos}.bam
>>> >>>


runtime { runtime {
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/" dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
} }
output { output {
File sub_bam = "${sample}.bam"
File sub_bai = "${sample}.bam.bai"
File sub_bam = "${sample}.${pos}.bam"
File sub_bai = "${sample}.${pos}.bam.bai"
} }
} }



+ 1
- 1
workflow.wdl View File

File bam File bam
File bam_idx File bam_idx
Array[String] pos
String pos
String sample String sample
String docker String docker
String cluster_config String cluster_config

Loading…
Cancel
Save