Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
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.

53 line
1.0KB

  1. task Realigner {
  2. File ref_dir
  3. File dbmills_dir
  4. String SENTIEON_INSTALL_DIR
  5. String SENTIEON_LICENSE
  6. String sample
  7. String fasta
  8. File? regions
  9. File Dedup_bam
  10. File Dedup_bam_index
  11. String db_mills
  12. String docker
  13. String cluster_config
  14. String disk_size
  15. command <<<
  16. set -o pipefail
  17. set -e
  18. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  19. nt=$(nproc)
  20. if [ ${regions} ]; then
  21. INTERVAL="--interval_list ${regions}"
  22. else
  23. INTERVAL=""
  24. fi
  25. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  26. -r ${ref_dir}/${fasta} $INTERVAL \
  27. -i ${Dedup_bam} \
  28. --algo Realigner -k ${dbmills_dir}/${db_mills} ${sample}.sorted.deduped.realigned.bam
  29. >>>
  30. runtime {
  31. docker: docker
  32. cluster: cluster_config
  33. systemDisk: "cloud_ssd 40"
  34. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  35. }
  36. output {
  37. File realigner_bam = "${sample}.sorted.deduped.realigned.bam"
  38. File realigner_bam_index = "${sample}.sorted.deduped.realigned.bam.bai"
  39. }
  40. }