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.

40 lines
991B

  1. task Dedup {
  2. String SENTIEON_INSTALL_DIR
  3. File sorted_bam
  4. File sorted_bam_index
  5. String sample = basename(sorted_bam,".sorted.bam")
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. export SENTIEON_LICENSE=192.168.0.55:8990
  13. nt=$(nproc)
  14. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -i ${sorted_bam} --algo LocusCollector --fun score_info ${sample}_score.txt
  15. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt -i ${sorted_bam} --algo Dedup --rmdup --score_info ${sample}_score.txt --metrics ${sample}_dedup_metrics.txt ${sample}.sorted.deduped.bam
  16. >>>
  17. runtime {
  18. docker:docker
  19. cluster: cluster_config
  20. systemDisk: "cloud_ssd 40"
  21. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  22. }
  23. output {
  24. File score = "${sample}_score.txt"
  25. File dedup_metrics = "${sample}_dedup_metrics.txt"
  26. File Dedup_bam = "${sample}.sorted.deduped.bam"
  27. File Dedup_bam_index = "${sample}.sorted.deduped.bam.bai"
  28. }
  29. }