Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

54 linhas
1.8KB

  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 ./${normal_id}.bam |sed 's/chr//g'|samtools view -bS -o ./${normal_id}.sorted.deduped.nochr.bam
  15. 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. cp /opt/battenberg_reference/battenberg_wgs.R ./
  19. 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 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. }