Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

60 linhas
1.8KB

  1. task BQSR {
  2. File ref_dir
  3. File dbsnp_dir
  4. File dbmills_dir
  5. String sample
  6. String SENTIEON_INSTALL_DIR
  7. String SENTIEON_LICENSE
  8. String fasta
  9. String dbsnp
  10. String db_mills
  11. File realigned_bam
  12. File realigned_bam_index
  13. String docker
  14. String cluster_config
  15. String disk_size
  16. command <<<
  17. set -o pipefail
  18. set -e
  19. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  20. nt=$(nproc)
  21. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  22. -r ${ref_dir}/${fasta} -i ${realigned_bam} \
  23. --algo QualCal \
  24. -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} \
  25. ${sample}_recal_data.table
  26. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt \
  27. -r ${ref_dir}/${fasta} -i ${realigned_bam} -q ${sample}_recal_data.table \
  28. --algo QualCal \
  29. -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} \
  30. ${sample}_recal_data.table.post \
  31. --algo ReadWriter ${sample}.sorted.deduped.realigned.recaled.bam
  32. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --algo QualCal --plot \
  33. --before ${sample}_recal_data.table --after ${sample}_recal_data.table.post ${sample}_recal_result.csv
  34. ${SENTIEON_INSTALL_DIR}/bin/sentieon plot QualCal -o ${sample}_bqsr.pdf ${sample}_recal_result.csv
  35. >>>
  36. runtime {
  37. docker: docker
  38. cluster: cluster_config
  39. systemDisk: "cloud_ssd 40"
  40. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  41. }
  42. output {
  43. File recal_table = "${sample}_recal_data.table"
  44. File recal_post = "${sample}_recal_data.table.post"
  45. File recaled_bam = "${sample}.sorted.deduped.realigned.recaled.bam"
  46. File recaled_bam_index = "${sample}.sorted.deduped.realigned.recaled.bam.bai"
  47. File recal_csv = "${sample}_recal_result.csv"
  48. File bqsrreport_pdf = "${sample}_bqsr.pdf"
  49. }
  50. }