Automated integrated analysis software for genomics data of the cancer patients.
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.

mapping.wdl 1.5KB

2 år sedan
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. task mapping {
  2. File ref_dir
  3. String fasta
  4. File fastq_1
  5. File fastq_2
  6. String SENTIEON_LICENSE
  7. String group
  8. String sample
  9. String platform
  10. String docker
  11. String cluster_config
  12. String disk_size
  13. command <<<
  14. set -o pipefail
  15. set -e
  16. export SENTIEON_LICENSE=${SENTIEON_LICENSE}
  17. nt=$(nproc)
  18. if [ ${read_structure} ]; then
  19. if [ ${duplex_umi} == "true" ]; then
  20. READ_STRUCTURE="-d ${read_structure}"
  21. fi
  22. sentieon umi extract $READ_STRUCTURE ${fastq_1} ${fastq_2} | \
  23. sentieon bwa mem -p -C -R "@RG\tID:${group}\tSM:${sample}\tPL:${platform}" -t $nt -K 10000000 ${ref_dir}/${fasta} - | \
  24. sentieon umi consensus -o ${sample}.umi_consensus.fastq.gz
  25. sentieon bwa mem -p -C -R "@RG\tID:${group}\tSM:${sample}\tPL:${platform}" -t $nt -K 10000000 $fasta ${sample}.umi_consensus.fastq.gz | \
  26. sentieon util sort --umi_post_process --sam2bam -i - -o ${sample}.sorted.bam
  27. else
  28. sentieon bwa mem -R "@RG\tID:${group}\tSM:${sample}\tPL:${platform}" \
  29. -t $nt -K 10000000 ${ref_dir}/${fasta} ${fastq_1} ${fastq_2} | \
  30. sentieon util sort -o ${sample}.sorted.bam -t $nt --sam2bam -i -
  31. fi
  32. >>>
  33. runtime {
  34. docker: docker
  35. cluster: cluster_config
  36. systemDisk: "cloud_ssd 40"
  37. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  38. }
  39. output {
  40. File sorted_bam = "${sample}.sorted.bam"
  41. File sorted_bam_index = "${sample}.sorted.bam.bai"
  42. }
  43. }