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.

47 line
1.3KB

  1. task benchmark {
  2. File vcf
  3. File benchmarking_dir
  4. File ref_dir
  5. File filtered_bed
  6. String sample
  7. String fasta
  8. String docker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. nt=$(nproc)
  15. mkdir -p /cromwell_root/tmp
  16. cp -r ${ref_dir} /cromwell_root/tmp/
  17. cp -r ${benchmarking_dir} /cromwell_root/tmp/
  18. export HGREF=/cromwell_root/tmp/reference_data/GRCh38.d1.vd1.fa
  19. /opt/hap.py/bin/hap.py /cromwell_root/tmp/NIST/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_PGandRTGphasetransfer.vcf ${vcf} -f ${filtered_bed} --threads $nt -o ${sample} -r ${ref_dir}/${fasta}
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster:cluster_config
  24. systemDisk:"cloud_ssd 40"
  25. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File gzip_vcf = "${sample}.vcf.gz"
  29. File gzip_vcf_index = "${sample}.vcf.gz.tbi"
  30. File roc_all_csv = "${sample}.roc.all.csv.gz"
  31. File roc_indel = "${sample}.roc.Locations.INDEL.csv.gz"
  32. File roc_indel_pass = "${sample}.roc.Locations.INDEL.PASS.csv.gz"
  33. File roc_snp = "${sample}.roc.Locations.SNP.csv.gz"
  34. File roc_snp_pass = "${sample}.roc.Locations.SNP.PASS.csv.gz"
  35. File summary = "${sample}.summary.csv"
  36. File extended = "${sample}.extended.csv"
  37. File metrics = "${sample}.metrics.json.gz"
  38. }
  39. }