Explorar el Código

first commit

master
LUYAO REN hace 5 años
commit
2bbaf3e7be
Se han modificado 5 ficheros con 89 adiciones y 0 borrados
  1. +1
    -0
      README.md
  2. +7
    -0
      inputs
  3. +26
    -0
      tasks/index.wdl
  4. +24
    -0
      tasks/merge.wdl
  5. +31
    -0
      workflow.wdl

+ 1
- 0
README.md Ver fichero

@@ -0,0 +1 @@
clean NVG data

+ 7
- 0
inputs Ver fichero

@@ -0,0 +1,7 @@
{
"{{ project_name }}.disk_size": "50",
"{{ project_name }}.docker": "registry-vpc.cn-shanghai.aliyuncs.com/pgx-docker-registry/gatk:v2019.01",
"{{ project_name }}.cluster_config": "OnDemand ecs.sn1ne.xlarge img-ubuntu-vpc",
"{{ project_name }}.gzvcf": "{{ gzvcf }}",
"{{ project_name }}.sample": "{{ sample }}"
}

+ 26
- 0
tasks/index.wdl Ver fichero

@@ -0,0 +1,26 @@
task index {
File snv_gzvcf
File indel_gzvcf
String sample
String docker
String cluster_config
String disk_size
command <<<
mv ${snv_gzvcf} ./${sample}.snv.vcf.gz
mv ${indel_gzvcf} ./${sample.indel.vcf.gz}
rtg index -f vcf ${sample}.snv.vcf.gz
rtg index -f vcf ${sample}.indel.vcf.gz
>>>

runtime {
docker:docker
cluster: cluster_config
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}
output {
File snv_gzvcf_index = "${sample}.snv.vcf.gz.tbi"
File indel_gzvcf_index = "${sample}.indel.vcf.gz.tbi"
}
}

+ 24
- 0
tasks/merge.wdl Ver fichero

@@ -0,0 +1,24 @@
task merge {
File snv_gzvcf
File indel_gzvcf
File snv_gzvcf_index
File indel_gzvcf_index
String sample
String docker
String cluster_config
String disk_size
command <<<
bcftools concat -a ${snv_gzvcf} ${indel_gzvcf} > ${sample}.vcf
>>>

runtime {
docker:docker
cluster: cluster_config
systemDisk: "cloud_ssd 40"
dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
}
output {
File vcf = "${sample}.vcf"
}
}

+ 31
- 0
workflow.wdl Ver fichero

@@ -0,0 +1,31 @@
import "./tasks/index.wdl" as index
import "./tasks/merge.wdl" as merge

workflow {{ project_name }} {
File snv_gzvcf
File indel_gzvcf
String sample
String cluster_config
String disk_size

call index.index as index {
input:
snv_gzvcf=snv_gzvcf,
indel_gzvcf=indel_gzvcf,
sample=sample,
disk_size=disk_size,
cluster_config=cluster_config
}

call merge.merge as merge {
input:
snv_gzvcf=snv_gzvcf,
indel_gzvcf=indel_gzvcf,
snv_gzvcf_index=index.snv_gzvcf_index,
indel_gzvcf_index=index.indel_gzvcf_index,
sample=sample,
disk_size=disk_size,
cluster_config=cluster_config
}

}

Cargando…
Cancelar
Guardar