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 satır
1.5KB

  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'
  20. String out2_name = sample_id+'_clean_2.fastq'
  21. command <<<
  22. # basic command
  23. /opt/conda/bin/fastp \
  24. --in1 ${in1} \
  25. --in2 ${in2} \
  26. --out1 ${out1_name} \
  27. --out2 ${out2_name} \
  28. --json ${json} \
  29. --html ${html} \
  30. --report_title ${report_title} \
  31. # options
  32. ${ true="--phred64 " false="" phred64 } \
  33. ${ "--reads_to_process " + reads_to_process } \
  34. ${ true="--fix_mgi_id " false="" fix_mgi_id } \
  35. ${ "--adapter_sequence " + adapter_sequence } \
  36. ${ "--adapter_sequence_r2 " + adapter_sequence_r2 }
  37. >>>
  38. runtime {
  39. docker:docker
  40. cluster:cluster_config
  41. systemDisk:"cloud_ssd 40"
  42. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  43. }
  44. output {
  45. File out1 = out1_name
  46. File out2 = out2_name
  47. File json_report = json
  48. File html_report = html
  49. }
  50. }