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

37 行
1.0KB

  1. task fastqscreen {
  2. File read1
  3. File read2
  4. File screen_ref_dir
  5. File fastq_screen_conf
  6. String read1name=sub(basename(read1),"\\.\\S+$", "")
  7. String read2name=sub(basename(read2),"\\.\\S+$", "")
  8. String docker
  9. String cluster
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. nt=$(nproc)
  15. mkdir -p /cromwell_root/tmp
  16. cp -r ${screen_ref_dir} /cromwell_root/tmp/
  17. # sed -i "s#/cromwell_root/fastq_screen_reference#${screen_ref_dir}#g" ${fastq_screen_conf}
  18. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read1}
  19. fastq_screen --aligner bowtie2 --conf ${fastq_screen_conf} --top 100000 --threads $nt ${read2}
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster: cluster
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File png1="${read1name}_screen.png"
  29. File txt1="${read1name}_screen.txt"
  30. File html1="${read1name}_screen.html"
  31. File png2="${read2name}_screen.png"
  32. File txt2="${read2name}_screen.txt"
  33. File html2="${read2name}_screen.html"
  34. }
  35. }