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.

29 lines
590B

  1. task DownSample {
  2. String sample_id
  3. File fastq
  4. Int n
  5. String docker
  6. String cluster_config
  7. String disk_size
  8. command <<<
  9. set -o pipefail
  10. set -e
  11. nt=$(nproc)
  12. # seqkit sample --two-pass --threads $nt -s 100 -p ${p} ${fastq} -o ${sample_id}.fastq.gz
  13. seqkit sample --two-pass --threads $nt -s 100 -n ${n} ${fastq} -o ${sample_id}.fastq.gz
  14. >>>
  15. runtime {
  16. docker: docker
  17. cluster: cluster_config
  18. systemDisk: "cloud_ssd 40"
  19. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  20. }
  21. output {
  22. File out_fastq = "${sample_id}.fastq.gz"
  23. }
  24. }