从RNAseq数据中call突变
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.

45 lines
1.1KB

  1. task Dedup {
  2. String SENTIEON_INSTALL_DIR
  3. String sample
  4. File sorted_bam
  5. File sorted_bam_index
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. set -o pipefail
  11. set -e
  12. export SENTIEON_LICENSE=192.168.0.55:8990
  13. sentieon_bam=`basename ${sorted_bam}`
  14. sentieon_bam_index=`basename ${sorted_bam_index}`
  15. cp ${sorted_bam} .
  16. cp ${sorted_bam_index} .
  17. nt=$(nproc)
  18. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver --traverse_param 1000000/10000 -t $nt -i $sentieon_bam --algo LocusCollector --fun score_info ${sample}_score.txt
  19. ${SENTIEON_INSTALL_DIR}/bin/sentieon driver --traverse_param 1000000/10000 -t $nt -i $sentieon_bam --algo Dedup --rmdup --score_info ${sample}_score.txt --metrics ${sample}_dedup_metrics.txt ${sample}.sorted.deduped.bam
  20. >>>
  21. runtime {
  22. docker:docker
  23. cluster: cluster_config
  24. systemDisk: "cloud_ssd 40"
  25. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  26. }
  27. output {
  28. File score = "${sample}_score.txt"
  29. File dedup_metrics = "${sample}_dedup_metrics.txt"
  30. File Dedup_bam = "${sample}.sorted.deduped.bam"
  31. File Dedup_bam_index = "${sample}.sorted.deduped.bam.bai"
  32. }
  33. }