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.

46 lines
1.5KB

  1. task stringtie {
  2. File bam
  3. File gtf
  4. String docker
  5. String sample_id
  6. String cluster
  7. String disk_size
  8. Int minimum_length_allowed_for_the_predicted_transcripts
  9. Int Junctions_no_spliced_reads
  10. Float minimum_isoform_abundance
  11. Float maximum_fraction_of_muliplelocationmapped_reads
  12. command <<<
  13. nt=$(nproc)
  14. mkdir ballgown
  15. /opt/conda/bin/stringtie -e \
  16. -B \
  17. -p $nt \
  18. -f ${minimum_isoform_abundance} \
  19. -m ${minimum_length_allowed_for_the_predicted_transcripts} \
  20. -a ${Junctions_no_spliced_reads} \
  21. -M ${maximum_fraction_of_muliplelocationmapped_reads} \
  22. -G ${gtf} \
  23. --rf \
  24. -o ballgown/${sample_id}/${sample_id}.gtf \
  25. -C ${sample_id}.cov.ref.gtf \
  26. -A ${sample_id}.gene.abundance.txt \
  27. ${bam}
  28. >>>
  29. runtime {
  30. docker: docker
  31. cluster: cluster
  32. systemDisk: "cloud_ssd 40"
  33. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  34. }
  35. output {
  36. File covered_transcripts = "${sample_id}.cov.ref.gtf"
  37. File gene_abundance = "${sample_id}.gene.abundance.txt"
  38. Array[File] ballgown = ["ballgown/${sample_id}/${sample_id}.gtf", "ballgown/${sample_id}/e2t.ctab", "ballgown/${sample_id}/e_data.ctab", "ballgown/${sample_id}/i2t.ctab", "ballgown/${sample_id}/i_data.ctab", "ballgown/${sample_id}/t_data.ctab"]
  39. File genecount = "{sample_id}_genecount.csv"
  40. }
  41. }