Generate the Panel of Normal files for TNseq and TNscope.
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

46 líneas
1.1KB

  1. task PoN {
  2. String SENTIEON_INSTALL_DIR
  3. String SENTIEON_LICENSE
  4. File ref_dir
  5. String fasta
  6. File regions
  7. File normal_bam
  8. File normal_bam_index
  9. String sample=basename(normal_bam, ".*")
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. set -o pipefail
  15. set -e
  16. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  17. nt=$(nproc)
  18. if [ ${regions} ]; then
  19. INTERVAL="--interval ${regions} --interval_padding ${interval_padding}"
  20. else
  21. INTERVAL=""
  22. fi
  23. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt $INTERVAL -r ${ref_dir}/${fasta} -i ${normal_bam} \
  24. --algo TNhaplotyper2 --normal_sample ${sample} ${sample}.TNseq.PoN.vcf
  25. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt $INTERVAL -r ${ref_dir}/${fasta} -i ${normal_bam} \
  26. --algo TNscope --normal_sample ${sample} ${sample}.TNscope.PoN.vcf
  27. >>>
  28. runtime {
  29. docker: docker
  30. cluster: cluster_config
  31. systemDisk: "cloud_ssd 40"
  32. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  33. }
  34. output {
  35. File TNseq_pon_vcf = "${sample}.TNseq.PoN.vcf"
  36. File TNscope_pon_vcf = "${sample}.TNscope.PoN.vcf"
  37. }
  38. }