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.

DownSample.wdl 662B

5 jaren geleden
1234567891011121314151617181920212223242526
  1. task DownSample {
  2. File in_fastq
  3. Int N
  4. String docker
  5. String cluster_config
  6. String disk_size
  7. command <<<
  8. set -o pipefail
  9. set -e
  10. out_fastq=$(echo "$(basename ${in_fastq})" | sed "s/.\(fastq\|fq\).gz/_downTo${N}.fastq.gz/")
  11. seqkit sample -n ${N} ${in_fastq} -o $out_fastq
  12. echo "$out_fastq"
  13. >>>
  14. runtime {
  15. docker: docker
  16. cluster: cluster_config
  17. systemDisk: "cloud_ssd 40"
  18. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  19. }
  20. output {
  21. File out_fastq = sub(basename(in_fastq), "\\.(fastq|fq)\\.gz$", "_downTo${N}.fastq.gz")
  22. }
  23. }