室间质评
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

51 rinda
1.7KB

  1. task benchmark {
  2. File gzvcf
  3. File gzvcf_index
  4. File benchmarking_dir
  5. File ref_dir
  6. String sample = basename(gzvcf,".vcf.gz")
  7. String sample_mark
  8. String fasta
  9. String docker
  10. String cluster_config
  11. String disk_size
  12. command <<<
  13. set -o pipefail
  14. set -e
  15. nt=$(nproc)
  16. export HGREF=/cromwell_inputs/*/reference_data/GRCh38.d1.vd1.fa
  17. if [ ${sample_mark} == "LCL5" ];then
  18. /opt/hap.py/bin/hap.py ${benchmarking_dir}/LCL5.vcf.gz ${gzvcf} -f ${benchmarking_dir}/LCL5.bed.gz --threads $nt -o ${sample}
  19. elif [ ${sample_mark} == "LCL6" ]; then
  20. /opt/hap.py/bin/hap.py ${benchmarking_dir}/LCL6.vcf.gz ${gzvcf} -f ${benchmarking_dir}/LCL6.bed.gz --threads $nt -o ${sample}
  21. elif [ ${sample_mark} == "LCL7" ]; then
  22. /opt/hap.py/bin/hap.py ${benchmarking_dir}/LCL7.vcf.gz ${gzvcf} -f ${benchmarking_dir}/LCL6.bed.gz --threads $nt -o ${sample}
  23. elif [ ${sample_mark} == "LCL8" ]; then
  24. /opt/hap.py/bin/hap.py ${benchmarking_dir}/LCL8.vcf.gz ${gzvcf} -f ${benchmarking_dir}/LCL6.bed.gz --threads $nt -o ${sample}
  25. else
  26. echo "only for quartet samples"
  27. fi
  28. >>>
  29. runtime {
  30. docker:docker
  31. cluster:cluster_config
  32. systemDisk:"cloud_ssd 40"
  33. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  34. }
  35. output {
  36. File gzip_vcf = "${sample}.vcf.gz"
  37. File gzip_vcf_index = "${sample}.vcf.gz.tbi"
  38. File roc_all_csv = "${sample}.roc.all.csv.gz"
  39. File roc_indel = "${sample}.roc.Locations.INDEL.csv.gz"
  40. File roc_indel_pass = "${sample}.roc.Locations.INDEL.PASS.csv.gz"
  41. File roc_snp = "${sample}.roc.Locations.SNP.csv.gz"
  42. File roc_snp_pass = "${sample}.roc.Locations.SNP.PASS.csv.gz"
  43. File summary = "${sample}.summary.csv"
  44. File extended = "${sample}.extended.csv"
  45. File metrics = "${sample}.metrics.json.gz"
  46. }
  47. }