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

35 行
872B

  1. task bcftools {
  2. File ref_dir
  3. String fasta
  4. File vcf_indels
  5. File vcf_snvs
  6. String sample_id
  7. String docker
  8. String cluster_config
  9. String disk_size
  10. command <<<
  11. set -o pipefail
  12. set -e
  13. nt=$(nproc)
  14. bcftools concat -a ${vcf_indels} ${vcf_snvs} -Oz -o ${sample_id}.strelka.vcf.gz
  15. bcftools norm -m -both ${sample_id}.strelka.vcf.gz -O z -o ${sample_id}.strelka.norm.vcf.gz
  16. bcftools view -O z -f 'PASS' ${sample_id}.strelka.norm.vcf.gz -o ${sample_id}.strelka.PASS.vcf.gz
  17. bcftools index -t ${sample_id}.strelka.PASS.vcf.gz
  18. >>>
  19. runtime {
  20. docker: docker
  21. cluster: cluster_config
  22. systemDisk: "cloud_ssd 40"
  23. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  24. }
  25. output {
  26. File concat_vcf = "${sample_id}.strelka.PASS.vcf.gz"
  27. File concat_vcf_index = "${sample_id}.strelka.PASS.vcf.gz.tbi"
  28. }
  29. }