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.

40 lines
1.1KB

  1. import "./tasks/merge_mendelian_vote.wdl" as merge_mendelian_vote
  2. import "./tasks/summary_mendelian.wdl" as summary_mendelian
  3. import "./tasks/merge_chromo.wdl" as merge_chromo
  4. workflow {{ project_name }} {
  5. File inputSamplesFile
  6. Array[Array[File]] inputSamples = read_tsv(inputSamplesFile)
  7. String docker
  8. String sample_name
  9. String cluster_config
  10. String disk_size
  11. scatter (sample in inputSamples){
  12. call merge_mendelian_vote.merge_mendelian_vote as merge_mendelian_vote {
  13. input:
  14. vote_file=sample[0],
  15. mendelian_file=sample[1],
  16. output_prefix=sample[2],
  17. docker=docker,
  18. cluster_config=cluster_config,
  19. disk_size=disk_size
  20. }
  21. call summary_mendelian.summary_mendelian as summary_mendelian {
  22. input:
  23. mendelian_vote=merge_mendelian_vote.mendelian_vote,
  24. output_prefix=sample[2],
  25. docker=docker,
  26. cluster_config=cluster_config,
  27. disk_size=disk_size
  28. }
  29. }
  30. call merge_chromo.merge_chromo as merge_chromo {
  31. input:
  32. mendelian_vote_summary=summary_mendelian.mendelian_vote_summary,
  33. sample_name=sample_name,
  34. docker=docker,
  35. cluster_config=cluster_config,
  36. disk_size=disk_size
  37. }
  38. }