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.

41 lines
868B

  1. task Dedup {
  2. File sorted_bam
  3. File sorted_bam_index
  4. String sample = basename(sorted_bam,".sorted.bam")
  5. String docker
  6. String cluster_config
  7. String disk_size
  8. command <<<
  9. set -o pipefail
  10. set -e
  11. /usr/local/jdk-20.0.1/bin/java -jar /usr/local/picard.jar MarkDuplicates \
  12. -I ${sorted_bam} \
  13. -O ${sample}.sorted.deduped.bam \
  14. -M ${sample}_dedup_metrics.txt \
  15. --REMOVE_DUPLICATES \
  16. --VALIDATION_STRINGENCY LENIENT
  17. /usr/local/samtools-1.17/bin/samtools index -@ $(nproc) -o ${sample}.sorted.deduped.bam.bai ${sample}.sorted.deduped.bam
  18. >>>
  19. runtime {
  20. docker:docker
  21. cluster: cluster_config
  22. systemDisk: "cloud_ssd 40"
  23. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  24. }
  25. output {
  26. File Dedup_bam = "${sample}.sorted.deduped.bam"
  27. File Dedup_bam_index = "${sample}.sorted.deduped.bam.bai"
  28. }
  29. }