Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

BQSR.wdl 2.0KB

il y a 4 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. File? regions
  10. String dbsnp
  11. String db_mills
  12. File realigned_bam
  13. File realigned_bam_index
  14. String docker
  15. String cluster_config
  16. String disk_size
  17. command <<<
  18. set -o pipefail
  19. set -e
  20. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  21. nt=$(nproc)
  22. if [ ${regions} != "" ]; then
  23. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r ${ref_dir}/${fasta} -t $nt -i ${realigned_bam} --interval ${regions} --algo QualCal -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} ${sample}_recal_data.table
  24. else
  25. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r ${ref_dir}/${fasta} -t $nt -i ${realigned_bam} --algo QualCal -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} ${sample}_recal_data.table
  26. fi
  27. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -r ${ref_dir}/${fasta} -t $nt -i ${realigned_bam} -q ${sample}_recal_data.table --algo QualCal -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} ${sample}_recal_data.table.post --algo ReadWriter ${sample}.sorted.deduped.realigned.recaled.bam
  28. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --algo QualCal --plot --before ${sample}_recal_data.table --after ${sample}_recal_data.table.post ${sample}_recal_data.csv
  29. ${SENTIEON_INSTALL_DIR}/bin/sentieon plot bqsr -o ${sample}_bqsrreport.pdf ${sample}_recal_data.csv
  30. >>>
  31. runtime {
  32. docker: docker
  33. cluster: cluster_config
  34. systemDisk: "cloud_ssd 40"
  35. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  36. }
  37. output {
  38. File recal_table = "${sample}_recal_data.table"
  39. File recal_post = "${sample}_recal_data.table.post"
  40. File recaled_bam = "${sample}.sorted.deduped.realigned.recaled.bam"
  41. File recaled_bam_index = "${sample}.sorted.deduped.realigned.recaled.bam.bai"
  42. File recal_csv = "${sample}_recal_data.csv"
  43. File bqsrreport_pdf = "${sample}_bqsrreport.pdf"
  44. }
  45. }