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.

28 lines
721B

  1. task ballgown {
  2. File gene_abundance
  3. Array[File] ballgown
  4. String sample_id=basename(gene_abundance, ".gene.abundance.txt")
  5. String docker
  6. String cluster
  7. String disk_size
  8. command <<<
  9. mkdir -p /cromwell_root/tmp/${sample_id}
  10. cp -r ${sep=" " ballgown} /cromwell_root/tmp/${sample_id}
  11. ballgown /cromwell_root/tmp/${sample_id} ${sample_id}.txt
  12. sed -i 's/"//g' ${sample_id}.txt
  13. sed -i '1s/FPKM./GENE_ID\t/g' ${sample_id}.txt
  14. >>>
  15. runtime {
  16. docker: docker
  17. cluster: cluster
  18. systemDisk: "cloud_ssd 40"
  19. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  20. }
  21. output {
  22. File mat_expression = "${sample_id}.txt"
  23. }
  24. }