使用fastp对fastq文件进行质控, 使用fastqscreen对污染源进行检测
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.

66 lines
1.3KB

  1. task fastp {
  2. # I/O options
  3. File in1
  4. File in2
  5. String sample_id
  6. Boolean? phred64 = false
  7. Boolean? fix_mgi_id = false
  8. String? adapter_sequence
  9. String? adapter_sequence_r2
  10. Int? reads_to_process # specify how many reads/pairs to be processed. Default 0 means process all reads.
  11. # reporting options
  12. String json = sample_id+"fastp.json"
  13. String html = sample_id+"fastp.html"
  14. String report_title = "\'fastp report\'"
  15. # excute env
  16. String docker
  17. String cluster_config
  18. String disk_size
  19. String out1_name = sample_id+'clean_1.fastq.gz'
  20. String out2_name = sample_id+'clean_2.fastq.gz'
  21. command <<<
  22. set -o pipefail
  23. set -e
  24. nt=$(nproc)
  25. # basic command
  26. /opt/conda/bin/fastp \
  27. --in1 ${in1} \
  28. --in2 ${in2} \
  29. --out1 ${out1_name} \
  30. --out2 ${out2_name} \
  31. --json ${json} \
  32. --html ${html} \
  33. --report_title ${report_title} \
  34. --thread $nt \
  35. --length_required 30
  36. >>>
  37. runtime {
  38. docker:docker
  39. cluster:cluster_config
  40. systemDisk:"cloud_ssd 40"
  41. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  42. }
  43. output {
  44. File out1 = out1_name
  45. File out2 = out2_name
  46. File json_report = json
  47. File html_report = html
  48. }
  49. }