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.

41 lines
909B

  1. task MSIsensor {
  2. String sample
  3. File ref_dir
  4. String fasta
  5. File tumor_bam
  6. File tumor_bam_index
  7. File? normal_bam
  8. File? normal_bam_index
  9. File baseline
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. set -o pipefail
  15. set -e
  16. nt=$(nproc)
  17. # MSI
  18. mkdir -p /cromwell_root/tmp/
  19. msisensor-pro scan -d ${ref_dir}/${fasta} -o reference.list
  20. if [ ${normal_bam} ]; then
  21. msisensor-pro msi -d reference.list -n ${normal_bam} -t ${tumor_bam} -o /cromwell_root/tmp/${sample}
  22. else
  23. msisensor-pro pro -d ${baseline} -t ${tumor_bam} -o /cromwell_root/tmp/${sample}
  24. fi
  25. cp /cromwell_root/tmp/${sample} ${sample}.MSI.txt
  26. >>>
  27. runtime {
  28. docker: docker
  29. cluster: cluster_config
  30. systemDisk: "cloud_ssd 40"
  31. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  32. }
  33. output {
  34. File msi = "${sample}.MSI.txt"
  35. }
  36. }