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.

48 lines
1.1KB

  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. /home/biosoft/manta-1.6.0.centos6_x86_64/bin/configManta.py \
  17. --normalBam ${normal_bam} \
  18. --tumorBam ${tumor_bam} \
  19. --referenceFasta ${ref_dir}/${ref_fasta} \
  20. --runDir ${out_dir}
  21. ls ${out_dir}
  22. python2.7 ${out_dir}/runWorkflow.py -m local -j $nt
  23. ls ${out_dir}
  24. tar cvf ${out_dir}.tar ${out_dir}
  25. >>>
  26. runtime{
  27. docker:docker
  28. cluster:cluster_config
  29. systemDisk:"cloud_ssd 40"
  30. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  31. }
  32. output{
  33. File out_file = "${out_dir}.tar"
  34. File manta_indel_vcf = "${out_dir}/results/variants/candidateSmallIndels.vcf.gz"
  35. File manta_indel_vcf_index = "${out_dir}/results/variants/candidateSmallIndels.vcf.gz.tbi"
  36. }
  37. }