Automated integrated analysis software for genomics data of the cancer patients.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

67 行
1.8KB

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