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.

ASCAT.wdl 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. task ASCAT{
  2. String sample
  3. File tumor_bam
  4. File tumor_bam_index
  5. File? normal_bam
  6. File? normal_bam_index
  7. File? bed_file
  8. String gender
  9. String ref_genome
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. set -o pipefail
  15. set -e
  16. out_dir='./'
  17. if [ ${bed_file} ]; then
  18. /root/miniconda3/envs/hrd/bin/Rscript /home/ASCAT/ascat.r ${tumor_bam} ${normal_bam} ${sample}'_T' ${sample}'_N' ${sample} WES $out_dir ${gender} ${ref_genome} ${bed_file}
  19. else
  20. /root/miniconda3/envs/hrd/bin/Rscript /home/ASCAT/ascat.r ${tumor_bam} ${normal_bam} ${sample}'_T' ${sample}'_N' ${sample} WGS $out_dir ${gender} ${ref_genome}
  21. fi
  22. ls ./
  23. tar cvf ${sample}.tar ./
  24. >>>
  25. runtime{
  26. docker:docker
  27. cluster:cluster_config
  28. systemDisk:"cloud_ssd 40"
  29. dataDisk:"cloud_ssd " + disk_size + " /cromwell_root/"
  30. }
  31. output{
  32. File out_file = "${sample}.tar"
  33. }
  34. }