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.

29 lines
931B

  1. task count {
  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. Int count_length
  9. command <<<
  10. mkdir -p /cromwell_root/tmp/ballgown/${sample_id}
  11. cp -r ${sep=" " ballgown} /cromwell_root/tmp/ballgown/${sample_id}
  12. count -i /cromwell_root/tmp/ballgown -l ${count_length} -g ${sample_id}_gene_count_matrix.csv -t ${sample_id}_transcript_count_matrix.csv
  13. sed -i '1s/gene_id/GENE_ID/g' ${sample_id}_gene_count_matrix.csv
  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_genecount = "${sample_id}_gene_count_matrix.csv"
  23. File mat_expression_transcriptcount = "${sample_id}_transcript_count_matrix.csv"
  24. }
  25. }