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.

40 lines
1.1KB

  1. task teprof_s2 {
  2. String sample_id
  3. File bam_file
  4. File filter_combined_candidates
  5. String disk_size
  6. String docker
  7. String cluster
  8. command <<<
  9. set -o pipefail
  10. set -e
  11. mkdir filterreadstats
  12. cp ${bam_file} ./
  13. samtools index -b -@ 16 ${sample_id}.Aligned.sortedByCoord.out.bam
  14. now_path=`pwd`
  15. python /database/rnapipelinerefhg38/rnapipeline/commandsmax_speed.py ${filter_combined_candidates} $now_path/
  16. grep ${sample_id} filterreadcommands.txt > ${sample_id}_filterreadcommands.txt
  17. parallel -j 16 < ${sample_id}_filterreadcommands.txt
  18. mv filterreadstats ${sample_id}_filterreadstats
  19. tar -zcvf ${sample_id}_filterreadstats.tgz ${sample_id}_filterreadstats
  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 filterreadcommands = "${sample_id}_filterreadcommands.txt"
  29. File filterreadstats = "${sample_id}_filterreadstats.tgz"
  30. }
  31. }