您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

45 行
1.0KB

  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. }