您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

109 行
2.3KB

  1. #Only for BamQC
  2. import "./tasks/fastqTobam.wdl" as fastqTobam
  3. import "./tasks/qualimap.wdl" as qualimap
  4. import "./tasks/BQSR.wdl" as Sentieon_BQSR
  5. import "./tasks/TNseq.wdl" as TNseq
  6. import "./tasks/TNscope.wdl" as TNscope
  7. import "./tasks/manta.wdl" as manta_calling
  8. import "./tasks/strelka.wdl" as strelka_calling
  9. workflow {{ project_name }} {
  10. #sample info
  11. File? normal_in1
  12. File? normal_in2
  13. File? tumor_in1
  14. File? tumor_in2
  15. String sample_id
  16. String Seq_platform
  17. #reference fasta
  18. String ref_fasta
  19. File ref_fasta_dir
  20. File annot_gff
  21. File dbsnp_dir
  22. File dbmills_dir
  23. String dbsnp
  24. String db_mills
  25. File germline_resource
  26. File germline_resource_tbi
  27. #docker
  28. String docker_fastp
  29. String docker_sentieon
  30. String SENTIEON_LICENSE
  31. String docker_qualimap
  32. String docker_manta
  33. String docker_strelka
  34. #config
  35. String cluster_config
  36. String disk_size
  37. Boolean? fastqc
  38. Boolean bamqc
  39. if (normal_in1 != ""){
  40. call fastqTobam.SentieonFastqToBam as SentieonFastqToBam_normal{
  41. input:
  42. fastq1=normal_in1,
  43. fastq2=normal_in2,
  44. sample_id=sample_id+'_N',
  45. Seq_platform=Seq_platform,
  46. ref_fasta=ref_fasta,
  47. ref_fasta_dir=ref_fasta_dir,
  48. SENTIEON_LICENSE=SENTIEON_LICENSE,
  49. docker=docker_sentieon,
  50. cluster_config=cluster_config,
  51. disk_size=disk_size
  52. }
  53. call qualimap.qualimap as qualimap_normal{
  54. input:
  55. sample_id=sample_id+'_N',
  56. bam_file=SentieonFastqToBam_normal.deduped_bam,
  57. bam_bai=SentieonFastqToBam_normal.deduped_bam_bai,
  58. annot_gff=annot_gff,
  59. docker=docker_qualimap,
  60. cluster_config=cluster_config,
  61. disk_size=disk_size
  62. }
  63. }
  64. if (tumor_in1 != ""){
  65. call fastqTobam.SentieonFastqToBam as SentieonFastqToBam_tumor{
  66. input:
  67. fastq1=tumor_in1,
  68. fastq2=tumor_in2,
  69. sample_id=sample_id+'_T',
  70. Seq_platform=Seq_platform,
  71. ref_fasta=ref_fasta,
  72. ref_fasta_dir=ref_fasta_dir,
  73. SENTIEON_LICENSE=SENTIEON_LICENSE,
  74. docker=docker_sentieon,
  75. cluster_config=cluster_config,
  76. disk_size=disk_size
  77. }
  78. call qualimap.qualimap as qualimap_tumor{
  79. input:
  80. sample_id=sample_id+'_T',
  81. bam_file=SentieonFastqToBam_tumor.deduped_bam,
  82. bam_bai=SentieonFastqToBam_tumor.deduped_bam_bai,
  83. annot_gff=annot_gff,
  84. docker=docker_qualimap,
  85. cluster_config=cluster_config,
  86. disk_size=disk_size
  87. }
  88. }
  89. }