Automated integrated analysis software for genomics data of the cancer patients.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

58 Zeilen
1.4KB

  1. task Manta {
  2. File ref_dir
  3. File fasta
  4. File regions
  5. File tumor_bam
  6. File tumor_bam_index
  7. File? normal_bam
  8. File? normal_bam_index
  9. String sample
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. set -o pipefail
  15. set -e
  16. nt=$(nproc)
  17. MANTA_INSTALL_PATH="/opt/manta-1.6.0.centos6_x86_64"
  18. MANTA_ANALYSIS_PATH="/cromwell_root/tmp"
  19. mkdir -p $MANTA_ANALYSIS_PATH
  20. # input files
  21. if [ ${normal_bam} ]; then
  22. INPUT="--normalBam ${normal_bam} --tumorBam ${tumor_bam}"
  23. else
  24. INPUT="--tumorBam ${tumor_bam}"
  25. fi
  26. # configManta
  27. $MANTA_INSTALL_PATH/bin/configManta.py \
  28. $INPUT \
  29. --callRegions ${regions} --exome \
  30. --referenceFasta ${ref_dir}/${fasta} \
  31. --runDir $MANTA_ANALYSIS_PATH
  32. # runWorkflow
  33. $MANTA_ANALYSIS_PATH/runWorkflow.py -j $nt
  34. # results
  35. if [ ${normal_bam} ]; then
  36. cp $MANTA_ANALYSIS_PATH/results/variants/somaticSV.vcf.gz ${sample}.Manta.somaticSV.vcf.gz
  37. cp $MANTA_ANALYSIS_PATH/results/variants/diploidSV.vcf.gz ${sample}.Manta.germlineSV.vcf.gz
  38. else
  39. cp $MANTA_ANALYSIS_PATH/results/variants/tumorSV.vcf.gz ${sample}.Manta.somaticSV.vcf.gz
  40. fi
  41. >>>
  42. runtime {
  43. docker:docker
  44. cluster: cluster_config
  45. systemDisk: "cloud_ssd 40"
  46. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  47. }
  48. output {
  49. File somatic_vcf = "${sample}.Manta.somaticSV.vcf.gz"
  50. File? germline_vcf = "${sample}.Manta.germlineSV.vcf.gz"
  51. }
  52. }