bcftools-merge is used to merge VCF files into a singe VCF.
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.

57 line
1.4KB

  1. task TNscope {
  2. File ref_dir
  3. File dbsnp_dir
  4. String sample
  5. String SENTIEON_INSTALL_DIR
  6. String SENTIEON_LICENSE
  7. String tumor_name
  8. String normal_name
  9. String docker
  10. String cluster_config
  11. String fasta
  12. File corealigner_bam
  13. File corealigner_bam_index
  14. String dbsnp
  15. String disk_size
  16. Boolean PONmode
  17. String? cosmic_vcf
  18. File? cosmic_dir
  19. File panel_of_normal_vcf
  20. command <<<
  21. set -o pipefail
  22. set -e
  23. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  24. nt=$(nproc)
  25. if [ ${PONmode} ]; then
  26. mkdir -p /cromwell_root/tmp/cosmic/
  27. cp ${cosmic_dir}/${cosmic_vcf} /cromwell_root/tmp/cosmic/
  28. ${SENTIEON_INSTALL_DIR}/bin/sentieon util vcfindex /cromwell_root/tmp/cosmic/${cosmic_vcf}
  29. PONcommand="--pon ${panel_of_normal_vcf} --cosmic /cromwell_root/tmp/cosmic/${cosmic_vcf}"
  30. else
  31. PONcommand=""
  32. fi
  33. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -r ${ref_dir}/${fasta} -i ${corealigner_bam} --algo TNscope --tumor_sample ${tumor_name} --normal_sample ${normal_name} --dbsnp ${dbsnp_dir}/${dbsnp} PONcommand ${sample}.TNscope.TN.vcf
  34. >>>
  35. runtime {
  36. docker: docker
  37. cluster: cluster_config
  38. systemDisk: "cloud_ssd 40"
  39. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  40. }
  41. output {
  42. File TNscope_vcf= "${sample}.TNscope.TN.vcf"
  43. File TNscope_vcf_index = "${sample}.TNscope.TN.vcf.idx"
  44. }
  45. }