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.

34 lines
1.1KB

  1. task teprof_s3 {
  2. String sample_id
  3. File bam_file
  4. File reference_merged_candidates_gtf
  5. String disk_size
  6. String docker
  7. String cluster
  8. command <<<
  9. set -o pipefail
  10. set -e
  11. samtools view -@ 16 -q 255 -h ${bam_file} > ${sample_id}.filtered.Aligned.sortedByCoord.out.bam
  12. stringtie ${sample_id}.filtered.Aligned.sortedByCoord.out.bam -o ${sample_id}.Aligned.sortedByCoord.out_root.gtf -e -b ${sample_id}.Aligned.sortedByCoord.out_root_stats -p 16 -m 100 -c 1 -G ${reference_merged_candidates_gtf} --rf
  13. tar -zcvf ${sample_id}.Aligned.sortedByCoord.out_root_stats.tgz ${sample_id}.Aligned.sortedByCoord.out_root_stats
  14. rm ${sample_id}.filtered.Aligned.sortedByCoord.out.bam
  15. >>>
  16. runtime {
  17. docker: docker
  18. cluster: cluster
  19. systemDisk: "cloud_ssd 40"
  20. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  21. }
  22. output {
  23. File stringtie_stats = "${sample_id}.Aligned.sortedByCoord.out_root_stats.tgz"
  24. File stringtie_gtf = "${sample_id}.Aligned.sortedByCoord.out_root.gtf"
  25. }
  26. }