Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

50 lines
1.7KB

  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. 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 > ./${sample_id}.sorted.deduped.nochr.bam
  14. samtools index ./${normal_id}.sorted.deduped.nochr.bam
  15. samtools index ./${sample_id}.sorted.deduped.nochr.bam
  16. cp /opt/battenberg_reference/battenberg_wgs.R ./
  17. Rscript ./battenberg_wgs.R -t ${sample_id} -n ${normal_id} --nb ${normal_id}.sorted.deduped.nochr.bam --tb ${sample_id}.sorted.deduped.nochr.bam --cpu 10 --sex female -o ./
  18. mkdir ${sample_id}_chr_png
  19. cp ${sample_id}_subclones_chr*.png ./${sample_id}_chr_png/
  20. tar zcvf ./${sample_id}_chr_png.tgz ./${sample_id}_chr_png/
  21. >>>
  22. runtime {
  23. docker : docker
  24. cluster: cluster
  25. systemDisk: "cloud_ssd 40"
  26. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  27. }
  28. output {
  29. File subclones = "${sample_id}_subclones.txt"
  30. File rho = "${sample_id}_rho_and_psi.txt"
  31. File average_png = "${sample_id}_BattenbergProfile_average.png"
  32. File subclones_png = "${sample_id}_BattenbergProfile_subclones.png"
  33. File distance_png = "${sample_id}_distance.png"
  34. File tumor_png = "${sample_id}.tumour.png"
  35. File germline_png = "${sample_id}.germline.png"
  36. File coverage_png = "${sample_id}_coverage.png"
  37. File alleleratio_png = "${sample_id}_alleleratio.png"
  38. File chr_png = "${sample_id}_chr_png.tgz"
  39. }
  40. }