您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

59 行
1.6KB

  1. task suppa2{
  2. String sample_id
  3. File fastq1
  4. File fastq2
  5. File suppa2_database
  6. String docker
  7. String cluster
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. nt=$(nproc)
  13. /software/salmon-1.5.2_linux_x86_64/bin/salmon quant -i ${suppa2_database}/gencode.v37.transcripts.salmon.index/ \
  14. -l ISR \
  15. --gcBias \
  16. -1 ${fastq1} \
  17. -2 ${fastq2} \
  18. -p $nt \
  19. -o ./${sample_id}_salmon
  20. multipleFieldSelection.py -i ./${sample_id}_salmon/quant.sf \
  21. -k 1 \
  22. -f 4 \
  23. -o ${sample_id}_iso_tpm.txt
  24. sed 's@|ENSG.*|@@' ${sample_id}_iso_tpm.txt > ${sample_id}_iso_tpm_formatted.txt
  25. suppa.py psiPerEvent -i ${suppa2_database}/gencode.v37.all.events.ioe \
  26. -e ${sample_id}_iso_tpm_formatted.txt \
  27. -o ${sample_id}_events
  28. suppa.py psiPerIsoform -g ${suppa2_database}/gencode.v37.annotation.gtf \
  29. -e ${sample_id}_iso_tpm_formatted.txt \
  30. -o ${sample_id}
  31. >>>
  32. runtime {
  33. docker : docker
  34. cluster: cluster
  35. systemDisk: "cloud_ssd 40"
  36. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output {
  39. File suppa2_events = "${sample_id}_events.psi"
  40. File suppa2_isoform = "${sample_id}_isoform.psi"
  41. File TPM = "${sample_id}_iso_tpm.txt"
  42. File formatted_TPM = "${sample_id}_iso_tpm_formatted.txt"
  43. }
  44. }