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.

76 line
2.1KB

  1. import "./tasks/CNVkit.wdl" as cnvkit
  2. import "./tasks/CNVkit_multi_REF.wdl" as cnvkit_multi
  3. import "./tasks/AnnotSV.wdl" as AnnotSV
  4. workflow {{ project_name }} {
  5. String sample_id
  6. File ref_fasta_dir
  7. File ref_fasta_cnvkit
  8. String ref_fasta
  9. File ref_flat
  10. File? bed_file
  11. String Ploidy
  12. File gc
  13. File tumor_bam
  14. File tumor_bam_bai
  15. File? normal_bam
  16. File? normal_bam_bai
  17. Array[File]? inputBams
  18. Array[File]? inputBamIndexs
  19. String docker_cnvkit
  20. String cluster_config
  21. String disk_size
  22. File annotsv_database
  23. String docker_annotsv
  24. String docker_sequenza
  25. if (defined(normal_bams) && size(normal_bams) > 0) {
  26. call cnvkit_multi.cnvkit_multi as cnvkit_multi{
  27. input:
  28. sample_id=sample_id,
  29. ref_dir=ref_fasta_cnvkit,
  30. fasta=ref_fasta,
  31. ref_flat=ref_flat,
  32. Ploidy=Ploidy,
  33. bed_file=bed_file,
  34. tumor_bam=tumor_bam,
  35. tumor_bam_index=tumor_bam_bai,
  36. normal_bams = inputBams,
  37. normal_bam_indexs = inputBamIndexs,
  38. docker=docker_cnvkit,
  39. cluster_config=cluster_config,
  40. disk_size=disk_size
  41. }
  42. }else{
  43. call cnvkit.cnvkit as cnvkit{
  44. input:
  45. sample_id=sample_id,
  46. ref_dir=ref_fasta_cnvkit,
  47. fasta=ref_fasta,
  48. ref_flat=ref_flat,
  49. Ploidy=Ploidy,
  50. bed_file=bed_file,
  51. tumor_bam=tumor_bam,
  52. tumor_bam_index=tumor_bam_bai,
  53. normal_bam=normal_bam,
  54. normal_bam_index=normal_bam_bai,
  55. docker=docker_cnvkit,
  56. cluster_config=cluster_config,
  57. disk_size=disk_size
  58. }
  59. }
  60. call AnnotSV.AnnotSV as cnvkit_AnnotSV{
  61. input:
  62. sample=sample_id,
  63. somatic_vcf=cnvkit.cnv_bed,
  64. annotsv_database=annotsv_database,
  65. docker=docker_annotsv,
  66. cluster_config=cluster_config,
  67. disk_size=disk_size
  68. }
  69. }