Pārlūkot izejas kodu

first commit

master
LUYAO REN pirms 3 gadiem
revīzija
c9df4e6f65
5 mainītis faili ar 84 papildinājumiem un 0 dzēšanām
  1. +8
    -0
      defaults
  2. +11
    -0
      inputs
  3. Binārs
      tasks/.DS_Store
  4. +36
    -0
      tasks/manta.wdl
  5. +29
    -0
      workflow.wdl

+ 8
- 0
defaults Parādīt failu

@@ -0,0 +1,8 @@
{
"fasta": "GRCh38.d1.vd1.fa",
"disk_size": "500",
"cluster_config": "OnDemand bcs.a2.7xlarge img-ubuntu-vpc",
"docker": "registry.cn-shanghai.aliyuncs.com/pgx-docker-registry/manta:1.6.0",
"ref_dir": "oss://pgx-reference-data/GRCh38.d1.vd1/",
"memory":"50"
}

+ 11
- 0
inputs Parādīt failu

@@ -0,0 +1,11 @@
{
"{{ project_name }}.fasta": "{{ fasta }}",
"{{ project_name }}.disk_size": "{{ disk_size }}",
"{{ project_name }}.docker": "{{ docker }}",
"{{ project_name }}.bam_index": "{{ bam_index }}",
"{{ project_name }}.cluster_config": "{{ cluster_config }}",
"{{ project_name }}.bam": "{{ bam }}",
"{{ project_name }}.memory": "{{ memory }}",
"{{ project_name }}.sample": "{{ sample }}",
"{{ project_name }}.ref_dir": "{{ ref_dir }}"
}

Binārs
tasks/.DS_Store Parādīt failu


+ 36
- 0
tasks/manta.wdl Parādīt failu

@@ -0,0 +1,36 @@
task manta {

File ref_dir
File fasta
File bam
File bam_index
String memory
String sample
String docker
String cluster_config
String disk_size

command <<<

nt=$(nproc)
mkdir -p /cromwell_root/tmp

/opt/manta-1.6.0.centos6_x86_64/bin/configManta.py --bam=${bam} --referenceFasta ${ref_dir}/${fasta} --runDir /cromwell_root/tmp

/cromwell_root/tmp/runWorkflow.py -j $nt -g ${memory}

cp /cromwell_root/tmp/results/variants/diploidSV.vcf.gz ${sample}_manta_germlineSV.vcf.gz


>>>

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

+ 29
- 0
workflow.wdl Parādīt failu

@@ -0,0 +1,29 @@
import "./tasks/manta.wdl" as manta


workflow {{ project_name }} {

File ref_dir
File fasta
File bam
File bam_index
String memory
String sample
String docker
String cluster_config
String disk_size

call manta.manta as manta {
input:
fasta=fasta,
ref_dir=ref_dir,
bam=bam,
bam_index=bam_index,
memory=memory,
sample=sample,
docker=docker,
cluster_config=cluster_config,
disk_size=disk_size
}
}


Notiek ielāde…
Atcelt
Saglabāt