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.

57 lines
1.4KB

  1. task multiqc {
  2. Array[File]? read1_zip
  3. Array[File]? read2_zip
  4. Array[File]? txt1
  5. Array[File]? txt2
  6. Array[File] summary
  7. Array[File]? zip
  8. String docker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. if [ ${zip} ];then
  15. mkdir -p /cromwell_root/tmp/fastqc
  16. mkdir -p /cromwell_root/tmp/fastqscreen
  17. mkdir -p /cromwell_root/tmp/benchmark
  18. cp ${sep=" " read1_zip} ${sep=" " read2_zip} /cromwell_root/tmp/fastqc
  19. cp ${sep=" " txt1} ${sep=" " txt2} /cromwell_root/tmp/fastqscreen
  20. cp ${sep=" " summary} /cromwell_root/tmp/benchmark
  21. multiqc /cromwell_root/tmp/
  22. cat multiqc_data/multiqc_general_stats.txt > multiqc_general_stats.txt
  23. cat multiqc_data/multiqc_fastq_screen.txt > multiqc_fastq_screen.txt
  24. cat multiqc_data/multiqc_happy_data.json > multiqc_happy_data.json
  25. else
  26. mkdir -p /cromwell_root/tmp/benchmark
  27. cp ${sep=" " summary} /cromwell_root/tmp/benchmark
  28. multiqc /cromwell_root/tmp/
  29. cat multiqc_data/multiqc_happy_data.json > multiqc_happy_data.json
  30. fi
  31. >>>
  32. runtime {
  33. docker:docker
  34. cluster:cluster_config
  35. systemDisk:"cloud_ssd 40"
  36. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. File multiqc_html = "multiqc_report.html"
  40. Array[File] multiqc_txt = glob("multiqc_data/*")
  41. File? fastqc = "multiqc_general_stats.txt"
  42. File? fastqscreen = "multiqc_fastq_screen.txt"
  43. File hap = "multiqc_happy_data.json"
  44. }
  45. }