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.

replaceRG.wdl 670B

3 years ago
3 years ago
3 years ago
1234567891011121314151617181920212223242526272829
  1. task replaceRG {
  2. File bam
  3. String sample
  4. String group
  5. String pl
  6. String bam_name = basename(bam, ".bam")
  7. String docker
  8. String cluster_config
  9. String disk_size
  10. command <<<
  11. SAMTOOLS_DIR="/opt/samtools/samtools-1.13"
  12. $SAMTOOLS_DIR/samtools addreplacerg -w -r "@RG\tID:${group}\tSM:${sample}\tPL:${pl}" -o ${bam_name}.bam ${bam}
  13. $SAMTOOLS_DIR/samtools index ${bam_name}.bam
  14. >>>
  15. runtime {
  16. docker: docker
  17. cluster: cluster_config
  18. systemDisk: "cloud_ssd 40"
  19. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  20. }
  21. output {
  22. File deduped_bam = "${bam_name}.bam"
  23. File deduped_bam_index = "${bam_name}.bam.bai"
  24. }
  25. }