Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

54 rindas
1.6KB

  1. task battenberg {
  2. String sample_id
  3. File tumor_bam
  4. File tumor_bam_bai
  5. String normal_id
  6. File normal_bam
  7. File normal_bam_bai
  8. String docker
  9. String cluster
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. cp ${normal_bam} ./${normal_id}.bam
  15. cp ${tumor_bam} ./${sample_id}.bam
  16. cp ${normal_bam_bai} ./${normal_id}.bam.bai
  17. cp ${tumor_bam_bai} ./${sample_id}.bam.bai
  18. cp /opt/battenberg_reference/battenberg_wgs.R ./
  19. /opt/conda/envs/batternberg/bin/Rscript ./battenberg_wgs.R -t ${sample_id} -n ${normal_id} --nb ./${normal_id}.bam --tb ./${sample_id}.bam --cpu 4 --sex female -o ./
  20. mkdir ${sample_id}_chr_png
  21. cp ${sample_id}_subclones_chr*.png ./${sample_id}_chr_png/
  22. tar zcvf ./${sample_id}_chr_png.tgz ./${sample_id}_chr_png/
  23. >>>
  24. runtime {
  25. docker : docker
  26. cluster: cluster
  27. systemDisk: "cloud_ssd 100"
  28. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  29. }
  30. output {
  31. File subclones = "${sample_id}_subclones.txt"
  32. File rho = "${sample_id}_rho_and_psi.txt"
  33. File average_png = "${sample_id}_BattenbergProfile_average.png"
  34. File subclones_png = "${sample_id}_BattenbergProfile_subclones.png"
  35. File distance_png = "${sample_id}_distance.png"
  36. File tumor_png = "${sample_id}.tumour.png"
  37. File germline_png = "${sample_id}.germline.png"
  38. File coverage_png = "${sample_id}_coverage.png"
  39. File alleleratio_png = "${sample_id}_alleleratio.png"
  40. File chr_png = "${sample_id}_chr_png.tgz"
  41. }
  42. }