You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
877B

  1. task Deepvariant {
  2. File ref_dir
  3. String fasta
  4. File Dedup_bam
  5. File Dedup_bam_index
  6. String sample
  7. String model_type
  8. String DPdocker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. nt=$(nproc)
  15. python /opt/deepvariant/bin/run_deepvariant.py --model_type=${model_type} \
  16. --ref=${ref_dir}/${fasta} \
  17. --reads=${Dedup_bam} \
  18. --num_shards=$nt \
  19. --regions="'chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chrX'"
  20. --call_variants_extra_args="use_openvino=true" \
  21. --output_vcf=${sample}_DP.vcf.gz
  22. >>>
  23. runtime {
  24. docker:DPdocker
  25. cluster: cluster_config
  26. systemDisk: "cloud_ssd 40"
  27. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  28. }
  29. output {
  30. File vcf = "${sample}_DP.vcf.gz"
  31. File vcf_index = "${sample}_DP.vcf.gz.tbi"
  32. }
  33. }