選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

72 行
1.9KB

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