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.

42 satır
1.2KB

  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. /opt/conda/envs/TREC/bin/samtools view -h ./${normal_id}.bam |sed 's/chr//g'|samtools view -bS -o ./${normal_id}.sorted.deduped.nochr.bam
  15. /opt/conda/envs/TREC/bin/samtools view -h ./${sample_id}.bam |sed 's/chr//g'|samtools view -bS -o ./${sample_id}.sorted.deduped.nochr.bam
  16. samtools index ./${normal_id}.sorted.deduped.nochr.bam
  17. samtools index ./${sample_id}.sorted.deduped.nochr.bam
  18. >>>
  19. runtime {
  20. docker : docker
  21. cluster: cluster
  22. systemDisk: "cloud_ssd 40"
  23. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  24. }
  25. output {
  26. File normal_bam_data = "${normal_id}.sorted.deduped.nochr.bam"
  27. File normal_bai_data = "${normal_id}.sorted.deduped.nochr.bam.bai"
  28. File tumor_bam_data = "${sample_id}.sorted.deduped.nochr.bam"
  29. File tumor_bai_data = "${sample_id}.sorted.deduped.nochr.bam.bai"
  30. }
  31. }