Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

47 lines
1.5KB

  1. task battenberg {
  2. String tumor_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. samtools view -h ${normal_bam} |sed 's/chr//g'|samtools view -bS > ./${normal_id}.sorted.deduped.nochr.bam
  13. samtools view -h ${tumor_bam} |sed 's/chr//g'|samtools view -bS > ./${tumor_id}.sorted.deduped.nochr.bam
  14. samtools index ./${normal_id}.sorted.deduped.nochr.bam
  15. samtools index ./${tumor_id}.sorted.deduped.nochr.bam
  16. cp /opt/battenberg_reference/battenberg_wgs.R ./
  17. Rscript ./battenberg_wgs.R -t ${tumor_id} -n ${normal_id} --nb ${normal_id}.sorted.deduped.nochr.bam --tb ${tumor_id}.sorted.deduped.nochr.bam --cpu 10 --sex female -o ./
  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 subclones = "${tumor_id}_subclones.txt"
  27. File rho = "${tumor_id}_rho_and_psi.txt"
  28. File average_png = "${tumor_id}_BattenbergProfile_average.png"
  29. File subclones_png = "${tumor_id}_subclones.png"
  30. File distance_png = "${tumor_id}_distance.png"
  31. File tumor_png = "${tumor_id}.tumour.png"
  32. File germline_png = "${tumor_id}.germline.png"
  33. File coverage_png = "${tumor_id}_coverage.png"
  34. File alleleratio_png = "${tumor_id}_alleleratio.png"
  35. }
  36. }