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.

27 lines
530B

  1. task getBam {
  2. File bam
  3. File bam_idx
  4. String sample
  5. Array[String] pos
  6. String docker
  7. String cluster_config
  8. String disk_size
  9. command <<<
  10. /opt/conda/bin/samtools view -b ${bam} ${sep=" " pos} | opt/conda/bin/samtools sort - > ${sample}.bam
  11. /opt/conda/bin/samtools index ${sample}.bam
  12. >>>
  13. runtime {
  14. docker:docker
  15. cluster: cluster_config
  16. systemDisk: "cloud_ssd 40"
  17. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  18. }
  19. output {
  20. File sub_bam = "${sample}.bam"
  21. File sub_bai = "${sample}.bam.bai"
  22. }
  23. }