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.

46 lines
970B

  1. task delly {
  2. File tumor_bam
  3. File tumor_bam_idx
  4. File normal_bam
  5. File normal_bam_idx
  6. File ref_dir
  7. String fasta
  8. String sample_name
  9. String docker
  10. String disk_size
  11. String cluster_config
  12. command <<<
  13. set -o pipefail
  14. set -e
  15. echo -e "${sample_name}.tumor\ttumor\n${sample_name}.normal\tcontrol" > samples.tsv
  16. nt=$(nproc)
  17. export OMP_NUM_THREADS=$nt
  18. /opt/delly/src/delly call -g ${ref_dir}/${fasta} -o ${sample_name}.delly.somatic.bcf -x /opt/delly/excludeTemplates/human.hg38.excl.tsv ${tumor_bam} ${normal_bam}
  19. /opt/delly/src/delly filter -f somatic -o ${sample_name}.delly.somatic.filtered.bcf -s samples.tsv ${sample_name}.delly.somatic.bcf
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster:cluster_config
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File bcf = "${sample_name}.delly.somatic.filtered.bcf"
  29. File bcf_index = "${sample_name}.delly.somatic.filtered.bcf.csi"
  30. }
  31. }