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.

46 lines
1.1KB

  1. task battenberg {
  2. String sample_id
  3. File tumor_bam
  4. String normal_id
  5. File normal_bam
  6. String docker
  7. String cluster
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. cp ${normal_bam} ./${normal_id}.bam
  13. cp ${tumor_bam} ./${sample_id}.bam
  14. samtools view -h -@ 16 -o ${normal_id}.sorted.deduped.sam ./${normal_id}.bam
  15. samtools view -h -@ 16 -o ${sample_id}.sorted.deduped.sam ./${sample_id}.bam
  16. #sed -i 's/chr//g' ${normal_id}.sorted.deduped.sam
  17. #sed -i 's/chr//g' ${sample_id}.sorted.deduped.sam
  18. samtools sort -@ 16 -o ${normal_id}.sorted.deduped.nochr.bam ${normal_id}.sorted.deduped.sam
  19. samtools sort -@ 16 -o ${sample_id}.sorted.deduped.nochr.bam ${sample_id}.sorted.deduped.sam
  20. >>>
  21. runtime {
  22. docker : docker
  23. cluster: cluster
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File tumor_bam_data = "${normal_id}.sorted.deduped.nochr.bam"
  29. File normal_bam_data = "${sample_id}.sorted.deduped.nochr.bam"
  30. }
  31. }