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

55 行
1.4KB

  1. task strelka_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 ref_bed
  10. File? manta_indel_vcf
  11. File? manta_indel_vcf_index
  12. # excute env
  13. String docker
  14. String cluster_config
  15. String disk_size
  16. String out_dir = "${sample_id}_result"
  17. command <<<
  18. set -exo pipefail
  19. nt=$(nproc)
  20. /home/biosoft/strelka-2.9.10.centos6_x86_64/bin/configureStrelkaSomaticWorkflow.py \
  21. --normalBam ${normal_bam} \
  22. --tumorBam ${tumor_bam} \
  23. --referenceFasta ${ref_dir}/${ref_fasta} \
  24. --callRegions ${ref_dir}/${ref_bed} \
  25. --runDir ${out_dir}
  26. #--callRegions ${ref_dir}/${ref_bed} \
  27. ls ${out_dir}
  28. python2.7 ${out_dir}/runWorkflow.py -m local -j $nt
  29. ls ${out_dir}
  30. tar cvf ${out_dir}.tar ${out_dir}
  31. >>>
  32. runtime{
  33. docker:docker
  34. cluster:cluster_config
  35. systemDisk:"cloud_ssd 40"
  36. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  37. }
  38. output{
  39. File out_file = "${out_dir}.tar"
  40. File indel_vcf = "${out_dir}/results/variants/somatic.indels.vcf.gz"
  41. File indel_vcf_index = "${out_dir}/results/variants/somatic.indels.vcf.gz.tbi"
  42. File snv_vcf = "${out_dir}/results/variants/somatic.snvs.vcf.gz"
  43. File snv_vcf_index = "${out_dir}/results/variants/somatic.snvs.vcf.gz.tbi"
  44. }
  45. }