Germline & Somatic short variant discovery (SNVs + Indels) for WGS & WES.
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.

BQSR.wdl 1.6KB

4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. -q ${sample}_recal_data.table --algo QualCal \
  24. -k ${dbsnp_dir}/${dbsnp} -k ${dbmills_dir}/${db_mills} \
  25. ${sample}_recal_data.table.post \
  26. --algo ReadWriter ${sample}.sorted.deduped.realigned.recaled.bam
  27. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver -t $nt --algo QualCal --plot \
  28. --before ${sample}_recal_data.table --after ${sample}_recal_data.table.post ${sample}_recal_result.csv
  29. ${SENTIEON_INSTALL_DIR}/bin/sentieon plot QualCal -o ${sample}_bqsr.pdf ${sample}_recal_result.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_result.csv"
  43. File bqsrreport_pdf = "${sample}_bqsr.pdf"
  44. }
  45. }