将fastq转换成bam文件,并用qualimap对BAM文件进行质控
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.

79 line
2.2KB

  1. task sentieon_TNseq{
  2. String sample_id
  3. File tumor_bam
  4. File tumor_bam_bai
  5. File? normal_bam
  6. File? normal_bam_bai
  7. String tumor_name
  8. String normal_name
  9. File ref_dir
  10. String ref_fasta
  11. File germline_resource
  12. File germline_resource_tbi
  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. if [${normal_bam}];then
  24. INPUT="-i ${tumor_bam} -i ${normal_bam}"
  25. SAMPLE="--tumor_sample ${tumor_name} --normal_sample ${normal_name}"
  26. else
  27. INPUT="-i ${tumor_bam}"
  28. SAMPLE="--tumor_sample ${tumor_name}"
  29. fi
  30. sentieon driver -t $nt -r ${ref_dir}/${ref_fasta} \
  31. $INPUT \
  32. --algo TNhaplotyper2 $SAMPLE \
  33. --germline_vcf ${germline_resource} \
  34. ${sample_id}.TNseq.raw.vcf \
  35. --algo OrientationBias --tumor_sample ${tumor_name} \
  36. ${sample_id}.orientation \
  37. --algo ContaminationModel $SAMPLE \
  38. --vcf ${germline_resource} \
  39. --tumor_segments ${sample_id}.contamination.segments \
  40. ${sample_id}.contamination
  41. sentieon driver -t $nt \
  42. -r ${ref_dir}/${ref_fasta} \
  43. --algo TNfilter $SAMPLE \
  44. -v ${sample_id}.TNseq.raw.vcf \
  45. --contamination ${sample_id}.contamination \
  46. --tumor_segments ${sample_id}.contamination.segments \
  47. --orientation_priors ${sample_id}.orientation \
  48. ${sample_id}.bwa_TNseq.vcf
  49. >>>
  50. runtime{
  51. docker:docker
  52. cluster:cluster_config
  53. systemDisk:"cloud_ssd 40"
  54. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  55. }
  56. output{
  57. File raw_vcf = "${sample_id}.TNseq.raw.vcf"
  58. File raw_vcf_index = "${sample_id}.TNseq.raw.vcf.idx"
  59. File vcf = "${sample_id}.bwa_TNseq.vcf"
  60. File vcf_index = "${sample_id}.bwa_TNseq.vcf.idx"
  61. File contamination = "${sample_id}.contamination"
  62. File contamination_segments = "${sample_id}.contamination.segments"
  63. File orientation = "${sample_id}.orientation"
  64. }
  65. }