您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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