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.

159 lines
3.6KB

  1. workflow {{ project_name }} {
  2. #sample info
  3. File? normal_deduped_bam
  4. File? normal_deduped_bam_bai
  5. File? tumor_deduped_bam
  6. File? tumor_deduped_bam_bai
  7. String sample_id
  8. String Seq_platform
  9. #reference fasta
  10. String ref_fasta
  11. File ref_fasta_dir
  12. File annot_gff
  13. File dbsnp_dir
  14. File dbmills_dir
  15. String dbsnp
  16. String db_mills
  17. File germline_resource
  18. File germline_resource_tbi
  19. File annovar_database
  20. File? regions
  21. File baseline
  22. File hg38_CDS
  23. File tumor_recal_table
  24. File normal_recal_table
  25. #docker
  26. String docker_fastp
  27. String docker_sentieon
  28. String SENTIEON_LICENSE
  29. String docker_qualimap
  30. String docker_manta
  31. String docker_strelka
  32. String docker_bcftools
  33. String docker_annovar
  34. String docker_tmb
  35. String docker_MSIsensor
  36. #config
  37. String cluster_config
  38. String disk_size
  39. Boolean? fastqc
  40. Boolean bamqc
  41. Boolean Annovar
  42. Boolean AF_filter
  43. call TNscope.sentieon_TNscope as sentieon_TNscope{
  44. input:
  45. sample_id = sample_id,
  46. tumor_bam = tumor_deduped_bam,
  47. tumor_bam_bai = tumor_deduped_bam_bai,
  48. normal_bam = normal_deduped_bam,
  49. normal_bam_bai = normal_deduped_bam_bai,
  50. tumor_name = sample_id+'_T',
  51. normal_name = sample_id+'_N',
  52. tumor_recall_data = tumor_recal_table,
  53. normal_recall_data = normal_recal_table,
  54. ref_dir = ref_fasta_dir,
  55. ref_fasta = ref_fasta,
  56. dbsnp_dir = dbsnp_dir,
  57. dbsnp = dbsnp,
  58. # excute env
  59. docker = docker_sentieon,
  60. cluster_config = cluster_config,
  61. disk_size = disk_size,
  62. SENTIEON_LICENSE = SENTIEON_LICENSE
  63. }
  64. call bcftools.bcftools as TNscope_bcftools {
  65. input:
  66. vcf=sentieon_TNscope.vcf,
  67. fasta=ref_fasta,
  68. ref_dir=ref_fasta_dir,
  69. docker=docker_bcftools,
  70. cluster_config=cluster_config,
  71. disk_size=disk_size
  72. }
  73. call manta_calling.manta_calling as manta_calling{
  74. input:
  75. tumor_bam = tumor_deduped_bam,
  76. tumor_bam_bai = tumor_deduped_bam_bai,
  77. normal_bam = normal_deduped_bam,
  78. normal_bam_bai = normal_deduped_bam_bai,
  79. ref_fasta = ref_fasta,
  80. ref_dir = ref_fasta_dir,
  81. sample_id = sample_id,
  82. docker = docker_manta,
  83. cluster_config = cluster_config,
  84. disk_size = disk_size
  85. }
  86. call strelka_calling.strelka_calling as strelka_calling{
  87. input:
  88. tumor_bam = tumor_deduped_bam,
  89. tumor_bam_bai = tumor_deduped_bam_bai,
  90. normal_bam = normal_deduped_bam,
  91. normal_bam_bai = normal_deduped_bam_bai,
  92. ref_fasta = ref_fasta,
  93. ref_dir = ref_fasta_dir,
  94. sample_id = sample_id,
  95. manta_indel_vcf = manta_calling.manta_indel_vcf,
  96. manta_indel_vcf_index = manta_calling.manta_indel_vcf_index,
  97. docker=docker_strelka,
  98. cluster_config=cluster_config,
  99. disk_size=disk_size
  100. }
  101. call bcftools_concat.bcftools as bcftools_concat{
  102. input:
  103. ref_dir=ref_fasta_dir,
  104. fasta=ref_fasta,
  105. vcf_indels=strelka_calling.indel_vcf,
  106. vcf_snvs=strelka_calling.snv_vcf,
  107. sample_id=sample_id,
  108. docker=docker_bcftools,
  109. cluster_config=cluster_config,
  110. disk_size=disk_size
  111. }
  112. call bcftools.bcftools as strelka_bcftools {
  113. input:
  114. vcf=bcftools_concat.concat_vcf,
  115. fasta=ref_fasta,
  116. ref_dir=ref_fasta_dir,
  117. docker=docker_bcftools,
  118. cluster_config=cluster_config,
  119. disk_size=disk_size
  120. }
  121. if (Annovar){
  122. call annovar.ANNOVAR as TNscope_ANNOVAR {
  123. input:
  124. vcf=TNscope_bcftools.norm_vcf,
  125. annovar_database=annovar_database,
  126. docker=docker_annovar,
  127. cluster_config=cluster_config,
  128. disk_size=disk_size
  129. }
  130. call annovar.ANNOVAR as Haplotyper_ANNOVAR {
  131. input:
  132. vcf=Haplotyper_bcftools.norm_vcf,
  133. annovar_database=annovar_database,
  134. docker=docker_annovar,
  135. cluster_config=cluster_config,
  136. disk_size=disk_size
  137. }
  138. }
  139. }