Automated integrated analysis software for genomics data of the cancer patients.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

61 lignes
1.6KB

  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. cp ${regions} my_baits.bed
  21. bgzip -c my_baits.bed > my_baits.bed.gz
  22. tabix -p bed my_baits.bed.gz
  23. # input files
  24. if [ ${normal_bam} ]; then
  25. INPUT="--normalBam ${normal_bam} --tumorBam ${tumor_bam}"
  26. else
  27. INPUT="--tumorBam ${tumor_bam}"
  28. fi
  29. # configManta
  30. $MANTA_INSTALL_PATH/bin/configManta.py \
  31. $INPUT \
  32. --callRegions my_baits.bed.gz --exome \
  33. --referenceFasta ${ref_dir}/${fasta} \
  34. --runDir $MANTA_ANALYSIS_PATH
  35. # runWorkflow
  36. $MANTA_ANALYSIS_PATH/runWorkflow.py -j $nt
  37. # results
  38. if [ ${normal_bam} ]; then
  39. cp $MANTA_ANALYSIS_PATH/results/variants/somaticSV.vcf.gz ${sample}.Manta.somaticSV.vcf.gz
  40. cp $MANTA_ANALYSIS_PATH/results/variants/diploidSV.vcf.gz ${sample}.Manta.germlineSV.vcf.gz
  41. else
  42. cp $MANTA_ANALYSIS_PATH/results/variants/tumorSV.vcf.gz ${sample}.Manta.somaticSV.vcf.gz
  43. fi
  44. >>>
  45. runtime {
  46. docker:docker
  47. cluster: cluster_config
  48. systemDisk: "cloud_ssd 40"
  49. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  50. }
  51. output {
  52. File somatic_vcf = "${sample}.Manta.somaticSV.vcf.gz"
  53. File? germline_vcf = "${sample}.Manta.germlineSV.vcf.gz"
  54. }
  55. }