Automated integrated analysis software for genomics data of the cancer patients.
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.

42 lines
921B

  1. task MSIsensor {
  2. File ref_dir
  3. String fasta
  4. File tumor_bam
  5. File tumor_bam_index
  6. File? normal_bam
  7. File? normal_bam_index
  8. File baseline
  9. String docker
  10. String cluster_config
  11. String disk_size
  12. command <<<
  13. set -o pipefail
  14. set -e
  15. nt=$(nproc)
  16. # MSI
  17. mkdir -p /cromwell_root/tmp/${sample}
  18. msisensor-pro scan -d ${ref_dir}/${fasta} -o reference.list
  19. if [ ${normal_recaled_bam} ]; then
  20. msisensor-pro msi -d reference.list -n ${normal_bam} -t ${tumor_bam} -o /cromwell_root/tmp/${sample}
  21. else
  22. msisensor-pro pro -d ${baseline} -t ${tumor_bam} -o /cromwell_root/tmp/${sample}
  23. fi
  24. cp /cromwell_root/tmp/${sample} ${sample}.MSI.txt
  25. # TMB
  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. }