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.

47 lines
1.0KB

  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. File manta_indel_vcf
  10. File manta_indel_vcf_index
  11. String docker
  12. String cluster_config
  13. String disk_size
  14. String out_dir = "${sample_id}_result"
  15. command <<<
  16. set -exo pipefail
  17. nt=$(nproc)
  18. /home/biosoft/strelka-2.9.10.centos6_x86_64/bin/configureStrelkaSomaticWorkflow.py \
  19. --normalBam ${normal_bam} \
  20. --tumorBam ${tumor_bam} \
  21. --referenceFasta ${ref_dir}/${ref_fasta} \
  22. --indelCandidates ${manta_indel_vcf} \
  23. --runDir ${out_dir}
  24. ls ${out_dir}
  25. python2.7 ${out_dir}/runWorkflow.py -m local -j $nt
  26. ls ${out_dir}
  27. tar cvf ${out_dir}.tar ${out_dir}
  28. >>>
  29. runtime{
  30. docker:docker
  31. cluster:cluster_config
  32. systemDisk:"cloud_ssd 40"
  33. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  34. }
  35. output{
  36. File out_file = "${out_dir}.tar"
  37. }
  38. }