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.

90 line
2.4KB

  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(inputBams)) {
  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. call AnnotSV.AnnotSV as cnvkit_AnnotSV{
  43. input:
  44. sample=sample_id,
  45. somatic_vcf=cnvkit_multi.cnv_bed,
  46. annotsv_database=annotsv_database,
  47. docker=docker_annotsv,
  48. cluster_config=cluster_config,
  49. disk_size=disk_size
  50. }
  51. }
  52. if (!defined(inputBams)) {
  53. call cnvkit.cnvkit as cnvkit{
  54. input:
  55. sample_id=sample_id,
  56. ref_dir=ref_fasta_cnvkit,
  57. fasta=ref_fasta,
  58. ref_flat=ref_flat,
  59. Ploidy=Ploidy,
  60. bed_file=bed_file,
  61. tumor_bam=tumor_bam,
  62. tumor_bam_index=tumor_bam_bai,
  63. normal_bam=normal_bam,
  64. normal_bam_index=normal_bam_bai,
  65. docker=docker_cnvkit,
  66. cluster_config=cluster_config,
  67. disk_size=disk_size
  68. }
  69. call AnnotSV.AnnotSV as cnvkit_AnnotSV{
  70. input:
  71. sample=sample_id,
  72. somatic_vcf=cnvkit.cnv_bed,
  73. annotsv_database=annotsv_database,
  74. docker=docker_annotsv,
  75. cluster_config=cluster_config,
  76. disk_size=disk_size
  77. }
  78. }
  79. }