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.

92 line
2.5KB

  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. File? VCF
  18. Array[File]? inputBams
  19. Array[File]? inputBamIndexs
  20. String docker_cnvkit
  21. String cluster_config
  22. String disk_size
  23. File annotsv_database
  24. String docker_annotsv
  25. String docker_sequenza
  26. if (defined(inputBams)) {
  27. call cnvkit_multi.cnvkit_multi as cnvkit_multi{
  28. input:
  29. sample_id=sample_id,
  30. ref_dir=ref_fasta_cnvkit,
  31. fasta=ref_fasta,
  32. ref_flat=ref_flat,
  33. Ploidy=Ploidy,
  34. bed_file=bed_file,
  35. tumor_bam=tumor_bam,
  36. tumor_bam_index=tumor_bam_bai,
  37. normal_bams=inputBams,
  38. normal_bam_indexs=inputBamIndexs,
  39. docker=docker_cnvkit,
  40. cluster_config=cluster_config,
  41. disk_size=disk_size
  42. }
  43. call AnnotSV.AnnotSV as cnvkit_AnnotSV_multi{
  44. input:
  45. sample=sample_id,
  46. somatic_vcf=cnvkit_multi.cnv_bed,
  47. annotsv_database=annotsv_database,
  48. docker=docker_annotsv,
  49. cluster_config=cluster_config,
  50. disk_size=disk_size
  51. }
  52. }
  53. if (!defined(inputBams)) {
  54. call cnvkit.cnvkit as cnvkit{
  55. input:
  56. sample_id=sample_id,
  57. ref_dir=ref_fasta_cnvkit,
  58. fasta=ref_fasta,
  59. ref_flat=ref_flat,
  60. Ploidy=Ploidy,
  61. bed_file=bed_file,
  62. tumor_bam=tumor_bam,
  63. tumor_bam_index=tumor_bam_bai,
  64. normal_bam=normal_bam,
  65. normal_bam_index=normal_bam_bai,
  66. VCF = VCF,
  67. docker=docker_cnvkit,
  68. cluster_config=cluster_config,
  69. disk_size=disk_size
  70. }
  71. call AnnotSV.AnnotSV as cnvkit_AnnotSV{
  72. input:
  73. sample=sample_id,
  74. somatic_vcf=cnvkit.cnv_bed,
  75. annotsv_database=annotsv_database,
  76. docker=docker_annotsv,
  77. cluster_config=cluster_config,
  78. disk_size=disk_size
  79. }
  80. }
  81. }