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.

31 lines
647B

  1. task Freebayes {
  2. File ref_dir
  3. File ref_fa_fai
  4. File fasta
  5. File Dedup_bam
  6. File Dedup_bam_index
  7. String sample
  8. String FBdocker
  9. String cluster_config
  10. String disk_size
  11. command <<<
  12. set -o pipefail
  13. set -e
  14. nt=$(nproc)
  15. /opt/freebayes/scripts/freebayes-parallel <(/opt/freebayes/scripts/fasta_generate_regions.py ${ref_dir}/${ref_fa_fai} 100) $nt -f ${ref_dir}/${fasta} --genotype-qualities ${Dedup_bam} > ${sample}_fb.vcf
  16. >>>
  17. runtime {
  18. docker:FBdocker
  19. cluster: cluster_config
  20. systemDisk: "cloud_ssd 40"
  21. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  22. }
  23. output {
  24. File vcf = "${sample}_fb.vcf"
  25. }
  26. }