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.

55 line
1.3KB

  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. mkdir -p /cromwell_root/tmp/fastqc
  15. mkdir -p /cromwell_root/tmp/fastqscreen
  16. mkdir -p /cromwell_root/tmp/bamqc
  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. for i in ${sep=" " zip}
  22. do
  23. tar -zxvf $i -C /cromwell_root/tmp/bamqc
  24. done
  25. multiqc /cromwell_root/tmp/
  26. cat multiqc_data/multiqc_general_stats.txt > multiqc_general_stats.txt
  27. cat multiqc_data/multiqc_fastq_screen.txt > multiqc_fastq_screen.txt
  28. cat multiqc_data/multiqc_happy_data.json > multiqc_happy_data.json
  29. >>>
  30. runtime {
  31. docker:docker
  32. cluster:cluster_config
  33. systemDisk:"cloud_ssd 40"
  34. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  35. }
  36. output {
  37. File multiqc_html = "multiqc_report.html"
  38. Array[File] multiqc_txt = glob("multiqc_data/*")
  39. File fastqc = "multiqc_general_stats.txt"
  40. File fastqscreen = "multiqc_fastq_screen.txt"
  41. File hap = "multiqc_happy_data.json"
  42. }
  43. }