Generate the Panel of Normal files for TNseq and TNscope.
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.

61 lignes
1.8KB

  1. task BQSR {
  2. File ref_dir
  3. File dbsnp_dir
  4. String dbsnp
  5. File dbmills_dir
  6. String db_mills
  7. String sample=basename(realigned_bam, ".*")
  8. String SENTIEON_INSTALL_DIR
  9. String SENTIEON_LICENSE
  10. String fasta
  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. }