Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

54 lines
1.3KB

  1. task sentieon_TNscope{
  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 tumor_recall_data
  10. File normal_recall_data
  11. File ref_dir
  12. String ref_fasta
  13. File dbsnp_dir
  14. String dbsnp
  15. # excute env
  16. String docker
  17. String cluster_config
  18. String disk_size
  19. String SENTIEON_LICENSE
  20. command <<<
  21. set -o pipefail
  22. set -exo
  23. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  24. nt=$(nproc)
  25. sentieon driver -t $nt -r ${ref_dir}/${ref_fasta} \
  26. -i ${tumor_bam} -q ${tumor_recall_data} \
  27. -i ${normal_bam} -q ${normal_recall_data} \
  28. --algo TNscope --tumor_sample ${tumor_name} --normal_sample ${normal_name} \
  29. --trim_soft_clip \
  30. --dbsnp ${dbsnp_dir}/${dbsnp} ${sample_id}.TNscope.vcf || { echo "TNscope failed"; exit 1; }
  31. ls ./
  32. #--disable_detector sv
  33. >>>
  34. runtime{
  35. docker:docker
  36. cluster:cluster_config
  37. systemDisk:"cloud_ssd 40"
  38. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  39. }
  40. output{
  41. File vcf = "${sample_id}.TNscope.vcf"
  42. File vcf_index = "${sample_id}.TNscope.vcf.idx"
  43. }
  44. }