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

55 行
1.3KB

  1. task manta_calling{
  2. File tumor_bam
  3. File tumor_bam_bai
  4. File normal_bam
  5. File normal_bam_bai
  6. String ref_fasta
  7. File ref_dir
  8. String sample_id
  9. String docker
  10. String cluster_config
  11. String disk_size
  12. String out_dir = "${sample_id}_result"
  13. command <<<
  14. set -exo pipefail
  15. nt=$(nproc)
  16. if [ ${normal_bam} ]; then
  17. INPUT="--normalBam ${normal_bam} --tumorBam ${tumor_bam}"
  18. else
  19. INPUT="--tumorBam ${tumor_bam}"
  20. fi
  21. /home/biosoft/manta-1.6.0.centos6_x86_64/bin/configManta.py \
  22. $INPUT \
  23. --referenceFasta ${ref_dir}/${ref_fasta} \
  24. --runDir ${out_dir}
  25. ls ${out_dir}
  26. python2.7 ${out_dir}/runWorkflow.py -m local -j $nt
  27. ls ${out_dir}
  28. if [ ${normal_bam} ]; then
  29. cp ${out_dir}/results/variants/somaticSV.vcf.gz ${sample_id}.Manta.somaticSV.vcf.gz
  30. cp ${out_dir}/results/variants/diploidSV.vcf.gz ${sample_id}.Manta.germlineSV.vcf.gz
  31. else
  32. cp ${out_dir}/results/variants/tumorSV.vcf.gz ${sample_id}.Manta.somaticSV.vcf.gz
  33. fi
  34. >>>
  35. runtime{
  36. docker:docker
  37. cluster:cluster_config
  38. systemDisk:"cloud_ssd 40"
  39. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  40. }
  41. output{
  42. File somatic_vcf = "${sample}.Manta.somaticSV.vcf.gz"
  43. File? germline_vcf = "${sample}.Manta.germlineSV.vcf.gz"
  44. }
  45. }